@superinterface/react 3.24.2 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +466 -444
- 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 +436 -414
- package/dist/index.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 _jsx107;
|
|
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 ((_jsx107 = jsx2) != null && _jsx107.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 _jsx107, _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 (!((_jsx107 = jsx2) != null && _jsx107.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,17 +37811,17 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37811
37811
|
});
|
|
37812
37812
|
};
|
|
37813
37813
|
// src/components/threads/Thread/index.tsx
|
|
37814
|
-
import { c as
|
|
37814
|
+
import { c as _c75 } from "react-compiler-runtime";
|
|
37815
37815
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37816
|
-
import { c as
|
|
37816
|
+
import { c as _c65 } from "react-compiler-runtime";
|
|
37817
37817
|
import { Flex as Flex19 } from "@radix-ui/themes";
|
|
37818
37818
|
// src/components/threads/Thread/Message/index.tsx
|
|
37819
|
-
import { c as
|
|
37819
|
+
import { c as _c56 } from "react-compiler-runtime";
|
|
37820
37820
|
import { useMemo as useMemo10 } from "react";
|
|
37821
37821
|
import { Box as Box10 } from "@radix-ui/themes";
|
|
37822
37822
|
// src/components/runSteps/RunSteps/index.tsx
|
|
37823
|
-
import { c as
|
|
37824
|
-
import { Flex as
|
|
37823
|
+
import { c as _c52 } from "react-compiler-runtime";
|
|
37824
|
+
import { Flex as Flex15 } from "@radix-ui/themes";
|
|
37825
37825
|
import { useContext as useContext13 } from "react";
|
|
37826
37826
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
37827
37827
|
import { createContext as createContext9 } from "react";
|
|
@@ -43232,6 +43232,50 @@ MessageGroup.AssistantAvatar = AssistantAvatar;
|
|
|
43232
43232
|
MessageGroup.UserAvatar = UserAvatar;
|
|
43233
43233
|
MessageGroup.Messages = Messages;
|
|
43234
43234
|
MessageGroup.Content = Content5;
|
|
43235
|
+
// src/components/messages/MessageAttachments.tsx
|
|
43236
|
+
import { c as _c51 } from "react-compiler-runtime";
|
|
43237
|
+
import { Flex as Flex14, Badge as Badge2 } from "@radix-ui/themes";
|
|
43238
|
+
import { FileIcon } from "@radix-ui/react-icons";
|
|
43239
|
+
import { jsx as _jsx53, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
43240
|
+
var MessageAttachments = function(t0) {
|
|
43241
|
+
var _message$attachments;
|
|
43242
|
+
var $ = _c51(4);
|
|
43243
|
+
var message = t0.message;
|
|
43244
|
+
if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
|
|
43245
|
+
return null;
|
|
43246
|
+
}
|
|
43247
|
+
var t1;
|
|
43248
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43249
|
+
t1 = /* @__PURE__ */ _jsx53(FileIcon, {});
|
|
43250
|
+
$[0] = t1;
|
|
43251
|
+
} else {
|
|
43252
|
+
t1 = $[0];
|
|
43253
|
+
}
|
|
43254
|
+
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
43255
|
+
var t3;
|
|
43256
|
+
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
43257
|
+
t3 = /* @__PURE__ */ _jsx53(Flex14, {
|
|
43258
|
+
align: "start",
|
|
43259
|
+
pb: "1",
|
|
43260
|
+
children: /* @__PURE__ */ _jsxs15(Badge2, {
|
|
43261
|
+
color: "gray",
|
|
43262
|
+
variant: "surface",
|
|
43263
|
+
children: [
|
|
43264
|
+
t1,
|
|
43265
|
+
message.attachments.length,
|
|
43266
|
+
" file",
|
|
43267
|
+
t2
|
|
43268
|
+
]
|
|
43269
|
+
})
|
|
43270
|
+
});
|
|
43271
|
+
$[1] = message.attachments.length;
|
|
43272
|
+
$[2] = t2;
|
|
43273
|
+
$[3] = t3;
|
|
43274
|
+
} else {
|
|
43275
|
+
t3 = $[3];
|
|
43276
|
+
}
|
|
43277
|
+
return t3;
|
|
43278
|
+
};
|
|
43235
43279
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
43236
43280
|
var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
43237
43281
|
components: {
|
|
@@ -43243,13 +43287,14 @@ var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
|
43243
43287
|
FallbackToolCall: FallbackToolCall,
|
|
43244
43288
|
TextContent: TextContent,
|
|
43245
43289
|
ImageFileContent: ImageFileContent,
|
|
43246
|
-
MessageGroup: MessageGroup
|
|
43290
|
+
MessageGroup: MessageGroup,
|
|
43291
|
+
MessageAttachments: MessageAttachments
|
|
43247
43292
|
}
|
|
43248
43293
|
});
|
|
43249
43294
|
// src/components/runSteps/RunSteps/index.tsx
|
|
43250
|
-
import { jsx as
|
|
43295
|
+
import { jsx as _jsx54 } from "react/jsx-runtime";
|
|
43251
43296
|
var RunSteps = function(t0) {
|
|
43252
|
-
var $ =
|
|
43297
|
+
var $ = _c52(7);
|
|
43253
43298
|
var runSteps = t0.runSteps;
|
|
43254
43299
|
var componentsContext = useContext13(ComponentsContext);
|
|
43255
43300
|
var Component2 = componentsContext.components.RunStep;
|
|
@@ -43258,7 +43303,7 @@ var RunSteps = function(t0) {
|
|
|
43258
43303
|
var _t;
|
|
43259
43304
|
if ($[3] !== Component2) {
|
|
43260
43305
|
_t = function(runStep) {
|
|
43261
|
-
return /* @__PURE__ */
|
|
43306
|
+
return /* @__PURE__ */ _jsx54(Component2, {
|
|
43262
43307
|
runStep: runStep
|
|
43263
43308
|
}, runStep.id);
|
|
43264
43309
|
};
|
|
@@ -43276,7 +43321,7 @@ var RunSteps = function(t0) {
|
|
|
43276
43321
|
}
|
|
43277
43322
|
var t2;
|
|
43278
43323
|
if ($[5] !== t1) {
|
|
43279
|
-
t2 = /* @__PURE__ */
|
|
43324
|
+
t2 = /* @__PURE__ */ _jsx54(Flex15, {
|
|
43280
43325
|
direction: "column-reverse",
|
|
43281
43326
|
children: t1
|
|
43282
43327
|
});
|
|
@@ -43295,62 +43340,39 @@ var MessageContext = /* @__PURE__ */ createContext10({
|
|
|
43295
43340
|
// src/components/threads/Thread/Message/Provider.tsx
|
|
43296
43341
|
var Provider = MessageContext.Provider;
|
|
43297
43342
|
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
43298
|
-
import { c as
|
|
43299
|
-
import {
|
|
43300
|
-
import { FileIcon } from "@radix-ui/react-icons";
|
|
43301
|
-
import { jsx as _jsx54, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
43343
|
+
import { c as _c53 } from "react-compiler-runtime";
|
|
43344
|
+
import { jsx as _jsx55 } from "react/jsx-runtime";
|
|
43302
43345
|
var Attachments = function(t0) {
|
|
43303
|
-
var
|
|
43304
|
-
var $ = _c52(4);
|
|
43346
|
+
var $ = _c53(3);
|
|
43305
43347
|
var message = t0.message;
|
|
43306
|
-
|
|
43307
|
-
|
|
43308
|
-
|
|
43309
|
-
|
|
43310
|
-
|
|
43311
|
-
|
|
43312
|
-
$[0] = t1;
|
|
43313
|
-
} else {
|
|
43314
|
-
t1 = $[0];
|
|
43315
|
-
}
|
|
43316
|
-
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
43317
|
-
var t3;
|
|
43318
|
-
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
43319
|
-
t3 = /* @__PURE__ */ _jsx54(Flex15, {
|
|
43320
|
-
align: "start",
|
|
43321
|
-
pb: "1",
|
|
43322
|
-
children: /* @__PURE__ */ _jsxs15(Badge2, {
|
|
43323
|
-
color: "gray",
|
|
43324
|
-
variant: "surface",
|
|
43325
|
-
children: [
|
|
43326
|
-
t1,
|
|
43327
|
-
message.attachments.length,
|
|
43328
|
-
" file",
|
|
43329
|
-
t2
|
|
43330
|
-
]
|
|
43331
|
-
})
|
|
43348
|
+
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43349
|
+
var MessageAttachments2 = t1.MessageAttachments;
|
|
43350
|
+
var t2;
|
|
43351
|
+
if ($[0] !== MessageAttachments2 || $[1] !== message) {
|
|
43352
|
+
t2 = /* @__PURE__ */ _jsx55(MessageAttachments2, {
|
|
43353
|
+
message: message
|
|
43332
43354
|
});
|
|
43333
|
-
$[
|
|
43355
|
+
$[0] = MessageAttachments2;
|
|
43356
|
+
$[1] = message;
|
|
43334
43357
|
$[2] = t2;
|
|
43335
|
-
$[3] = t3;
|
|
43336
43358
|
} else {
|
|
43337
|
-
|
|
43359
|
+
t2 = $[2];
|
|
43338
43360
|
}
|
|
43339
|
-
return
|
|
43361
|
+
return t2;
|
|
43340
43362
|
};
|
|
43341
43363
|
// src/components/messages/MessageContent/index.tsx
|
|
43342
|
-
import { c as
|
|
43364
|
+
import { c as _c55 } from "react-compiler-runtime";
|
|
43343
43365
|
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
43344
|
-
import { c as
|
|
43345
|
-
import { jsx as
|
|
43366
|
+
import { c as _c54 } from "react-compiler-runtime";
|
|
43367
|
+
import { jsx as _jsx56 } from "react/jsx-runtime";
|
|
43346
43368
|
var TextContent2 = function(t0) {
|
|
43347
|
-
var $ =
|
|
43369
|
+
var $ = _c54(3);
|
|
43348
43370
|
var content2 = t0.content;
|
|
43349
43371
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43350
43372
|
var TextContent3 = t1.TextContent;
|
|
43351
43373
|
var t2;
|
|
43352
43374
|
if ($[0] !== TextContent3 || $[1] !== content2) {
|
|
43353
|
-
t2 = /* @__PURE__ */
|
|
43375
|
+
t2 = /* @__PURE__ */ _jsx56(TextContent3, {
|
|
43354
43376
|
content: content2
|
|
43355
43377
|
});
|
|
43356
43378
|
$[0] = TextContent3;
|
|
@@ -43362,13 +43384,13 @@ var TextContent2 = function(t0) {
|
|
|
43362
43384
|
return t2;
|
|
43363
43385
|
};
|
|
43364
43386
|
var ImageFileContent2 = function(t0) {
|
|
43365
|
-
var $ =
|
|
43387
|
+
var $ = _c54(3);
|
|
43366
43388
|
var content2 = t0.content;
|
|
43367
43389
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43368
43390
|
var ImageFileContent3 = t1.ImageFileContent;
|
|
43369
43391
|
var t2;
|
|
43370
43392
|
if ($[0] !== ImageFileContent3 || $[1] !== content2) {
|
|
43371
|
-
t2 = /* @__PURE__ */
|
|
43393
|
+
t2 = /* @__PURE__ */ _jsx56(ImageFileContent3, {
|
|
43372
43394
|
content: content2
|
|
43373
43395
|
});
|
|
43374
43396
|
$[0] = ImageFileContent3;
|
|
@@ -43380,12 +43402,12 @@ var ImageFileContent2 = function(t0) {
|
|
|
43380
43402
|
return t2;
|
|
43381
43403
|
};
|
|
43382
43404
|
var ContentPart = function(t0) {
|
|
43383
|
-
var $ =
|
|
43405
|
+
var $ = _c54(4);
|
|
43384
43406
|
var content2 = t0.content;
|
|
43385
43407
|
if (content2.type === "text") {
|
|
43386
43408
|
var t1;
|
|
43387
43409
|
if ($[0] !== content2) {
|
|
43388
|
-
t1 = /* @__PURE__ */
|
|
43410
|
+
t1 = /* @__PURE__ */ _jsx56(TextContent2, {
|
|
43389
43411
|
content: content2
|
|
43390
43412
|
});
|
|
43391
43413
|
$[0] = content2;
|
|
@@ -43398,7 +43420,7 @@ var ContentPart = function(t0) {
|
|
|
43398
43420
|
if (content2.type === "image_file") {
|
|
43399
43421
|
var _t;
|
|
43400
43422
|
if ($[2] !== content2) {
|
|
43401
|
-
_t = /* @__PURE__ */
|
|
43423
|
+
_t = /* @__PURE__ */ _jsx56(ImageFileContent2, {
|
|
43402
43424
|
content: content2
|
|
43403
43425
|
});
|
|
43404
43426
|
$[2] = content2;
|
|
@@ -43411,9 +43433,9 @@ var ContentPart = function(t0) {
|
|
|
43411
43433
|
return null;
|
|
43412
43434
|
};
|
|
43413
43435
|
// src/components/messages/MessageContent/index.tsx
|
|
43414
|
-
import { Fragment as _Fragment3, jsx as
|
|
43436
|
+
import { Fragment as _Fragment3, jsx as _jsx57 } from "react/jsx-runtime";
|
|
43415
43437
|
var MessageContent = function(t0) {
|
|
43416
|
-
var $ =
|
|
43438
|
+
var $ = _c55(4);
|
|
43417
43439
|
var message = t0.message;
|
|
43418
43440
|
var t1;
|
|
43419
43441
|
if ($[0] !== message.content) {
|
|
@@ -43425,7 +43447,7 @@ var MessageContent = function(t0) {
|
|
|
43425
43447
|
}
|
|
43426
43448
|
var t2;
|
|
43427
43449
|
if ($[2] !== t1) {
|
|
43428
|
-
t2 = /* @__PURE__ */
|
|
43450
|
+
t2 = /* @__PURE__ */ _jsx57(_Fragment3, {
|
|
43429
43451
|
children: t1
|
|
43430
43452
|
});
|
|
43431
43453
|
$[2] = t1;
|
|
@@ -43436,14 +43458,14 @@ var MessageContent = function(t0) {
|
|
|
43436
43458
|
return t2;
|
|
43437
43459
|
};
|
|
43438
43460
|
function _temp2(content2, index) {
|
|
43439
|
-
return /* @__PURE__ */
|
|
43461
|
+
return /* @__PURE__ */ _jsx57(ContentPart, {
|
|
43440
43462
|
content: content2
|
|
43441
43463
|
}, index);
|
|
43442
43464
|
}
|
|
43443
43465
|
// src/components/threads/Thread/Message/index.tsx
|
|
43444
|
-
import { jsx as
|
|
43466
|
+
import { jsx as _jsx58, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
43445
43467
|
var Message = function(t0) {
|
|
43446
|
-
var $ =
|
|
43468
|
+
var $ = _c56(37);
|
|
43447
43469
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43448
43470
|
var t1;
|
|
43449
43471
|
bb0: {
|
|
@@ -43551,7 +43573,7 @@ var Message = function(t0) {
|
|
|
43551
43573
|
}
|
|
43552
43574
|
var t3;
|
|
43553
43575
|
if ($[21] !== olderRunSteps_0) {
|
|
43554
|
-
t3 = /* @__PURE__ */
|
|
43576
|
+
t3 = /* @__PURE__ */ _jsx58(RunSteps, {
|
|
43555
43577
|
runSteps: olderRunSteps_0
|
|
43556
43578
|
});
|
|
43557
43579
|
$[21] = olderRunSteps_0;
|
|
@@ -43573,10 +43595,10 @@ var Message = function(t0) {
|
|
|
43573
43595
|
t5 = /* @__PURE__ */ _jsxs16(Box10, {
|
|
43574
43596
|
style: t4,
|
|
43575
43597
|
children: [
|
|
43576
|
-
/* @__PURE__ */
|
|
43598
|
+
/* @__PURE__ */ _jsx58(Attachments, {
|
|
43577
43599
|
message: message
|
|
43578
43600
|
}),
|
|
43579
|
-
/* @__PURE__ */
|
|
43601
|
+
/* @__PURE__ */ _jsx58(MessageContent, {
|
|
43580
43602
|
message: message
|
|
43581
43603
|
})
|
|
43582
43604
|
]
|
|
@@ -43588,7 +43610,7 @@ var Message = function(t0) {
|
|
|
43588
43610
|
}
|
|
43589
43611
|
var t6;
|
|
43590
43612
|
if ($[26] !== laterRunSteps_0) {
|
|
43591
|
-
t6 = /* @__PURE__ */
|
|
43613
|
+
t6 = /* @__PURE__ */ _jsx58(RunSteps, {
|
|
43592
43614
|
runSteps: laterRunSteps_0
|
|
43593
43615
|
});
|
|
43594
43616
|
$[26] = laterRunSteps_0;
|
|
@@ -43618,7 +43640,7 @@ var Message = function(t0) {
|
|
|
43618
43640
|
}
|
|
43619
43641
|
var t8;
|
|
43620
43642
|
if ($[34] !== t2 || $[35] !== t7) {
|
|
43621
|
-
t8 = /* @__PURE__ */
|
|
43643
|
+
t8 = /* @__PURE__ */ _jsx58(Provider, {
|
|
43622
43644
|
value: t2,
|
|
43623
43645
|
children: t7
|
|
43624
43646
|
});
|
|
@@ -43637,10 +43659,10 @@ function _temp22(runStep_1) {
|
|
|
43637
43659
|
return runStep_1.step_details.type === "message_creation";
|
|
43638
43660
|
}
|
|
43639
43661
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43640
|
-
import { c as
|
|
43662
|
+
import { c as _c59 } from "react-compiler-runtime";
|
|
43641
43663
|
import { useEffect as useEffect3 } from "react";
|
|
43642
43664
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43643
|
-
import { c as
|
|
43665
|
+
import { c as _c57 } from "react-compiler-runtime";
|
|
43644
43666
|
import { useMemo as useMemo11 } from "react";
|
|
43645
43667
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43646
43668
|
import _6 from "lodash";
|
|
@@ -43745,7 +43767,7 @@ var messageGroups = function(_ref) {
|
|
|
43745
43767
|
};
|
|
43746
43768
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43747
43769
|
var useMessageGroups = function(t0) {
|
|
43748
|
-
var $ =
|
|
43770
|
+
var $ = _c57(4);
|
|
43749
43771
|
var messages2 = t0.messages;
|
|
43750
43772
|
var t1;
|
|
43751
43773
|
var t2;
|
|
@@ -43772,18 +43794,18 @@ var useMessageGroups = function(t0) {
|
|
|
43772
43794
|
return t1;
|
|
43773
43795
|
};
|
|
43774
43796
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
43775
|
-
import { c as
|
|
43797
|
+
import { c as _c58 } from "react-compiler-runtime";
|
|
43776
43798
|
import { forwardRef as forwardRef3 } from "react";
|
|
43777
43799
|
import { Flex as Flex16, Avatar as Avatar3, Box as Box11, Skeleton } from "@radix-ui/themes";
|
|
43778
|
-
import { jsx as
|
|
43800
|
+
import { jsx as _jsx59, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
43779
43801
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
43780
|
-
var $ =
|
|
43802
|
+
var $ = _c58(7);
|
|
43781
43803
|
var t0;
|
|
43782
43804
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43783
|
-
t0 = /* @__PURE__ */
|
|
43805
|
+
t0 = /* @__PURE__ */ _jsx59(Skeleton, {
|
|
43784
43806
|
loading: true,
|
|
43785
|
-
children: /* @__PURE__ */
|
|
43786
|
-
fallback: /* @__PURE__ */
|
|
43807
|
+
children: /* @__PURE__ */ _jsx59(Avatar3, {
|
|
43808
|
+
fallback: /* @__PURE__ */ _jsx59(Flex16, {}),
|
|
43787
43809
|
size: "1"
|
|
43788
43810
|
})
|
|
43789
43811
|
});
|
|
@@ -43793,8 +43815,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43793
43815
|
}
|
|
43794
43816
|
var t1;
|
|
43795
43817
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43796
|
-
t1 = /* @__PURE__ */
|
|
43797
|
-
children: /* @__PURE__ */
|
|
43818
|
+
t1 = /* @__PURE__ */ _jsx59(MessageGroup.Name, {
|
|
43819
|
+
children: /* @__PURE__ */ _jsx59(Skeleton, {
|
|
43798
43820
|
loading: true,
|
|
43799
43821
|
style: {
|
|
43800
43822
|
width: "128px"
|
|
@@ -43807,7 +43829,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43807
43829
|
}
|
|
43808
43830
|
var t2;
|
|
43809
43831
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43810
|
-
t2 = /* @__PURE__ */
|
|
43832
|
+
t2 = /* @__PURE__ */ _jsx59(Skeleton, {
|
|
43811
43833
|
loading: true,
|
|
43812
43834
|
style: {
|
|
43813
43835
|
width: "256px"
|
|
@@ -43819,7 +43841,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43819
43841
|
}
|
|
43820
43842
|
var t3;
|
|
43821
43843
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43822
|
-
t3 = /* @__PURE__ */
|
|
43844
|
+
t3 = /* @__PURE__ */ _jsx59(Skeleton, {
|
|
43823
43845
|
loading: true,
|
|
43824
43846
|
style: {
|
|
43825
43847
|
width: "256px",
|
|
@@ -43838,7 +43860,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43838
43860
|
t1,
|
|
43839
43861
|
t2,
|
|
43840
43862
|
t3,
|
|
43841
|
-
/* @__PURE__ */
|
|
43863
|
+
/* @__PURE__ */ _jsx59(Skeleton, {
|
|
43842
43864
|
loading: true,
|
|
43843
43865
|
style: {
|
|
43844
43866
|
width: "256px",
|
|
@@ -43868,9 +43890,9 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43868
43890
|
return t5;
|
|
43869
43891
|
});
|
|
43870
43892
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43871
|
-
import { jsx as
|
|
43893
|
+
import { jsx as _jsx60, Fragment as _Fragment4 } from "react/jsx-runtime";
|
|
43872
43894
|
var Content6 = function() {
|
|
43873
|
-
var $ =
|
|
43895
|
+
var $ = _c59(14);
|
|
43874
43896
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
43875
43897
|
var addToast = useToasts().addToast;
|
|
43876
43898
|
var t0;
|
|
@@ -43913,7 +43935,7 @@ var Content6 = function() {
|
|
|
43913
43935
|
if (isLoading || isLoadingError) {
|
|
43914
43936
|
var _t;
|
|
43915
43937
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43916
|
-
_t = /* @__PURE__ */
|
|
43938
|
+
_t = /* @__PURE__ */ _jsx60(MessagesSkeleton, {});
|
|
43917
43939
|
$[6] = _t;
|
|
43918
43940
|
} else {
|
|
43919
43941
|
_t = $[6];
|
|
@@ -43925,7 +43947,7 @@ var Content6 = function() {
|
|
|
43925
43947
|
var _t2;
|
|
43926
43948
|
if ($[10] !== MessageGroup2) {
|
|
43927
43949
|
_t2 = function(messageGroup) {
|
|
43928
|
-
return /* @__PURE__ */
|
|
43950
|
+
return /* @__PURE__ */ _jsx60(MessageGroup2, {
|
|
43929
43951
|
messageGroup: messageGroup
|
|
43930
43952
|
}, messageGroup.id);
|
|
43931
43953
|
};
|
|
@@ -43943,7 +43965,7 @@ var Content6 = function() {
|
|
|
43943
43965
|
}
|
|
43944
43966
|
var t5;
|
|
43945
43967
|
if ($[12] !== t4) {
|
|
43946
|
-
t5 = /* @__PURE__ */
|
|
43968
|
+
t5 = /* @__PURE__ */ _jsx60(_Fragment4, {
|
|
43947
43969
|
children: t4
|
|
43948
43970
|
});
|
|
43949
43971
|
$[12] = t4;
|
|
@@ -43954,22 +43976,22 @@ var Content6 = function() {
|
|
|
43954
43976
|
return t5;
|
|
43955
43977
|
};
|
|
43956
43978
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
43957
|
-
import { c as
|
|
43979
|
+
import { c as _c62 } from "react-compiler-runtime";
|
|
43958
43980
|
import { useMemo as useMemo12 } from "react";
|
|
43959
43981
|
import { Flex as Flex17, Box as Box13 } from "@radix-ui/themes";
|
|
43960
43982
|
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43961
|
-
import { c as
|
|
43983
|
+
import { c as _c61 } from "react-compiler-runtime";
|
|
43962
43984
|
import { useContext as useContext14 } from "react";
|
|
43963
43985
|
import { Box as Box12 } from "@radix-ui/themes";
|
|
43964
43986
|
// src/components/skeletons/StartingContentSkeleton/index.tsx
|
|
43965
|
-
import { c as
|
|
43987
|
+
import { c as _c60 } from "react-compiler-runtime";
|
|
43966
43988
|
import { Skeleton as Skeleton2 } from "@radix-ui/themes";
|
|
43967
|
-
import { jsx as
|
|
43989
|
+
import { jsx as _jsx61 } from "react/jsx-runtime";
|
|
43968
43990
|
var StartingContentSkeleton = function() {
|
|
43969
|
-
var $ =
|
|
43991
|
+
var $ = _c60(1);
|
|
43970
43992
|
var t0;
|
|
43971
43993
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43972
|
-
t0 = /* @__PURE__ */
|
|
43994
|
+
t0 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43973
43995
|
loading: true,
|
|
43974
43996
|
mt: "1",
|
|
43975
43997
|
height: "var(--space-4)",
|
|
@@ -43986,21 +44008,21 @@ var StartingContentSkeleton = function() {
|
|
|
43986
44008
|
return t0;
|
|
43987
44009
|
};
|
|
43988
44010
|
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43989
|
-
import { jsx as
|
|
44011
|
+
import { jsx as _jsx62, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43990
44012
|
var StartingSkeleton = function(t0) {
|
|
43991
|
-
var $ =
|
|
44013
|
+
var $ = _c61(7);
|
|
43992
44014
|
var children = t0.children;
|
|
43993
44015
|
var assistantNameContext = useContext14(AssistantNameContext);
|
|
43994
44016
|
var t1;
|
|
43995
44017
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43996
|
-
t1 = /* @__PURE__ */
|
|
44018
|
+
t1 = /* @__PURE__ */ _jsx62(MessageGroup.AssistantAvatar, {});
|
|
43997
44019
|
$[0] = t1;
|
|
43998
44020
|
} else {
|
|
43999
44021
|
t1 = $[0];
|
|
44000
44022
|
}
|
|
44001
44023
|
var t2;
|
|
44002
44024
|
if ($[1] !== assistantNameContext) {
|
|
44003
|
-
t2 = /* @__PURE__ */
|
|
44025
|
+
t2 = /* @__PURE__ */ _jsx62(MessageGroup.Name, {
|
|
44004
44026
|
children: assistantNameContext
|
|
44005
44027
|
});
|
|
44006
44028
|
$[1] = assistantNameContext;
|
|
@@ -44010,7 +44032,7 @@ var StartingSkeleton = function(t0) {
|
|
|
44010
44032
|
}
|
|
44011
44033
|
var t3;
|
|
44012
44034
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44013
|
-
t3 = /* @__PURE__ */
|
|
44035
|
+
t3 = /* @__PURE__ */ _jsx62(StartingContentSkeleton, {});
|
|
44014
44036
|
$[3] = t3;
|
|
44015
44037
|
} else {
|
|
44016
44038
|
t3 = $[3];
|
|
@@ -44038,9 +44060,9 @@ var StartingSkeleton = function(t0) {
|
|
|
44038
44060
|
return t4;
|
|
44039
44061
|
};
|
|
44040
44062
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
44041
|
-
import { jsx as
|
|
44063
|
+
import { jsx as _jsx63, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44042
44064
|
var Progress = function() {
|
|
44043
|
-
var $ =
|
|
44065
|
+
var $ = _c62(3);
|
|
44044
44066
|
var latestMessage = useLatestMessage().latestMessage;
|
|
44045
44067
|
var isMutatingMessage = useIsMutatingMessage();
|
|
44046
44068
|
var t0;
|
|
@@ -44073,7 +44095,7 @@ var Progress = function() {
|
|
|
44073
44095
|
if (isStartingSkeletonVisible) {
|
|
44074
44096
|
var t1;
|
|
44075
44097
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44076
|
-
t1 = /* @__PURE__ */
|
|
44098
|
+
t1 = /* @__PURE__ */ _jsx63(StartingSkeleton, {});
|
|
44077
44099
|
$[0] = t1;
|
|
44078
44100
|
} else {
|
|
44079
44101
|
t1 = $[0];
|
|
@@ -44083,7 +44105,7 @@ var Progress = function() {
|
|
|
44083
44105
|
if (isMutatingMessage) {
|
|
44084
44106
|
var _t;
|
|
44085
44107
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44086
|
-
_t = /* @__PURE__ */
|
|
44108
|
+
_t = /* @__PURE__ */ _jsx63(Flex17, {
|
|
44087
44109
|
flexShrink: "0",
|
|
44088
44110
|
height: "24px",
|
|
44089
44111
|
width: "24px"
|
|
@@ -44097,8 +44119,8 @@ var Progress = function() {
|
|
|
44097
44119
|
t2 = /* @__PURE__ */ _jsxs19(MessageGroup.Root, {
|
|
44098
44120
|
children: [
|
|
44099
44121
|
_t,
|
|
44100
|
-
/* @__PURE__ */
|
|
44101
|
-
children: /* @__PURE__ */
|
|
44122
|
+
/* @__PURE__ */ _jsx63(Box13, {
|
|
44123
|
+
children: /* @__PURE__ */ _jsx63(StartingContentSkeleton, {})
|
|
44102
44124
|
})
|
|
44103
44125
|
]
|
|
44104
44126
|
});
|
|
@@ -44111,7 +44133,7 @@ var Progress = function() {
|
|
|
44111
44133
|
return null;
|
|
44112
44134
|
};
|
|
44113
44135
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44114
|
-
import { c as
|
|
44136
|
+
import { c as _c63 } from "react-compiler-runtime";
|
|
44115
44137
|
import { Flex as Flex18 } from "@radix-ui/themes";
|
|
44116
44138
|
// src/hooks/misc/useInfiniteScroll/index.tsx
|
|
44117
44139
|
import { useRef as useRef3 } from "react";
|
|
@@ -44164,7 +44186,7 @@ var useInfiniteScroll = function(_ref) {
|
|
|
44164
44186
|
};
|
|
44165
44187
|
};
|
|
44166
44188
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44167
|
-
import { jsx as
|
|
44189
|
+
import { jsx as _jsx64, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
44168
44190
|
function ownKeys26(e, r) {
|
|
44169
44191
|
var t = Object.keys(e);
|
|
44170
44192
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44209,7 +44231,7 @@ function _toPrimitive26(t, r) {
|
|
|
44209
44231
|
return ("string" === r ? String : Number)(t);
|
|
44210
44232
|
}
|
|
44211
44233
|
var Root4 = function(t0) {
|
|
44212
|
-
var $ =
|
|
44234
|
+
var $ = _c63(18);
|
|
44213
44235
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44214
44236
|
var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
|
|
44215
44237
|
var t1;
|
|
@@ -44247,7 +44269,7 @@ var Root4 = function(t0) {
|
|
|
44247
44269
|
}
|
|
44248
44270
|
var t4;
|
|
44249
44271
|
if ($[8] !== hasNextPage || $[9] !== loaderRef) {
|
|
44250
|
-
t4 = hasNextPage && /* @__PURE__ */
|
|
44272
|
+
t4 = hasNextPage && /* @__PURE__ */ _jsx64(Flex18, {
|
|
44251
44273
|
ref: loaderRef
|
|
44252
44274
|
});
|
|
44253
44275
|
$[8] = hasNextPage;
|
|
@@ -44258,7 +44280,7 @@ var Root4 = function(t0) {
|
|
|
44258
44280
|
}
|
|
44259
44281
|
var t5;
|
|
44260
44282
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44261
|
-
t5 = /* @__PURE__ */
|
|
44283
|
+
t5 = /* @__PURE__ */ _jsx64(Flex18, {
|
|
44262
44284
|
flexShrink: "0",
|
|
44263
44285
|
flexGrow: "1"
|
|
44264
44286
|
});
|
|
@@ -44292,17 +44314,17 @@ var Root4 = function(t0) {
|
|
|
44292
44314
|
return t6;
|
|
44293
44315
|
};
|
|
44294
44316
|
// src/components/threads/Thread/Messages/NextPageSkeleton.tsx
|
|
44295
|
-
import { c as
|
|
44296
|
-
import { jsx as
|
|
44317
|
+
import { c as _c64 } from "react-compiler-runtime";
|
|
44318
|
+
import { jsx as _jsx65 } from "react/jsx-runtime";
|
|
44297
44319
|
var NextPageSkeleton = function() {
|
|
44298
|
-
var $ =
|
|
44320
|
+
var $ = _c64(1);
|
|
44299
44321
|
var hasNextPage = useMessages().hasNextPage;
|
|
44300
44322
|
if (!hasNextPage) {
|
|
44301
44323
|
return null;
|
|
44302
44324
|
}
|
|
44303
44325
|
var t0;
|
|
44304
44326
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44305
|
-
t0 = /* @__PURE__ */
|
|
44327
|
+
t0 = /* @__PURE__ */ _jsx65(MessagesSkeleton, {});
|
|
44306
44328
|
$[0] = t0;
|
|
44307
44329
|
} else {
|
|
44308
44330
|
t0 = $[0];
|
|
@@ -44310,18 +44332,18 @@ var NextPageSkeleton = function() {
|
|
|
44310
44332
|
return t0;
|
|
44311
44333
|
};
|
|
44312
44334
|
// src/components/threads/Thread/Messages/index.tsx
|
|
44313
|
-
import { jsx as
|
|
44335
|
+
import { jsx as _jsx66, jsxs as _jsxs21 } from "react/jsx-runtime";
|
|
44314
44336
|
var Messages2 = function(t0) {
|
|
44315
|
-
var $ =
|
|
44337
|
+
var $ = _c65(9);
|
|
44316
44338
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
44317
44339
|
var t1;
|
|
44318
44340
|
var t2;
|
|
44319
44341
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44320
|
-
t1 = /* @__PURE__ */
|
|
44342
|
+
t1 = /* @__PURE__ */ _jsx66(Flex19, {
|
|
44321
44343
|
flexShrink: "0",
|
|
44322
44344
|
height: "var(--space-3)"
|
|
44323
44345
|
});
|
|
44324
|
-
t2 = /* @__PURE__ */
|
|
44346
|
+
t2 = /* @__PURE__ */ _jsx66(Progress, {});
|
|
44325
44347
|
$[0] = t1;
|
|
44326
44348
|
$[1] = t2;
|
|
44327
44349
|
} else {
|
|
@@ -44332,9 +44354,9 @@ var Messages2 = function(t0) {
|
|
|
44332
44354
|
var t4;
|
|
44333
44355
|
var t5;
|
|
44334
44356
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44335
|
-
t3 = /* @__PURE__ */
|
|
44336
|
-
t4 = /* @__PURE__ */
|
|
44337
|
-
t5 = /* @__PURE__ */
|
|
44357
|
+
t3 = /* @__PURE__ */ _jsx66(Content6, {});
|
|
44358
|
+
t4 = /* @__PURE__ */ _jsx66(NextPageSkeleton, {});
|
|
44359
|
+
t5 = /* @__PURE__ */ _jsx66(Flex19, {
|
|
44338
44360
|
flexShrink: "0",
|
|
44339
44361
|
flexGrow: "1",
|
|
44340
44362
|
minHeight: "var(--space-5)"
|
|
@@ -44374,9 +44396,9 @@ Messages2.Root = Root4;
|
|
|
44374
44396
|
Messages2.Message = Message;
|
|
44375
44397
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44376
44398
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44377
|
-
import { c as
|
|
44399
|
+
import { c as _c71 } from "react-compiler-runtime";
|
|
44378
44400
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44379
|
-
import { c as
|
|
44401
|
+
import { c as _c66 } from "react-compiler-runtime";
|
|
44380
44402
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
44381
44403
|
import { IconButton as IconButton5, Flex as Flex20 } from "@radix-ui/themes";
|
|
44382
44404
|
// src/hooks/messages/useMessageFormContext/index.ts
|
|
@@ -44396,7 +44418,7 @@ var useMessageFormContext = function() {
|
|
|
44396
44418
|
return useContext15(MessageFormContext);
|
|
44397
44419
|
};
|
|
44398
44420
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44399
|
-
import { jsx as
|
|
44421
|
+
import { jsx as _jsx67 } from "react/jsx-runtime";
|
|
44400
44422
|
function ownKeys27(e, r) {
|
|
44401
44423
|
var t = Object.keys(e);
|
|
44402
44424
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44441,11 +44463,11 @@ function _toPrimitive27(t, r) {
|
|
|
44441
44463
|
return ("string" === r ? String : Number)(t);
|
|
44442
44464
|
}
|
|
44443
44465
|
var Root5 = function(t0) {
|
|
44444
|
-
var $ =
|
|
44466
|
+
var $ = _c66(4);
|
|
44445
44467
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44446
44468
|
var t1;
|
|
44447
44469
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44448
|
-
t1 = /* @__PURE__ */
|
|
44470
|
+
t1 = /* @__PURE__ */ _jsx67(Flex20, {
|
|
44449
44471
|
flexShrink: "0",
|
|
44450
44472
|
align: "end",
|
|
44451
44473
|
style: style,
|
|
@@ -44462,7 +44484,7 @@ var Root5 = function(t0) {
|
|
|
44462
44484
|
return t1;
|
|
44463
44485
|
};
|
|
44464
44486
|
var Button3 = function(props) {
|
|
44465
|
-
var $ =
|
|
44487
|
+
var $ = _c66(10);
|
|
44466
44488
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
44467
44489
|
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
|
|
44468
44490
|
if (isLoading) {
|
|
@@ -44479,14 +44501,14 @@ var Button3 = function(props) {
|
|
|
44479
44501
|
}
|
|
44480
44502
|
var _t2;
|
|
44481
44503
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44482
|
-
_t2 = /* @__PURE__ */
|
|
44504
|
+
_t2 = /* @__PURE__ */ _jsx67(StopIcon, {});
|
|
44483
44505
|
$[2] = _t2;
|
|
44484
44506
|
} else {
|
|
44485
44507
|
_t2 = $[2];
|
|
44486
44508
|
}
|
|
44487
44509
|
var _t3;
|
|
44488
44510
|
if ($[3] !== props || $[4] !== _t) {
|
|
44489
|
-
_t3 = /* @__PURE__ */
|
|
44511
|
+
_t3 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread27(_objectSpread27({
|
|
44490
44512
|
type: "button",
|
|
44491
44513
|
onClick: _t
|
|
44492
44514
|
}, props), {}, {
|
|
@@ -44503,14 +44525,14 @@ var Button3 = function(props) {
|
|
|
44503
44525
|
var t0 = isDisabled || isFileLoading;
|
|
44504
44526
|
var t1;
|
|
44505
44527
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44506
|
-
t1 = /* @__PURE__ */
|
|
44528
|
+
t1 = /* @__PURE__ */ _jsx67(ArrowUpIcon2, {});
|
|
44507
44529
|
$[6] = t1;
|
|
44508
44530
|
} else {
|
|
44509
44531
|
t1 = $[6];
|
|
44510
44532
|
}
|
|
44511
44533
|
var t2;
|
|
44512
44534
|
if ($[7] !== props || $[8] !== t0) {
|
|
44513
|
-
t2 = /* @__PURE__ */
|
|
44535
|
+
t2 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread27(_objectSpread27({
|
|
44514
44536
|
type: "submit",
|
|
44515
44537
|
disabled: t0
|
|
44516
44538
|
}, props), {}, {
|
|
@@ -44525,17 +44547,17 @@ var Button3 = function(props) {
|
|
|
44525
44547
|
return t2;
|
|
44526
44548
|
};
|
|
44527
44549
|
var Submit = function(props) {
|
|
44528
|
-
var $ =
|
|
44550
|
+
var $ = _c66(3);
|
|
44529
44551
|
var t0;
|
|
44530
44552
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44531
|
-
t0 = /* @__PURE__ */
|
|
44553
|
+
t0 = /* @__PURE__ */ _jsx67(Button3, {});
|
|
44532
44554
|
$[0] = t0;
|
|
44533
44555
|
} else {
|
|
44534
44556
|
t0 = $[0];
|
|
44535
44557
|
}
|
|
44536
44558
|
var t1;
|
|
44537
44559
|
if ($[1] !== props) {
|
|
44538
|
-
t1 = /* @__PURE__ */
|
|
44560
|
+
t1 = /* @__PURE__ */ _jsx67(Root5, _objectSpread27(_objectSpread27({}, props), {}, {
|
|
44539
44561
|
children: t0
|
|
44540
44562
|
}));
|
|
44541
44563
|
$[1] = props;
|
|
@@ -44563,7 +44585,7 @@ var formOptions = {
|
|
|
44563
44585
|
};
|
|
44564
44586
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44565
44587
|
import { partob } from "radash";
|
|
44566
|
-
import { jsx as
|
|
44588
|
+
import { jsx as _jsx68 } from "react/jsx-runtime";
|
|
44567
44589
|
function ownKeys28(e, r) {
|
|
44568
44590
|
var t = Object.keys(e);
|
|
44569
44591
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44723,7 +44745,7 @@ var Root6 = function(_ref) {
|
|
|
44723
44745
|
};
|
|
44724
44746
|
}();
|
|
44725
44747
|
var content2 = watch("content");
|
|
44726
|
-
return /* @__PURE__ */
|
|
44748
|
+
return /* @__PURE__ */ _jsx68(MessageFormContext.Provider, {
|
|
44727
44749
|
value: {
|
|
44728
44750
|
isDisabled: isDisabled,
|
|
44729
44751
|
isLoading: isLoading,
|
|
@@ -44732,13 +44754,13 @@ var Root6 = function(_ref) {
|
|
|
44732
44754
|
isFileLoading: isFileLoading,
|
|
44733
44755
|
content: content2
|
|
44734
44756
|
},
|
|
44735
|
-
children: /* @__PURE__ */
|
|
44736
|
-
children: /* @__PURE__ */
|
|
44757
|
+
children: /* @__PURE__ */ _jsx68(FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
|
|
44758
|
+
children: /* @__PURE__ */ _jsx68(Box14, {
|
|
44737
44759
|
asChild: true,
|
|
44738
44760
|
flexShrink: "0",
|
|
44739
44761
|
style: style,
|
|
44740
44762
|
className: className,
|
|
44741
|
-
children: /* @__PURE__ */
|
|
44763
|
+
children: /* @__PURE__ */ _jsx68("form", {
|
|
44742
44764
|
onSubmit: handleSubmit(onSubmit),
|
|
44743
44765
|
children: children
|
|
44744
44766
|
})
|
|
@@ -44750,7 +44772,7 @@ var Root6 = function(_ref) {
|
|
|
44750
44772
|
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
44751
44773
|
import { Container as RadixContainer, Flex as Flex24 } from "@radix-ui/themes";
|
|
44752
44774
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44753
|
-
import { c as
|
|
44775
|
+
import { c as _c68 } from "react-compiler-runtime";
|
|
44754
44776
|
import { Flex as Flex21 } from "@radix-ui/themes";
|
|
44755
44777
|
import { useFormContext } from "react-hook-form";
|
|
44756
44778
|
// src/hooks/misc/usePrevious.ts
|
|
@@ -44765,10 +44787,10 @@ var usePrevious = function(state) {
|
|
|
44765
44787
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44766
44788
|
import { useContext as useContext16, useMemo as useMemo14, useRef as useRef5, useEffect as useEffect6 } from "react";
|
|
44767
44789
|
// src/components/textareas/TextareaBase/index.tsx
|
|
44768
|
-
import { c as
|
|
44790
|
+
import { c as _c67 } from "react-compiler-runtime";
|
|
44769
44791
|
import { forwardRef as forwardRef4 } from "react";
|
|
44770
44792
|
import TextareaAutosize from "react-textarea-autosize";
|
|
44771
|
-
import { jsx as
|
|
44793
|
+
import { jsx as _jsx69, Fragment as _Fragment5, jsxs as _jsxs22 } from "react/jsx-runtime";
|
|
44772
44794
|
var _excluded3 = [
|
|
44773
44795
|
"style",
|
|
44774
44796
|
"className"
|
|
@@ -44835,7 +44857,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
|
|
|
44835
44857
|
return t;
|
|
44836
44858
|
}
|
|
44837
44859
|
var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
44838
|
-
var $ =
|
|
44860
|
+
var $ = _c67(14);
|
|
44839
44861
|
var className;
|
|
44840
44862
|
var rest;
|
|
44841
44863
|
var style;
|
|
@@ -44856,7 +44878,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44856
44878
|
}
|
|
44857
44879
|
var t1;
|
|
44858
44880
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44859
|
-
t1 = /* @__PURE__ */
|
|
44881
|
+
t1 = /* @__PURE__ */ _jsx69("style", {
|
|
44860
44882
|
children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
|
|
44861
44883
|
});
|
|
44862
44884
|
$[4] = t1;
|
|
@@ -44893,7 +44915,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44893
44915
|
t5 = /* @__PURE__ */ _jsxs22(_Fragment5, {
|
|
44894
44916
|
children: [
|
|
44895
44917
|
t1,
|
|
44896
|
-
/* @__PURE__ */
|
|
44918
|
+
/* @__PURE__ */ _jsx69(TextareaAutosize, _objectSpread29({
|
|
44897
44919
|
ref: ref,
|
|
44898
44920
|
className: t2,
|
|
44899
44921
|
style: t4
|
|
@@ -44911,7 +44933,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44911
44933
|
return t5;
|
|
44912
44934
|
});
|
|
44913
44935
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44914
|
-
import { jsx as
|
|
44936
|
+
import { jsx as _jsx70 } from "react/jsx-runtime";
|
|
44915
44937
|
function ownKeys30(e, r) {
|
|
44916
44938
|
var t = Object.keys(e);
|
|
44917
44939
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44956,11 +44978,11 @@ function _toPrimitive30(t, r) {
|
|
|
44956
44978
|
return ("string" === r ? String : Number)(t);
|
|
44957
44979
|
}
|
|
44958
44980
|
var Root7 = function(t0) {
|
|
44959
|
-
var $ =
|
|
44981
|
+
var $ = _c68(4);
|
|
44960
44982
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44961
44983
|
var t1;
|
|
44962
44984
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44963
|
-
t1 = /* @__PURE__ */
|
|
44985
|
+
t1 = /* @__PURE__ */ _jsx70(Flex21, {
|
|
44964
44986
|
flexGrow: "1",
|
|
44965
44987
|
pt: "4px",
|
|
44966
44988
|
style: style,
|
|
@@ -45001,7 +45023,7 @@ var Input = function(props) {
|
|
|
45001
45023
|
isDisabledPrevious,
|
|
45002
45024
|
textareaProps
|
|
45003
45025
|
]);
|
|
45004
|
-
return /* @__PURE__ */
|
|
45026
|
+
return /* @__PURE__ */ _jsx70(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
|
|
45005
45027
|
minRows: 1,
|
|
45006
45028
|
placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
|
|
45007
45029
|
disabled: isDisabled,
|
|
@@ -45021,17 +45043,17 @@ var Input = function(props) {
|
|
|
45021
45043
|
}));
|
|
45022
45044
|
};
|
|
45023
45045
|
var Control = function(props) {
|
|
45024
|
-
var $ =
|
|
45046
|
+
var $ = _c68(3);
|
|
45025
45047
|
var t0;
|
|
45026
45048
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45027
|
-
t0 = /* @__PURE__ */
|
|
45049
|
+
t0 = /* @__PURE__ */ _jsx70(Input, {});
|
|
45028
45050
|
$[0] = t0;
|
|
45029
45051
|
} else {
|
|
45030
45052
|
t0 = $[0];
|
|
45031
45053
|
}
|
|
45032
45054
|
var t1;
|
|
45033
45055
|
if ($[1] !== props) {
|
|
45034
|
-
t1 = /* @__PURE__ */
|
|
45056
|
+
t1 = /* @__PURE__ */ _jsx70(Root7, _objectSpread30(_objectSpread30({}, props), {}, {
|
|
45035
45057
|
children: t0
|
|
45036
45058
|
}));
|
|
45037
45059
|
$[1] = props;
|
|
@@ -45044,10 +45066,10 @@ var Control = function(props) {
|
|
|
45044
45066
|
Control.Root = Root7;
|
|
45045
45067
|
Control.Input = Input;
|
|
45046
45068
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
45047
|
-
import { c as
|
|
45069
|
+
import { c as _c69 } from "react-compiler-runtime";
|
|
45048
45070
|
import { Flex as Flex22, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
45049
45071
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
45050
|
-
import { jsx as
|
|
45072
|
+
import { jsx as _jsx71, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
45051
45073
|
function ownKeys31(e, r) {
|
|
45052
45074
|
var t = Object.keys(e);
|
|
45053
45075
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45092,7 +45114,7 @@ function _toPrimitive31(t, r) {
|
|
|
45092
45114
|
return ("string" === r ? String : Number)(t);
|
|
45093
45115
|
}
|
|
45094
45116
|
var Preview = function(props) {
|
|
45095
|
-
var $ =
|
|
45117
|
+
var $ = _c69(8);
|
|
45096
45118
|
var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
|
|
45097
45119
|
if (!files.length) {
|
|
45098
45120
|
return null;
|
|
@@ -45102,7 +45124,7 @@ var Preview = function(props) {
|
|
|
45102
45124
|
var _t;
|
|
45103
45125
|
if ($[3] !== setFiles) {
|
|
45104
45126
|
_t = function(file) {
|
|
45105
|
-
return /* @__PURE__ */
|
|
45127
|
+
return /* @__PURE__ */ _jsx71(Card2, {
|
|
45106
45128
|
variant: "ghost",
|
|
45107
45129
|
children: /* @__PURE__ */ _jsxs23(Flex22, {
|
|
45108
45130
|
align: "center",
|
|
@@ -45116,16 +45138,16 @@ var Preview = function(props) {
|
|
|
45116
45138
|
minWidth: "0",
|
|
45117
45139
|
maxWidth: "250px",
|
|
45118
45140
|
children: [
|
|
45119
|
-
/* @__PURE__ */
|
|
45141
|
+
/* @__PURE__ */ _jsx71(Flex22, {
|
|
45120
45142
|
flexShrink: "0",
|
|
45121
|
-
children: /* @__PURE__ */
|
|
45143
|
+
children: /* @__PURE__ */ _jsx71(Spinner2, {
|
|
45122
45144
|
loading: isOptimistic({
|
|
45123
45145
|
id: file.id
|
|
45124
45146
|
}),
|
|
45125
|
-
children: /* @__PURE__ */
|
|
45147
|
+
children: /* @__PURE__ */ _jsx71(FileIcon2, {})
|
|
45126
45148
|
})
|
|
45127
45149
|
}),
|
|
45128
|
-
/* @__PURE__ */
|
|
45150
|
+
/* @__PURE__ */ _jsx71(Text7, {
|
|
45129
45151
|
size: "2",
|
|
45130
45152
|
truncate: true,
|
|
45131
45153
|
wrap: "nowrap",
|
|
@@ -45133,9 +45155,9 @@ var Preview = function(props) {
|
|
|
45133
45155
|
})
|
|
45134
45156
|
]
|
|
45135
45157
|
}),
|
|
45136
|
-
/* @__PURE__ */
|
|
45158
|
+
/* @__PURE__ */ _jsx71(Flex22, {
|
|
45137
45159
|
flexShrink: "0",
|
|
45138
|
-
children: /* @__PURE__ */
|
|
45160
|
+
children: /* @__PURE__ */ _jsx71(IconButton6, {
|
|
45139
45161
|
onClick: function() {
|
|
45140
45162
|
return setFiles(function(prev) {
|
|
45141
45163
|
return prev.filter(function(prevFile) {
|
|
@@ -45146,7 +45168,7 @@ var Preview = function(props) {
|
|
|
45146
45168
|
color: "gray",
|
|
45147
45169
|
variant: "ghost",
|
|
45148
45170
|
size: "1",
|
|
45149
|
-
children: /* @__PURE__ */
|
|
45171
|
+
children: /* @__PURE__ */ _jsx71(Cross2Icon, {})
|
|
45150
45172
|
})
|
|
45151
45173
|
})
|
|
45152
45174
|
]
|
|
@@ -45167,7 +45189,7 @@ var Preview = function(props) {
|
|
|
45167
45189
|
}
|
|
45168
45190
|
var t1;
|
|
45169
45191
|
if ($[5] !== props || $[6] !== t0) {
|
|
45170
|
-
t1 = /* @__PURE__ */
|
|
45192
|
+
t1 = /* @__PURE__ */ _jsx71(Flex22, _objectSpread31(_objectSpread31({
|
|
45171
45193
|
flexBasis: "100%",
|
|
45172
45194
|
direction: "column",
|
|
45173
45195
|
pb: "2",
|
|
@@ -45190,7 +45212,7 @@ import dayjs2 from "dayjs";
|
|
|
45190
45212
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45191
45213
|
import { IconButton as IconButton7, Flex as Flex23 } from "@radix-ui/themes";
|
|
45192
45214
|
// src/hooks/files/useCreateFile/index.ts
|
|
45193
|
-
import { c as
|
|
45215
|
+
import { c as _c70 } from "react-compiler-runtime";
|
|
45194
45216
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
45195
45217
|
// src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
|
|
45196
45218
|
var formData = function(variables) {
|
|
@@ -45426,7 +45448,7 @@ function _toPrimitive34(t, r) {
|
|
|
45426
45448
|
return ("string" === r ? String : Number)(t);
|
|
45427
45449
|
}
|
|
45428
45450
|
var useCreateFile = function(t0) {
|
|
45429
|
-
var $ =
|
|
45451
|
+
var $ = _c70(15);
|
|
45430
45452
|
var t1;
|
|
45431
45453
|
if ($[0] !== t0) {
|
|
45432
45454
|
t1 = t0 === void 0 ? {
|
|
@@ -45502,7 +45524,7 @@ var useCreateFile = function(t0) {
|
|
|
45502
45524
|
function _temp4() {}
|
|
45503
45525
|
function _temp23() {}
|
|
45504
45526
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45505
|
-
import { jsx as
|
|
45527
|
+
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45506
45528
|
function ownKeys35(e, r) {
|
|
45507
45529
|
var t = Object.keys(e);
|
|
45508
45530
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45783,7 +45805,7 @@ var Control2 = function(props) {
|
|
|
45783
45805
|
createFile,
|
|
45784
45806
|
setFiles
|
|
45785
45807
|
]);
|
|
45786
|
-
return /* @__PURE__ */
|
|
45808
|
+
return /* @__PURE__ */ _jsx72(Flex23, _objectSpread35(_objectSpread35({
|
|
45787
45809
|
pt: "2",
|
|
45788
45810
|
pr: "2",
|
|
45789
45811
|
flexGrow: "0"
|
|
@@ -45798,8 +45820,8 @@ var Control2 = function(props) {
|
|
|
45798
45820
|
overflow: "hidden"
|
|
45799
45821
|
},
|
|
45800
45822
|
children: [
|
|
45801
|
-
/* @__PURE__ */
|
|
45802
|
-
/* @__PURE__ */
|
|
45823
|
+
/* @__PURE__ */ _jsx72(FilePlusIcon, {}),
|
|
45824
|
+
/* @__PURE__ */ _jsx72("input", {
|
|
45803
45825
|
type: "file",
|
|
45804
45826
|
multiple: true,
|
|
45805
45827
|
accept: accept,
|
|
@@ -45824,7 +45846,7 @@ var Files = {
|
|
|
45824
45846
|
Control: Control2
|
|
45825
45847
|
};
|
|
45826
45848
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
45827
|
-
import { jsx as
|
|
45849
|
+
import { jsx as _jsx73 } from "react/jsx-runtime";
|
|
45828
45850
|
function ownKeys36(e, r) {
|
|
45829
45851
|
var t = Object.keys(e);
|
|
45830
45852
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45872,18 +45894,18 @@ var Root8 = function(_ref) {
|
|
|
45872
45894
|
"use no memo";
|
|
45873
45895
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
45874
45896
|
var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
|
|
45875
|
-
return /* @__PURE__ */
|
|
45897
|
+
return /* @__PURE__ */ _jsx73(RadixContainer, {
|
|
45876
45898
|
size: "2",
|
|
45877
45899
|
flexGrow: "0",
|
|
45878
45900
|
className: className,
|
|
45879
45901
|
style: style,
|
|
45880
|
-
children: /* @__PURE__ */
|
|
45902
|
+
children: /* @__PURE__ */ _jsx73(Flex24, {
|
|
45881
45903
|
direction: "column",
|
|
45882
45904
|
flexShrink: "0",
|
|
45883
|
-
children: /* @__PURE__ */
|
|
45905
|
+
children: /* @__PURE__ */ _jsx73(Flex24, {
|
|
45884
45906
|
direction: "column",
|
|
45885
45907
|
flexShrink: "0",
|
|
45886
|
-
children: /* @__PURE__ */
|
|
45908
|
+
children: /* @__PURE__ */ _jsx73(Flex24, {
|
|
45887
45909
|
style: _objectSpread36({
|
|
45888
45910
|
borderRadius: "var(--radius-2)",
|
|
45889
45911
|
borderWidth: "1px",
|
|
@@ -45907,7 +45929,7 @@ var Field = {
|
|
|
45907
45929
|
Files: Files
|
|
45908
45930
|
};
|
|
45909
45931
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
45910
|
-
import { jsx as
|
|
45932
|
+
import { jsx as _jsx74, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
45911
45933
|
function ownKeys37(e, r) {
|
|
45912
45934
|
var t = Object.keys(e);
|
|
45913
45935
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45952,13 +45974,13 @@ function _toPrimitive37(t, r) {
|
|
|
45952
45974
|
return ("string" === r ? String : Number)(t);
|
|
45953
45975
|
}
|
|
45954
45976
|
var MessageForm = function(props) {
|
|
45955
|
-
var $ =
|
|
45977
|
+
var $ = _c71(3);
|
|
45956
45978
|
var t0;
|
|
45957
45979
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45958
45980
|
t0 = /* @__PURE__ */ _jsxs25(Field.Root, {
|
|
45959
45981
|
children: [
|
|
45960
|
-
/* @__PURE__ */
|
|
45961
|
-
/* @__PURE__ */
|
|
45982
|
+
/* @__PURE__ */ _jsx74(Field.Control, {}),
|
|
45983
|
+
/* @__PURE__ */ _jsx74(Submit, {})
|
|
45962
45984
|
]
|
|
45963
45985
|
});
|
|
45964
45986
|
$[0] = t0;
|
|
@@ -45967,7 +45989,7 @@ var MessageForm = function(props) {
|
|
|
45967
45989
|
}
|
|
45968
45990
|
var t1;
|
|
45969
45991
|
if ($[1] !== props) {
|
|
45970
|
-
t1 = /* @__PURE__ */
|
|
45992
|
+
t1 = /* @__PURE__ */ _jsx74(Root6, _objectSpread37(_objectSpread37({}, props), {}, {
|
|
45971
45993
|
children: t0
|
|
45972
45994
|
}));
|
|
45973
45995
|
$[1] = props;
|
|
@@ -45981,32 +46003,32 @@ MessageForm.Root = Root6;
|
|
|
45981
46003
|
MessageForm.Field = Field;
|
|
45982
46004
|
MessageForm.Submit = Submit;
|
|
45983
46005
|
// src/components/threads/Thread/Root/index.tsx
|
|
45984
|
-
import { c as
|
|
46006
|
+
import { c as _c74 } from "react-compiler-runtime";
|
|
45985
46007
|
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
45986
46008
|
// src/components/threads/Thread/Provider/index.tsx
|
|
45987
46009
|
var Provider2 = SuperinterfaceProvider;
|
|
45988
46010
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
45989
|
-
import { c as
|
|
46011
|
+
import { c as _c73 } from "react-compiler-runtime";
|
|
45990
46012
|
import { useState as useState5, useCallback as useCallback4 } from "react";
|
|
45991
46013
|
import * as Toast2 from "@radix-ui/react-toast";
|
|
45992
46014
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
45993
|
-
import { c as
|
|
46015
|
+
import { c as _c72 } from "react-compiler-runtime";
|
|
45994
46016
|
import * as Toast from "@radix-ui/react-toast";
|
|
45995
46017
|
import { Card as Card3, Text as Text8, Flex as Flex25 } from "@radix-ui/themes";
|
|
45996
46018
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
45997
|
-
import { jsx as
|
|
46019
|
+
import { jsx as _jsx75, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
45998
46020
|
var CustomToast = function(t0) {
|
|
45999
|
-
var $ =
|
|
46021
|
+
var $ = _c72(7);
|
|
46000
46022
|
var toast = t0.toast;
|
|
46001
46023
|
var t1;
|
|
46002
46024
|
if ($[0] !== toast.type) {
|
|
46003
|
-
t1 = /* @__PURE__ */
|
|
46025
|
+
t1 = /* @__PURE__ */ _jsx75(Flex25, {
|
|
46004
46026
|
pr: "2",
|
|
46005
46027
|
height: "14px",
|
|
46006
46028
|
align: "center",
|
|
46007
|
-
children: toast.type === "success" ? /* @__PURE__ */
|
|
46029
|
+
children: toast.type === "success" ? /* @__PURE__ */ _jsx75(CheckCircledIcon2, {
|
|
46008
46030
|
color: "var(--accent-9)"
|
|
46009
|
-
}) : /* @__PURE__ */
|
|
46031
|
+
}) : /* @__PURE__ */ _jsx75(CrossCircledIcon, {
|
|
46010
46032
|
color: "var(--red-9)"
|
|
46011
46033
|
})
|
|
46012
46034
|
});
|
|
@@ -46017,7 +46039,7 @@ var CustomToast = function(t0) {
|
|
|
46017
46039
|
}
|
|
46018
46040
|
var t2;
|
|
46019
46041
|
if ($[2] !== toast.message) {
|
|
46020
|
-
t2 = /* @__PURE__ */
|
|
46042
|
+
t2 = /* @__PURE__ */ _jsx75(Text8, {
|
|
46021
46043
|
weight: "medium",
|
|
46022
46044
|
size: "1",
|
|
46023
46045
|
children: toast.message
|
|
@@ -46029,9 +46051,9 @@ var CustomToast = function(t0) {
|
|
|
46029
46051
|
}
|
|
46030
46052
|
var t3;
|
|
46031
46053
|
if ($[4] !== t1 || $[5] !== t2) {
|
|
46032
|
-
t3 = /* @__PURE__ */
|
|
46033
|
-
children: /* @__PURE__ */
|
|
46034
|
-
children: /* @__PURE__ */
|
|
46054
|
+
t3 = /* @__PURE__ */ _jsx75(Toast.Root, {
|
|
46055
|
+
children: /* @__PURE__ */ _jsx75(Card3, {
|
|
46056
|
+
children: /* @__PURE__ */ _jsx75(Toast.Title, {
|
|
46035
46057
|
children: /* @__PURE__ */ _jsxs26(Flex25, {
|
|
46036
46058
|
children: [
|
|
46037
46059
|
t1,
|
|
@@ -46050,9 +46072,9 @@ var CustomToast = function(t0) {
|
|
|
46050
46072
|
return t3;
|
|
46051
46073
|
};
|
|
46052
46074
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46053
|
-
import { jsx as
|
|
46075
|
+
import { jsx as _jsx76, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
46054
46076
|
var ToastsProvider = function(t0) {
|
|
46055
|
-
var $ =
|
|
46077
|
+
var $ = _c73(15);
|
|
46056
46078
|
var children = t0.children, t1 = t0.bottom;
|
|
46057
46079
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
46058
46080
|
var t2;
|
|
@@ -46098,7 +46120,7 @@ var ToastsProvider = function(t0) {
|
|
|
46098
46120
|
}
|
|
46099
46121
|
var t6;
|
|
46100
46122
|
if ($[6] !== bottom) {
|
|
46101
|
-
t6 = /* @__PURE__ */
|
|
46123
|
+
t6 = /* @__PURE__ */ _jsx76(Toast2.Viewport, {
|
|
46102
46124
|
style: {
|
|
46103
46125
|
position: "absolute",
|
|
46104
46126
|
bottom: bottom,
|
|
@@ -46138,7 +46160,7 @@ var ToastsProvider = function(t0) {
|
|
|
46138
46160
|
}
|
|
46139
46161
|
var t8;
|
|
46140
46162
|
if ($[12] !== t4 || $[13] !== t7) {
|
|
46141
|
-
t8 = /* @__PURE__ */
|
|
46163
|
+
t8 = /* @__PURE__ */ _jsx76(ToastsContext.Provider, {
|
|
46142
46164
|
value: t4,
|
|
46143
46165
|
children: t7
|
|
46144
46166
|
});
|
|
@@ -46151,12 +46173,12 @@ var ToastsProvider = function(t0) {
|
|
|
46151
46173
|
return t8;
|
|
46152
46174
|
};
|
|
46153
46175
|
function _temp5(toast_0, index) {
|
|
46154
|
-
return /* @__PURE__ */
|
|
46176
|
+
return /* @__PURE__ */ _jsx76(CustomToast, {
|
|
46155
46177
|
toast: toast_0
|
|
46156
46178
|
}, index);
|
|
46157
46179
|
}
|
|
46158
46180
|
// src/components/threads/Thread/Root/index.tsx
|
|
46159
|
-
import { jsx as
|
|
46181
|
+
import { jsx as _jsx77 } from "react/jsx-runtime";
|
|
46160
46182
|
var _excluded4 = [
|
|
46161
46183
|
"children",
|
|
46162
46184
|
"style",
|
|
@@ -46224,7 +46246,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46224
46246
|
return t;
|
|
46225
46247
|
}
|
|
46226
46248
|
var Root10 = function(t0) {
|
|
46227
|
-
var $ =
|
|
46249
|
+
var $ = _c74(12);
|
|
46228
46250
|
var children;
|
|
46229
46251
|
var className;
|
|
46230
46252
|
var rest;
|
|
@@ -46248,7 +46270,7 @@ var Root10 = function(t0) {
|
|
|
46248
46270
|
}
|
|
46249
46271
|
var t1;
|
|
46250
46272
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
46251
|
-
t1 = /* @__PURE__ */
|
|
46273
|
+
t1 = /* @__PURE__ */ _jsx77(Flex26, {
|
|
46252
46274
|
direction: "column",
|
|
46253
46275
|
flexGrow: "1",
|
|
46254
46276
|
className: className,
|
|
@@ -46264,9 +46286,9 @@ var Root10 = function(t0) {
|
|
|
46264
46286
|
}
|
|
46265
46287
|
var t2;
|
|
46266
46288
|
if ($[9] !== rest || $[10] !== t1) {
|
|
46267
|
-
t2 = /* @__PURE__ */
|
|
46289
|
+
t2 = /* @__PURE__ */ _jsx77(ToastsProvider, {
|
|
46268
46290
|
bottom: "var(--space-9)",
|
|
46269
|
-
children: /* @__PURE__ */
|
|
46291
|
+
children: /* @__PURE__ */ _jsx77(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
|
|
46270
46292
|
children: t1
|
|
46271
46293
|
}))
|
|
46272
46294
|
});
|
|
@@ -46279,7 +46301,7 @@ var Root10 = function(t0) {
|
|
|
46279
46301
|
return t2;
|
|
46280
46302
|
};
|
|
46281
46303
|
// src/components/threads/Thread/index.tsx
|
|
46282
|
-
import { jsx as
|
|
46304
|
+
import { jsx as _jsx78, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
46283
46305
|
function ownKeys39(e, r) {
|
|
46284
46306
|
var t = Object.keys(e);
|
|
46285
46307
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46324,12 +46346,12 @@ function _toPrimitive39(t, r) {
|
|
|
46324
46346
|
return ("string" === r ? String : Number)(t);
|
|
46325
46347
|
}
|
|
46326
46348
|
var Thread = function(props) {
|
|
46327
|
-
var $ =
|
|
46349
|
+
var $ = _c75(4);
|
|
46328
46350
|
var t0;
|
|
46329
46351
|
var t1;
|
|
46330
46352
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46331
|
-
t0 = /* @__PURE__ */
|
|
46332
|
-
t1 = /* @__PURE__ */
|
|
46353
|
+
t0 = /* @__PURE__ */ _jsx78(Messages2, {});
|
|
46354
|
+
t1 = /* @__PURE__ */ _jsx78(MessageForm, {});
|
|
46333
46355
|
$[0] = t0;
|
|
46334
46356
|
$[1] = t1;
|
|
46335
46357
|
} else {
|
|
@@ -46360,7 +46382,7 @@ var useMessageContext = function() {
|
|
|
46360
46382
|
return useContext17(MessageContext);
|
|
46361
46383
|
};
|
|
46362
46384
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46363
|
-
import { c as
|
|
46385
|
+
import { c as _c76 } from "react-compiler-runtime";
|
|
46364
46386
|
import { useMemo as useMemo15 } from "react";
|
|
46365
46387
|
import { useQuery } from "@tanstack/react-query";
|
|
46366
46388
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
@@ -46510,7 +46532,7 @@ function _toPrimitive40(t, r) {
|
|
|
46510
46532
|
return ("string" === r ? String : Number)(t);
|
|
46511
46533
|
}
|
|
46512
46534
|
var useAssistant = function(t0) {
|
|
46513
|
-
var $ =
|
|
46535
|
+
var $ = _c76(6);
|
|
46514
46536
|
var assistantId = t0.assistantId;
|
|
46515
46537
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46516
46538
|
var t1;
|
|
@@ -46543,11 +46565,11 @@ var useAssistant = function(t0) {
|
|
|
46543
46565
|
return t2;
|
|
46544
46566
|
};
|
|
46545
46567
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46546
|
-
import { c as
|
|
46568
|
+
import { c as _c83 } from "react-compiler-runtime";
|
|
46547
46569
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46548
|
-
import { c as
|
|
46570
|
+
import { c as _c78 } from "react-compiler-runtime";
|
|
46549
46571
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46550
|
-
import { c as
|
|
46572
|
+
import { c as _c77 } from "react-compiler-runtime";
|
|
46551
46573
|
import { useState as useState6 } from "react";
|
|
46552
46574
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46553
46575
|
import { createContext as createContext12 } from "react";
|
|
@@ -46561,9 +46583,9 @@ var useThreadDialogContext = function() {
|
|
|
46561
46583
|
return useContext18(ThreadDialogContext);
|
|
46562
46584
|
};
|
|
46563
46585
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46564
|
-
import { jsx as
|
|
46586
|
+
import { jsx as _jsx79 } from "react/jsx-runtime";
|
|
46565
46587
|
var Provider4 = function(t0) {
|
|
46566
|
-
var $ =
|
|
46588
|
+
var $ = _c77(5);
|
|
46567
46589
|
var children = t0.children;
|
|
46568
46590
|
var threadDialogContext = useThreadDialogContext();
|
|
46569
46591
|
var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
|
|
@@ -46580,7 +46602,7 @@ var Provider4 = function(t0) {
|
|
|
46580
46602
|
}
|
|
46581
46603
|
var t2;
|
|
46582
46604
|
if ($[2] !== children || $[3] !== t1) {
|
|
46583
|
-
t2 = /* @__PURE__ */
|
|
46605
|
+
t2 = /* @__PURE__ */ _jsx79(ThreadDialogContext.Provider, {
|
|
46584
46606
|
value: t1,
|
|
46585
46607
|
children: children
|
|
46586
46608
|
});
|
|
@@ -46593,13 +46615,13 @@ var Provider4 = function(t0) {
|
|
|
46593
46615
|
return t2;
|
|
46594
46616
|
};
|
|
46595
46617
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46596
|
-
import { jsx as
|
|
46618
|
+
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
46597
46619
|
var Root11 = function(t0) {
|
|
46598
|
-
var $ =
|
|
46620
|
+
var $ = _c78(2);
|
|
46599
46621
|
var children = t0.children;
|
|
46600
46622
|
var t1;
|
|
46601
46623
|
if ($[0] !== children) {
|
|
46602
|
-
t1 = /* @__PURE__ */
|
|
46624
|
+
t1 = /* @__PURE__ */ _jsx80(Provider4, {
|
|
46603
46625
|
children: children
|
|
46604
46626
|
});
|
|
46605
46627
|
$[0] = children;
|
|
@@ -46610,13 +46632,13 @@ var Root11 = function(t0) {
|
|
|
46610
46632
|
return t1;
|
|
46611
46633
|
};
|
|
46612
46634
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46613
|
-
import { c as
|
|
46635
|
+
import { c as _c80 } from "react-compiler-runtime";
|
|
46614
46636
|
import { Flex as Flex27 } from "@radix-ui/themes";
|
|
46615
46637
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46616
|
-
import { c as
|
|
46638
|
+
import { c as _c79 } from "react-compiler-runtime";
|
|
46617
46639
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46618
46640
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46619
|
-
import { jsx as
|
|
46641
|
+
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
46620
46642
|
function ownKeys41(e, r) {
|
|
46621
46643
|
var t = Object.keys(e);
|
|
46622
46644
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46661,17 +46683,17 @@ function _toPrimitive41(t, r) {
|
|
|
46661
46683
|
return ("string" === r ? String : Number)(t);
|
|
46662
46684
|
}
|
|
46663
46685
|
var Button4 = function(props) {
|
|
46664
|
-
var $ =
|
|
46686
|
+
var $ = _c79(3);
|
|
46665
46687
|
var t0;
|
|
46666
46688
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46667
|
-
t0 = /* @__PURE__ */
|
|
46689
|
+
t0 = /* @__PURE__ */ _jsx81(ChatBubbleIcon, {});
|
|
46668
46690
|
$[0] = t0;
|
|
46669
46691
|
} else {
|
|
46670
46692
|
t0 = $[0];
|
|
46671
46693
|
}
|
|
46672
46694
|
var t1;
|
|
46673
46695
|
if ($[1] !== props) {
|
|
46674
|
-
t1 = /* @__PURE__ */
|
|
46696
|
+
t1 = /* @__PURE__ */ _jsx81(IconButton8, _objectSpread41(_objectSpread41({
|
|
46675
46697
|
size: "4",
|
|
46676
46698
|
radius: "full"
|
|
46677
46699
|
}, props), {}, {
|
|
@@ -46685,7 +46707,7 @@ var Button4 = function(props) {
|
|
|
46685
46707
|
return t1;
|
|
46686
46708
|
};
|
|
46687
46709
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46688
|
-
import { jsx as
|
|
46710
|
+
import { jsx as _jsx82 } from "react/jsx-runtime";
|
|
46689
46711
|
function ownKeys42(e, r) {
|
|
46690
46712
|
var t = Object.keys(e);
|
|
46691
46713
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46730,7 +46752,7 @@ function _toPrimitive42(t, r) {
|
|
|
46730
46752
|
return ("string" === r ? String : Number)(t);
|
|
46731
46753
|
}
|
|
46732
46754
|
var Root12 = function(t0) {
|
|
46733
|
-
var $ =
|
|
46755
|
+
var $ = _c80(14);
|
|
46734
46756
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46735
46757
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46736
46758
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -46775,7 +46797,7 @@ var Root12 = function(t0) {
|
|
|
46775
46797
|
}
|
|
46776
46798
|
var t6;
|
|
46777
46799
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
46778
|
-
t6 = /* @__PURE__ */
|
|
46800
|
+
t6 = /* @__PURE__ */ _jsx82(Flex27, {
|
|
46779
46801
|
display: t2,
|
|
46780
46802
|
onClick: t3,
|
|
46781
46803
|
direction: "column",
|
|
@@ -46801,17 +46823,17 @@ var Root12 = function(t0) {
|
|
|
46801
46823
|
return t6;
|
|
46802
46824
|
};
|
|
46803
46825
|
var Trigger = function(args) {
|
|
46804
|
-
var $ =
|
|
46826
|
+
var $ = _c80(3);
|
|
46805
46827
|
var t0;
|
|
46806
46828
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46807
|
-
t0 = /* @__PURE__ */
|
|
46829
|
+
t0 = /* @__PURE__ */ _jsx82(Button4, {});
|
|
46808
46830
|
$[0] = t0;
|
|
46809
46831
|
} else {
|
|
46810
46832
|
t0 = $[0];
|
|
46811
46833
|
}
|
|
46812
46834
|
var t1;
|
|
46813
46835
|
if ($[1] !== args) {
|
|
46814
|
-
t1 = /* @__PURE__ */
|
|
46836
|
+
t1 = /* @__PURE__ */ _jsx82(Root12, _objectSpread42(_objectSpread42({}, args), {}, {
|
|
46815
46837
|
children: t0
|
|
46816
46838
|
}));
|
|
46817
46839
|
$[1] = args;
|
|
@@ -46827,15 +46849,15 @@ function _temp6(prev) {
|
|
|
46827
46849
|
return !prev;
|
|
46828
46850
|
}
|
|
46829
46851
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46830
|
-
import { c as
|
|
46852
|
+
import { c as _c82 } from "react-compiler-runtime";
|
|
46831
46853
|
import { Card as Card4, Inset as Inset2, Flex as Flex29 } from "@radix-ui/themes";
|
|
46832
46854
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
46833
|
-
import { c as
|
|
46855
|
+
import { c as _c81 } from "react-compiler-runtime";
|
|
46834
46856
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
46835
46857
|
import { IconButton as IconButton9, Flex as Flex28 } from "@radix-ui/themes";
|
|
46836
|
-
import { jsx as
|
|
46858
|
+
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
46837
46859
|
var Close = function() {
|
|
46838
|
-
var $ =
|
|
46860
|
+
var $ = _c81(9);
|
|
46839
46861
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46840
46862
|
var t0 = isOpen ? "flex" : "none";
|
|
46841
46863
|
var t1;
|
|
@@ -46870,10 +46892,10 @@ var Close = function() {
|
|
|
46870
46892
|
}
|
|
46871
46893
|
var t4;
|
|
46872
46894
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46873
|
-
t4 = /* @__PURE__ */
|
|
46895
|
+
t4 = /* @__PURE__ */ _jsx83(IconButton9, {
|
|
46874
46896
|
size: "2",
|
|
46875
46897
|
variant: "soft",
|
|
46876
|
-
children: /* @__PURE__ */
|
|
46898
|
+
children: /* @__PURE__ */ _jsx83(Cross1Icon, {})
|
|
46877
46899
|
});
|
|
46878
46900
|
$[5] = t4;
|
|
46879
46901
|
} else {
|
|
@@ -46881,7 +46903,7 @@ var Close = function() {
|
|
|
46881
46903
|
}
|
|
46882
46904
|
var t5;
|
|
46883
46905
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
46884
|
-
t5 = /* @__PURE__ */
|
|
46906
|
+
t5 = /* @__PURE__ */ _jsx83(Flex28, {
|
|
46885
46907
|
display: t1,
|
|
46886
46908
|
onClick: t2,
|
|
46887
46909
|
direction: "column",
|
|
@@ -46906,7 +46928,7 @@ function _temp7(prev) {
|
|
|
46906
46928
|
return !prev;
|
|
46907
46929
|
}
|
|
46908
46930
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46909
|
-
import { jsx as
|
|
46931
|
+
import { jsx as _jsx84, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
46910
46932
|
function ownKeys43(e, r) {
|
|
46911
46933
|
var t = Object.keys(e);
|
|
46912
46934
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46951,7 +46973,7 @@ function _toPrimitive43(t, r) {
|
|
|
46951
46973
|
return ("string" === r ? String : Number)(t);
|
|
46952
46974
|
}
|
|
46953
46975
|
var Root13 = function(t0) {
|
|
46954
|
-
var $ =
|
|
46976
|
+
var $ = _c82(19);
|
|
46955
46977
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
46956
46978
|
var isOpen = useThreadDialogContext().isOpen;
|
|
46957
46979
|
if (!isOpen) {
|
|
@@ -47038,7 +47060,7 @@ var Root13 = function(t0) {
|
|
|
47038
47060
|
}
|
|
47039
47061
|
var t10;
|
|
47040
47062
|
if ($[10] !== children) {
|
|
47041
|
-
t10 = /* @__PURE__ */
|
|
47063
|
+
t10 = /* @__PURE__ */ _jsx84(Inset2, {
|
|
47042
47064
|
clip: "padding-box",
|
|
47043
47065
|
side: "all",
|
|
47044
47066
|
pb: "current",
|
|
@@ -47052,7 +47074,7 @@ var Root13 = function(t0) {
|
|
|
47052
47074
|
}
|
|
47053
47075
|
var t11;
|
|
47054
47076
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47055
|
-
t11 = /* @__PURE__ */
|
|
47077
|
+
t11 = /* @__PURE__ */ _jsx84(Close, {});
|
|
47056
47078
|
$[12] = t11;
|
|
47057
47079
|
} else {
|
|
47058
47080
|
t11 = $[12];
|
|
@@ -47074,7 +47096,7 @@ var Root13 = function(t0) {
|
|
|
47074
47096
|
}
|
|
47075
47097
|
var t13;
|
|
47076
47098
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
47077
|
-
t13 = /* @__PURE__ */
|
|
47099
|
+
t13 = /* @__PURE__ */ _jsx84(Flex29, {
|
|
47078
47100
|
className: className,
|
|
47079
47101
|
direction: "column",
|
|
47080
47102
|
justify: "end",
|
|
@@ -47098,7 +47120,7 @@ var Root13 = function(t0) {
|
|
|
47098
47120
|
return t13;
|
|
47099
47121
|
};
|
|
47100
47122
|
var Messages3 = function(t0) {
|
|
47101
|
-
var $ =
|
|
47123
|
+
var $ = _c82(5);
|
|
47102
47124
|
var className = t0.className, style = t0.style;
|
|
47103
47125
|
var t1;
|
|
47104
47126
|
if ($[0] !== style) {
|
|
@@ -47114,7 +47136,7 @@ var Messages3 = function(t0) {
|
|
|
47114
47136
|
}
|
|
47115
47137
|
var t2;
|
|
47116
47138
|
if ($[2] !== className || $[3] !== t1) {
|
|
47117
|
-
t2 = /* @__PURE__ */
|
|
47139
|
+
t2 = /* @__PURE__ */ _jsx84(Thread.Messages, {
|
|
47118
47140
|
className: className,
|
|
47119
47141
|
style: t1
|
|
47120
47142
|
});
|
|
@@ -47127,11 +47149,11 @@ var Messages3 = function(t0) {
|
|
|
47127
47149
|
return t2;
|
|
47128
47150
|
};
|
|
47129
47151
|
var FormContainer = function(t0) {
|
|
47130
|
-
var $ =
|
|
47152
|
+
var $ = _c82(4);
|
|
47131
47153
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47132
47154
|
var t1;
|
|
47133
47155
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
47134
|
-
t1 = /* @__PURE__ */
|
|
47156
|
+
t1 = /* @__PURE__ */ _jsx84(Flex29, {
|
|
47135
47157
|
direction: "column",
|
|
47136
47158
|
pl: "5",
|
|
47137
47159
|
pr: "5",
|
|
@@ -47151,10 +47173,10 @@ var FormContainer = function(t0) {
|
|
|
47151
47173
|
return t1;
|
|
47152
47174
|
};
|
|
47153
47175
|
var Content7 = function(props) {
|
|
47154
|
-
var $ =
|
|
47176
|
+
var $ = _c82(4);
|
|
47155
47177
|
var t0;
|
|
47156
47178
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47157
|
-
t0 = /* @__PURE__ */
|
|
47179
|
+
t0 = /* @__PURE__ */ _jsx84(Messages3, {});
|
|
47158
47180
|
$[0] = t0;
|
|
47159
47181
|
} else {
|
|
47160
47182
|
t0 = $[0];
|
|
@@ -47164,8 +47186,8 @@ var Content7 = function(props) {
|
|
|
47164
47186
|
t1 = /* @__PURE__ */ _jsxs29(Thread.Root, {
|
|
47165
47187
|
children: [
|
|
47166
47188
|
t0,
|
|
47167
|
-
/* @__PURE__ */
|
|
47168
|
-
children: /* @__PURE__ */
|
|
47189
|
+
/* @__PURE__ */ _jsx84(FormContainer, {
|
|
47190
|
+
children: /* @__PURE__ */ _jsx84(Thread.MessageForm, {})
|
|
47169
47191
|
})
|
|
47170
47192
|
]
|
|
47171
47193
|
});
|
|
@@ -47175,7 +47197,7 @@ var Content7 = function(props) {
|
|
|
47175
47197
|
}
|
|
47176
47198
|
var t2;
|
|
47177
47199
|
if ($[2] !== props) {
|
|
47178
|
-
t2 = /* @__PURE__ */
|
|
47200
|
+
t2 = /* @__PURE__ */ _jsx84(Root13, _objectSpread43(_objectSpread43({}, props), {}, {
|
|
47179
47201
|
children: t1
|
|
47180
47202
|
}));
|
|
47181
47203
|
$[2] = props;
|
|
@@ -47189,15 +47211,15 @@ Content7.Root = Root13;
|
|
|
47189
47211
|
Content7.Messages = Messages3;
|
|
47190
47212
|
Content7.FormContainer = FormContainer;
|
|
47191
47213
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47192
|
-
import { jsx as
|
|
47214
|
+
import { jsx as _jsx85, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
47193
47215
|
var ThreadDialog = function() {
|
|
47194
|
-
var $ =
|
|
47216
|
+
var $ = _c83(1);
|
|
47195
47217
|
var t0;
|
|
47196
47218
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47197
47219
|
t0 = /* @__PURE__ */ _jsxs30(Root11, {
|
|
47198
47220
|
children: [
|
|
47199
|
-
/* @__PURE__ */
|
|
47200
|
-
/* @__PURE__ */
|
|
47221
|
+
/* @__PURE__ */ _jsx85(Content7, {}),
|
|
47222
|
+
/* @__PURE__ */ _jsx85(Trigger, {})
|
|
47201
47223
|
]
|
|
47202
47224
|
});
|
|
47203
47225
|
$[0] = t0;
|
|
@@ -47210,11 +47232,11 @@ ThreadDialog.Root = Root11;
|
|
|
47210
47232
|
ThreadDialog.Trigger = Trigger;
|
|
47211
47233
|
ThreadDialog.Content = Content7;
|
|
47212
47234
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47213
|
-
import { c as
|
|
47235
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
47214
47236
|
// src/components/threads/AudioThread/index.tsx
|
|
47215
|
-
import { c as
|
|
47237
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
47216
47238
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47217
|
-
import { c as
|
|
47239
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
47218
47240
|
import { Flex as Flex30 } from "@radix-ui/themes";
|
|
47219
47241
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47220
47242
|
import { createContext as createContext13 } from "react";
|
|
@@ -47227,12 +47249,12 @@ var useAudioThreadContext = function() {
|
|
|
47227
47249
|
return useContext19(AudioThreadContext);
|
|
47228
47250
|
};
|
|
47229
47251
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47230
|
-
import { c as
|
|
47252
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
47231
47253
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
47232
|
-
import { c as
|
|
47254
|
+
import { c as _c87 } from "react-compiler-runtime";
|
|
47233
47255
|
import { useMemo as useMemo18 } from "react";
|
|
47234
47256
|
// src/hooks/misc/usePermission/index.ts
|
|
47235
|
-
import { c as
|
|
47257
|
+
import { c as _c84 } from "react-compiler-runtime";
|
|
47236
47258
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
47237
47259
|
// src/hooks/misc/usePermission/util.ts
|
|
47238
47260
|
var noop = function() {};
|
|
@@ -47256,7 +47278,7 @@ function off(obj) {
|
|
|
47256
47278
|
}
|
|
47257
47279
|
// src/hooks/misc/usePermission/index.ts
|
|
47258
47280
|
var usePermission = function(permissionDesc) {
|
|
47259
|
-
var $ =
|
|
47281
|
+
var $ = _c84(3);
|
|
47260
47282
|
var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
|
|
47261
47283
|
var t0;
|
|
47262
47284
|
var t1;
|
|
@@ -47305,10 +47327,10 @@ import { useAudioCapture } from "use-audio-capture";
|
|
|
47305
47327
|
import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
|
|
47306
47328
|
import { useAudioPlayer } from "react-use-audio-player";
|
|
47307
47329
|
// src/hooks/misc/useInterval.ts
|
|
47308
|
-
import { c as
|
|
47330
|
+
import { c as _c85 } from "react-compiler-runtime";
|
|
47309
47331
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
47310
47332
|
var useInterval = function(callback, delay) {
|
|
47311
|
-
var $ =
|
|
47333
|
+
var $ = _c85(5);
|
|
47312
47334
|
var savedCallback = useRef6(_temp8);
|
|
47313
47335
|
var t0;
|
|
47314
47336
|
if ($[0] !== callback) {
|
|
@@ -47561,7 +47583,7 @@ var useRecorder = function(_ref) {
|
|
|
47561
47583
|
});
|
|
47562
47584
|
};
|
|
47563
47585
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47564
|
-
import { c as
|
|
47586
|
+
import { c as _c86 } from "react-compiler-runtime";
|
|
47565
47587
|
import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
|
|
47566
47588
|
import nlp from "compromise";
|
|
47567
47589
|
import { Howler } from "howler";
|
|
@@ -47644,7 +47666,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47644
47666
|
};
|
|
47645
47667
|
var useMessageAudio = function(t0) {
|
|
47646
47668
|
var _latestMessageProps$l;
|
|
47647
|
-
var $ =
|
|
47669
|
+
var $ = _c86(49);
|
|
47648
47670
|
var _onEnd = t0.onEnd, passedPlay = t0.play;
|
|
47649
47671
|
var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
|
|
47650
47672
|
var t1;
|
|
@@ -48024,7 +48046,7 @@ function _asyncToGenerator11(n) {
|
|
|
48024
48046
|
};
|
|
48025
48047
|
}
|
|
48026
48048
|
var useTtsAudioRuntime = function(t0) {
|
|
48027
|
-
var $ =
|
|
48049
|
+
var $ = _c87(30);
|
|
48028
48050
|
var play = t0.play;
|
|
48029
48051
|
var addToast = useToasts().addToast;
|
|
48030
48052
|
var queryClient = useQueryClient6();
|
|
@@ -48198,9 +48220,9 @@ function _temp24() {
|
|
|
48198
48220
|
return _temp24.apply(this, arguments);
|
|
48199
48221
|
}
|
|
48200
48222
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
48201
|
-
import { jsx as
|
|
48223
|
+
import { jsx as _jsx86 } from "react/jsx-runtime";
|
|
48202
48224
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
48203
|
-
var $ =
|
|
48225
|
+
var $ = _c88(7);
|
|
48204
48226
|
var children = t0.children, play = t0.play;
|
|
48205
48227
|
var t1;
|
|
48206
48228
|
if ($[0] !== play) {
|
|
@@ -48225,7 +48247,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
48225
48247
|
}
|
|
48226
48248
|
var t3;
|
|
48227
48249
|
if ($[4] !== children || $[5] !== t2) {
|
|
48228
|
-
t3 = /* @__PURE__ */
|
|
48250
|
+
t3 = /* @__PURE__ */ _jsx86(AudioThreadContext.Provider, {
|
|
48229
48251
|
value: t2,
|
|
48230
48252
|
children: children
|
|
48231
48253
|
});
|
|
@@ -48238,7 +48260,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
48238
48260
|
return t3;
|
|
48239
48261
|
};
|
|
48240
48262
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
48241
|
-
import { jsx as
|
|
48263
|
+
import { jsx as _jsx87 } from "react/jsx-runtime";
|
|
48242
48264
|
var _excluded5 = [
|
|
48243
48265
|
"children"
|
|
48244
48266
|
];
|
|
@@ -48310,11 +48332,11 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48310
48332
|
return t;
|
|
48311
48333
|
}
|
|
48312
48334
|
var Content8 = function(t0) {
|
|
48313
|
-
var $ =
|
|
48335
|
+
var $ = _c89(4);
|
|
48314
48336
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48315
48337
|
var t1;
|
|
48316
48338
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
48317
|
-
t1 = /* @__PURE__ */
|
|
48339
|
+
t1 = /* @__PURE__ */ _jsx87(Flex30, {
|
|
48318
48340
|
direction: "column",
|
|
48319
48341
|
flexGrow: "1",
|
|
48320
48342
|
p: "9",
|
|
@@ -48332,7 +48354,7 @@ var Content8 = function(t0) {
|
|
|
48332
48354
|
return t1;
|
|
48333
48355
|
};
|
|
48334
48356
|
var AudioRuntimeProvider = function(t0) {
|
|
48335
|
-
var $ =
|
|
48357
|
+
var $ = _c89(3);
|
|
48336
48358
|
var children = t0.children, play = t0.play;
|
|
48337
48359
|
var audioThreadContext = useAudioThreadContext();
|
|
48338
48360
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48340,7 +48362,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48340
48362
|
}
|
|
48341
48363
|
var t1;
|
|
48342
48364
|
if ($[0] !== children || $[1] !== play) {
|
|
48343
|
-
t1 = /* @__PURE__ */
|
|
48365
|
+
t1 = /* @__PURE__ */ _jsx87(TtsAudioRuntimeProvider, {
|
|
48344
48366
|
play: play,
|
|
48345
48367
|
children: children
|
|
48346
48368
|
});
|
|
@@ -48353,7 +48375,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48353
48375
|
return t1;
|
|
48354
48376
|
};
|
|
48355
48377
|
var Provider5 = function(t0) {
|
|
48356
|
-
var $ =
|
|
48378
|
+
var $ = _c89(9);
|
|
48357
48379
|
var children;
|
|
48358
48380
|
var rest;
|
|
48359
48381
|
if ($[0] !== t0) {
|
|
@@ -48380,7 +48402,7 @@ var Provider5 = function(t0) {
|
|
|
48380
48402
|
}
|
|
48381
48403
|
var t2;
|
|
48382
48404
|
if ($[6] !== children || $[7] !== t1) {
|
|
48383
|
-
t2 = /* @__PURE__ */
|
|
48405
|
+
t2 = /* @__PURE__ */ _jsx87(AudioThreadContext.Provider, {
|
|
48384
48406
|
value: t1,
|
|
48385
48407
|
children: children
|
|
48386
48408
|
});
|
|
@@ -48393,7 +48415,7 @@ var Provider5 = function(t0) {
|
|
|
48393
48415
|
return t2;
|
|
48394
48416
|
};
|
|
48395
48417
|
var Root14 = function(t0) {
|
|
48396
|
-
var $ =
|
|
48418
|
+
var $ = _c89(16);
|
|
48397
48419
|
var children;
|
|
48398
48420
|
var className;
|
|
48399
48421
|
var play;
|
|
@@ -48420,8 +48442,8 @@ var Root14 = function(t0) {
|
|
|
48420
48442
|
}
|
|
48421
48443
|
var t1;
|
|
48422
48444
|
if ($[6] !== children || $[7] !== className || $[8] !== style) {
|
|
48423
|
-
t1 = /* @__PURE__ */
|
|
48424
|
-
children: /* @__PURE__ */
|
|
48445
|
+
t1 = /* @__PURE__ */ _jsx87(ToastsProvider, {
|
|
48446
|
+
children: /* @__PURE__ */ _jsx87(Content8, {
|
|
48425
48447
|
className: className,
|
|
48426
48448
|
style: style,
|
|
48427
48449
|
children: children
|
|
@@ -48436,7 +48458,7 @@ var Root14 = function(t0) {
|
|
|
48436
48458
|
}
|
|
48437
48459
|
var t2;
|
|
48438
48460
|
if ($[10] !== play || $[11] !== t1) {
|
|
48439
|
-
t2 = /* @__PURE__ */
|
|
48461
|
+
t2 = /* @__PURE__ */ _jsx87(AudioRuntimeProvider, {
|
|
48440
48462
|
play: play,
|
|
48441
48463
|
children: t1
|
|
48442
48464
|
});
|
|
@@ -48448,7 +48470,7 @@ var Root14 = function(t0) {
|
|
|
48448
48470
|
}
|
|
48449
48471
|
var t3;
|
|
48450
48472
|
if ($[13] !== rest || $[14] !== t2) {
|
|
48451
|
-
t3 = /* @__PURE__ */
|
|
48473
|
+
t3 = /* @__PURE__ */ _jsx87(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
|
|
48452
48474
|
children: t2
|
|
48453
48475
|
}));
|
|
48454
48476
|
$[13] = rest;
|
|
@@ -48460,7 +48482,7 @@ var Root14 = function(t0) {
|
|
|
48460
48482
|
return t3;
|
|
48461
48483
|
};
|
|
48462
48484
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48463
|
-
import { c as
|
|
48485
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
48464
48486
|
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
|
|
48465
48487
|
import _9 from "lodash";
|
|
48466
48488
|
import { Flex as Flex32 } from "@radix-ui/themes";
|
|
@@ -48469,7 +48491,7 @@ import _8 from "lodash";
|
|
|
48469
48491
|
import { Flex as Flex31, Grid } from "@radix-ui/themes";
|
|
48470
48492
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback7 } from "react";
|
|
48471
48493
|
import { cluster } from "radash";
|
|
48472
|
-
import { jsx as
|
|
48494
|
+
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
48473
48495
|
var barCount = 4;
|
|
48474
48496
|
var BarsVisualizer = function(_ref) {
|
|
48475
48497
|
var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
|
|
@@ -48500,7 +48522,7 @@ var BarsVisualizer = function(_ref) {
|
|
|
48500
48522
|
draw,
|
|
48501
48523
|
visualizationAnalyser
|
|
48502
48524
|
]);
|
|
48503
|
-
return /* @__PURE__ */
|
|
48525
|
+
return /* @__PURE__ */ _jsx88(Grid, {
|
|
48504
48526
|
columns: "".concat(barCount),
|
|
48505
48527
|
gap: "1",
|
|
48506
48528
|
width: "auto",
|
|
@@ -48509,12 +48531,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
48509
48531
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
48510
48532
|
},
|
|
48511
48533
|
children: barHeights.map(function(barHeight, index) {
|
|
48512
|
-
return /* @__PURE__ */
|
|
48534
|
+
return /* @__PURE__ */ _jsx88(Flex31, {
|
|
48513
48535
|
direction: "column",
|
|
48514
48536
|
align: "center",
|
|
48515
48537
|
justify: "center",
|
|
48516
48538
|
height: height,
|
|
48517
|
-
children: /* @__PURE__ */
|
|
48539
|
+
children: /* @__PURE__ */ _jsx88(Flex31, {
|
|
48518
48540
|
minHeight: "50%",
|
|
48519
48541
|
maxHeight: "100%",
|
|
48520
48542
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -48529,10 +48551,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48529
48551
|
});
|
|
48530
48552
|
};
|
|
48531
48553
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48532
|
-
import { c as
|
|
48554
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
48533
48555
|
import { useMemo as useMemo19 } from "react";
|
|
48534
48556
|
var useStatus = function() {
|
|
48535
|
-
var $ =
|
|
48557
|
+
var $ = _c90(2);
|
|
48536
48558
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48537
48559
|
var t0;
|
|
48538
48560
|
bb0: {
|
|
@@ -48580,7 +48602,7 @@ var useStatus = function() {
|
|
|
48580
48602
|
return t1;
|
|
48581
48603
|
};
|
|
48582
48604
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48583
|
-
import { jsx as
|
|
48605
|
+
import { jsx as _jsx89, jsxs as _jsxs31 } from "react/jsx-runtime";
|
|
48584
48606
|
var _excluded6 = [
|
|
48585
48607
|
"children"
|
|
48586
48608
|
];
|
|
@@ -48684,7 +48706,7 @@ var Provider6 = function(_ref) {
|
|
|
48684
48706
|
draw,
|
|
48685
48707
|
audioThreadContext
|
|
48686
48708
|
]);
|
|
48687
|
-
return /* @__PURE__ */
|
|
48709
|
+
return /* @__PURE__ */ _jsx89(AudioThreadVisualizationContext.Provider, {
|
|
48688
48710
|
value: {
|
|
48689
48711
|
scale: scale
|
|
48690
48712
|
},
|
|
@@ -48692,7 +48714,7 @@ var Provider6 = function(_ref) {
|
|
|
48692
48714
|
});
|
|
48693
48715
|
};
|
|
48694
48716
|
var Root15 = function(t0) {
|
|
48695
|
-
var $ =
|
|
48717
|
+
var $ = _c91(6);
|
|
48696
48718
|
var children;
|
|
48697
48719
|
var rest;
|
|
48698
48720
|
if ($[0] !== t0) {
|
|
@@ -48709,8 +48731,8 @@ var Root15 = function(t0) {
|
|
|
48709
48731
|
}
|
|
48710
48732
|
var t1;
|
|
48711
48733
|
if ($[3] !== children || $[4] !== rest) {
|
|
48712
|
-
t1 = /* @__PURE__ */
|
|
48713
|
-
children: /* @__PURE__ */
|
|
48734
|
+
t1 = /* @__PURE__ */ _jsx89(Provider6, {
|
|
48735
|
+
children: /* @__PURE__ */ _jsx89(Flex32, _objectSpread47(_objectSpread47({
|
|
48714
48736
|
direction: "column",
|
|
48715
48737
|
align: "center",
|
|
48716
48738
|
justify: "center",
|
|
@@ -48729,7 +48751,7 @@ var Root15 = function(t0) {
|
|
|
48729
48751
|
return t1;
|
|
48730
48752
|
};
|
|
48731
48753
|
var BarsVisualizer2 = function(t0) {
|
|
48732
|
-
var $ =
|
|
48754
|
+
var $ = _c91(10);
|
|
48733
48755
|
var rest;
|
|
48734
48756
|
var t1;
|
|
48735
48757
|
var t2;
|
|
@@ -48755,7 +48777,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48755
48777
|
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48756
48778
|
var t4;
|
|
48757
48779
|
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
48758
|
-
t4 = /* @__PURE__ */
|
|
48780
|
+
t4 = /* @__PURE__ */ _jsx89(BarsVisualizer, _objectSpread47({
|
|
48759
48781
|
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
48760
48782
|
backgroundColor: t3,
|
|
48761
48783
|
height: height,
|
|
@@ -48773,7 +48795,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48773
48795
|
return t4;
|
|
48774
48796
|
};
|
|
48775
48797
|
var AssistantVisualizationRoot = function(t0) {
|
|
48776
|
-
var $ =
|
|
48798
|
+
var $ = _c91(17);
|
|
48777
48799
|
var children;
|
|
48778
48800
|
var rest;
|
|
48779
48801
|
var t1;
|
|
@@ -48825,7 +48847,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48825
48847
|
}
|
|
48826
48848
|
var t6;
|
|
48827
48849
|
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
48828
|
-
t6 = /* @__PURE__ */
|
|
48850
|
+
t6 = /* @__PURE__ */ _jsx89(Flex32, _objectSpread47(_objectSpread47({
|
|
48829
48851
|
align: "center",
|
|
48830
48852
|
justify: "center",
|
|
48831
48853
|
height: height,
|
|
@@ -48846,17 +48868,17 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48846
48868
|
return t6;
|
|
48847
48869
|
};
|
|
48848
48870
|
var AssistantVisualization = function(props) {
|
|
48849
|
-
var $ =
|
|
48871
|
+
var $ = _c91(3);
|
|
48850
48872
|
var t0;
|
|
48851
48873
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48852
|
-
t0 = /* @__PURE__ */
|
|
48874
|
+
t0 = /* @__PURE__ */ _jsx89(BarsVisualizer2, {});
|
|
48853
48875
|
$[0] = t0;
|
|
48854
48876
|
} else {
|
|
48855
48877
|
t0 = $[0];
|
|
48856
48878
|
}
|
|
48857
48879
|
var t1;
|
|
48858
48880
|
if ($[1] !== props) {
|
|
48859
|
-
t1 = /* @__PURE__ */
|
|
48881
|
+
t1 = /* @__PURE__ */ _jsx89(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
|
|
48860
48882
|
children: t0
|
|
48861
48883
|
}));
|
|
48862
48884
|
$[1] = props;
|
|
@@ -48869,18 +48891,18 @@ var AssistantVisualization = function(props) {
|
|
|
48869
48891
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
48870
48892
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
48871
48893
|
var AssistantInfo = function(props) {
|
|
48872
|
-
var $ =
|
|
48894
|
+
var $ = _c91(6);
|
|
48873
48895
|
var assistantNameContext = useContext20(AssistantNameContext);
|
|
48874
48896
|
var t0;
|
|
48875
48897
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48876
|
-
t0 = /* @__PURE__ */
|
|
48898
|
+
t0 = /* @__PURE__ */ _jsx89(MessageGroup.AssistantAvatar, {});
|
|
48877
48899
|
$[0] = t0;
|
|
48878
48900
|
} else {
|
|
48879
48901
|
t0 = $[0];
|
|
48880
48902
|
}
|
|
48881
48903
|
var t1;
|
|
48882
48904
|
if ($[1] !== assistantNameContext) {
|
|
48883
|
-
t1 = /* @__PURE__ */
|
|
48905
|
+
t1 = /* @__PURE__ */ _jsx89(MessageGroup.Name, {
|
|
48884
48906
|
children: assistantNameContext
|
|
48885
48907
|
});
|
|
48886
48908
|
$[1] = assistantNameContext;
|
|
@@ -48909,12 +48931,12 @@ var AssistantInfo = function(props) {
|
|
|
48909
48931
|
return t2;
|
|
48910
48932
|
};
|
|
48911
48933
|
var Visualization = function(props) {
|
|
48912
|
-
var $ =
|
|
48934
|
+
var $ = _c91(4);
|
|
48913
48935
|
var t0;
|
|
48914
48936
|
var t1;
|
|
48915
48937
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48916
|
-
t0 = /* @__PURE__ */
|
|
48917
|
-
t1 = /* @__PURE__ */
|
|
48938
|
+
t0 = /* @__PURE__ */ _jsx89(AssistantVisualization, {});
|
|
48939
|
+
t1 = /* @__PURE__ */ _jsx89(AssistantInfo, {});
|
|
48918
48940
|
$[0] = t0;
|
|
48919
48941
|
$[1] = t1;
|
|
48920
48942
|
} else {
|
|
@@ -48941,11 +48963,11 @@ Visualization.Provider = Provider6;
|
|
|
48941
48963
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48942
48964
|
Visualization.AssistantInfo = AssistantInfo;
|
|
48943
48965
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
48944
|
-
import { c as
|
|
48966
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
48945
48967
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
48946
|
-
import { c as
|
|
48968
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
48947
48969
|
import { Flex as Flex33, Text as Text9 } from "@radix-ui/themes";
|
|
48948
|
-
import { jsx as
|
|
48970
|
+
import { jsx as _jsx90, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
48949
48971
|
var html = function(_ref) {
|
|
48950
48972
|
var texts = _ref.texts;
|
|
48951
48973
|
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) {
|
|
@@ -48953,11 +48975,11 @@ var html = function(_ref) {
|
|
|
48953
48975
|
}).join(""), "\n }");
|
|
48954
48976
|
};
|
|
48955
48977
|
var StatusMessages = function(t0) {
|
|
48956
|
-
var $ =
|
|
48978
|
+
var $ = _c92(9);
|
|
48957
48979
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
48958
48980
|
var t1;
|
|
48959
48981
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48960
|
-
t1 = /* @__PURE__ */
|
|
48982
|
+
t1 = /* @__PURE__ */ _jsx90(Text9, {
|
|
48961
48983
|
size: "2",
|
|
48962
48984
|
weight: "regular",
|
|
48963
48985
|
color: "gray",
|
|
@@ -48980,7 +49002,7 @@ var StatusMessages = function(t0) {
|
|
|
48980
49002
|
}
|
|
48981
49003
|
var t3;
|
|
48982
49004
|
if ($[3] !== t2) {
|
|
48983
|
-
t3 = /* @__PURE__ */
|
|
49005
|
+
t3 = /* @__PURE__ */ _jsx90("style", {
|
|
48984
49006
|
dangerouslySetInnerHTML: {
|
|
48985
49007
|
__html: t2
|
|
48986
49008
|
}
|
|
@@ -49012,7 +49034,7 @@ var StatusMessages = function(t0) {
|
|
|
49012
49034
|
return t4;
|
|
49013
49035
|
};
|
|
49014
49036
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49015
|
-
import { jsx as
|
|
49037
|
+
import { jsx as _jsx91 } from "react/jsx-runtime";
|
|
49016
49038
|
function ownKeys48(e, r) {
|
|
49017
49039
|
var t = Object.keys(e);
|
|
49018
49040
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49057,7 +49079,7 @@ function _toPrimitive48(t, r) {
|
|
|
49057
49079
|
return ("string" === r ? String : Number)(t);
|
|
49058
49080
|
}
|
|
49059
49081
|
var Status = function(props) {
|
|
49060
|
-
var $ =
|
|
49082
|
+
var $ = _c93(12);
|
|
49061
49083
|
var status = useStatus().status;
|
|
49062
49084
|
if (status === "recording") {
|
|
49063
49085
|
var _t;
|
|
@@ -49074,7 +49096,7 @@ var Status = function(props) {
|
|
|
49074
49096
|
}
|
|
49075
49097
|
var _t2;
|
|
49076
49098
|
if ($[1] !== props) {
|
|
49077
|
-
_t2 = /* @__PURE__ */
|
|
49099
|
+
_t2 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread48({
|
|
49078
49100
|
texts: _t
|
|
49079
49101
|
}, props));
|
|
49080
49102
|
$[1] = props;
|
|
@@ -49100,7 +49122,7 @@ var Status = function(props) {
|
|
|
49100
49122
|
}
|
|
49101
49123
|
var _t4;
|
|
49102
49124
|
if ($[4] !== props) {
|
|
49103
|
-
_t4 = /* @__PURE__ */
|
|
49125
|
+
_t4 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread48({
|
|
49104
49126
|
texts: _t3
|
|
49105
49127
|
}, props));
|
|
49106
49128
|
$[4] = props;
|
|
@@ -49122,7 +49144,7 @@ var Status = function(props) {
|
|
|
49122
49144
|
}
|
|
49123
49145
|
var _t6;
|
|
49124
49146
|
if ($[7] !== props) {
|
|
49125
|
-
_t6 = /* @__PURE__ */
|
|
49147
|
+
_t6 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread48({
|
|
49126
49148
|
texts: _t5
|
|
49127
49149
|
}, props));
|
|
49128
49150
|
$[7] = props;
|
|
@@ -49143,7 +49165,7 @@ var Status = function(props) {
|
|
|
49143
49165
|
}
|
|
49144
49166
|
var t1;
|
|
49145
49167
|
if ($[10] !== props) {
|
|
49146
|
-
t1 = /* @__PURE__ */
|
|
49168
|
+
t1 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread48({
|
|
49147
49169
|
texts: t0
|
|
49148
49170
|
}, props));
|
|
49149
49171
|
$[10] = props;
|
|
@@ -49154,11 +49176,11 @@ var Status = function(props) {
|
|
|
49154
49176
|
return t1;
|
|
49155
49177
|
};
|
|
49156
49178
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49157
|
-
import { c as
|
|
49179
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
49158
49180
|
import { Flex as Flex35 } from "@radix-ui/themes";
|
|
49159
49181
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49160
|
-
import { c as
|
|
49161
|
-
import { jsx as
|
|
49182
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
49183
|
+
import { jsx as _jsx92 } from "react/jsx-runtime";
|
|
49162
49184
|
function ownKeys49(e, r) {
|
|
49163
49185
|
var t = Object.keys(e);
|
|
49164
49186
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49203,10 +49225,10 @@ function _toPrimitive49(t, r) {
|
|
|
49203
49225
|
return ("string" === r ? String : Number)(t);
|
|
49204
49226
|
}
|
|
49205
49227
|
var MicIcon = function(props) {
|
|
49206
|
-
var $ =
|
|
49228
|
+
var $ = _c94(3);
|
|
49207
49229
|
var t0;
|
|
49208
49230
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49209
|
-
t0 = /* @__PURE__ */
|
|
49231
|
+
t0 = /* @__PURE__ */ _jsx92("path", {
|
|
49210
49232
|
stroke: "none",
|
|
49211
49233
|
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"
|
|
49212
49234
|
});
|
|
@@ -49216,7 +49238,7 @@ var MicIcon = function(props) {
|
|
|
49216
49238
|
}
|
|
49217
49239
|
var t1;
|
|
49218
49240
|
if ($[1] !== props) {
|
|
49219
|
-
t1 = /* @__PURE__ */
|
|
49241
|
+
t1 = /* @__PURE__ */ _jsx92("svg", _objectSpread49(_objectSpread49({
|
|
49220
49242
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49221
49243
|
fill: "currentColor",
|
|
49222
49244
|
stroke: "currentColor",
|
|
@@ -49235,29 +49257,29 @@ var MicIcon = function(props) {
|
|
|
49235
49257
|
return t1;
|
|
49236
49258
|
};
|
|
49237
49259
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49238
|
-
import { c as
|
|
49260
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
49239
49261
|
import { Flex as Flex34, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
49240
49262
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
49241
|
-
import { jsx as
|
|
49263
|
+
import { jsx as _jsx93, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
49242
49264
|
var ActionButton = function() {
|
|
49243
|
-
var $ =
|
|
49265
|
+
var $ = _c95(27);
|
|
49244
49266
|
var status = useStatus().status;
|
|
49245
49267
|
var audioThreadContext = useAudioThreadContext();
|
|
49246
49268
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
49247
49269
|
if (status === "recording") {
|
|
49248
49270
|
var _t;
|
|
49249
49271
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49250
|
-
_t = /* @__PURE__ */
|
|
49272
|
+
_t = /* @__PURE__ */ _jsx93(PauseIcon2, {});
|
|
49251
49273
|
$[0] = _t;
|
|
49252
49274
|
} else {
|
|
49253
49275
|
_t = $[0];
|
|
49254
49276
|
}
|
|
49255
49277
|
var t1;
|
|
49256
49278
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
49257
|
-
t1 = /* @__PURE__ */
|
|
49279
|
+
t1 = /* @__PURE__ */ _jsx93(Flex34, {
|
|
49258
49280
|
mr: "3",
|
|
49259
49281
|
ml: "-7",
|
|
49260
|
-
children: /* @__PURE__ */
|
|
49282
|
+
children: /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49261
49283
|
onClick: audioThreadContext.audioRuntime.user.pause,
|
|
49262
49284
|
color: "gray",
|
|
49263
49285
|
variant: "soft",
|
|
@@ -49272,14 +49294,14 @@ var ActionButton = function() {
|
|
|
49272
49294
|
}
|
|
49273
49295
|
var t2;
|
|
49274
49296
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49275
|
-
t2 = /* @__PURE__ */
|
|
49297
|
+
t2 = /* @__PURE__ */ _jsx93(ArrowUpIcon3, {});
|
|
49276
49298
|
$[3] = t2;
|
|
49277
49299
|
} else {
|
|
49278
49300
|
t2 = $[3];
|
|
49279
49301
|
}
|
|
49280
49302
|
var t3;
|
|
49281
49303
|
if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
|
|
49282
|
-
t3 = /* @__PURE__ */
|
|
49304
|
+
t3 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49283
49305
|
onClick: audioThreadContext.audioRuntime.user.stop,
|
|
49284
49306
|
highContrast: true,
|
|
49285
49307
|
variant: "soft",
|
|
@@ -49311,14 +49333,14 @@ var ActionButton = function() {
|
|
|
49311
49333
|
if (status === "recorderPaused") {
|
|
49312
49334
|
var _t2;
|
|
49313
49335
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49314
|
-
_t2 = /* @__PURE__ */
|
|
49336
|
+
_t2 = /* @__PURE__ */ _jsx93(ResumeIcon, {});
|
|
49315
49337
|
$[9] = _t2;
|
|
49316
49338
|
} else {
|
|
49317
49339
|
_t2 = $[9];
|
|
49318
49340
|
}
|
|
49319
49341
|
var _t3;
|
|
49320
49342
|
if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
|
|
49321
|
-
_t3 = /* @__PURE__ */
|
|
49343
|
+
_t3 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49322
49344
|
onClick: audioThreadContext.audioRuntime.user.resume,
|
|
49323
49345
|
color: "red",
|
|
49324
49346
|
size: "4",
|
|
@@ -49334,7 +49356,7 @@ var ActionButton = function() {
|
|
|
49334
49356
|
if (status === "idle") {
|
|
49335
49357
|
var _t4;
|
|
49336
49358
|
if ($[12] !== audioThreadContext.audioRuntime.user) {
|
|
49337
|
-
_t4 = /* @__PURE__ */
|
|
49359
|
+
_t4 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49338
49360
|
onClick: function() {
|
|
49339
49361
|
return audioThreadContext.audioRuntime.user.start();
|
|
49340
49362
|
},
|
|
@@ -49366,14 +49388,14 @@ var ActionButton = function() {
|
|
|
49366
49388
|
}
|
|
49367
49389
|
var _t6;
|
|
49368
49390
|
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49369
|
-
_t6 = /* @__PURE__ */
|
|
49391
|
+
_t6 = /* @__PURE__ */ _jsx93(StopIcon2, {});
|
|
49370
49392
|
$[18] = _t6;
|
|
49371
49393
|
} else {
|
|
49372
49394
|
_t6 = $[18];
|
|
49373
49395
|
}
|
|
49374
49396
|
var _t7;
|
|
49375
49397
|
if ($[19] !== _t5) {
|
|
49376
|
-
_t7 = /* @__PURE__ */
|
|
49398
|
+
_t7 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49377
49399
|
onClick: _t5,
|
|
49378
49400
|
size: "4",
|
|
49379
49401
|
color: "gray",
|
|
@@ -49400,14 +49422,14 @@ var ActionButton = function() {
|
|
|
49400
49422
|
}
|
|
49401
49423
|
var _t9;
|
|
49402
49424
|
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49403
|
-
_t9 = /* @__PURE__ */
|
|
49425
|
+
_t9 = /* @__PURE__ */ _jsx93(ResumeIcon, {});
|
|
49404
49426
|
$[23] = _t9;
|
|
49405
49427
|
} else {
|
|
49406
49428
|
_t9 = $[23];
|
|
49407
49429
|
}
|
|
49408
49430
|
var _t10;
|
|
49409
49431
|
if ($[24] !== _t8) {
|
|
49410
|
-
_t10 = /* @__PURE__ */
|
|
49432
|
+
_t10 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49411
49433
|
onClick: _t8,
|
|
49412
49434
|
size: "4",
|
|
49413
49435
|
children: _t9
|
|
@@ -49421,7 +49443,7 @@ var ActionButton = function() {
|
|
|
49421
49443
|
}
|
|
49422
49444
|
var t0;
|
|
49423
49445
|
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49424
|
-
t0 = /* @__PURE__ */
|
|
49446
|
+
t0 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49425
49447
|
size: "4",
|
|
49426
49448
|
variant: "soft",
|
|
49427
49449
|
disabled: true
|
|
@@ -49433,7 +49455,7 @@ var ActionButton = function() {
|
|
|
49433
49455
|
return t0;
|
|
49434
49456
|
};
|
|
49435
49457
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49436
|
-
import { jsx as
|
|
49458
|
+
import { jsx as _jsx94, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
49437
49459
|
function ownKeys50(e, r) {
|
|
49438
49460
|
var t = Object.keys(e);
|
|
49439
49461
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49478,17 +49500,17 @@ function _toPrimitive50(t, r) {
|
|
|
49478
49500
|
return ("string" === r ? String : Number)(t);
|
|
49479
49501
|
}
|
|
49480
49502
|
var Form = function(props) {
|
|
49481
|
-
var $ =
|
|
49503
|
+
var $ = _c96(17);
|
|
49482
49504
|
var status = useStatus().status;
|
|
49483
49505
|
var audioThreadContext = useAudioThreadContext();
|
|
49484
49506
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49485
49507
|
var t1;
|
|
49486
49508
|
if ($[0] !== t0) {
|
|
49487
|
-
t1 = /* @__PURE__ */
|
|
49509
|
+
t1 = /* @__PURE__ */ _jsx94(Flex35, {
|
|
49488
49510
|
ml: "-22.5px",
|
|
49489
49511
|
mr: "2",
|
|
49490
49512
|
align: "center",
|
|
49491
|
-
children: /* @__PURE__ */
|
|
49513
|
+
children: /* @__PURE__ */ _jsx94(MicIcon, {
|
|
49492
49514
|
style: {
|
|
49493
49515
|
color: t0
|
|
49494
49516
|
}
|
|
@@ -49514,7 +49536,7 @@ var Form = function(props) {
|
|
|
49514
49536
|
var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49515
49537
|
var t5;
|
|
49516
49538
|
if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
|
|
49517
|
-
t5 = /* @__PURE__ */
|
|
49539
|
+
t5 = /* @__PURE__ */ _jsx94(BarsVisualizer, {
|
|
49518
49540
|
visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
|
|
49519
49541
|
backgroundColor: t4,
|
|
49520
49542
|
height: "20px",
|
|
@@ -49528,7 +49550,7 @@ var Form = function(props) {
|
|
|
49528
49550
|
}
|
|
49529
49551
|
var t6;
|
|
49530
49552
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
49531
|
-
t6 = /* @__PURE__ */
|
|
49553
|
+
t6 = /* @__PURE__ */ _jsx94(Flex35, {
|
|
49532
49554
|
px: "2",
|
|
49533
49555
|
py: "1",
|
|
49534
49556
|
style: t3,
|
|
@@ -49558,7 +49580,7 @@ var Form = function(props) {
|
|
|
49558
49580
|
}
|
|
49559
49581
|
var t8;
|
|
49560
49582
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49561
|
-
t8 = /* @__PURE__ */
|
|
49583
|
+
t8 = /* @__PURE__ */ _jsx94(ActionButton, {});
|
|
49562
49584
|
$[13] = t8;
|
|
49563
49585
|
} else {
|
|
49564
49586
|
t8 = $[13];
|
|
@@ -49583,7 +49605,7 @@ var Form = function(props) {
|
|
|
49583
49605
|
return t9;
|
|
49584
49606
|
};
|
|
49585
49607
|
// src/components/threads/AudioThread/index.tsx
|
|
49586
|
-
import { jsx as
|
|
49608
|
+
import { jsx as _jsx95, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
49587
49609
|
function ownKeys51(e, r) {
|
|
49588
49610
|
var t = Object.keys(e);
|
|
49589
49611
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49628,14 +49650,14 @@ function _toPrimitive51(t, r) {
|
|
|
49628
49650
|
return ("string" === r ? String : Number)(t);
|
|
49629
49651
|
}
|
|
49630
49652
|
var AudioThread = function(props) {
|
|
49631
|
-
var $ =
|
|
49653
|
+
var $ = _c97(5);
|
|
49632
49654
|
var t0;
|
|
49633
49655
|
var t1;
|
|
49634
49656
|
var t2;
|
|
49635
49657
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49636
|
-
t0 = /* @__PURE__ */
|
|
49637
|
-
t1 = /* @__PURE__ */
|
|
49638
|
-
t2 = /* @__PURE__ */
|
|
49658
|
+
t0 = /* @__PURE__ */ _jsx95(Visualization, {});
|
|
49659
|
+
t1 = /* @__PURE__ */ _jsx95(Status, {});
|
|
49660
|
+
t2 = /* @__PURE__ */ _jsx95(Form, {});
|
|
49639
49661
|
$[0] = t0;
|
|
49640
49662
|
$[1] = t1;
|
|
49641
49663
|
$[2] = t2;
|
|
@@ -49665,7 +49687,7 @@ AudioThread.Visualization = Visualization;
|
|
|
49665
49687
|
AudioThread.Status = Status;
|
|
49666
49688
|
AudioThread.Form = Form;
|
|
49667
49689
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
49668
|
-
import { jsx as
|
|
49690
|
+
import { jsx as _jsx96, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
49669
49691
|
function ownKeys52(e, r) {
|
|
49670
49692
|
var t = Object.keys(e);
|
|
49671
49693
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49710,14 +49732,14 @@ function _toPrimitive52(t, r) {
|
|
|
49710
49732
|
return ("string" === r ? String : Number)(t);
|
|
49711
49733
|
}
|
|
49712
49734
|
var AudioThreadDialog = function(props) {
|
|
49713
|
-
var $ =
|
|
49735
|
+
var $ = _c98(4);
|
|
49714
49736
|
var t0;
|
|
49715
49737
|
var t1;
|
|
49716
49738
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49717
|
-
t0 = /* @__PURE__ */
|
|
49718
|
-
children: /* @__PURE__ */
|
|
49739
|
+
t0 = /* @__PURE__ */ _jsx96(Content7.Root, {
|
|
49740
|
+
children: /* @__PURE__ */ _jsx96(AudioThread, {})
|
|
49719
49741
|
});
|
|
49720
|
-
t1 = /* @__PURE__ */
|
|
49742
|
+
t1 = /* @__PURE__ */ _jsx96(Trigger, {});
|
|
49721
49743
|
$[0] = t0;
|
|
49722
49744
|
$[1] = t1;
|
|
49723
49745
|
} else {
|
|
@@ -50232,10 +50254,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
50232
50254
|
]);
|
|
50233
50255
|
};
|
|
50234
50256
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
50235
|
-
import { c as
|
|
50236
|
-
import { jsx as
|
|
50257
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
50258
|
+
import { jsx as _jsx97 } from "react/jsx-runtime";
|
|
50237
50259
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
50238
|
-
var $ =
|
|
50260
|
+
var $ = _c99(5);
|
|
50239
50261
|
var children = t0.children;
|
|
50240
50262
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
50241
50263
|
var t1;
|
|
@@ -50250,7 +50272,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50250
50272
|
}
|
|
50251
50273
|
var t2;
|
|
50252
50274
|
if ($[2] !== children || $[3] !== t1) {
|
|
50253
|
-
t2 = /* @__PURE__ */
|
|
50275
|
+
t2 = /* @__PURE__ */ _jsx97(AudioThreadContext.Provider, {
|
|
50254
50276
|
value: t1,
|
|
50255
50277
|
children: children
|
|
50256
50278
|
});
|
|
@@ -50263,9 +50285,9 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50263
50285
|
return t2;
|
|
50264
50286
|
};
|
|
50265
50287
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50266
|
-
import { c as
|
|
50288
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
50267
50289
|
import { useMemo as useMemo21 } from "react";
|
|
50268
|
-
import { jsx as
|
|
50290
|
+
import { jsx as _jsx98 } from "react/jsx-runtime";
|
|
50269
50291
|
var _excluded7 = [
|
|
50270
50292
|
"children"
|
|
50271
50293
|
];
|
|
@@ -50288,7 +50310,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50288
50310
|
return t;
|
|
50289
50311
|
}
|
|
50290
50312
|
var MarkdownProvider = function(t0) {
|
|
50291
|
-
var $ =
|
|
50313
|
+
var $ = _c100(9);
|
|
50292
50314
|
var children;
|
|
50293
50315
|
var rest;
|
|
50294
50316
|
if ($[0] !== t0) {
|
|
@@ -50318,7 +50340,7 @@ var MarkdownProvider = function(t0) {
|
|
|
50318
50340
|
var value = t1;
|
|
50319
50341
|
var t3;
|
|
50320
50342
|
if ($[6] !== children || $[7] !== value) {
|
|
50321
|
-
t3 = /* @__PURE__ */
|
|
50343
|
+
t3 = /* @__PURE__ */ _jsx98(MarkdownContext.Provider, {
|
|
50322
50344
|
value: value,
|
|
50323
50345
|
children: children
|
|
50324
50346
|
});
|
|
@@ -50331,18 +50353,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50331
50353
|
return t3;
|
|
50332
50354
|
};
|
|
50333
50355
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50334
|
-
import { c as
|
|
50356
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50335
50357
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50336
|
-
import { c as
|
|
50358
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50337
50359
|
import { useState as useState13 } from "react";
|
|
50338
50360
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
50339
50361
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50340
50362
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50341
|
-
import { c as
|
|
50363
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50342
50364
|
import { Flex as Flex36, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
50343
|
-
import { jsx as
|
|
50365
|
+
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50344
50366
|
var Content9 = function(t0) {
|
|
50345
|
-
var $ =
|
|
50367
|
+
var $ = _c101(5);
|
|
50346
50368
|
var fileId = t0.fileId;
|
|
50347
50369
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50348
50370
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50379,18 +50401,18 @@ var Content9 = function(t0) {
|
|
|
50379
50401
|
}
|
|
50380
50402
|
var t5;
|
|
50381
50403
|
if ($[3] !== t3) {
|
|
50382
|
-
t5 = /* @__PURE__ */
|
|
50404
|
+
t5 = /* @__PURE__ */ _jsx99(Flex36, {
|
|
50383
50405
|
direction: "column",
|
|
50384
50406
|
flexGrow: "1",
|
|
50385
50407
|
gap: "3",
|
|
50386
|
-
children: /* @__PURE__ */
|
|
50408
|
+
children: /* @__PURE__ */ _jsx99(Card5, {
|
|
50387
50409
|
style: t1,
|
|
50388
|
-
children: /* @__PURE__ */
|
|
50410
|
+
children: /* @__PURE__ */ _jsx99(Inset3, {
|
|
50389
50411
|
clip: "padding-box",
|
|
50390
50412
|
style: t2,
|
|
50391
|
-
children: /* @__PURE__ */
|
|
50413
|
+
children: /* @__PURE__ */ _jsx99(Flex36, {
|
|
50392
50414
|
flexGrow: "1",
|
|
50393
|
-
children: /* @__PURE__ */
|
|
50415
|
+
children: /* @__PURE__ */ _jsx99("embed", {
|
|
50394
50416
|
src: t3,
|
|
50395
50417
|
style: t4
|
|
50396
50418
|
})
|
|
@@ -50406,9 +50428,9 @@ var Content9 = function(t0) {
|
|
|
50406
50428
|
return t5;
|
|
50407
50429
|
};
|
|
50408
50430
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50409
|
-
import { jsx as
|
|
50431
|
+
import { jsx as _jsx100, jsxs as _jsxs37, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50410
50432
|
var FileCitation = function(t0) {
|
|
50411
|
-
var $ =
|
|
50433
|
+
var $ = _c102(18);
|
|
50412
50434
|
var annotation = t0.annotation;
|
|
50413
50435
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
50414
50436
|
var t1;
|
|
@@ -50423,14 +50445,14 @@ var FileCitation = function(t0) {
|
|
|
50423
50445
|
}
|
|
50424
50446
|
var t2;
|
|
50425
50447
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50426
|
-
t2 = /* @__PURE__ */
|
|
50448
|
+
t2 = /* @__PURE__ */ _jsx100(QuoteIcon2, {});
|
|
50427
50449
|
$[2] = t2;
|
|
50428
50450
|
} else {
|
|
50429
50451
|
t2 = $[2];
|
|
50430
50452
|
}
|
|
50431
50453
|
var t3;
|
|
50432
50454
|
if ($[3] !== t1) {
|
|
50433
|
-
t3 = /* @__PURE__ */
|
|
50455
|
+
t3 = /* @__PURE__ */ _jsx100(IconButton11, {
|
|
50434
50456
|
variant: "soft",
|
|
50435
50457
|
color: "gray",
|
|
50436
50458
|
size: "1",
|
|
@@ -50466,9 +50488,9 @@ var FileCitation = function(t0) {
|
|
|
50466
50488
|
}
|
|
50467
50489
|
var t7;
|
|
50468
50490
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50469
|
-
t7 = /* @__PURE__ */
|
|
50491
|
+
t7 = /* @__PURE__ */ _jsx100(VisuallyHidden, {
|
|
50470
50492
|
asChild: true,
|
|
50471
|
-
children: /* @__PURE__ */
|
|
50493
|
+
children: /* @__PURE__ */ _jsx100(Dialog.Title, {
|
|
50472
50494
|
children: "Source"
|
|
50473
50495
|
})
|
|
50474
50496
|
});
|
|
@@ -50478,7 +50500,7 @@ var FileCitation = function(t0) {
|
|
|
50478
50500
|
}
|
|
50479
50501
|
var t8;
|
|
50480
50502
|
if ($[8] !== activeFileId) {
|
|
50481
|
-
t8 = activeFileId && /* @__PURE__ */
|
|
50503
|
+
t8 = activeFileId && /* @__PURE__ */ _jsx100(Content9, {
|
|
50482
50504
|
fileId: activeFileId
|
|
50483
50505
|
});
|
|
50484
50506
|
$[8] = activeFileId;
|
|
@@ -50506,7 +50528,7 @@ var FileCitation = function(t0) {
|
|
|
50506
50528
|
}
|
|
50507
50529
|
var t10;
|
|
50508
50530
|
if ($[12] !== t4 || $[13] !== t9) {
|
|
50509
|
-
t10 = /* @__PURE__ */
|
|
50531
|
+
t10 = /* @__PURE__ */ _jsx100(Dialog.Root, {
|
|
50510
50532
|
open: t4,
|
|
50511
50533
|
onOpenChange: t5,
|
|
50512
50534
|
children: t9
|
|
@@ -50534,7 +50556,7 @@ var FileCitation = function(t0) {
|
|
|
50534
50556
|
return t11;
|
|
50535
50557
|
};
|
|
50536
50558
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50537
|
-
import { jsx as
|
|
50559
|
+
import { jsx as _jsx101 } from "react/jsx-runtime";
|
|
50538
50560
|
var _excluded8 = [
|
|
50539
50561
|
"children"
|
|
50540
50562
|
];
|
|
@@ -50557,7 +50579,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
50557
50579
|
return t;
|
|
50558
50580
|
}
|
|
50559
50581
|
var SourceAnnotation = function(t0) {
|
|
50560
|
-
var $ =
|
|
50582
|
+
var $ = _c103(10);
|
|
50561
50583
|
var children;
|
|
50562
50584
|
var rest;
|
|
50563
50585
|
if ($[0] !== t0) {
|
|
@@ -50585,7 +50607,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50585
50607
|
if (annotation.type === "file_citation") {
|
|
50586
50608
|
var t2;
|
|
50587
50609
|
if ($[5] !== annotation) {
|
|
50588
|
-
t2 = /* @__PURE__ */
|
|
50610
|
+
t2 = /* @__PURE__ */ _jsx101(FileCitation, {
|
|
50589
50611
|
annotation: annotation
|
|
50590
50612
|
});
|
|
50591
50613
|
$[5] = annotation;
|
|
@@ -50598,7 +50620,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50598
50620
|
if (annotation.type === "file_path") {
|
|
50599
50621
|
var _t2;
|
|
50600
50622
|
if ($[7] !== annotation || $[8] !== children) {
|
|
50601
|
-
_t2 = /* @__PURE__ */
|
|
50623
|
+
_t2 = /* @__PURE__ */ _jsx101(FilePathAnnotation, {
|
|
50602
50624
|
annotation: annotation,
|
|
50603
50625
|
children: children
|
|
50604
50626
|
});
|
|
@@ -50614,7 +50636,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50614
50636
|
return null;
|
|
50615
50637
|
};
|
|
50616
50638
|
// src/components/avatars/Avatar.tsx
|
|
50617
|
-
import { c as
|
|
50639
|
+
import { c as _c106 } from "react-compiler-runtime";
|
|
50618
50640
|
// src/lib/enums/index.ts
|
|
50619
50641
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
50620
50642
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -50639,7 +50661,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
50639
50661
|
// src/components/avatars/Avatar.tsx
|
|
50640
50662
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
50641
50663
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50642
|
-
import { c as
|
|
50664
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50643
50665
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
50644
50666
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
50645
50667
|
var width = function(_ref) {
|
|
@@ -50691,9 +50713,9 @@ var optimizedSrc = function(_ref) {
|
|
|
50691
50713
|
}));
|
|
50692
50714
|
};
|
|
50693
50715
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50694
|
-
import { jsx as
|
|
50716
|
+
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
50695
50717
|
var ImageAvatar = function(t0) {
|
|
50696
|
-
var $ =
|
|
50718
|
+
var $ = _c104(9);
|
|
50697
50719
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50698
50720
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50699
50721
|
var t1;
|
|
@@ -50712,7 +50734,7 @@ var ImageAvatar = function(t0) {
|
|
|
50712
50734
|
}
|
|
50713
50735
|
var t2;
|
|
50714
50736
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
50715
|
-
t2 = /* @__PURE__ */
|
|
50737
|
+
t2 = /* @__PURE__ */ _jsx102(Avatar4, {
|
|
50716
50738
|
className: className,
|
|
50717
50739
|
style: style,
|
|
50718
50740
|
fallback: "",
|
|
@@ -50730,7 +50752,7 @@ var ImageAvatar = function(t0) {
|
|
|
50730
50752
|
return t2;
|
|
50731
50753
|
};
|
|
50732
50754
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50733
|
-
import { c as
|
|
50755
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50734
50756
|
import { useMemo as useMemo22 } from "react";
|
|
50735
50757
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
50736
50758
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -50738,16 +50760,16 @@ import { BackpackIcon, RocketIcon, MagicWandIcon, CubeIcon, TargetIcon, DiscIcon
|
|
|
50738
50760
|
var _obj;
|
|
50739
50761
|
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);
|
|
50740
50762
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50741
|
-
import { jsx as
|
|
50763
|
+
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
50742
50764
|
var IconAvatar = function(t0) {
|
|
50743
|
-
var $ =
|
|
50765
|
+
var $ = _c105(7);
|
|
50744
50766
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50745
50767
|
var t1;
|
|
50746
50768
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
50747
50769
|
var Component2 = t1;
|
|
50748
50770
|
var t2;
|
|
50749
50771
|
if ($[0] !== Component2) {
|
|
50750
|
-
t2 = Component2 ? /* @__PURE__ */
|
|
50772
|
+
t2 = Component2 ? /* @__PURE__ */ _jsx103(Component2, {}) : "";
|
|
50751
50773
|
$[0] = Component2;
|
|
50752
50774
|
$[1] = t2;
|
|
50753
50775
|
} else {
|
|
@@ -50755,7 +50777,7 @@ var IconAvatar = function(t0) {
|
|
|
50755
50777
|
}
|
|
50756
50778
|
var t3;
|
|
50757
50779
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
50758
|
-
t3 = /* @__PURE__ */
|
|
50780
|
+
t3 = /* @__PURE__ */ _jsx103(Avatar5, {
|
|
50759
50781
|
className: className,
|
|
50760
50782
|
style: style,
|
|
50761
50783
|
size: size,
|
|
@@ -50772,16 +50794,16 @@ var IconAvatar = function(t0) {
|
|
|
50772
50794
|
return t3;
|
|
50773
50795
|
};
|
|
50774
50796
|
// src/components/avatars/Avatar.tsx
|
|
50775
|
-
import { jsx as
|
|
50797
|
+
import { jsx as _jsx104 } from "react/jsx-runtime";
|
|
50776
50798
|
var Avatar6 = function(t0) {
|
|
50777
|
-
var $ =
|
|
50799
|
+
var $ = _c106(14);
|
|
50778
50800
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
50779
50801
|
var size = t1 === void 0 ? "1" : t1;
|
|
50780
50802
|
if (avatar) {
|
|
50781
50803
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
50782
50804
|
var _t;
|
|
50783
50805
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
50784
|
-
_t = /* @__PURE__ */
|
|
50806
|
+
_t = /* @__PURE__ */ _jsx104(ImageAvatar, {
|
|
50785
50807
|
imageAvatar: avatar.imageAvatar,
|
|
50786
50808
|
size: size,
|
|
50787
50809
|
className: className,
|
|
@@ -50800,7 +50822,7 @@ var Avatar6 = function(t0) {
|
|
|
50800
50822
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
50801
50823
|
var _t2;
|
|
50802
50824
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
50803
|
-
_t2 = /* @__PURE__ */
|
|
50825
|
+
_t2 = /* @__PURE__ */ _jsx104(IconAvatar, {
|
|
50804
50826
|
iconAvatar: avatar.iconAvatar,
|
|
50805
50827
|
size: size,
|
|
50806
50828
|
className: className,
|
|
@@ -50819,7 +50841,7 @@ var Avatar6 = function(t0) {
|
|
|
50819
50841
|
}
|
|
50820
50842
|
var t2;
|
|
50821
50843
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
50822
|
-
t2 = /* @__PURE__ */
|
|
50844
|
+
t2 = /* @__PURE__ */ _jsx104(RadixAvatar, {
|
|
50823
50845
|
fallback: "",
|
|
50824
50846
|
size: size,
|
|
50825
50847
|
className: className,
|
|
@@ -50835,9 +50857,9 @@ var Avatar6 = function(t0) {
|
|
|
50835
50857
|
return t2;
|
|
50836
50858
|
};
|
|
50837
50859
|
// src/components/components/ComponentsProvider.tsx
|
|
50838
|
-
import { c as
|
|
50860
|
+
import { c as _c107 } from "react-compiler-runtime";
|
|
50839
50861
|
import { useMemo as useMemo23 } from "react";
|
|
50840
|
-
import { jsx as
|
|
50862
|
+
import { jsx as _jsx105 } from "react/jsx-runtime";
|
|
50841
50863
|
var _excluded9 = [
|
|
50842
50864
|
"children"
|
|
50843
50865
|
];
|
|
@@ -50860,7 +50882,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
50860
50882
|
return t;
|
|
50861
50883
|
}
|
|
50862
50884
|
var ComponentsProvider = function(t0) {
|
|
50863
|
-
var $ =
|
|
50885
|
+
var $ = _c107(9);
|
|
50864
50886
|
var children;
|
|
50865
50887
|
var rest;
|
|
50866
50888
|
if ($[0] !== t0) {
|
|
@@ -50890,7 +50912,7 @@ var ComponentsProvider = function(t0) {
|
|
|
50890
50912
|
var value = t1;
|
|
50891
50913
|
var t3;
|
|
50892
50914
|
if ($[6] !== children || $[7] !== value) {
|
|
50893
|
-
t3 = /* @__PURE__ */
|
|
50915
|
+
t3 = /* @__PURE__ */ _jsx105(ComponentsContext.Provider, {
|
|
50894
50916
|
value: value,
|
|
50895
50917
|
children: children
|
|
50896
50918
|
});
|
|
@@ -50903,11 +50925,11 @@ var ComponentsProvider = function(t0) {
|
|
|
50903
50925
|
return t3;
|
|
50904
50926
|
};
|
|
50905
50927
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
50906
|
-
import { c as
|
|
50907
|
-
import { jsx as
|
|
50928
|
+
import { c as _c108 } from "react-compiler-runtime";
|
|
50929
|
+
import { jsx as _jsx106 } from "react/jsx-runtime";
|
|
50908
50930
|
var AssistantProvider = function(t0) {
|
|
50909
50931
|
var _assistant$name;
|
|
50910
|
-
var $ =
|
|
50932
|
+
var $ = _c108(10);
|
|
50911
50933
|
var children = t0.children;
|
|
50912
50934
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50913
50935
|
var t1;
|
|
@@ -50925,7 +50947,7 @@ var AssistantProvider = function(t0) {
|
|
|
50925
50947
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
50926
50948
|
var t4;
|
|
50927
50949
|
if ($[2] !== t3) {
|
|
50928
|
-
t4 = /* @__PURE__ */
|
|
50950
|
+
t4 = /* @__PURE__ */ _jsx106(Avatar6, {
|
|
50929
50951
|
avatar: t3
|
|
50930
50952
|
});
|
|
50931
50953
|
$[2] = t3;
|
|
@@ -50935,7 +50957,7 @@ var AssistantProvider = function(t0) {
|
|
|
50935
50957
|
}
|
|
50936
50958
|
var t5;
|
|
50937
50959
|
if ($[4] !== children || $[5] !== t4) {
|
|
50938
|
-
t5 = /* @__PURE__ */
|
|
50960
|
+
t5 = /* @__PURE__ */ _jsx106(AssistantAvatarContext.Provider, {
|
|
50939
50961
|
value: t4,
|
|
50940
50962
|
children: children
|
|
50941
50963
|
});
|
|
@@ -50947,7 +50969,7 @@ var AssistantProvider = function(t0) {
|
|
|
50947
50969
|
}
|
|
50948
50970
|
var t6;
|
|
50949
50971
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
50950
|
-
t6 = /* @__PURE__ */
|
|
50972
|
+
t6 = /* @__PURE__ */ _jsx106(AssistantNameContext.Provider, {
|
|
50951
50973
|
value: t2,
|
|
50952
50974
|
children: t5
|
|
50953
50975
|
});
|