@superinterface/react 3.25.0 → 3.26.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 +618 -525
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +659 -566
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37814,15 +37814,15 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37814
37814
|
import { c as _c75 } from "react-compiler-runtime";
|
|
37815
37815
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37816
37816
|
import { c as _c65 } from "react-compiler-runtime";
|
|
37817
|
-
import { Flex as
|
|
37817
|
+
import { Flex as Flex18 } from "@radix-ui/themes";
|
|
37818
37818
|
// src/components/threads/Thread/Message/index.tsx
|
|
37819
|
-
import { c as
|
|
37819
|
+
import { c as _c58 } from "react-compiler-runtime";
|
|
37820
37820
|
import { useMemo as useMemo10 } from "react";
|
|
37821
|
-
import { Box as
|
|
37821
|
+
import { Box as Box11 } from "@radix-ui/themes";
|
|
37822
37822
|
// src/components/runSteps/RunSteps/index.tsx
|
|
37823
|
-
import { c as
|
|
37823
|
+
import { c as _c54 } from "react-compiler-runtime";
|
|
37824
37824
|
import { Flex as Flex15 } from "@radix-ui/themes";
|
|
37825
|
-
import { useContext as
|
|
37825
|
+
import { useContext as useContext14 } from "react";
|
|
37826
37826
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
37827
37827
|
import { createContext as createContext9 } from "react";
|
|
37828
37828
|
// src/components/runSteps/RunStep/index.tsx
|
|
@@ -42982,35 +42982,103 @@ var AssistantAvatarContext = /* @__PURE__ */ createContext6(/* @__PURE__ */ _jsx
|
|
|
42982
42982
|
}));
|
|
42983
42983
|
// src/components/messageGroups/MessageGroup/AssistantAvatar.tsx
|
|
42984
42984
|
import { jsx as _jsx47 } from "react/jsx-runtime";
|
|
42985
|
-
|
|
42986
|
-
var
|
|
42987
|
-
|
|
42988
|
-
|
|
42989
|
-
|
|
42990
|
-
|
|
42985
|
+
function ownKeys25(e, r) {
|
|
42986
|
+
var t = Object.keys(e);
|
|
42987
|
+
if (Object.getOwnPropertySymbols) {
|
|
42988
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
42989
|
+
r && (o = o.filter(function(r2) {
|
|
42990
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
42991
|
+
})), t.push.apply(t, o);
|
|
42992
|
+
}
|
|
42993
|
+
return t;
|
|
42994
|
+
}
|
|
42995
|
+
function _objectSpread25(e) {
|
|
42996
|
+
for(var r = 1; r < arguments.length; r++){
|
|
42997
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
42998
|
+
r % 2 ? ownKeys25(Object(t), true).forEach(function(r2) {
|
|
42999
|
+
_defineProperty25(e, r2, t[r2]);
|
|
43000
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys25(Object(t)).forEach(function(r2) {
|
|
43001
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
43002
|
+
});
|
|
43003
|
+
}
|
|
43004
|
+
return e;
|
|
43005
|
+
}
|
|
43006
|
+
function _defineProperty25(e, r, t) {
|
|
43007
|
+
return (r = _toPropertyKey25(r)) in e ? Object.defineProperty(e, r, {
|
|
43008
|
+
value: t,
|
|
43009
|
+
enumerable: true,
|
|
43010
|
+
configurable: true,
|
|
43011
|
+
writable: true
|
|
43012
|
+
}) : e[r] = t, e;
|
|
43013
|
+
}
|
|
43014
|
+
function _toPropertyKey25(t) {
|
|
43015
|
+
var i = _toPrimitive25(t, "string");
|
|
43016
|
+
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
43017
|
+
}
|
|
43018
|
+
function _toPrimitive25(t, r) {
|
|
43019
|
+
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
43020
|
+
var e = t[Symbol.toPrimitive];
|
|
43021
|
+
if (void 0 !== e) {
|
|
43022
|
+
var i = e.call(t, r || "default");
|
|
43023
|
+
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
43024
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
43025
|
+
}
|
|
43026
|
+
return ("string" === r ? String : Number)(t);
|
|
43027
|
+
}
|
|
43028
|
+
var Root2 = function(t0) {
|
|
43029
|
+
var $ = _c46(6);
|
|
43030
|
+
var children = t0.children, style = t0.style, className = t0.className;
|
|
43031
|
+
var t1;
|
|
43032
|
+
if ($[0] !== style) {
|
|
43033
|
+
t1 = _objectSpread25({
|
|
42991
43034
|
borderRadius: "var(--radius-3)",
|
|
42992
43035
|
overflow: "hidden"
|
|
42993
|
-
};
|
|
42994
|
-
$[0] =
|
|
43036
|
+
}, style);
|
|
43037
|
+
$[0] = style;
|
|
43038
|
+
$[1] = t1;
|
|
42995
43039
|
} else {
|
|
42996
|
-
|
|
43040
|
+
t1 = $[1];
|
|
42997
43041
|
}
|
|
42998
|
-
var
|
|
42999
|
-
if ($[
|
|
43000
|
-
|
|
43042
|
+
var t2;
|
|
43043
|
+
if ($[2] !== children || $[3] !== className || $[4] !== t1) {
|
|
43044
|
+
t2 = /* @__PURE__ */ _jsx47(Flex10, {
|
|
43001
43045
|
flexShrink: "0",
|
|
43002
43046
|
height: "24px",
|
|
43003
43047
|
width: "24px",
|
|
43004
|
-
|
|
43048
|
+
className: className,
|
|
43049
|
+
style: t1,
|
|
43050
|
+
children: children
|
|
43051
|
+
});
|
|
43052
|
+
$[2] = children;
|
|
43053
|
+
$[3] = className;
|
|
43054
|
+
$[4] = t1;
|
|
43055
|
+
$[5] = t2;
|
|
43056
|
+
} else {
|
|
43057
|
+
t2 = $[5];
|
|
43058
|
+
}
|
|
43059
|
+
return t2;
|
|
43060
|
+
};
|
|
43061
|
+
var AssistantAvatar = function(t0) {
|
|
43062
|
+
var $ = _c46(4);
|
|
43063
|
+
var style = t0.style, className = t0.className;
|
|
43064
|
+
var AssistantAvatarContextValue = useContext10(AssistantAvatarContext);
|
|
43065
|
+
var t1;
|
|
43066
|
+
if ($[0] !== AssistantAvatarContextValue || $[1] !== className || $[2] !== style) {
|
|
43067
|
+
t1 = /* @__PURE__ */ _jsx47(Root2, {
|
|
43068
|
+
style: style,
|
|
43069
|
+
className: className,
|
|
43005
43070
|
children: AssistantAvatarContextValue
|
|
43006
43071
|
});
|
|
43007
|
-
$[
|
|
43008
|
-
$[
|
|
43072
|
+
$[0] = AssistantAvatarContextValue;
|
|
43073
|
+
$[1] = className;
|
|
43074
|
+
$[2] = style;
|
|
43075
|
+
$[3] = t1;
|
|
43009
43076
|
} else {
|
|
43010
|
-
t1 = $[
|
|
43077
|
+
t1 = $[3];
|
|
43011
43078
|
}
|
|
43012
43079
|
return t1;
|
|
43013
43080
|
};
|
|
43081
|
+
AssistantAvatar.Root = Root2;
|
|
43014
43082
|
// src/contexts/assistants/AssistantNameContext/index.tsx
|
|
43015
43083
|
import { createContext as createContext7 } from "react";
|
|
43016
43084
|
var AssistantNameContext = /* @__PURE__ */ createContext7("Assistant");
|
|
@@ -43096,7 +43164,7 @@ import { c as _c49 } from "react-compiler-runtime";
|
|
|
43096
43164
|
import { forwardRef as forwardRef2 } from "react";
|
|
43097
43165
|
import { Flex as Flex13, Container } from "@radix-ui/themes";
|
|
43098
43166
|
import { jsx as _jsx51 } from "react/jsx-runtime";
|
|
43099
|
-
var
|
|
43167
|
+
var Root3 = /* @__PURE__ */ forwardRef2(function Root4(t0, ref) {
|
|
43100
43168
|
var $ = _c49(7);
|
|
43101
43169
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
43102
43170
|
var t1;
|
|
@@ -43212,7 +43280,7 @@ var MessageGroup = function(t0) {
|
|
|
43212
43280
|
}
|
|
43213
43281
|
var t2;
|
|
43214
43282
|
if ($[2] !== className || $[3] !== style || $[4] !== t1) {
|
|
43215
|
-
t2 = /* @__PURE__ */ _jsx52(
|
|
43283
|
+
t2 = /* @__PURE__ */ _jsx52(Root3, {
|
|
43216
43284
|
className: className,
|
|
43217
43285
|
style: style,
|
|
43218
43286
|
children: t1
|
|
@@ -43226,7 +43294,7 @@ var MessageGroup = function(t0) {
|
|
|
43226
43294
|
}
|
|
43227
43295
|
return t2;
|
|
43228
43296
|
};
|
|
43229
|
-
MessageGroup.Root =
|
|
43297
|
+
MessageGroup.Root = Root3;
|
|
43230
43298
|
MessageGroup.Name = Name;
|
|
43231
43299
|
MessageGroup.AssistantAvatar = AssistantAvatar;
|
|
43232
43300
|
MessageGroup.UserAvatar = UserAvatar;
|
|
@@ -43276,6 +43344,86 @@ var MessageAttachments = function(t0) {
|
|
|
43276
43344
|
}
|
|
43277
43345
|
return t3;
|
|
43278
43346
|
};
|
|
43347
|
+
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43348
|
+
import { c as _c53 } from "react-compiler-runtime";
|
|
43349
|
+
import { useContext as useContext13 } from "react";
|
|
43350
|
+
import { Box as Box10 } from "@radix-ui/themes";
|
|
43351
|
+
// src/components/skeletons/StartingContentSkeleton/index.tsx
|
|
43352
|
+
import { c as _c52 } from "react-compiler-runtime";
|
|
43353
|
+
import { Skeleton } from "@radix-ui/themes";
|
|
43354
|
+
import { jsx as _jsx54 } from "react/jsx-runtime";
|
|
43355
|
+
var StartingContentSkeleton = function() {
|
|
43356
|
+
var $ = _c52(1);
|
|
43357
|
+
var t0;
|
|
43358
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43359
|
+
t0 = /* @__PURE__ */ _jsx54(Skeleton, {
|
|
43360
|
+
loading: true,
|
|
43361
|
+
mt: "1",
|
|
43362
|
+
height: "var(--space-4)",
|
|
43363
|
+
width: "var(--space-4)",
|
|
43364
|
+
style: {
|
|
43365
|
+
borderRadius: "var(--radius-6)",
|
|
43366
|
+
flexShrink: 0
|
|
43367
|
+
}
|
|
43368
|
+
});
|
|
43369
|
+
$[0] = t0;
|
|
43370
|
+
} else {
|
|
43371
|
+
t0 = $[0];
|
|
43372
|
+
}
|
|
43373
|
+
return t0;
|
|
43374
|
+
};
|
|
43375
|
+
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43376
|
+
import { jsx as _jsx55, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
43377
|
+
var StartingSkeleton = function(t0) {
|
|
43378
|
+
var $ = _c53(7);
|
|
43379
|
+
var children = t0.children;
|
|
43380
|
+
var assistantNameContext = useContext13(AssistantNameContext);
|
|
43381
|
+
var t1;
|
|
43382
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43383
|
+
t1 = /* @__PURE__ */ _jsx55(MessageGroup.AssistantAvatar, {});
|
|
43384
|
+
$[0] = t1;
|
|
43385
|
+
} else {
|
|
43386
|
+
t1 = $[0];
|
|
43387
|
+
}
|
|
43388
|
+
var t2;
|
|
43389
|
+
if ($[1] !== assistantNameContext) {
|
|
43390
|
+
t2 = /* @__PURE__ */ _jsx55(MessageGroup.Name, {
|
|
43391
|
+
children: assistantNameContext
|
|
43392
|
+
});
|
|
43393
|
+
$[1] = assistantNameContext;
|
|
43394
|
+
$[2] = t2;
|
|
43395
|
+
} else {
|
|
43396
|
+
t2 = $[2];
|
|
43397
|
+
}
|
|
43398
|
+
var t3;
|
|
43399
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43400
|
+
t3 = /* @__PURE__ */ _jsx55(StartingContentSkeleton, {});
|
|
43401
|
+
$[3] = t3;
|
|
43402
|
+
} else {
|
|
43403
|
+
t3 = $[3];
|
|
43404
|
+
}
|
|
43405
|
+
var t4;
|
|
43406
|
+
if ($[4] !== children || $[5] !== t2) {
|
|
43407
|
+
t4 = /* @__PURE__ */ _jsxs16(MessageGroup.Root, {
|
|
43408
|
+
children: [
|
|
43409
|
+
t1,
|
|
43410
|
+
/* @__PURE__ */ _jsxs16(Box10, {
|
|
43411
|
+
children: [
|
|
43412
|
+
t2,
|
|
43413
|
+
children,
|
|
43414
|
+
t3
|
|
43415
|
+
]
|
|
43416
|
+
})
|
|
43417
|
+
]
|
|
43418
|
+
});
|
|
43419
|
+
$[4] = children;
|
|
43420
|
+
$[5] = t2;
|
|
43421
|
+
$[6] = t4;
|
|
43422
|
+
} else {
|
|
43423
|
+
t4 = $[6];
|
|
43424
|
+
}
|
|
43425
|
+
return t4;
|
|
43426
|
+
};
|
|
43279
43427
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
43280
43428
|
var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
43281
43429
|
components: {
|
|
@@ -43288,22 +43436,24 @@ var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
|
43288
43436
|
TextContent: TextContent,
|
|
43289
43437
|
ImageFileContent: ImageFileContent,
|
|
43290
43438
|
MessageGroup: MessageGroup,
|
|
43291
|
-
MessageAttachments: MessageAttachments
|
|
43439
|
+
MessageAttachments: MessageAttachments,
|
|
43440
|
+
StartingSkeleton: StartingSkeleton,
|
|
43441
|
+
StartingContentSkeleton: StartingContentSkeleton
|
|
43292
43442
|
}
|
|
43293
43443
|
});
|
|
43294
43444
|
// src/components/runSteps/RunSteps/index.tsx
|
|
43295
|
-
import { jsx as
|
|
43445
|
+
import { jsx as _jsx56 } from "react/jsx-runtime";
|
|
43296
43446
|
var RunSteps = function(t0) {
|
|
43297
|
-
var $ =
|
|
43447
|
+
var $ = _c54(7);
|
|
43298
43448
|
var runSteps = t0.runSteps;
|
|
43299
|
-
var componentsContext =
|
|
43449
|
+
var componentsContext = useContext14(ComponentsContext);
|
|
43300
43450
|
var Component2 = componentsContext.components.RunStep;
|
|
43301
43451
|
var t1;
|
|
43302
43452
|
if ($[0] !== Component2 || $[1] !== runSteps) {
|
|
43303
43453
|
var _t;
|
|
43304
43454
|
if ($[3] !== Component2) {
|
|
43305
43455
|
_t = function(runStep) {
|
|
43306
|
-
return /* @__PURE__ */
|
|
43456
|
+
return /* @__PURE__ */ _jsx56(Component2, {
|
|
43307
43457
|
runStep: runStep
|
|
43308
43458
|
}, runStep.id);
|
|
43309
43459
|
};
|
|
@@ -43321,7 +43471,7 @@ var RunSteps = function(t0) {
|
|
|
43321
43471
|
}
|
|
43322
43472
|
var t2;
|
|
43323
43473
|
if ($[5] !== t1) {
|
|
43324
|
-
t2 = /* @__PURE__ */
|
|
43474
|
+
t2 = /* @__PURE__ */ _jsx56(Flex15, {
|
|
43325
43475
|
direction: "column-reverse",
|
|
43326
43476
|
children: t1
|
|
43327
43477
|
});
|
|
@@ -43340,16 +43490,16 @@ var MessageContext = /* @__PURE__ */ createContext10({
|
|
|
43340
43490
|
// src/components/threads/Thread/Message/Provider.tsx
|
|
43341
43491
|
var Provider = MessageContext.Provider;
|
|
43342
43492
|
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
43343
|
-
import { c as
|
|
43344
|
-
import { jsx as
|
|
43493
|
+
import { c as _c55 } from "react-compiler-runtime";
|
|
43494
|
+
import { jsx as _jsx57 } from "react/jsx-runtime";
|
|
43345
43495
|
var Attachments = function(t0) {
|
|
43346
|
-
var $ =
|
|
43496
|
+
var $ = _c55(3);
|
|
43347
43497
|
var message = t0.message;
|
|
43348
43498
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43349
43499
|
var MessageAttachments2 = t1.MessageAttachments;
|
|
43350
43500
|
var t2;
|
|
43351
43501
|
if ($[0] !== MessageAttachments2 || $[1] !== message) {
|
|
43352
|
-
t2 = /* @__PURE__ */
|
|
43502
|
+
t2 = /* @__PURE__ */ _jsx57(MessageAttachments2, {
|
|
43353
43503
|
message: message
|
|
43354
43504
|
});
|
|
43355
43505
|
$[0] = MessageAttachments2;
|
|
@@ -43361,18 +43511,18 @@ var Attachments = function(t0) {
|
|
|
43361
43511
|
return t2;
|
|
43362
43512
|
};
|
|
43363
43513
|
// src/components/messages/MessageContent/index.tsx
|
|
43364
|
-
import { c as
|
|
43514
|
+
import { c as _c57 } from "react-compiler-runtime";
|
|
43365
43515
|
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
43366
|
-
import { c as
|
|
43367
|
-
import { jsx as
|
|
43516
|
+
import { c as _c56 } from "react-compiler-runtime";
|
|
43517
|
+
import { jsx as _jsx58 } from "react/jsx-runtime";
|
|
43368
43518
|
var TextContent2 = function(t0) {
|
|
43369
|
-
var $ =
|
|
43519
|
+
var $ = _c56(3);
|
|
43370
43520
|
var content2 = t0.content;
|
|
43371
43521
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43372
43522
|
var TextContent3 = t1.TextContent;
|
|
43373
43523
|
var t2;
|
|
43374
43524
|
if ($[0] !== TextContent3 || $[1] !== content2) {
|
|
43375
|
-
t2 = /* @__PURE__ */
|
|
43525
|
+
t2 = /* @__PURE__ */ _jsx58(TextContent3, {
|
|
43376
43526
|
content: content2
|
|
43377
43527
|
});
|
|
43378
43528
|
$[0] = TextContent3;
|
|
@@ -43384,13 +43534,13 @@ var TextContent2 = function(t0) {
|
|
|
43384
43534
|
return t2;
|
|
43385
43535
|
};
|
|
43386
43536
|
var ImageFileContent2 = function(t0) {
|
|
43387
|
-
var $ =
|
|
43537
|
+
var $ = _c56(3);
|
|
43388
43538
|
var content2 = t0.content;
|
|
43389
43539
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43390
43540
|
var ImageFileContent3 = t1.ImageFileContent;
|
|
43391
43541
|
var t2;
|
|
43392
43542
|
if ($[0] !== ImageFileContent3 || $[1] !== content2) {
|
|
43393
|
-
t2 = /* @__PURE__ */
|
|
43543
|
+
t2 = /* @__PURE__ */ _jsx58(ImageFileContent3, {
|
|
43394
43544
|
content: content2
|
|
43395
43545
|
});
|
|
43396
43546
|
$[0] = ImageFileContent3;
|
|
@@ -43402,12 +43552,12 @@ var ImageFileContent2 = function(t0) {
|
|
|
43402
43552
|
return t2;
|
|
43403
43553
|
};
|
|
43404
43554
|
var ContentPart = function(t0) {
|
|
43405
|
-
var $ =
|
|
43555
|
+
var $ = _c56(4);
|
|
43406
43556
|
var content2 = t0.content;
|
|
43407
43557
|
if (content2.type === "text") {
|
|
43408
43558
|
var t1;
|
|
43409
43559
|
if ($[0] !== content2) {
|
|
43410
|
-
t1 = /* @__PURE__ */
|
|
43560
|
+
t1 = /* @__PURE__ */ _jsx58(TextContent2, {
|
|
43411
43561
|
content: content2
|
|
43412
43562
|
});
|
|
43413
43563
|
$[0] = content2;
|
|
@@ -43420,7 +43570,7 @@ var ContentPart = function(t0) {
|
|
|
43420
43570
|
if (content2.type === "image_file") {
|
|
43421
43571
|
var _t;
|
|
43422
43572
|
if ($[2] !== content2) {
|
|
43423
|
-
_t = /* @__PURE__ */
|
|
43573
|
+
_t = /* @__PURE__ */ _jsx58(ImageFileContent2, {
|
|
43424
43574
|
content: content2
|
|
43425
43575
|
});
|
|
43426
43576
|
$[2] = content2;
|
|
@@ -43433,9 +43583,9 @@ var ContentPart = function(t0) {
|
|
|
43433
43583
|
return null;
|
|
43434
43584
|
};
|
|
43435
43585
|
// src/components/messages/MessageContent/index.tsx
|
|
43436
|
-
import { Fragment as _Fragment3, jsx as
|
|
43586
|
+
import { Fragment as _Fragment3, jsx as _jsx59 } from "react/jsx-runtime";
|
|
43437
43587
|
var MessageContent = function(t0) {
|
|
43438
|
-
var $ =
|
|
43588
|
+
var $ = _c57(4);
|
|
43439
43589
|
var message = t0.message;
|
|
43440
43590
|
var t1;
|
|
43441
43591
|
if ($[0] !== message.content) {
|
|
@@ -43447,7 +43597,7 @@ var MessageContent = function(t0) {
|
|
|
43447
43597
|
}
|
|
43448
43598
|
var t2;
|
|
43449
43599
|
if ($[2] !== t1) {
|
|
43450
|
-
t2 = /* @__PURE__ */
|
|
43600
|
+
t2 = /* @__PURE__ */ _jsx59(_Fragment3, {
|
|
43451
43601
|
children: t1
|
|
43452
43602
|
});
|
|
43453
43603
|
$[2] = t1;
|
|
@@ -43458,14 +43608,14 @@ var MessageContent = function(t0) {
|
|
|
43458
43608
|
return t2;
|
|
43459
43609
|
};
|
|
43460
43610
|
function _temp2(content2, index) {
|
|
43461
|
-
return /* @__PURE__ */
|
|
43611
|
+
return /* @__PURE__ */ _jsx59(ContentPart, {
|
|
43462
43612
|
content: content2
|
|
43463
43613
|
}, index);
|
|
43464
43614
|
}
|
|
43465
43615
|
// src/components/threads/Thread/Message/index.tsx
|
|
43466
|
-
import { jsx as
|
|
43616
|
+
import { jsx as _jsx60, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
43467
43617
|
var Message = function(t0) {
|
|
43468
|
-
var $ =
|
|
43618
|
+
var $ = _c58(37);
|
|
43469
43619
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43470
43620
|
var t1;
|
|
43471
43621
|
bb0: {
|
|
@@ -43573,7 +43723,7 @@ var Message = function(t0) {
|
|
|
43573
43723
|
}
|
|
43574
43724
|
var t3;
|
|
43575
43725
|
if ($[21] !== olderRunSteps_0) {
|
|
43576
|
-
t3 = /* @__PURE__ */
|
|
43726
|
+
t3 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43577
43727
|
runSteps: olderRunSteps_0
|
|
43578
43728
|
});
|
|
43579
43729
|
$[21] = olderRunSteps_0;
|
|
@@ -43592,13 +43742,13 @@ var Message = function(t0) {
|
|
|
43592
43742
|
}
|
|
43593
43743
|
var t5;
|
|
43594
43744
|
if ($[24] !== message) {
|
|
43595
|
-
t5 = /* @__PURE__ */
|
|
43745
|
+
t5 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43596
43746
|
style: t4,
|
|
43597
43747
|
children: [
|
|
43598
|
-
/* @__PURE__ */
|
|
43748
|
+
/* @__PURE__ */ _jsx60(Attachments, {
|
|
43599
43749
|
message: message
|
|
43600
43750
|
}),
|
|
43601
|
-
/* @__PURE__ */
|
|
43751
|
+
/* @__PURE__ */ _jsx60(MessageContent, {
|
|
43602
43752
|
message: message
|
|
43603
43753
|
})
|
|
43604
43754
|
]
|
|
@@ -43610,7 +43760,7 @@ var Message = function(t0) {
|
|
|
43610
43760
|
}
|
|
43611
43761
|
var t6;
|
|
43612
43762
|
if ($[26] !== laterRunSteps_0) {
|
|
43613
|
-
t6 = /* @__PURE__ */
|
|
43763
|
+
t6 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43614
43764
|
runSteps: laterRunSteps_0
|
|
43615
43765
|
});
|
|
43616
43766
|
$[26] = laterRunSteps_0;
|
|
@@ -43620,7 +43770,7 @@ var Message = function(t0) {
|
|
|
43620
43770
|
}
|
|
43621
43771
|
var t7;
|
|
43622
43772
|
if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
|
|
43623
|
-
t7 = /* @__PURE__ */
|
|
43773
|
+
t7 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43624
43774
|
className: className,
|
|
43625
43775
|
style: style,
|
|
43626
43776
|
children: [
|
|
@@ -43640,7 +43790,7 @@ var Message = function(t0) {
|
|
|
43640
43790
|
}
|
|
43641
43791
|
var t8;
|
|
43642
43792
|
if ($[34] !== t2 || $[35] !== t7) {
|
|
43643
|
-
t8 = /* @__PURE__ */
|
|
43793
|
+
t8 = /* @__PURE__ */ _jsx60(Provider, {
|
|
43644
43794
|
value: t2,
|
|
43645
43795
|
children: t7
|
|
43646
43796
|
});
|
|
@@ -43659,10 +43809,10 @@ function _temp22(runStep_1) {
|
|
|
43659
43809
|
return runStep_1.step_details.type === "message_creation";
|
|
43660
43810
|
}
|
|
43661
43811
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43662
|
-
import { c as
|
|
43812
|
+
import { c as _c61 } from "react-compiler-runtime";
|
|
43663
43813
|
import { useEffect as useEffect3 } from "react";
|
|
43664
43814
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43665
|
-
import { c as
|
|
43815
|
+
import { c as _c59 } from "react-compiler-runtime";
|
|
43666
43816
|
import { useMemo as useMemo11 } from "react";
|
|
43667
43817
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43668
43818
|
import _6 from "lodash";
|
|
@@ -43697,7 +43847,7 @@ var newGroup = function(_ref) {
|
|
|
43697
43847
|
]);
|
|
43698
43848
|
};
|
|
43699
43849
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43700
|
-
function
|
|
43850
|
+
function ownKeys26(e, r) {
|
|
43701
43851
|
var t = Object.keys(e);
|
|
43702
43852
|
if (Object.getOwnPropertySymbols) {
|
|
43703
43853
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -43707,30 +43857,30 @@ function ownKeys25(e, r) {
|
|
|
43707
43857
|
}
|
|
43708
43858
|
return t;
|
|
43709
43859
|
}
|
|
43710
|
-
function
|
|
43860
|
+
function _objectSpread26(e) {
|
|
43711
43861
|
for(var r = 1; r < arguments.length; r++){
|
|
43712
43862
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
43713
|
-
r % 2 ?
|
|
43714
|
-
|
|
43715
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
43863
|
+
r % 2 ? ownKeys26(Object(t), true).forEach(function(r2) {
|
|
43864
|
+
_defineProperty26(e, r2, t[r2]);
|
|
43865
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys26(Object(t)).forEach(function(r2) {
|
|
43716
43866
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
43717
43867
|
});
|
|
43718
43868
|
}
|
|
43719
43869
|
return e;
|
|
43720
43870
|
}
|
|
43721
|
-
function
|
|
43722
|
-
return (r =
|
|
43871
|
+
function _defineProperty26(e, r, t) {
|
|
43872
|
+
return (r = _toPropertyKey26(r)) in e ? Object.defineProperty(e, r, {
|
|
43723
43873
|
value: t,
|
|
43724
43874
|
enumerable: true,
|
|
43725
43875
|
configurable: true,
|
|
43726
43876
|
writable: true
|
|
43727
43877
|
}) : e[r] = t, e;
|
|
43728
43878
|
}
|
|
43729
|
-
function
|
|
43730
|
-
var i =
|
|
43879
|
+
function _toPropertyKey26(t) {
|
|
43880
|
+
var i = _toPrimitive26(t, "string");
|
|
43731
43881
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
43732
43882
|
}
|
|
43733
|
-
function
|
|
43883
|
+
function _toPrimitive26(t, r) {
|
|
43734
43884
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
43735
43885
|
var e = t[Symbol.toPrimitive];
|
|
43736
43886
|
if (void 0 !== e) {
|
|
@@ -43757,7 +43907,7 @@ var messageGroups = function(_ref) {
|
|
|
43757
43907
|
});
|
|
43758
43908
|
}
|
|
43759
43909
|
return _to_consumable_array(_6.dropRight(groups)).concat([
|
|
43760
|
-
|
|
43910
|
+
_objectSpread26(_objectSpread26({}, group), {}, {
|
|
43761
43911
|
messages: _to_consumable_array(group.messages).concat([
|
|
43762
43912
|
message
|
|
43763
43913
|
])
|
|
@@ -43767,7 +43917,7 @@ var messageGroups = function(_ref) {
|
|
|
43767
43917
|
};
|
|
43768
43918
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43769
43919
|
var useMessageGroups = function(t0) {
|
|
43770
|
-
var $ =
|
|
43920
|
+
var $ = _c59(4);
|
|
43771
43921
|
var messages2 = t0.messages;
|
|
43772
43922
|
var t1;
|
|
43773
43923
|
var t2;
|
|
@@ -43794,18 +43944,18 @@ var useMessageGroups = function(t0) {
|
|
|
43794
43944
|
return t1;
|
|
43795
43945
|
};
|
|
43796
43946
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
43797
|
-
import { c as
|
|
43947
|
+
import { c as _c60 } from "react-compiler-runtime";
|
|
43798
43948
|
import { forwardRef as forwardRef3 } from "react";
|
|
43799
|
-
import { Flex as Flex16, Avatar as Avatar3, Box as
|
|
43800
|
-
import { jsx as
|
|
43949
|
+
import { Flex as Flex16, Avatar as Avatar3, Box as Box12, Skeleton as Skeleton2 } from "@radix-ui/themes";
|
|
43950
|
+
import { jsx as _jsx61, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43801
43951
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
43802
|
-
var $ =
|
|
43952
|
+
var $ = _c60(7);
|
|
43803
43953
|
var t0;
|
|
43804
43954
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43805
|
-
t0 = /* @__PURE__ */
|
|
43955
|
+
t0 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43806
43956
|
loading: true,
|
|
43807
|
-
children: /* @__PURE__ */
|
|
43808
|
-
fallback: /* @__PURE__ */
|
|
43957
|
+
children: /* @__PURE__ */ _jsx61(Avatar3, {
|
|
43958
|
+
fallback: /* @__PURE__ */ _jsx61(Flex16, {}),
|
|
43809
43959
|
size: "1"
|
|
43810
43960
|
})
|
|
43811
43961
|
});
|
|
@@ -43815,8 +43965,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43815
43965
|
}
|
|
43816
43966
|
var t1;
|
|
43817
43967
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43818
|
-
t1 = /* @__PURE__ */
|
|
43819
|
-
children: /* @__PURE__ */
|
|
43968
|
+
t1 = /* @__PURE__ */ _jsx61(MessageGroup.Name, {
|
|
43969
|
+
children: /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43820
43970
|
loading: true,
|
|
43821
43971
|
style: {
|
|
43822
43972
|
width: "128px"
|
|
@@ -43829,7 +43979,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43829
43979
|
}
|
|
43830
43980
|
var t2;
|
|
43831
43981
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43832
|
-
t2 = /* @__PURE__ */
|
|
43982
|
+
t2 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43833
43983
|
loading: true,
|
|
43834
43984
|
style: {
|
|
43835
43985
|
width: "256px"
|
|
@@ -43841,7 +43991,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43841
43991
|
}
|
|
43842
43992
|
var t3;
|
|
43843
43993
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43844
|
-
t3 = /* @__PURE__ */
|
|
43994
|
+
t3 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43845
43995
|
loading: true,
|
|
43846
43996
|
style: {
|
|
43847
43997
|
width: "256px",
|
|
@@ -43854,13 +44004,13 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43854
44004
|
}
|
|
43855
44005
|
var t4;
|
|
43856
44006
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43857
|
-
t4 = /* @__PURE__ */
|
|
44007
|
+
t4 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43858
44008
|
pb: "3",
|
|
43859
44009
|
children: [
|
|
43860
44010
|
t1,
|
|
43861
44011
|
t2,
|
|
43862
44012
|
t3,
|
|
43863
|
-
/* @__PURE__ */
|
|
44013
|
+
/* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43864
44014
|
loading: true,
|
|
43865
44015
|
style: {
|
|
43866
44016
|
width: "256px",
|
|
@@ -43875,7 +44025,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43875
44025
|
}
|
|
43876
44026
|
var t5;
|
|
43877
44027
|
if ($[5] !== ref) {
|
|
43878
|
-
t5 = /* @__PURE__ */
|
|
44028
|
+
t5 = /* @__PURE__ */ _jsxs18(MessageGroup.Root, {
|
|
43879
44029
|
ref: ref,
|
|
43880
44030
|
children: [
|
|
43881
44031
|
t0,
|
|
@@ -43890,9 +44040,9 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43890
44040
|
return t5;
|
|
43891
44041
|
});
|
|
43892
44042
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43893
|
-
import { jsx as
|
|
44043
|
+
import { jsx as _jsx62, Fragment as _Fragment4 } from "react/jsx-runtime";
|
|
43894
44044
|
var Content6 = function() {
|
|
43895
|
-
var $ =
|
|
44045
|
+
var $ = _c61(14);
|
|
43896
44046
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
43897
44047
|
var addToast = useToasts().addToast;
|
|
43898
44048
|
var t0;
|
|
@@ -43935,7 +44085,7 @@ var Content6 = function() {
|
|
|
43935
44085
|
if (isLoading || isLoadingError) {
|
|
43936
44086
|
var _t;
|
|
43937
44087
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43938
|
-
_t = /* @__PURE__ */
|
|
44088
|
+
_t = /* @__PURE__ */ _jsx62(MessagesSkeleton, {});
|
|
43939
44089
|
$[6] = _t;
|
|
43940
44090
|
} else {
|
|
43941
44091
|
_t = $[6];
|
|
@@ -43947,7 +44097,7 @@ var Content6 = function() {
|
|
|
43947
44097
|
var _t2;
|
|
43948
44098
|
if ($[10] !== MessageGroup2) {
|
|
43949
44099
|
_t2 = function(messageGroup) {
|
|
43950
|
-
return /* @__PURE__ */
|
|
44100
|
+
return /* @__PURE__ */ _jsx62(MessageGroup2, {
|
|
43951
44101
|
messageGroup: messageGroup
|
|
43952
44102
|
}, messageGroup.id);
|
|
43953
44103
|
};
|
|
@@ -43965,7 +44115,7 @@ var Content6 = function() {
|
|
|
43965
44115
|
}
|
|
43966
44116
|
var t5;
|
|
43967
44117
|
if ($[12] !== t4) {
|
|
43968
|
-
t5 = /* @__PURE__ */
|
|
44118
|
+
t5 = /* @__PURE__ */ _jsx62(_Fragment4, {
|
|
43969
44119
|
children: t4
|
|
43970
44120
|
});
|
|
43971
44121
|
$[12] = t4;
|
|
@@ -43978,89 +44128,36 @@ var Content6 = function() {
|
|
|
43978
44128
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
43979
44129
|
import { c as _c62 } from "react-compiler-runtime";
|
|
43980
44130
|
import { useMemo as useMemo12 } from "react";
|
|
43981
|
-
import {
|
|
43982
|
-
|
|
43983
|
-
|
|
43984
|
-
|
|
43985
|
-
|
|
43986
|
-
|
|
43987
|
-
|
|
43988
|
-
|
|
43989
|
-
|
|
43990
|
-
|
|
43991
|
-
|
|
43992
|
-
var t0;
|
|
43993
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43994
|
-
t0 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43995
|
-
loading: true,
|
|
43996
|
-
mt: "1",
|
|
43997
|
-
height: "var(--space-4)",
|
|
43998
|
-
width: "var(--space-4)",
|
|
43999
|
-
style: {
|
|
44000
|
-
borderRadius: "var(--radius-6)",
|
|
44001
|
-
flexShrink: 0
|
|
44002
|
-
}
|
|
44003
|
-
});
|
|
44004
|
-
$[0] = t0;
|
|
44131
|
+
import { Box as Box13 } from "@radix-ui/themes";
|
|
44132
|
+
import { jsx as _jsx63, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44133
|
+
var StartingSkeleton2 = function() {
|
|
44134
|
+
var $ = _c62(2);
|
|
44135
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44136
|
+
var StartingSkeleton3 = t0.StartingSkeleton;
|
|
44137
|
+
var t1;
|
|
44138
|
+
if ($[0] !== StartingSkeleton3) {
|
|
44139
|
+
t1 = /* @__PURE__ */ _jsx63(StartingSkeleton3, {});
|
|
44140
|
+
$[0] = StartingSkeleton3;
|
|
44141
|
+
$[1] = t1;
|
|
44005
44142
|
} else {
|
|
44006
|
-
|
|
44143
|
+
t1 = $[1];
|
|
44007
44144
|
}
|
|
44008
|
-
return
|
|
44145
|
+
return t1;
|
|
44009
44146
|
};
|
|
44010
|
-
|
|
44011
|
-
|
|
44012
|
-
var
|
|
44013
|
-
var
|
|
44014
|
-
var children = t0.children;
|
|
44015
|
-
var assistantNameContext = useContext14(AssistantNameContext);
|
|
44147
|
+
var StartingContentSkeleton2 = function() {
|
|
44148
|
+
var $ = _c62(2);
|
|
44149
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44150
|
+
var StartingContentSkeleton3 = t0.StartingContentSkeleton;
|
|
44016
44151
|
var t1;
|
|
44017
|
-
if ($[0]
|
|
44018
|
-
t1 = /* @__PURE__ */
|
|
44019
|
-
$[0] =
|
|
44020
|
-
|
|
44021
|
-
t1 = $[0];
|
|
44022
|
-
}
|
|
44023
|
-
var t2;
|
|
44024
|
-
if ($[1] !== assistantNameContext) {
|
|
44025
|
-
t2 = /* @__PURE__ */ _jsx62(MessageGroup.Name, {
|
|
44026
|
-
children: assistantNameContext
|
|
44027
|
-
});
|
|
44028
|
-
$[1] = assistantNameContext;
|
|
44029
|
-
$[2] = t2;
|
|
44030
|
-
} else {
|
|
44031
|
-
t2 = $[2];
|
|
44032
|
-
}
|
|
44033
|
-
var t3;
|
|
44034
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44035
|
-
t3 = /* @__PURE__ */ _jsx62(StartingContentSkeleton, {});
|
|
44036
|
-
$[3] = t3;
|
|
44152
|
+
if ($[0] !== StartingContentSkeleton3) {
|
|
44153
|
+
t1 = /* @__PURE__ */ _jsx63(StartingContentSkeleton3, {});
|
|
44154
|
+
$[0] = StartingContentSkeleton3;
|
|
44155
|
+
$[1] = t1;
|
|
44037
44156
|
} else {
|
|
44038
|
-
|
|
44157
|
+
t1 = $[1];
|
|
44039
44158
|
}
|
|
44040
|
-
|
|
44041
|
-
if ($[4] !== children || $[5] !== t2) {
|
|
44042
|
-
t4 = /* @__PURE__ */ _jsxs18(MessageGroup.Root, {
|
|
44043
|
-
children: [
|
|
44044
|
-
t1,
|
|
44045
|
-
/* @__PURE__ */ _jsxs18(Box12, {
|
|
44046
|
-
children: [
|
|
44047
|
-
t2,
|
|
44048
|
-
children,
|
|
44049
|
-
t3
|
|
44050
|
-
]
|
|
44051
|
-
})
|
|
44052
|
-
]
|
|
44053
|
-
});
|
|
44054
|
-
$[4] = children;
|
|
44055
|
-
$[5] = t2;
|
|
44056
|
-
$[6] = t4;
|
|
44057
|
-
} else {
|
|
44058
|
-
t4 = $[6];
|
|
44059
|
-
}
|
|
44060
|
-
return t4;
|
|
44159
|
+
return t1;
|
|
44061
44160
|
};
|
|
44062
|
-
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
44063
|
-
import { jsx as _jsx63, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44064
44161
|
var Progress = function() {
|
|
44065
44162
|
var $ = _c62(3);
|
|
44066
44163
|
var latestMessage = useLatestMessage().latestMessage;
|
|
@@ -44095,7 +44192,7 @@ var Progress = function() {
|
|
|
44095
44192
|
if (isStartingSkeletonVisible) {
|
|
44096
44193
|
var t1;
|
|
44097
44194
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44098
|
-
t1 = /* @__PURE__ */ _jsx63(
|
|
44195
|
+
t1 = /* @__PURE__ */ _jsx63(StartingSkeleton2, {});
|
|
44099
44196
|
$[0] = t1;
|
|
44100
44197
|
} else {
|
|
44101
44198
|
t1 = $[0];
|
|
@@ -44105,11 +44202,7 @@ var Progress = function() {
|
|
|
44105
44202
|
if (isMutatingMessage) {
|
|
44106
44203
|
var _t;
|
|
44107
44204
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44108
|
-
_t = /* @__PURE__ */ _jsx63(
|
|
44109
|
-
flexShrink: "0",
|
|
44110
|
-
height: "24px",
|
|
44111
|
-
width: "24px"
|
|
44112
|
-
});
|
|
44205
|
+
_t = /* @__PURE__ */ _jsx63(MessageGroup.AssistantAvatar.Root, {});
|
|
44113
44206
|
$[1] = _t;
|
|
44114
44207
|
} else {
|
|
44115
44208
|
_t = $[1];
|
|
@@ -44120,7 +44213,7 @@ var Progress = function() {
|
|
|
44120
44213
|
children: [
|
|
44121
44214
|
_t,
|
|
44122
44215
|
/* @__PURE__ */ _jsx63(Box13, {
|
|
44123
|
-
children: /* @__PURE__ */ _jsx63(
|
|
44216
|
+
children: /* @__PURE__ */ _jsx63(StartingContentSkeleton2, {})
|
|
44124
44217
|
})
|
|
44125
44218
|
]
|
|
44126
44219
|
});
|
|
@@ -44134,7 +44227,7 @@ var Progress = function() {
|
|
|
44134
44227
|
};
|
|
44135
44228
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44136
44229
|
import { c as _c63 } from "react-compiler-runtime";
|
|
44137
|
-
import { Flex as
|
|
44230
|
+
import { Flex as Flex17 } from "@radix-ui/themes";
|
|
44138
44231
|
// src/hooks/misc/useInfiniteScroll/index.tsx
|
|
44139
44232
|
import { useRef as useRef3 } from "react";
|
|
44140
44233
|
import { useInView } from "react-intersection-observer";
|
|
@@ -44187,7 +44280,7 @@ var useInfiniteScroll = function(_ref) {
|
|
|
44187
44280
|
};
|
|
44188
44281
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44189
44282
|
import { jsx as _jsx64, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
44190
|
-
function
|
|
44283
|
+
function ownKeys27(e, r) {
|
|
44191
44284
|
var t = Object.keys(e);
|
|
44192
44285
|
if (Object.getOwnPropertySymbols) {
|
|
44193
44286
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44197,30 +44290,30 @@ function ownKeys26(e, r) {
|
|
|
44197
44290
|
}
|
|
44198
44291
|
return t;
|
|
44199
44292
|
}
|
|
44200
|
-
function
|
|
44293
|
+
function _objectSpread27(e) {
|
|
44201
44294
|
for(var r = 1; r < arguments.length; r++){
|
|
44202
44295
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44203
|
-
r % 2 ?
|
|
44204
|
-
|
|
44205
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44296
|
+
r % 2 ? ownKeys27(Object(t), true).forEach(function(r2) {
|
|
44297
|
+
_defineProperty27(e, r2, t[r2]);
|
|
44298
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys27(Object(t)).forEach(function(r2) {
|
|
44206
44299
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44207
44300
|
});
|
|
44208
44301
|
}
|
|
44209
44302
|
return e;
|
|
44210
44303
|
}
|
|
44211
|
-
function
|
|
44212
|
-
return (r =
|
|
44304
|
+
function _defineProperty27(e, r, t) {
|
|
44305
|
+
return (r = _toPropertyKey27(r)) in e ? Object.defineProperty(e, r, {
|
|
44213
44306
|
value: t,
|
|
44214
44307
|
enumerable: true,
|
|
44215
44308
|
configurable: true,
|
|
44216
44309
|
writable: true
|
|
44217
44310
|
}) : e[r] = t, e;
|
|
44218
44311
|
}
|
|
44219
|
-
function
|
|
44220
|
-
var i =
|
|
44312
|
+
function _toPropertyKey27(t) {
|
|
44313
|
+
var i = _toPrimitive27(t, "string");
|
|
44221
44314
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44222
44315
|
}
|
|
44223
|
-
function
|
|
44316
|
+
function _toPrimitive27(t, r) {
|
|
44224
44317
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44225
44318
|
var e = t[Symbol.toPrimitive];
|
|
44226
44319
|
if (void 0 !== e) {
|
|
@@ -44230,7 +44323,7 @@ function _toPrimitive26(t, r) {
|
|
|
44230
44323
|
}
|
|
44231
44324
|
return ("string" === r ? String : Number)(t);
|
|
44232
44325
|
}
|
|
44233
|
-
var
|
|
44326
|
+
var Root5 = function(t0) {
|
|
44234
44327
|
var $ = _c63(18);
|
|
44235
44328
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44236
44329
|
var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
|
|
@@ -44259,7 +44352,7 @@ var Root4 = function(t0) {
|
|
|
44259
44352
|
}
|
|
44260
44353
|
var t3;
|
|
44261
44354
|
if ($[6] !== t2) {
|
|
44262
|
-
t3 =
|
|
44355
|
+
t3 = _objectSpread27({
|
|
44263
44356
|
overflow: "auto"
|
|
44264
44357
|
}, t2);
|
|
44265
44358
|
$[6] = t2;
|
|
@@ -44269,7 +44362,7 @@ var Root4 = function(t0) {
|
|
|
44269
44362
|
}
|
|
44270
44363
|
var t4;
|
|
44271
44364
|
if ($[8] !== hasNextPage || $[9] !== loaderRef) {
|
|
44272
|
-
t4 = hasNextPage && /* @__PURE__ */ _jsx64(
|
|
44365
|
+
t4 = hasNextPage && /* @__PURE__ */ _jsx64(Flex17, {
|
|
44273
44366
|
ref: loaderRef
|
|
44274
44367
|
});
|
|
44275
44368
|
$[8] = hasNextPage;
|
|
@@ -44280,7 +44373,7 @@ var Root4 = function(t0) {
|
|
|
44280
44373
|
}
|
|
44281
44374
|
var t5;
|
|
44282
44375
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44283
|
-
t5 = /* @__PURE__ */ _jsx64(
|
|
44376
|
+
t5 = /* @__PURE__ */ _jsx64(Flex17, {
|
|
44284
44377
|
flexShrink: "0",
|
|
44285
44378
|
flexGrow: "1"
|
|
44286
44379
|
});
|
|
@@ -44290,7 +44383,7 @@ var Root4 = function(t0) {
|
|
|
44290
44383
|
}
|
|
44291
44384
|
var t6;
|
|
44292
44385
|
if ($[12] !== children || $[13] !== className || $[14] !== containerRef || $[15] !== t3 || $[16] !== t4) {
|
|
44293
|
-
t6 = /* @__PURE__ */ _jsxs20(
|
|
44386
|
+
t6 = /* @__PURE__ */ _jsxs20(Flex17, {
|
|
44294
44387
|
ref: containerRef,
|
|
44295
44388
|
direction: "column-reverse",
|
|
44296
44389
|
flexGrow: "1",
|
|
@@ -44339,7 +44432,7 @@ var Messages2 = function(t0) {
|
|
|
44339
44432
|
var t1;
|
|
44340
44433
|
var t2;
|
|
44341
44434
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44342
|
-
t1 = /* @__PURE__ */ _jsx66(
|
|
44435
|
+
t1 = /* @__PURE__ */ _jsx66(Flex18, {
|
|
44343
44436
|
flexShrink: "0",
|
|
44344
44437
|
height: "var(--space-3)"
|
|
44345
44438
|
});
|
|
@@ -44356,7 +44449,7 @@ var Messages2 = function(t0) {
|
|
|
44356
44449
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44357
44450
|
t3 = /* @__PURE__ */ _jsx66(Content6, {});
|
|
44358
44451
|
t4 = /* @__PURE__ */ _jsx66(NextPageSkeleton, {});
|
|
44359
|
-
t5 = /* @__PURE__ */ _jsx66(
|
|
44452
|
+
t5 = /* @__PURE__ */ _jsx66(Flex18, {
|
|
44360
44453
|
flexShrink: "0",
|
|
44361
44454
|
flexGrow: "1",
|
|
44362
44455
|
minHeight: "var(--space-5)"
|
|
@@ -44371,7 +44464,7 @@ var Messages2 = function(t0) {
|
|
|
44371
44464
|
}
|
|
44372
44465
|
var t6;
|
|
44373
44466
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
44374
|
-
t6 = /* @__PURE__ */ _jsxs21(
|
|
44467
|
+
t6 = /* @__PURE__ */ _jsxs21(Root5, {
|
|
44375
44468
|
style: style,
|
|
44376
44469
|
className: className,
|
|
44377
44470
|
children: [
|
|
@@ -44392,7 +44485,7 @@ var Messages2 = function(t0) {
|
|
|
44392
44485
|
}
|
|
44393
44486
|
return t6;
|
|
44394
44487
|
};
|
|
44395
|
-
Messages2.Root =
|
|
44488
|
+
Messages2.Root = Root5;
|
|
44396
44489
|
Messages2.Message = Message;
|
|
44397
44490
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44398
44491
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
@@ -44400,7 +44493,7 @@ import { c as _c71 } from "react-compiler-runtime";
|
|
|
44400
44493
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44401
44494
|
import { c as _c66 } from "react-compiler-runtime";
|
|
44402
44495
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
44403
|
-
import { IconButton as IconButton5, Flex as
|
|
44496
|
+
import { IconButton as IconButton5, Flex as Flex19 } from "@radix-ui/themes";
|
|
44404
44497
|
// src/hooks/messages/useMessageFormContext/index.ts
|
|
44405
44498
|
import { useContext as useContext15 } from "react";
|
|
44406
44499
|
// src/contexts/messages/MessageFormContext/index.ts
|
|
@@ -44419,7 +44512,7 @@ var useMessageFormContext = function() {
|
|
|
44419
44512
|
};
|
|
44420
44513
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44421
44514
|
import { jsx as _jsx67 } from "react/jsx-runtime";
|
|
44422
|
-
function
|
|
44515
|
+
function ownKeys28(e, r) {
|
|
44423
44516
|
var t = Object.keys(e);
|
|
44424
44517
|
if (Object.getOwnPropertySymbols) {
|
|
44425
44518
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44429,30 +44522,30 @@ function ownKeys27(e, r) {
|
|
|
44429
44522
|
}
|
|
44430
44523
|
return t;
|
|
44431
44524
|
}
|
|
44432
|
-
function
|
|
44525
|
+
function _objectSpread28(e) {
|
|
44433
44526
|
for(var r = 1; r < arguments.length; r++){
|
|
44434
44527
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44435
|
-
r % 2 ?
|
|
44436
|
-
|
|
44437
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44528
|
+
r % 2 ? ownKeys28(Object(t), true).forEach(function(r2) {
|
|
44529
|
+
_defineProperty28(e, r2, t[r2]);
|
|
44530
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys28(Object(t)).forEach(function(r2) {
|
|
44438
44531
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44439
44532
|
});
|
|
44440
44533
|
}
|
|
44441
44534
|
return e;
|
|
44442
44535
|
}
|
|
44443
|
-
function
|
|
44444
|
-
return (r =
|
|
44536
|
+
function _defineProperty28(e, r, t) {
|
|
44537
|
+
return (r = _toPropertyKey28(r)) in e ? Object.defineProperty(e, r, {
|
|
44445
44538
|
value: t,
|
|
44446
44539
|
enumerable: true,
|
|
44447
44540
|
configurable: true,
|
|
44448
44541
|
writable: true
|
|
44449
44542
|
}) : e[r] = t, e;
|
|
44450
44543
|
}
|
|
44451
|
-
function
|
|
44452
|
-
var i =
|
|
44544
|
+
function _toPropertyKey28(t) {
|
|
44545
|
+
var i = _toPrimitive28(t, "string");
|
|
44453
44546
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44454
44547
|
}
|
|
44455
|
-
function
|
|
44548
|
+
function _toPrimitive28(t, r) {
|
|
44456
44549
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44457
44550
|
var e = t[Symbol.toPrimitive];
|
|
44458
44551
|
if (void 0 !== e) {
|
|
@@ -44462,12 +44555,12 @@ function _toPrimitive27(t, r) {
|
|
|
44462
44555
|
}
|
|
44463
44556
|
return ("string" === r ? String : Number)(t);
|
|
44464
44557
|
}
|
|
44465
|
-
var
|
|
44558
|
+
var Root6 = function(t0) {
|
|
44466
44559
|
var $ = _c66(4);
|
|
44467
44560
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44468
44561
|
var t1;
|
|
44469
44562
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44470
|
-
t1 = /* @__PURE__ */ _jsx67(
|
|
44563
|
+
t1 = /* @__PURE__ */ _jsx67(Flex19, {
|
|
44471
44564
|
flexShrink: "0",
|
|
44472
44565
|
align: "end",
|
|
44473
44566
|
style: style,
|
|
@@ -44508,7 +44601,7 @@ var Button3 = function(props) {
|
|
|
44508
44601
|
}
|
|
44509
44602
|
var _t3;
|
|
44510
44603
|
if ($[3] !== props || $[4] !== _t) {
|
|
44511
|
-
_t3 = /* @__PURE__ */ _jsx67(IconButton5,
|
|
44604
|
+
_t3 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread28(_objectSpread28({
|
|
44512
44605
|
type: "button",
|
|
44513
44606
|
onClick: _t
|
|
44514
44607
|
}, props), {}, {
|
|
@@ -44532,7 +44625,7 @@ var Button3 = function(props) {
|
|
|
44532
44625
|
}
|
|
44533
44626
|
var t2;
|
|
44534
44627
|
if ($[7] !== props || $[8] !== t0) {
|
|
44535
|
-
t2 = /* @__PURE__ */ _jsx67(IconButton5,
|
|
44628
|
+
t2 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread28(_objectSpread28({
|
|
44536
44629
|
type: "submit",
|
|
44537
44630
|
disabled: t0
|
|
44538
44631
|
}, props), {}, {
|
|
@@ -44557,7 +44650,7 @@ var Submit = function(props) {
|
|
|
44557
44650
|
}
|
|
44558
44651
|
var t1;
|
|
44559
44652
|
if ($[1] !== props) {
|
|
44560
|
-
t1 = /* @__PURE__ */ _jsx67(
|
|
44653
|
+
t1 = /* @__PURE__ */ _jsx67(Root6, _objectSpread28(_objectSpread28({}, props), {}, {
|
|
44561
44654
|
children: t0
|
|
44562
44655
|
}));
|
|
44563
44656
|
$[1] = props;
|
|
@@ -44567,7 +44660,7 @@ var Submit = function(props) {
|
|
|
44567
44660
|
}
|
|
44568
44661
|
return t1;
|
|
44569
44662
|
};
|
|
44570
|
-
Submit.Root =
|
|
44663
|
+
Submit.Root = Root6;
|
|
44571
44664
|
Submit.Button = Button3;
|
|
44572
44665
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44573
44666
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
@@ -44586,7 +44679,7 @@ var formOptions = {
|
|
|
44586
44679
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44587
44680
|
import { partob } from "radash";
|
|
44588
44681
|
import { jsx as _jsx68 } from "react/jsx-runtime";
|
|
44589
|
-
function
|
|
44682
|
+
function ownKeys29(e, r) {
|
|
44590
44683
|
var t = Object.keys(e);
|
|
44591
44684
|
if (Object.getOwnPropertySymbols) {
|
|
44592
44685
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44596,30 +44689,30 @@ function ownKeys28(e, r) {
|
|
|
44596
44689
|
}
|
|
44597
44690
|
return t;
|
|
44598
44691
|
}
|
|
44599
|
-
function
|
|
44692
|
+
function _objectSpread29(e) {
|
|
44600
44693
|
for(var r = 1; r < arguments.length; r++){
|
|
44601
44694
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44602
|
-
r % 2 ?
|
|
44603
|
-
|
|
44604
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44695
|
+
r % 2 ? ownKeys29(Object(t), true).forEach(function(r2) {
|
|
44696
|
+
_defineProperty29(e, r2, t[r2]);
|
|
44697
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys29(Object(t)).forEach(function(r2) {
|
|
44605
44698
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44606
44699
|
});
|
|
44607
44700
|
}
|
|
44608
44701
|
return e;
|
|
44609
44702
|
}
|
|
44610
|
-
function
|
|
44611
|
-
return (r =
|
|
44703
|
+
function _defineProperty29(e, r, t) {
|
|
44704
|
+
return (r = _toPropertyKey29(r)) in e ? Object.defineProperty(e, r, {
|
|
44612
44705
|
value: t,
|
|
44613
44706
|
enumerable: true,
|
|
44614
44707
|
configurable: true,
|
|
44615
44708
|
writable: true
|
|
44616
44709
|
}) : e[r] = t, e;
|
|
44617
44710
|
}
|
|
44618
|
-
function
|
|
44619
|
-
var i =
|
|
44711
|
+
function _toPropertyKey29(t) {
|
|
44712
|
+
var i = _toPrimitive29(t, "string");
|
|
44620
44713
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44621
44714
|
}
|
|
44622
|
-
function
|
|
44715
|
+
function _toPrimitive29(t, r) {
|
|
44623
44716
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44624
44717
|
var e = t[Symbol.toPrimitive];
|
|
44625
44718
|
if (void 0 !== e) {
|
|
@@ -44652,7 +44745,7 @@ function _asyncToGenerator6(n) {
|
|
|
44652
44745
|
});
|
|
44653
44746
|
};
|
|
44654
44747
|
}
|
|
44655
|
-
var
|
|
44748
|
+
var Root7 = function(_ref) {
|
|
44656
44749
|
"use no memo";
|
|
44657
44750
|
var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
|
|
44658
44751
|
var _useState4 = _sliced_to_array(useState4([]), 2), files = _useState4[0], setFiles = _useState4[1];
|
|
@@ -44725,7 +44818,7 @@ var Root6 = function(_ref) {
|
|
|
44725
44818
|
});
|
|
44726
44819
|
return [
|
|
44727
44820
|
4,
|
|
44728
|
-
createMessage(
|
|
44821
|
+
createMessage(_objectSpread29({
|
|
44729
44822
|
// @ts-ignore-next-line
|
|
44730
44823
|
content: data2.content
|
|
44731
44824
|
}, attachments.length ? {
|
|
@@ -44754,7 +44847,7 @@ var Root6 = function(_ref) {
|
|
|
44754
44847
|
isFileLoading: isFileLoading,
|
|
44755
44848
|
content: content2
|
|
44756
44849
|
},
|
|
44757
|
-
children: /* @__PURE__ */ _jsx68(FormProvider,
|
|
44850
|
+
children: /* @__PURE__ */ _jsx68(FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
|
|
44758
44851
|
children: /* @__PURE__ */ _jsx68(Box14, {
|
|
44759
44852
|
asChild: true,
|
|
44760
44853
|
flexShrink: "0",
|
|
@@ -44770,10 +44863,10 @@ var Root6 = function(_ref) {
|
|
|
44770
44863
|
};
|
|
44771
44864
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
44772
44865
|
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
44773
|
-
import { Container as RadixContainer, Flex as
|
|
44866
|
+
import { Container as RadixContainer, Flex as Flex23 } from "@radix-ui/themes";
|
|
44774
44867
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44775
44868
|
import { c as _c68 } from "react-compiler-runtime";
|
|
44776
|
-
import { Flex as
|
|
44869
|
+
import { Flex as Flex20 } from "@radix-ui/themes";
|
|
44777
44870
|
import { useFormContext } from "react-hook-form";
|
|
44778
44871
|
// src/hooks/misc/usePrevious.ts
|
|
44779
44872
|
import { useEffect as useEffect5, useRef as useRef4 } from "react";
|
|
@@ -44795,7 +44888,7 @@ var _excluded3 = [
|
|
|
44795
44888
|
"style",
|
|
44796
44889
|
"className"
|
|
44797
44890
|
];
|
|
44798
|
-
function
|
|
44891
|
+
function ownKeys30(e, r) {
|
|
44799
44892
|
var t = Object.keys(e);
|
|
44800
44893
|
if (Object.getOwnPropertySymbols) {
|
|
44801
44894
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44805,30 +44898,30 @@ function ownKeys29(e, r) {
|
|
|
44805
44898
|
}
|
|
44806
44899
|
return t;
|
|
44807
44900
|
}
|
|
44808
|
-
function
|
|
44901
|
+
function _objectSpread30(e) {
|
|
44809
44902
|
for(var r = 1; r < arguments.length; r++){
|
|
44810
44903
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44811
|
-
r % 2 ?
|
|
44812
|
-
|
|
44813
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44904
|
+
r % 2 ? ownKeys30(Object(t), true).forEach(function(r2) {
|
|
44905
|
+
_defineProperty30(e, r2, t[r2]);
|
|
44906
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys30(Object(t)).forEach(function(r2) {
|
|
44814
44907
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44815
44908
|
});
|
|
44816
44909
|
}
|
|
44817
44910
|
return e;
|
|
44818
44911
|
}
|
|
44819
|
-
function
|
|
44820
|
-
return (r =
|
|
44912
|
+
function _defineProperty30(e, r, t) {
|
|
44913
|
+
return (r = _toPropertyKey30(r)) in e ? Object.defineProperty(e, r, {
|
|
44821
44914
|
value: t,
|
|
44822
44915
|
enumerable: true,
|
|
44823
44916
|
configurable: true,
|
|
44824
44917
|
writable: true
|
|
44825
44918
|
}) : e[r] = t, e;
|
|
44826
44919
|
}
|
|
44827
|
-
function
|
|
44828
|
-
var i =
|
|
44920
|
+
function _toPropertyKey30(t) {
|
|
44921
|
+
var i = _toPrimitive30(t, "string");
|
|
44829
44922
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44830
44923
|
}
|
|
44831
|
-
function
|
|
44924
|
+
function _toPrimitive30(t, r) {
|
|
44832
44925
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44833
44926
|
var e = t[Symbol.toPrimitive];
|
|
44834
44927
|
if (void 0 !== e) {
|
|
@@ -44896,7 +44989,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44896
44989
|
}
|
|
44897
44990
|
var t4;
|
|
44898
44991
|
if ($[7] !== t3) {
|
|
44899
|
-
t4 =
|
|
44992
|
+
t4 = _objectSpread30({
|
|
44900
44993
|
border: 0,
|
|
44901
44994
|
outline: 0,
|
|
44902
44995
|
boxSizing: "border-box",
|
|
@@ -44915,7 +45008,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44915
45008
|
t5 = /* @__PURE__ */ _jsxs22(_Fragment5, {
|
|
44916
45009
|
children: [
|
|
44917
45010
|
t1,
|
|
44918
|
-
/* @__PURE__ */ _jsx69(TextareaAutosize,
|
|
45011
|
+
/* @__PURE__ */ _jsx69(TextareaAutosize, _objectSpread30({
|
|
44919
45012
|
ref: ref,
|
|
44920
45013
|
className: t2,
|
|
44921
45014
|
style: t4
|
|
@@ -44934,7 +45027,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44934
45027
|
});
|
|
44935
45028
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44936
45029
|
import { jsx as _jsx70 } from "react/jsx-runtime";
|
|
44937
|
-
function
|
|
45030
|
+
function ownKeys31(e, r) {
|
|
44938
45031
|
var t = Object.keys(e);
|
|
44939
45032
|
if (Object.getOwnPropertySymbols) {
|
|
44940
45033
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44944,30 +45037,30 @@ function ownKeys30(e, r) {
|
|
|
44944
45037
|
}
|
|
44945
45038
|
return t;
|
|
44946
45039
|
}
|
|
44947
|
-
function
|
|
45040
|
+
function _objectSpread31(e) {
|
|
44948
45041
|
for(var r = 1; r < arguments.length; r++){
|
|
44949
45042
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44950
|
-
r % 2 ?
|
|
44951
|
-
|
|
44952
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45043
|
+
r % 2 ? ownKeys31(Object(t), true).forEach(function(r2) {
|
|
45044
|
+
_defineProperty31(e, r2, t[r2]);
|
|
45045
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys31(Object(t)).forEach(function(r2) {
|
|
44953
45046
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44954
45047
|
});
|
|
44955
45048
|
}
|
|
44956
45049
|
return e;
|
|
44957
45050
|
}
|
|
44958
|
-
function
|
|
44959
|
-
return (r =
|
|
45051
|
+
function _defineProperty31(e, r, t) {
|
|
45052
|
+
return (r = _toPropertyKey31(r)) in e ? Object.defineProperty(e, r, {
|
|
44960
45053
|
value: t,
|
|
44961
45054
|
enumerable: true,
|
|
44962
45055
|
configurable: true,
|
|
44963
45056
|
writable: true
|
|
44964
45057
|
}) : e[r] = t, e;
|
|
44965
45058
|
}
|
|
44966
|
-
function
|
|
44967
|
-
var i =
|
|
45059
|
+
function _toPropertyKey31(t) {
|
|
45060
|
+
var i = _toPrimitive31(t, "string");
|
|
44968
45061
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44969
45062
|
}
|
|
44970
|
-
function
|
|
45063
|
+
function _toPrimitive31(t, r) {
|
|
44971
45064
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44972
45065
|
var e = t[Symbol.toPrimitive];
|
|
44973
45066
|
if (void 0 !== e) {
|
|
@@ -44977,12 +45070,12 @@ function _toPrimitive30(t, r) {
|
|
|
44977
45070
|
}
|
|
44978
45071
|
return ("string" === r ? String : Number)(t);
|
|
44979
45072
|
}
|
|
44980
|
-
var
|
|
45073
|
+
var Root8 = function(t0) {
|
|
44981
45074
|
var $ = _c68(4);
|
|
44982
45075
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44983
45076
|
var t1;
|
|
44984
45077
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44985
|
-
t1 = /* @__PURE__ */ _jsx70(
|
|
45078
|
+
t1 = /* @__PURE__ */ _jsx70(Flex20, {
|
|
44986
45079
|
flexGrow: "1",
|
|
44987
45080
|
pt: "4px",
|
|
44988
45081
|
style: style,
|
|
@@ -45023,7 +45116,7 @@ var Input = function(props) {
|
|
|
45023
45116
|
isDisabledPrevious,
|
|
45024
45117
|
textareaProps
|
|
45025
45118
|
]);
|
|
45026
|
-
return /* @__PURE__ */ _jsx70(TextareaBase,
|
|
45119
|
+
return /* @__PURE__ */ _jsx70(TextareaBase, _objectSpread31(_objectSpread31(_objectSpread31({
|
|
45027
45120
|
minRows: 1,
|
|
45028
45121
|
placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
|
|
45029
45122
|
disabled: isDisabled,
|
|
@@ -45053,7 +45146,7 @@ var Control = function(props) {
|
|
|
45053
45146
|
}
|
|
45054
45147
|
var t1;
|
|
45055
45148
|
if ($[1] !== props) {
|
|
45056
|
-
t1 = /* @__PURE__ */ _jsx70(
|
|
45149
|
+
t1 = /* @__PURE__ */ _jsx70(Root8, _objectSpread31(_objectSpread31({}, props), {}, {
|
|
45057
45150
|
children: t0
|
|
45058
45151
|
}));
|
|
45059
45152
|
$[1] = props;
|
|
@@ -45063,14 +45156,14 @@ var Control = function(props) {
|
|
|
45063
45156
|
}
|
|
45064
45157
|
return t1;
|
|
45065
45158
|
};
|
|
45066
|
-
Control.Root =
|
|
45159
|
+
Control.Root = Root8;
|
|
45067
45160
|
Control.Input = Input;
|
|
45068
45161
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
45069
45162
|
import { c as _c69 } from "react-compiler-runtime";
|
|
45070
|
-
import { Flex as
|
|
45163
|
+
import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
45071
45164
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
45072
45165
|
import { jsx as _jsx71, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
45073
|
-
function
|
|
45166
|
+
function ownKeys32(e, r) {
|
|
45074
45167
|
var t = Object.keys(e);
|
|
45075
45168
|
if (Object.getOwnPropertySymbols) {
|
|
45076
45169
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45080,30 +45173,30 @@ function ownKeys31(e, r) {
|
|
|
45080
45173
|
}
|
|
45081
45174
|
return t;
|
|
45082
45175
|
}
|
|
45083
|
-
function
|
|
45176
|
+
function _objectSpread32(e) {
|
|
45084
45177
|
for(var r = 1; r < arguments.length; r++){
|
|
45085
45178
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45086
|
-
r % 2 ?
|
|
45087
|
-
|
|
45088
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45179
|
+
r % 2 ? ownKeys32(Object(t), true).forEach(function(r2) {
|
|
45180
|
+
_defineProperty32(e, r2, t[r2]);
|
|
45181
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys32(Object(t)).forEach(function(r2) {
|
|
45089
45182
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45090
45183
|
});
|
|
45091
45184
|
}
|
|
45092
45185
|
return e;
|
|
45093
45186
|
}
|
|
45094
|
-
function
|
|
45095
|
-
return (r =
|
|
45187
|
+
function _defineProperty32(e, r, t) {
|
|
45188
|
+
return (r = _toPropertyKey32(r)) in e ? Object.defineProperty(e, r, {
|
|
45096
45189
|
value: t,
|
|
45097
45190
|
enumerable: true,
|
|
45098
45191
|
configurable: true,
|
|
45099
45192
|
writable: true
|
|
45100
45193
|
}) : e[r] = t, e;
|
|
45101
45194
|
}
|
|
45102
|
-
function
|
|
45103
|
-
var i =
|
|
45195
|
+
function _toPropertyKey32(t) {
|
|
45196
|
+
var i = _toPrimitive32(t, "string");
|
|
45104
45197
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45105
45198
|
}
|
|
45106
|
-
function
|
|
45199
|
+
function _toPrimitive32(t, r) {
|
|
45107
45200
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45108
45201
|
var e = t[Symbol.toPrimitive];
|
|
45109
45202
|
if (void 0 !== e) {
|
|
@@ -45126,19 +45219,19 @@ var Preview = function(props) {
|
|
|
45126
45219
|
_t = function(file) {
|
|
45127
45220
|
return /* @__PURE__ */ _jsx71(Card2, {
|
|
45128
45221
|
variant: "ghost",
|
|
45129
|
-
children: /* @__PURE__ */ _jsxs23(
|
|
45222
|
+
children: /* @__PURE__ */ _jsxs23(Flex21, {
|
|
45130
45223
|
align: "center",
|
|
45131
45224
|
justify: "between",
|
|
45132
45225
|
gap: "1",
|
|
45133
45226
|
children: [
|
|
45134
|
-
/* @__PURE__ */ _jsxs23(
|
|
45227
|
+
/* @__PURE__ */ _jsxs23(Flex21, {
|
|
45135
45228
|
align: "center",
|
|
45136
45229
|
gap: "1",
|
|
45137
45230
|
flexShrink: "1",
|
|
45138
45231
|
minWidth: "0",
|
|
45139
45232
|
maxWidth: "250px",
|
|
45140
45233
|
children: [
|
|
45141
|
-
/* @__PURE__ */ _jsx71(
|
|
45234
|
+
/* @__PURE__ */ _jsx71(Flex21, {
|
|
45142
45235
|
flexShrink: "0",
|
|
45143
45236
|
children: /* @__PURE__ */ _jsx71(Spinner2, {
|
|
45144
45237
|
loading: isOptimistic({
|
|
@@ -45155,7 +45248,7 @@ var Preview = function(props) {
|
|
|
45155
45248
|
})
|
|
45156
45249
|
]
|
|
45157
45250
|
}),
|
|
45158
|
-
/* @__PURE__ */ _jsx71(
|
|
45251
|
+
/* @__PURE__ */ _jsx71(Flex21, {
|
|
45159
45252
|
flexShrink: "0",
|
|
45160
45253
|
children: /* @__PURE__ */ _jsx71(IconButton6, {
|
|
45161
45254
|
onClick: function() {
|
|
@@ -45189,7 +45282,7 @@ var Preview = function(props) {
|
|
|
45189
45282
|
}
|
|
45190
45283
|
var t1;
|
|
45191
45284
|
if ($[5] !== props || $[6] !== t0) {
|
|
45192
|
-
t1 = /* @__PURE__ */ _jsx71(
|
|
45285
|
+
t1 = /* @__PURE__ */ _jsx71(Flex21, _objectSpread32(_objectSpread32({
|
|
45193
45286
|
flexBasis: "100%",
|
|
45194
45287
|
direction: "column",
|
|
45195
45288
|
pb: "2",
|
|
@@ -45210,7 +45303,7 @@ import { useCallback as useCallback3 } from "react";
|
|
|
45210
45303
|
import { omit as omit4 } from "radash";
|
|
45211
45304
|
import dayjs2 from "dayjs";
|
|
45212
45305
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45213
|
-
import { IconButton as IconButton7, Flex as
|
|
45306
|
+
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
45214
45307
|
// src/hooks/files/useCreateFile/index.ts
|
|
45215
45308
|
import { c as _c70 } from "react-compiler-runtime";
|
|
45216
45309
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
@@ -45223,7 +45316,7 @@ var formData = function(variables) {
|
|
|
45223
45316
|
return data2;
|
|
45224
45317
|
};
|
|
45225
45318
|
// src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/index.ts
|
|
45226
|
-
function
|
|
45319
|
+
function ownKeys33(e, r) {
|
|
45227
45320
|
var t = Object.keys(e);
|
|
45228
45321
|
if (Object.getOwnPropertySymbols) {
|
|
45229
45322
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45233,30 +45326,30 @@ function ownKeys32(e, r) {
|
|
|
45233
45326
|
}
|
|
45234
45327
|
return t;
|
|
45235
45328
|
}
|
|
45236
|
-
function
|
|
45329
|
+
function _objectSpread33(e) {
|
|
45237
45330
|
for(var r = 1; r < arguments.length; r++){
|
|
45238
45331
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45239
|
-
r % 2 ?
|
|
45240
|
-
|
|
45241
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45332
|
+
r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
|
|
45333
|
+
_defineProperty33(e, r2, t[r2]);
|
|
45334
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
|
|
45242
45335
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45243
45336
|
});
|
|
45244
45337
|
}
|
|
45245
45338
|
return e;
|
|
45246
45339
|
}
|
|
45247
|
-
function
|
|
45248
|
-
return (r =
|
|
45340
|
+
function _defineProperty33(e, r, t) {
|
|
45341
|
+
return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
|
|
45249
45342
|
value: t,
|
|
45250
45343
|
enumerable: true,
|
|
45251
45344
|
configurable: true,
|
|
45252
45345
|
writable: true
|
|
45253
45346
|
}) : e[r] = t, e;
|
|
45254
45347
|
}
|
|
45255
|
-
function
|
|
45256
|
-
var i =
|
|
45348
|
+
function _toPropertyKey33(t) {
|
|
45349
|
+
var i = _toPrimitive33(t, "string");
|
|
45257
45350
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45258
45351
|
}
|
|
45259
|
-
function
|
|
45352
|
+
function _toPrimitive33(t, r) {
|
|
45260
45353
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45261
45354
|
var e = t[Symbol.toPrimitive];
|
|
45262
45355
|
if (void 0 !== e) {
|
|
@@ -45276,7 +45369,7 @@ var body2 = function(_ref) {
|
|
|
45276
45369
|
assistantId: variables.assistantId
|
|
45277
45370
|
});
|
|
45278
45371
|
if (!threadId) return formData(variables);
|
|
45279
|
-
return formData(
|
|
45372
|
+
return formData(_objectSpread33(_objectSpread33({}, variables), {}, {
|
|
45280
45373
|
threadId: threadId
|
|
45281
45374
|
}));
|
|
45282
45375
|
};
|
|
@@ -45343,7 +45436,7 @@ var mutationFn2 = function(_ref) {
|
|
|
45343
45436
|
}();
|
|
45344
45437
|
};
|
|
45345
45438
|
// src/hooks/files/useCreateFile/lib/mutationOptions/index.ts
|
|
45346
|
-
function
|
|
45439
|
+
function ownKeys34(e, r) {
|
|
45347
45440
|
var t = Object.keys(e);
|
|
45348
45441
|
if (Object.getOwnPropertySymbols) {
|
|
45349
45442
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45353,30 +45446,30 @@ function ownKeys33(e, r) {
|
|
|
45353
45446
|
}
|
|
45354
45447
|
return t;
|
|
45355
45448
|
}
|
|
45356
|
-
function
|
|
45449
|
+
function _objectSpread34(e) {
|
|
45357
45450
|
for(var r = 1; r < arguments.length; r++){
|
|
45358
45451
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45359
|
-
r % 2 ?
|
|
45360
|
-
|
|
45361
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45452
|
+
r % 2 ? ownKeys34(Object(t), true).forEach(function(r2) {
|
|
45453
|
+
_defineProperty34(e, r2, t[r2]);
|
|
45454
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys34(Object(t)).forEach(function(r2) {
|
|
45362
45455
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45363
45456
|
});
|
|
45364
45457
|
}
|
|
45365
45458
|
return e;
|
|
45366
45459
|
}
|
|
45367
|
-
function
|
|
45368
|
-
return (r =
|
|
45460
|
+
function _defineProperty34(e, r, t) {
|
|
45461
|
+
return (r = _toPropertyKey34(r)) in e ? Object.defineProperty(e, r, {
|
|
45369
45462
|
value: t,
|
|
45370
45463
|
enumerable: true,
|
|
45371
45464
|
configurable: true,
|
|
45372
45465
|
writable: true
|
|
45373
45466
|
}) : e[r] = t, e;
|
|
45374
45467
|
}
|
|
45375
|
-
function
|
|
45376
|
-
var i =
|
|
45468
|
+
function _toPropertyKey34(t) {
|
|
45469
|
+
var i = _toPrimitive34(t, "string");
|
|
45377
45470
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45378
45471
|
}
|
|
45379
|
-
function
|
|
45472
|
+
function _toPrimitive34(t, r) {
|
|
45380
45473
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45381
45474
|
var e = t[Symbol.toPrimitive];
|
|
45382
45475
|
if (void 0 !== e) {
|
|
@@ -45392,7 +45485,7 @@ var mutationOptions2 = function(_ref) {
|
|
|
45392
45485
|
"createFile",
|
|
45393
45486
|
threadContext.variables
|
|
45394
45487
|
];
|
|
45395
|
-
return
|
|
45488
|
+
return _objectSpread34(_objectSpread34(_objectSpread34({
|
|
45396
45489
|
mutationFn: mutationFn2({
|
|
45397
45490
|
queryClient: queryClient,
|
|
45398
45491
|
superinterfaceContext: superinterfaceContext,
|
|
@@ -45404,7 +45497,7 @@ var mutationOptions2 = function(_ref) {
|
|
|
45404
45497
|
});
|
|
45405
45498
|
};
|
|
45406
45499
|
// src/hooks/files/useCreateFile/index.ts
|
|
45407
|
-
function
|
|
45500
|
+
function ownKeys35(e, r) {
|
|
45408
45501
|
var t = Object.keys(e);
|
|
45409
45502
|
if (Object.getOwnPropertySymbols) {
|
|
45410
45503
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45414,30 +45507,30 @@ function ownKeys34(e, r) {
|
|
|
45414
45507
|
}
|
|
45415
45508
|
return t;
|
|
45416
45509
|
}
|
|
45417
|
-
function
|
|
45510
|
+
function _objectSpread35(e) {
|
|
45418
45511
|
for(var r = 1; r < arguments.length; r++){
|
|
45419
45512
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45420
|
-
r % 2 ?
|
|
45421
|
-
|
|
45422
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45513
|
+
r % 2 ? ownKeys35(Object(t), true).forEach(function(r2) {
|
|
45514
|
+
_defineProperty35(e, r2, t[r2]);
|
|
45515
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys35(Object(t)).forEach(function(r2) {
|
|
45423
45516
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45424
45517
|
});
|
|
45425
45518
|
}
|
|
45426
45519
|
return e;
|
|
45427
45520
|
}
|
|
45428
|
-
function
|
|
45429
|
-
return (r =
|
|
45521
|
+
function _defineProperty35(e, r, t) {
|
|
45522
|
+
return (r = _toPropertyKey35(r)) in e ? Object.defineProperty(e, r, {
|
|
45430
45523
|
value: t,
|
|
45431
45524
|
enumerable: true,
|
|
45432
45525
|
configurable: true,
|
|
45433
45526
|
writable: true
|
|
45434
45527
|
}) : e[r] = t, e;
|
|
45435
45528
|
}
|
|
45436
|
-
function
|
|
45437
|
-
var i =
|
|
45529
|
+
function _toPropertyKey35(t) {
|
|
45530
|
+
var i = _toPrimitive35(t, "string");
|
|
45438
45531
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45439
45532
|
}
|
|
45440
|
-
function
|
|
45533
|
+
function _toPrimitive35(t, r) {
|
|
45441
45534
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45442
45535
|
var e = t[Symbol.toPrimitive];
|
|
45443
45536
|
if (void 0 !== e) {
|
|
@@ -45499,7 +45592,7 @@ var useCreateFile = function(t0) {
|
|
|
45499
45592
|
var args = t62;
|
|
45500
45593
|
var _args = _to_array(args), firstArg = _args[0], restArgs = _args.slice(1);
|
|
45501
45594
|
return (_props = props).mutateAsync.apply(_props, [
|
|
45502
|
-
|
|
45595
|
+
_objectSpread35(_objectSpread35({}, threadContext.variables), firstArg)
|
|
45503
45596
|
].concat(_to_consumable_array(restArgs)));
|
|
45504
45597
|
};
|
|
45505
45598
|
$[9] = props;
|
|
@@ -45510,7 +45603,7 @@ var useCreateFile = function(t0) {
|
|
|
45510
45603
|
}
|
|
45511
45604
|
var t6;
|
|
45512
45605
|
if ($[12] !== props || $[13] !== t5) {
|
|
45513
|
-
t6 =
|
|
45606
|
+
t6 = _objectSpread35(_objectSpread35({}, props), {}, {
|
|
45514
45607
|
createFile: t5
|
|
45515
45608
|
});
|
|
45516
45609
|
$[12] = props;
|
|
@@ -45525,7 +45618,7 @@ function _temp4() {}
|
|
|
45525
45618
|
function _temp23() {}
|
|
45526
45619
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45527
45620
|
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45528
|
-
function
|
|
45621
|
+
function ownKeys36(e, r) {
|
|
45529
45622
|
var t = Object.keys(e);
|
|
45530
45623
|
if (Object.getOwnPropertySymbols) {
|
|
45531
45624
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45535,30 +45628,30 @@ function ownKeys35(e, r) {
|
|
|
45535
45628
|
}
|
|
45536
45629
|
return t;
|
|
45537
45630
|
}
|
|
45538
|
-
function
|
|
45631
|
+
function _objectSpread36(e) {
|
|
45539
45632
|
for(var r = 1; r < arguments.length; r++){
|
|
45540
45633
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45541
|
-
r % 2 ?
|
|
45542
|
-
|
|
45543
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45634
|
+
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45635
|
+
_defineProperty36(e, r2, t[r2]);
|
|
45636
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45544
45637
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45545
45638
|
});
|
|
45546
45639
|
}
|
|
45547
45640
|
return e;
|
|
45548
45641
|
}
|
|
45549
|
-
function
|
|
45550
|
-
return (r =
|
|
45642
|
+
function _defineProperty36(e, r, t) {
|
|
45643
|
+
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45551
45644
|
value: t,
|
|
45552
45645
|
enumerable: true,
|
|
45553
45646
|
configurable: true,
|
|
45554
45647
|
writable: true
|
|
45555
45648
|
}) : e[r] = t, e;
|
|
45556
45649
|
}
|
|
45557
|
-
function
|
|
45558
|
-
var i =
|
|
45650
|
+
function _toPropertyKey36(t) {
|
|
45651
|
+
var i = _toPrimitive36(t, "string");
|
|
45559
45652
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45560
45653
|
}
|
|
45561
|
-
function
|
|
45654
|
+
function _toPrimitive36(t, r) {
|
|
45562
45655
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45563
45656
|
var e = t[Symbol.toPrimitive];
|
|
45564
45657
|
if (void 0 !== e) {
|
|
@@ -45805,7 +45898,7 @@ var Control2 = function(props) {
|
|
|
45805
45898
|
createFile,
|
|
45806
45899
|
setFiles
|
|
45807
45900
|
]);
|
|
45808
|
-
return /* @__PURE__ */ _jsx72(
|
|
45901
|
+
return /* @__PURE__ */ _jsx72(Flex22, _objectSpread36(_objectSpread36({
|
|
45809
45902
|
pt: "2",
|
|
45810
45903
|
pr: "2",
|
|
45811
45904
|
flexGrow: "0"
|
|
@@ -45847,7 +45940,7 @@ var Files = {
|
|
|
45847
45940
|
};
|
|
45848
45941
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
45849
45942
|
import { jsx as _jsx73 } from "react/jsx-runtime";
|
|
45850
|
-
function
|
|
45943
|
+
function ownKeys37(e, r) {
|
|
45851
45944
|
var t = Object.keys(e);
|
|
45852
45945
|
if (Object.getOwnPropertySymbols) {
|
|
45853
45946
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45857,30 +45950,30 @@ function ownKeys36(e, r) {
|
|
|
45857
45950
|
}
|
|
45858
45951
|
return t;
|
|
45859
45952
|
}
|
|
45860
|
-
function
|
|
45953
|
+
function _objectSpread37(e) {
|
|
45861
45954
|
for(var r = 1; r < arguments.length; r++){
|
|
45862
45955
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45863
|
-
r % 2 ?
|
|
45864
|
-
|
|
45865
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45956
|
+
r % 2 ? ownKeys37(Object(t), true).forEach(function(r2) {
|
|
45957
|
+
_defineProperty37(e, r2, t[r2]);
|
|
45958
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys37(Object(t)).forEach(function(r2) {
|
|
45866
45959
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45867
45960
|
});
|
|
45868
45961
|
}
|
|
45869
45962
|
return e;
|
|
45870
45963
|
}
|
|
45871
|
-
function
|
|
45872
|
-
return (r =
|
|
45964
|
+
function _defineProperty37(e, r, t) {
|
|
45965
|
+
return (r = _toPropertyKey37(r)) in e ? Object.defineProperty(e, r, {
|
|
45873
45966
|
value: t,
|
|
45874
45967
|
enumerable: true,
|
|
45875
45968
|
configurable: true,
|
|
45876
45969
|
writable: true
|
|
45877
45970
|
}) : e[r] = t, e;
|
|
45878
45971
|
}
|
|
45879
|
-
function
|
|
45880
|
-
var i =
|
|
45972
|
+
function _toPropertyKey37(t) {
|
|
45973
|
+
var i = _toPrimitive37(t, "string");
|
|
45881
45974
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45882
45975
|
}
|
|
45883
|
-
function
|
|
45976
|
+
function _toPrimitive37(t, r) {
|
|
45884
45977
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45885
45978
|
var e = t[Symbol.toPrimitive];
|
|
45886
45979
|
if (void 0 !== e) {
|
|
@@ -45890,7 +45983,7 @@ function _toPrimitive36(t, r) {
|
|
|
45890
45983
|
}
|
|
45891
45984
|
return ("string" === r ? String : Number)(t);
|
|
45892
45985
|
}
|
|
45893
|
-
var
|
|
45986
|
+
var Root9 = function(_ref) {
|
|
45894
45987
|
"use no memo";
|
|
45895
45988
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
45896
45989
|
var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
|
|
@@ -45899,14 +45992,14 @@ var Root8 = function(_ref) {
|
|
|
45899
45992
|
flexGrow: "0",
|
|
45900
45993
|
className: className,
|
|
45901
45994
|
style: style,
|
|
45902
|
-
children: /* @__PURE__ */ _jsx73(
|
|
45995
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
45903
45996
|
direction: "column",
|
|
45904
45997
|
flexShrink: "0",
|
|
45905
|
-
children: /* @__PURE__ */ _jsx73(
|
|
45998
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
45906
45999
|
direction: "column",
|
|
45907
46000
|
flexShrink: "0",
|
|
45908
|
-
children: /* @__PURE__ */ _jsx73(
|
|
45909
|
-
style:
|
|
46001
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
46002
|
+
style: _objectSpread37({
|
|
45910
46003
|
borderRadius: "var(--radius-2)",
|
|
45911
46004
|
borderWidth: "1px",
|
|
45912
46005
|
borderStyle: "solid",
|
|
@@ -45924,13 +46017,13 @@ var Root8 = function(_ref) {
|
|
|
45924
46017
|
});
|
|
45925
46018
|
};
|
|
45926
46019
|
var Field = {
|
|
45927
|
-
Root:
|
|
46020
|
+
Root: Root9,
|
|
45928
46021
|
Control: Control,
|
|
45929
46022
|
Files: Files
|
|
45930
46023
|
};
|
|
45931
46024
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
45932
46025
|
import { jsx as _jsx74, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
45933
|
-
function
|
|
46026
|
+
function ownKeys38(e, r) {
|
|
45934
46027
|
var t = Object.keys(e);
|
|
45935
46028
|
if (Object.getOwnPropertySymbols) {
|
|
45936
46029
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45940,30 +46033,30 @@ function ownKeys37(e, r) {
|
|
|
45940
46033
|
}
|
|
45941
46034
|
return t;
|
|
45942
46035
|
}
|
|
45943
|
-
function
|
|
46036
|
+
function _objectSpread38(e) {
|
|
45944
46037
|
for(var r = 1; r < arguments.length; r++){
|
|
45945
46038
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45946
|
-
r % 2 ?
|
|
45947
|
-
|
|
45948
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46039
|
+
r % 2 ? ownKeys38(Object(t), true).forEach(function(r2) {
|
|
46040
|
+
_defineProperty38(e, r2, t[r2]);
|
|
46041
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys38(Object(t)).forEach(function(r2) {
|
|
45949
46042
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45950
46043
|
});
|
|
45951
46044
|
}
|
|
45952
46045
|
return e;
|
|
45953
46046
|
}
|
|
45954
|
-
function
|
|
45955
|
-
return (r =
|
|
46047
|
+
function _defineProperty38(e, r, t) {
|
|
46048
|
+
return (r = _toPropertyKey38(r)) in e ? Object.defineProperty(e, r, {
|
|
45956
46049
|
value: t,
|
|
45957
46050
|
enumerable: true,
|
|
45958
46051
|
configurable: true,
|
|
45959
46052
|
writable: true
|
|
45960
46053
|
}) : e[r] = t, e;
|
|
45961
46054
|
}
|
|
45962
|
-
function
|
|
45963
|
-
var i =
|
|
46055
|
+
function _toPropertyKey38(t) {
|
|
46056
|
+
var i = _toPrimitive38(t, "string");
|
|
45964
46057
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45965
46058
|
}
|
|
45966
|
-
function
|
|
46059
|
+
function _toPrimitive38(t, r) {
|
|
45967
46060
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45968
46061
|
var e = t[Symbol.toPrimitive];
|
|
45969
46062
|
if (void 0 !== e) {
|
|
@@ -45989,7 +46082,7 @@ var MessageForm = function(props) {
|
|
|
45989
46082
|
}
|
|
45990
46083
|
var t1;
|
|
45991
46084
|
if ($[1] !== props) {
|
|
45992
|
-
t1 = /* @__PURE__ */ _jsx74(
|
|
46085
|
+
t1 = /* @__PURE__ */ _jsx74(Root7, _objectSpread38(_objectSpread38({}, props), {}, {
|
|
45993
46086
|
children: t0
|
|
45994
46087
|
}));
|
|
45995
46088
|
$[1] = props;
|
|
@@ -45999,12 +46092,12 @@ var MessageForm = function(props) {
|
|
|
45999
46092
|
}
|
|
46000
46093
|
return t1;
|
|
46001
46094
|
};
|
|
46002
|
-
MessageForm.Root =
|
|
46095
|
+
MessageForm.Root = Root7;
|
|
46003
46096
|
MessageForm.Field = Field;
|
|
46004
46097
|
MessageForm.Submit = Submit;
|
|
46005
46098
|
// src/components/threads/Thread/Root/index.tsx
|
|
46006
46099
|
import { c as _c74 } from "react-compiler-runtime";
|
|
46007
|
-
import { Flex as
|
|
46100
|
+
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
46008
46101
|
// src/components/threads/Thread/Provider/index.tsx
|
|
46009
46102
|
var Provider2 = SuperinterfaceProvider;
|
|
46010
46103
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
@@ -46014,7 +46107,7 @@ import * as Toast2 from "@radix-ui/react-toast";
|
|
|
46014
46107
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
46015
46108
|
import { c as _c72 } from "react-compiler-runtime";
|
|
46016
46109
|
import * as Toast from "@radix-ui/react-toast";
|
|
46017
|
-
import { Card as Card3, Text as Text8, Flex as
|
|
46110
|
+
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
46018
46111
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
46019
46112
|
import { jsx as _jsx75, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
46020
46113
|
var CustomToast = function(t0) {
|
|
@@ -46022,7 +46115,7 @@ var CustomToast = function(t0) {
|
|
|
46022
46115
|
var toast = t0.toast;
|
|
46023
46116
|
var t1;
|
|
46024
46117
|
if ($[0] !== toast.type) {
|
|
46025
|
-
t1 = /* @__PURE__ */ _jsx75(
|
|
46118
|
+
t1 = /* @__PURE__ */ _jsx75(Flex24, {
|
|
46026
46119
|
pr: "2",
|
|
46027
46120
|
height: "14px",
|
|
46028
46121
|
align: "center",
|
|
@@ -46054,7 +46147,7 @@ var CustomToast = function(t0) {
|
|
|
46054
46147
|
t3 = /* @__PURE__ */ _jsx75(Toast.Root, {
|
|
46055
46148
|
children: /* @__PURE__ */ _jsx75(Card3, {
|
|
46056
46149
|
children: /* @__PURE__ */ _jsx75(Toast.Title, {
|
|
46057
|
-
children: /* @__PURE__ */ _jsxs26(
|
|
46150
|
+
children: /* @__PURE__ */ _jsxs26(Flex24, {
|
|
46058
46151
|
children: [
|
|
46059
46152
|
t1,
|
|
46060
46153
|
t2
|
|
@@ -46184,7 +46277,7 @@ var _excluded4 = [
|
|
|
46184
46277
|
"style",
|
|
46185
46278
|
"className"
|
|
46186
46279
|
];
|
|
46187
|
-
function
|
|
46280
|
+
function ownKeys39(e, r) {
|
|
46188
46281
|
var t = Object.keys(e);
|
|
46189
46282
|
if (Object.getOwnPropertySymbols) {
|
|
46190
46283
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46194,30 +46287,30 @@ function ownKeys38(e, r) {
|
|
|
46194
46287
|
}
|
|
46195
46288
|
return t;
|
|
46196
46289
|
}
|
|
46197
|
-
function
|
|
46290
|
+
function _objectSpread39(e) {
|
|
46198
46291
|
for(var r = 1; r < arguments.length; r++){
|
|
46199
46292
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46200
|
-
r % 2 ?
|
|
46201
|
-
|
|
46202
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46293
|
+
r % 2 ? ownKeys39(Object(t), true).forEach(function(r2) {
|
|
46294
|
+
_defineProperty39(e, r2, t[r2]);
|
|
46295
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys39(Object(t)).forEach(function(r2) {
|
|
46203
46296
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46204
46297
|
});
|
|
46205
46298
|
}
|
|
46206
46299
|
return e;
|
|
46207
46300
|
}
|
|
46208
|
-
function
|
|
46209
|
-
return (r =
|
|
46301
|
+
function _defineProperty39(e, r, t) {
|
|
46302
|
+
return (r = _toPropertyKey39(r)) in e ? Object.defineProperty(e, r, {
|
|
46210
46303
|
value: t,
|
|
46211
46304
|
enumerable: true,
|
|
46212
46305
|
configurable: true,
|
|
46213
46306
|
writable: true
|
|
46214
46307
|
}) : e[r] = t, e;
|
|
46215
46308
|
}
|
|
46216
|
-
function
|
|
46217
|
-
var i =
|
|
46309
|
+
function _toPropertyKey39(t) {
|
|
46310
|
+
var i = _toPrimitive39(t, "string");
|
|
46218
46311
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46219
46312
|
}
|
|
46220
|
-
function
|
|
46313
|
+
function _toPrimitive39(t, r) {
|
|
46221
46314
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46222
46315
|
var e = t[Symbol.toPrimitive];
|
|
46223
46316
|
if (void 0 !== e) {
|
|
@@ -46245,7 +46338,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46245
46338
|
}
|
|
46246
46339
|
return t;
|
|
46247
46340
|
}
|
|
46248
|
-
var
|
|
46341
|
+
var Root11 = function(t0) {
|
|
46249
46342
|
var $ = _c74(12);
|
|
46250
46343
|
var children;
|
|
46251
46344
|
var className;
|
|
@@ -46270,7 +46363,7 @@ var Root10 = function(t0) {
|
|
|
46270
46363
|
}
|
|
46271
46364
|
var t1;
|
|
46272
46365
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
46273
|
-
t1 = /* @__PURE__ */ _jsx77(
|
|
46366
|
+
t1 = /* @__PURE__ */ _jsx77(Flex25, {
|
|
46274
46367
|
direction: "column",
|
|
46275
46368
|
flexGrow: "1",
|
|
46276
46369
|
className: className,
|
|
@@ -46288,7 +46381,7 @@ var Root10 = function(t0) {
|
|
|
46288
46381
|
if ($[9] !== rest || $[10] !== t1) {
|
|
46289
46382
|
t2 = /* @__PURE__ */ _jsx77(ToastsProvider, {
|
|
46290
46383
|
bottom: "var(--space-9)",
|
|
46291
|
-
children: /* @__PURE__ */ _jsx77(Provider2,
|
|
46384
|
+
children: /* @__PURE__ */ _jsx77(Provider2, _objectSpread39(_objectSpread39({}, rest), {}, {
|
|
46292
46385
|
children: t1
|
|
46293
46386
|
}))
|
|
46294
46387
|
});
|
|
@@ -46302,7 +46395,7 @@ var Root10 = function(t0) {
|
|
|
46302
46395
|
};
|
|
46303
46396
|
// src/components/threads/Thread/index.tsx
|
|
46304
46397
|
import { jsx as _jsx78, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
46305
|
-
function
|
|
46398
|
+
function ownKeys40(e, r) {
|
|
46306
46399
|
var t = Object.keys(e);
|
|
46307
46400
|
if (Object.getOwnPropertySymbols) {
|
|
46308
46401
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46312,30 +46405,30 @@ function ownKeys39(e, r) {
|
|
|
46312
46405
|
}
|
|
46313
46406
|
return t;
|
|
46314
46407
|
}
|
|
46315
|
-
function
|
|
46408
|
+
function _objectSpread40(e) {
|
|
46316
46409
|
for(var r = 1; r < arguments.length; r++){
|
|
46317
46410
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46318
|
-
r % 2 ?
|
|
46319
|
-
|
|
46320
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46411
|
+
r % 2 ? ownKeys40(Object(t), true).forEach(function(r2) {
|
|
46412
|
+
_defineProperty40(e, r2, t[r2]);
|
|
46413
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys40(Object(t)).forEach(function(r2) {
|
|
46321
46414
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46322
46415
|
});
|
|
46323
46416
|
}
|
|
46324
46417
|
return e;
|
|
46325
46418
|
}
|
|
46326
|
-
function
|
|
46327
|
-
return (r =
|
|
46419
|
+
function _defineProperty40(e, r, t) {
|
|
46420
|
+
return (r = _toPropertyKey40(r)) in e ? Object.defineProperty(e, r, {
|
|
46328
46421
|
value: t,
|
|
46329
46422
|
enumerable: true,
|
|
46330
46423
|
configurable: true,
|
|
46331
46424
|
writable: true
|
|
46332
46425
|
}) : e[r] = t, e;
|
|
46333
46426
|
}
|
|
46334
|
-
function
|
|
46335
|
-
var i =
|
|
46427
|
+
function _toPropertyKey40(t) {
|
|
46428
|
+
var i = _toPrimitive40(t, "string");
|
|
46336
46429
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46337
46430
|
}
|
|
46338
|
-
function
|
|
46431
|
+
function _toPrimitive40(t, r) {
|
|
46339
46432
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46340
46433
|
var e = t[Symbol.toPrimitive];
|
|
46341
46434
|
if (void 0 !== e) {
|
|
@@ -46360,7 +46453,7 @@ var Thread = function(props) {
|
|
|
46360
46453
|
}
|
|
46361
46454
|
var t2;
|
|
46362
46455
|
if ($[2] !== props) {
|
|
46363
|
-
t2 = /* @__PURE__ */ _jsxs28(
|
|
46456
|
+
t2 = /* @__PURE__ */ _jsxs28(Root11, _objectSpread40(_objectSpread40({}, props), {}, {
|
|
46364
46457
|
children: [
|
|
46365
46458
|
t0,
|
|
46366
46459
|
t1
|
|
@@ -46373,7 +46466,7 @@ var Thread = function(props) {
|
|
|
46373
46466
|
}
|
|
46374
46467
|
return t2;
|
|
46375
46468
|
};
|
|
46376
|
-
Thread.Root =
|
|
46469
|
+
Thread.Root = Root11;
|
|
46377
46470
|
Thread.Messages = Messages2;
|
|
46378
46471
|
Thread.MessageForm = MessageForm;
|
|
46379
46472
|
// src/hooks/messages/useMessageContext/index.ts
|
|
@@ -46488,7 +46581,7 @@ var queryOptions2 = function(_ref) {
|
|
|
46488
46581
|
});
|
|
46489
46582
|
};
|
|
46490
46583
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46491
|
-
function
|
|
46584
|
+
function ownKeys41(e, r) {
|
|
46492
46585
|
var t = Object.keys(e);
|
|
46493
46586
|
if (Object.getOwnPropertySymbols) {
|
|
46494
46587
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46498,30 +46591,30 @@ function ownKeys40(e, r) {
|
|
|
46498
46591
|
}
|
|
46499
46592
|
return t;
|
|
46500
46593
|
}
|
|
46501
|
-
function
|
|
46594
|
+
function _objectSpread41(e) {
|
|
46502
46595
|
for(var r = 1; r < arguments.length; r++){
|
|
46503
46596
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46504
|
-
r % 2 ?
|
|
46505
|
-
|
|
46506
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46597
|
+
r % 2 ? ownKeys41(Object(t), true).forEach(function(r2) {
|
|
46598
|
+
_defineProperty41(e, r2, t[r2]);
|
|
46599
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys41(Object(t)).forEach(function(r2) {
|
|
46507
46600
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46508
46601
|
});
|
|
46509
46602
|
}
|
|
46510
46603
|
return e;
|
|
46511
46604
|
}
|
|
46512
|
-
function
|
|
46513
|
-
return (r =
|
|
46605
|
+
function _defineProperty41(e, r, t) {
|
|
46606
|
+
return (r = _toPropertyKey41(r)) in e ? Object.defineProperty(e, r, {
|
|
46514
46607
|
value: t,
|
|
46515
46608
|
enumerable: true,
|
|
46516
46609
|
configurable: true,
|
|
46517
46610
|
writable: true
|
|
46518
46611
|
}) : e[r] = t, e;
|
|
46519
46612
|
}
|
|
46520
|
-
function
|
|
46521
|
-
var i =
|
|
46613
|
+
function _toPropertyKey41(t) {
|
|
46614
|
+
var i = _toPrimitive41(t, "string");
|
|
46522
46615
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46523
46616
|
}
|
|
46524
|
-
function
|
|
46617
|
+
function _toPrimitive41(t, r) {
|
|
46525
46618
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46526
46619
|
var e = t[Symbol.toPrimitive];
|
|
46527
46620
|
if (void 0 !== e) {
|
|
@@ -46552,7 +46645,7 @@ var useAssistant = function(t0) {
|
|
|
46552
46645
|
var t3 = props.data ? props.data.assistant : null;
|
|
46553
46646
|
var t4;
|
|
46554
46647
|
if ($[3] !== props || $[4] !== t3) {
|
|
46555
|
-
t4 =
|
|
46648
|
+
t4 = _objectSpread41(_objectSpread41({}, props), {}, {
|
|
46556
46649
|
assistant: t3
|
|
46557
46650
|
});
|
|
46558
46651
|
$[3] = props;
|
|
@@ -46616,7 +46709,7 @@ var Provider4 = function(t0) {
|
|
|
46616
46709
|
};
|
|
46617
46710
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46618
46711
|
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
46619
|
-
var
|
|
46712
|
+
var Root12 = function(t0) {
|
|
46620
46713
|
var $ = _c78(2);
|
|
46621
46714
|
var children = t0.children;
|
|
46622
46715
|
var t1;
|
|
@@ -46633,13 +46726,13 @@ var Root11 = function(t0) {
|
|
|
46633
46726
|
};
|
|
46634
46727
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46635
46728
|
import { c as _c80 } from "react-compiler-runtime";
|
|
46636
|
-
import { Flex as
|
|
46729
|
+
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
46637
46730
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46638
46731
|
import { c as _c79 } from "react-compiler-runtime";
|
|
46639
46732
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46640
46733
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46641
46734
|
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
46642
|
-
function
|
|
46735
|
+
function ownKeys42(e, r) {
|
|
46643
46736
|
var t = Object.keys(e);
|
|
46644
46737
|
if (Object.getOwnPropertySymbols) {
|
|
46645
46738
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46649,30 +46742,30 @@ function ownKeys41(e, r) {
|
|
|
46649
46742
|
}
|
|
46650
46743
|
return t;
|
|
46651
46744
|
}
|
|
46652
|
-
function
|
|
46745
|
+
function _objectSpread42(e) {
|
|
46653
46746
|
for(var r = 1; r < arguments.length; r++){
|
|
46654
46747
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46655
|
-
r % 2 ?
|
|
46656
|
-
|
|
46657
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46748
|
+
r % 2 ? ownKeys42(Object(t), true).forEach(function(r2) {
|
|
46749
|
+
_defineProperty42(e, r2, t[r2]);
|
|
46750
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys42(Object(t)).forEach(function(r2) {
|
|
46658
46751
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46659
46752
|
});
|
|
46660
46753
|
}
|
|
46661
46754
|
return e;
|
|
46662
46755
|
}
|
|
46663
|
-
function
|
|
46664
|
-
return (r =
|
|
46756
|
+
function _defineProperty42(e, r, t) {
|
|
46757
|
+
return (r = _toPropertyKey42(r)) in e ? Object.defineProperty(e, r, {
|
|
46665
46758
|
value: t,
|
|
46666
46759
|
enumerable: true,
|
|
46667
46760
|
configurable: true,
|
|
46668
46761
|
writable: true
|
|
46669
46762
|
}) : e[r] = t, e;
|
|
46670
46763
|
}
|
|
46671
|
-
function
|
|
46672
|
-
var i =
|
|
46764
|
+
function _toPropertyKey42(t) {
|
|
46765
|
+
var i = _toPrimitive42(t, "string");
|
|
46673
46766
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46674
46767
|
}
|
|
46675
|
-
function
|
|
46768
|
+
function _toPrimitive42(t, r) {
|
|
46676
46769
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46677
46770
|
var e = t[Symbol.toPrimitive];
|
|
46678
46771
|
if (void 0 !== e) {
|
|
@@ -46693,7 +46786,7 @@ var Button4 = function(props) {
|
|
|
46693
46786
|
}
|
|
46694
46787
|
var t1;
|
|
46695
46788
|
if ($[1] !== props) {
|
|
46696
|
-
t1 = /* @__PURE__ */ _jsx81(IconButton8,
|
|
46789
|
+
t1 = /* @__PURE__ */ _jsx81(IconButton8, _objectSpread42(_objectSpread42({
|
|
46697
46790
|
size: "4",
|
|
46698
46791
|
radius: "full"
|
|
46699
46792
|
}, props), {}, {
|
|
@@ -46708,7 +46801,7 @@ var Button4 = function(props) {
|
|
|
46708
46801
|
};
|
|
46709
46802
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46710
46803
|
import { jsx as _jsx82 } from "react/jsx-runtime";
|
|
46711
|
-
function
|
|
46804
|
+
function ownKeys43(e, r) {
|
|
46712
46805
|
var t = Object.keys(e);
|
|
46713
46806
|
if (Object.getOwnPropertySymbols) {
|
|
46714
46807
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46718,30 +46811,30 @@ function ownKeys42(e, r) {
|
|
|
46718
46811
|
}
|
|
46719
46812
|
return t;
|
|
46720
46813
|
}
|
|
46721
|
-
function
|
|
46814
|
+
function _objectSpread43(e) {
|
|
46722
46815
|
for(var r = 1; r < arguments.length; r++){
|
|
46723
46816
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46724
|
-
r % 2 ?
|
|
46725
|
-
|
|
46726
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46817
|
+
r % 2 ? ownKeys43(Object(t), true).forEach(function(r2) {
|
|
46818
|
+
_defineProperty43(e, r2, t[r2]);
|
|
46819
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys43(Object(t)).forEach(function(r2) {
|
|
46727
46820
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46728
46821
|
});
|
|
46729
46822
|
}
|
|
46730
46823
|
return e;
|
|
46731
46824
|
}
|
|
46732
|
-
function
|
|
46733
|
-
return (r =
|
|
46825
|
+
function _defineProperty43(e, r, t) {
|
|
46826
|
+
return (r = _toPropertyKey43(r)) in e ? Object.defineProperty(e, r, {
|
|
46734
46827
|
value: t,
|
|
46735
46828
|
enumerable: true,
|
|
46736
46829
|
configurable: true,
|
|
46737
46830
|
writable: true
|
|
46738
46831
|
}) : e[r] = t, e;
|
|
46739
46832
|
}
|
|
46740
|
-
function
|
|
46741
|
-
var i =
|
|
46833
|
+
function _toPropertyKey43(t) {
|
|
46834
|
+
var i = _toPrimitive43(t, "string");
|
|
46742
46835
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46743
46836
|
}
|
|
46744
|
-
function
|
|
46837
|
+
function _toPrimitive43(t, r) {
|
|
46745
46838
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46746
46839
|
var e = t[Symbol.toPrimitive];
|
|
46747
46840
|
if (void 0 !== e) {
|
|
@@ -46751,7 +46844,7 @@ function _toPrimitive42(t, r) {
|
|
|
46751
46844
|
}
|
|
46752
46845
|
return ("string" === r ? String : Number)(t);
|
|
46753
46846
|
}
|
|
46754
|
-
var
|
|
46847
|
+
var Root13 = function(t0) {
|
|
46755
46848
|
var $ = _c80(14);
|
|
46756
46849
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46757
46850
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
@@ -46787,7 +46880,7 @@ var Root12 = function(t0) {
|
|
|
46787
46880
|
}
|
|
46788
46881
|
var t5;
|
|
46789
46882
|
if ($[6] !== t4) {
|
|
46790
|
-
t5 =
|
|
46883
|
+
t5 = _objectSpread43({
|
|
46791
46884
|
zIndex: 9999999999
|
|
46792
46885
|
}, t4);
|
|
46793
46886
|
$[6] = t4;
|
|
@@ -46797,7 +46890,7 @@ var Root12 = function(t0) {
|
|
|
46797
46890
|
}
|
|
46798
46891
|
var t6;
|
|
46799
46892
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
46800
|
-
t6 = /* @__PURE__ */ _jsx82(
|
|
46893
|
+
t6 = /* @__PURE__ */ _jsx82(Flex26, {
|
|
46801
46894
|
display: t2,
|
|
46802
46895
|
onClick: t3,
|
|
46803
46896
|
direction: "column",
|
|
@@ -46833,7 +46926,7 @@ var Trigger = function(args) {
|
|
|
46833
46926
|
}
|
|
46834
46927
|
var t1;
|
|
46835
46928
|
if ($[1] !== args) {
|
|
46836
|
-
t1 = /* @__PURE__ */ _jsx82(
|
|
46929
|
+
t1 = /* @__PURE__ */ _jsx82(Root13, _objectSpread43(_objectSpread43({}, args), {}, {
|
|
46837
46930
|
children: t0
|
|
46838
46931
|
}));
|
|
46839
46932
|
$[1] = args;
|
|
@@ -46843,18 +46936,18 @@ var Trigger = function(args) {
|
|
|
46843
46936
|
}
|
|
46844
46937
|
return t1;
|
|
46845
46938
|
};
|
|
46846
|
-
Trigger.Root =
|
|
46939
|
+
Trigger.Root = Root13;
|
|
46847
46940
|
Trigger.Button = Button4;
|
|
46848
46941
|
function _temp6(prev) {
|
|
46849
46942
|
return !prev;
|
|
46850
46943
|
}
|
|
46851
46944
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46852
46945
|
import { c as _c82 } from "react-compiler-runtime";
|
|
46853
|
-
import { Card as Card4, Inset as Inset2, Flex as
|
|
46946
|
+
import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
|
|
46854
46947
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
46855
46948
|
import { c as _c81 } from "react-compiler-runtime";
|
|
46856
46949
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
46857
|
-
import { IconButton as IconButton9, Flex as
|
|
46950
|
+
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
46858
46951
|
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
46859
46952
|
var Close = function() {
|
|
46860
46953
|
var $ = _c81(9);
|
|
@@ -46903,7 +46996,7 @@ var Close = function() {
|
|
|
46903
46996
|
}
|
|
46904
46997
|
var t5;
|
|
46905
46998
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
46906
|
-
t5 = /* @__PURE__ */ _jsx83(
|
|
46999
|
+
t5 = /* @__PURE__ */ _jsx83(Flex27, {
|
|
46907
47000
|
display: t1,
|
|
46908
47001
|
onClick: t2,
|
|
46909
47002
|
direction: "column",
|
|
@@ -46929,7 +47022,7 @@ function _temp7(prev) {
|
|
|
46929
47022
|
}
|
|
46930
47023
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46931
47024
|
import { jsx as _jsx84, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
46932
|
-
function
|
|
47025
|
+
function ownKeys44(e, r) {
|
|
46933
47026
|
var t = Object.keys(e);
|
|
46934
47027
|
if (Object.getOwnPropertySymbols) {
|
|
46935
47028
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46939,30 +47032,30 @@ function ownKeys43(e, r) {
|
|
|
46939
47032
|
}
|
|
46940
47033
|
return t;
|
|
46941
47034
|
}
|
|
46942
|
-
function
|
|
47035
|
+
function _objectSpread44(e) {
|
|
46943
47036
|
for(var r = 1; r < arguments.length; r++){
|
|
46944
47037
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46945
|
-
r % 2 ?
|
|
46946
|
-
|
|
46947
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47038
|
+
r % 2 ? ownKeys44(Object(t), true).forEach(function(r2) {
|
|
47039
|
+
_defineProperty44(e, r2, t[r2]);
|
|
47040
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys44(Object(t)).forEach(function(r2) {
|
|
46948
47041
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46949
47042
|
});
|
|
46950
47043
|
}
|
|
46951
47044
|
return e;
|
|
46952
47045
|
}
|
|
46953
|
-
function
|
|
46954
|
-
return (r =
|
|
47046
|
+
function _defineProperty44(e, r, t) {
|
|
47047
|
+
return (r = _toPropertyKey44(r)) in e ? Object.defineProperty(e, r, {
|
|
46955
47048
|
value: t,
|
|
46956
47049
|
enumerable: true,
|
|
46957
47050
|
configurable: true,
|
|
46958
47051
|
writable: true
|
|
46959
47052
|
}) : e[r] = t, e;
|
|
46960
47053
|
}
|
|
46961
|
-
function
|
|
46962
|
-
var i =
|
|
47054
|
+
function _toPropertyKey44(t) {
|
|
47055
|
+
var i = _toPrimitive44(t, "string");
|
|
46963
47056
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46964
47057
|
}
|
|
46965
|
-
function
|
|
47058
|
+
function _toPrimitive44(t, r) {
|
|
46966
47059
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46967
47060
|
var e = t[Symbol.toPrimitive];
|
|
46968
47061
|
if (void 0 !== e) {
|
|
@@ -46972,7 +47065,7 @@ function _toPrimitive43(t, r) {
|
|
|
46972
47065
|
}
|
|
46973
47066
|
return ("string" === r ? String : Number)(t);
|
|
46974
47067
|
}
|
|
46975
|
-
var
|
|
47068
|
+
var Root14 = function(t0) {
|
|
46976
47069
|
var $ = _c82(19);
|
|
46977
47070
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
46978
47071
|
var isOpen = useThreadDialogContext().isOpen;
|
|
@@ -47022,7 +47115,7 @@ var Root13 = function(t0) {
|
|
|
47022
47115
|
}
|
|
47023
47116
|
var t6;
|
|
47024
47117
|
if ($[5] !== style) {
|
|
47025
|
-
t6 =
|
|
47118
|
+
t6 = _objectSpread44({
|
|
47026
47119
|
zIndex: 9999999999
|
|
47027
47120
|
}, style);
|
|
47028
47121
|
$[5] = style;
|
|
@@ -47096,7 +47189,7 @@ var Root13 = function(t0) {
|
|
|
47096
47189
|
}
|
|
47097
47190
|
var t13;
|
|
47098
47191
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
47099
|
-
t13 = /* @__PURE__ */ _jsx84(
|
|
47192
|
+
t13 = /* @__PURE__ */ _jsx84(Flex28, {
|
|
47100
47193
|
className: className,
|
|
47101
47194
|
direction: "column",
|
|
47102
47195
|
justify: "end",
|
|
@@ -47124,7 +47217,7 @@ var Messages3 = function(t0) {
|
|
|
47124
47217
|
var className = t0.className, style = t0.style;
|
|
47125
47218
|
var t1;
|
|
47126
47219
|
if ($[0] !== style) {
|
|
47127
|
-
t1 =
|
|
47220
|
+
t1 = _objectSpread44({
|
|
47128
47221
|
paddingTop: "var(--space-5)",
|
|
47129
47222
|
paddingRight: "var(--space-5)",
|
|
47130
47223
|
paddingLeft: "var(--space-5)"
|
|
@@ -47153,7 +47246,7 @@ var FormContainer = function(t0) {
|
|
|
47153
47246
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47154
47247
|
var t1;
|
|
47155
47248
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
47156
|
-
t1 = /* @__PURE__ */ _jsx84(
|
|
47249
|
+
t1 = /* @__PURE__ */ _jsx84(Flex28, {
|
|
47157
47250
|
direction: "column",
|
|
47158
47251
|
pl: "5",
|
|
47159
47252
|
pr: "5",
|
|
@@ -47197,7 +47290,7 @@ var Content7 = function(props) {
|
|
|
47197
47290
|
}
|
|
47198
47291
|
var t2;
|
|
47199
47292
|
if ($[2] !== props) {
|
|
47200
|
-
t2 = /* @__PURE__ */ _jsx84(
|
|
47293
|
+
t2 = /* @__PURE__ */ _jsx84(Root14, _objectSpread44(_objectSpread44({}, props), {}, {
|
|
47201
47294
|
children: t1
|
|
47202
47295
|
}));
|
|
47203
47296
|
$[2] = props;
|
|
@@ -47207,7 +47300,7 @@ var Content7 = function(props) {
|
|
|
47207
47300
|
}
|
|
47208
47301
|
return t2;
|
|
47209
47302
|
};
|
|
47210
|
-
Content7.Root =
|
|
47303
|
+
Content7.Root = Root14;
|
|
47211
47304
|
Content7.Messages = Messages3;
|
|
47212
47305
|
Content7.FormContainer = FormContainer;
|
|
47213
47306
|
// src/components/threads/ThreadDialog/index.tsx
|
|
@@ -47216,7 +47309,7 @@ var ThreadDialog = function() {
|
|
|
47216
47309
|
var $ = _c83(1);
|
|
47217
47310
|
var t0;
|
|
47218
47311
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47219
|
-
t0 = /* @__PURE__ */ _jsxs30(
|
|
47312
|
+
t0 = /* @__PURE__ */ _jsxs30(Root12, {
|
|
47220
47313
|
children: [
|
|
47221
47314
|
/* @__PURE__ */ _jsx85(Content7, {}),
|
|
47222
47315
|
/* @__PURE__ */ _jsx85(Trigger, {})
|
|
@@ -47228,7 +47321,7 @@ var ThreadDialog = function() {
|
|
|
47228
47321
|
}
|
|
47229
47322
|
return t0;
|
|
47230
47323
|
};
|
|
47231
|
-
ThreadDialog.Root =
|
|
47324
|
+
ThreadDialog.Root = Root12;
|
|
47232
47325
|
ThreadDialog.Trigger = Trigger;
|
|
47233
47326
|
ThreadDialog.Content = Content7;
|
|
47234
47327
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
@@ -47237,7 +47330,7 @@ import { c as _c98 } from "react-compiler-runtime";
|
|
|
47237
47330
|
import { c as _c97 } from "react-compiler-runtime";
|
|
47238
47331
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47239
47332
|
import { c as _c89 } from "react-compiler-runtime";
|
|
47240
|
-
import { Flex as
|
|
47333
|
+
import { Flex as Flex29 } from "@radix-ui/themes";
|
|
47241
47334
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47242
47335
|
import { createContext as createContext13 } from "react";
|
|
47243
47336
|
var AudioThreadContext = /* @__PURE__ */ createContext13({
|
|
@@ -47370,7 +47463,7 @@ var useInterval = function(callback, delay) {
|
|
|
47370
47463
|
};
|
|
47371
47464
|
function _temp8() {}
|
|
47372
47465
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
47373
|
-
function
|
|
47466
|
+
function ownKeys45(e, r) {
|
|
47374
47467
|
var t = Object.keys(e);
|
|
47375
47468
|
if (Object.getOwnPropertySymbols) {
|
|
47376
47469
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -47380,30 +47473,30 @@ function ownKeys44(e, r) {
|
|
|
47380
47473
|
}
|
|
47381
47474
|
return t;
|
|
47382
47475
|
}
|
|
47383
|
-
function
|
|
47476
|
+
function _objectSpread45(e) {
|
|
47384
47477
|
for(var r = 1; r < arguments.length; r++){
|
|
47385
47478
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
47386
|
-
r % 2 ?
|
|
47387
|
-
|
|
47388
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47479
|
+
r % 2 ? ownKeys45(Object(t), true).forEach(function(r2) {
|
|
47480
|
+
_defineProperty45(e, r2, t[r2]);
|
|
47481
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys45(Object(t)).forEach(function(r2) {
|
|
47389
47482
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
47390
47483
|
});
|
|
47391
47484
|
}
|
|
47392
47485
|
return e;
|
|
47393
47486
|
}
|
|
47394
|
-
function
|
|
47395
|
-
return (r =
|
|
47487
|
+
function _defineProperty45(e, r, t) {
|
|
47488
|
+
return (r = _toPropertyKey45(r)) in e ? Object.defineProperty(e, r, {
|
|
47396
47489
|
value: t,
|
|
47397
47490
|
enumerable: true,
|
|
47398
47491
|
configurable: true,
|
|
47399
47492
|
writable: true
|
|
47400
47493
|
}) : e[r] = t, e;
|
|
47401
47494
|
}
|
|
47402
|
-
function
|
|
47403
|
-
var i =
|
|
47495
|
+
function _toPropertyKey45(t) {
|
|
47496
|
+
var i = _toPrimitive45(t, "string");
|
|
47404
47497
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
47405
47498
|
}
|
|
47406
|
-
function
|
|
47499
|
+
function _toPrimitive45(t, r) {
|
|
47407
47500
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
47408
47501
|
var e = t[Symbol.toPrimitive];
|
|
47409
47502
|
if (void 0 !== e) {
|
|
@@ -47577,7 +47670,7 @@ var useRecorder = function(_ref) {
|
|
|
47577
47670
|
if (!silenceStart.isBefore(dayjs3().subtract(1.5, "second"))) return;
|
|
47578
47671
|
audioCaptureProps.stop();
|
|
47579
47672
|
}, 300);
|
|
47580
|
-
return
|
|
47673
|
+
return _objectSpread45(_objectSpread45({}, audioCaptureProps), {}, {
|
|
47581
47674
|
status: status,
|
|
47582
47675
|
visualizationAnalyser: visualizationAnalyser
|
|
47583
47676
|
});
|
|
@@ -47610,7 +47703,7 @@ var unsupportedNames = [
|
|
|
47610
47703
|
];
|
|
47611
47704
|
var isHtmlAudioSupported = !unsupportedNames.includes(((_detect = detect()) === null || _detect === void 0 ? void 0 : _detect.name) || "");
|
|
47612
47705
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47613
|
-
function
|
|
47706
|
+
function ownKeys46(e, r) {
|
|
47614
47707
|
var t = Object.keys(e);
|
|
47615
47708
|
if (Object.getOwnPropertySymbols) {
|
|
47616
47709
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -47620,30 +47713,30 @@ function ownKeys45(e, r) {
|
|
|
47620
47713
|
}
|
|
47621
47714
|
return t;
|
|
47622
47715
|
}
|
|
47623
|
-
function
|
|
47716
|
+
function _objectSpread46(e) {
|
|
47624
47717
|
for(var r = 1; r < arguments.length; r++){
|
|
47625
47718
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
47626
|
-
r % 2 ?
|
|
47627
|
-
|
|
47628
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47719
|
+
r % 2 ? ownKeys46(Object(t), true).forEach(function(r2) {
|
|
47720
|
+
_defineProperty46(e, r2, t[r2]);
|
|
47721
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys46(Object(t)).forEach(function(r2) {
|
|
47629
47722
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
47630
47723
|
});
|
|
47631
47724
|
}
|
|
47632
47725
|
return e;
|
|
47633
47726
|
}
|
|
47634
|
-
function
|
|
47635
|
-
return (r =
|
|
47727
|
+
function _defineProperty46(e, r, t) {
|
|
47728
|
+
return (r = _toPropertyKey46(r)) in e ? Object.defineProperty(e, r, {
|
|
47636
47729
|
value: t,
|
|
47637
47730
|
enumerable: true,
|
|
47638
47731
|
configurable: true,
|
|
47639
47732
|
writable: true
|
|
47640
47733
|
}) : e[r] = t, e;
|
|
47641
47734
|
}
|
|
47642
|
-
function
|
|
47643
|
-
var i =
|
|
47735
|
+
function _toPropertyKey46(t) {
|
|
47736
|
+
var i = _toPrimitive46(t, "string");
|
|
47644
47737
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
47645
47738
|
}
|
|
47646
|
-
function
|
|
47739
|
+
function _toPrimitive46(t, r) {
|
|
47647
47740
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
47648
47741
|
var e = t[Symbol.toPrimitive];
|
|
47649
47742
|
if (void 0 !== e) {
|
|
@@ -47773,7 +47866,7 @@ var useMessageAudio = function(t0) {
|
|
|
47773
47866
|
if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext || $[16] !== unplayedMessageSentences) {
|
|
47774
47867
|
t4 = function(t52) {
|
|
47775
47868
|
var input_0 = t52.input, onPlay = t52.onPlay, onStop = t52.onStop, onEnd_0 = t52.onEnd;
|
|
47776
|
-
var searchParams = new URLSearchParams(
|
|
47869
|
+
var searchParams = new URLSearchParams(_objectSpread46({
|
|
47777
47870
|
input: input_0
|
|
47778
47871
|
}, superinterfaceContext.variables));
|
|
47779
47872
|
audioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(searchParams), {
|
|
@@ -47791,7 +47884,7 @@ var useMessageAudio = function(t0) {
|
|
|
47791
47884
|
if (!isNextFullSentence) {
|
|
47792
47885
|
return;
|
|
47793
47886
|
}
|
|
47794
|
-
var nextSearchParams = new URLSearchParams(
|
|
47887
|
+
var nextSearchParams = new URLSearchParams(_objectSpread46({
|
|
47795
47888
|
input: nextUnplayedMessageSentence.sentence
|
|
47796
47889
|
}, superinterfaceContext.variables));
|
|
47797
47890
|
nextAudioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(nextSearchParams), {
|
|
@@ -47984,7 +48077,7 @@ var useMessageAudio = function(t0) {
|
|
|
47984
48077
|
var isPending = t12;
|
|
47985
48078
|
var t13;
|
|
47986
48079
|
if ($[44] !== audioPlayer || $[45] !== isAudioPlayed || $[46] !== isPending || $[47] !== visualizationAnalyser) {
|
|
47987
|
-
t13 =
|
|
48080
|
+
t13 = _objectSpread46(_objectSpread46({
|
|
47988
48081
|
isPending: isPending,
|
|
47989
48082
|
isAudioPlayed: isAudioPlayed
|
|
47990
48083
|
}, audioPlayer), {}, {
|
|
@@ -48270,7 +48363,7 @@ var _excluded22 = [
|
|
|
48270
48363
|
"className",
|
|
48271
48364
|
"style"
|
|
48272
48365
|
];
|
|
48273
|
-
function
|
|
48366
|
+
function ownKeys47(e, r) {
|
|
48274
48367
|
var t = Object.keys(e);
|
|
48275
48368
|
if (Object.getOwnPropertySymbols) {
|
|
48276
48369
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -48280,30 +48373,30 @@ function ownKeys46(e, r) {
|
|
|
48280
48373
|
}
|
|
48281
48374
|
return t;
|
|
48282
48375
|
}
|
|
48283
|
-
function
|
|
48376
|
+
function _objectSpread47(e) {
|
|
48284
48377
|
for(var r = 1; r < arguments.length; r++){
|
|
48285
48378
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
48286
|
-
r % 2 ?
|
|
48287
|
-
|
|
48288
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
48379
|
+
r % 2 ? ownKeys47(Object(t), true).forEach(function(r2) {
|
|
48380
|
+
_defineProperty47(e, r2, t[r2]);
|
|
48381
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys47(Object(t)).forEach(function(r2) {
|
|
48289
48382
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
48290
48383
|
});
|
|
48291
48384
|
}
|
|
48292
48385
|
return e;
|
|
48293
48386
|
}
|
|
48294
|
-
function
|
|
48295
|
-
return (r =
|
|
48387
|
+
function _defineProperty47(e, r, t) {
|
|
48388
|
+
return (r = _toPropertyKey47(r)) in e ? Object.defineProperty(e, r, {
|
|
48296
48389
|
value: t,
|
|
48297
48390
|
enumerable: true,
|
|
48298
48391
|
configurable: true,
|
|
48299
48392
|
writable: true
|
|
48300
48393
|
}) : e[r] = t, e;
|
|
48301
48394
|
}
|
|
48302
|
-
function
|
|
48303
|
-
var i =
|
|
48395
|
+
function _toPropertyKey47(t) {
|
|
48396
|
+
var i = _toPrimitive47(t, "string");
|
|
48304
48397
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
48305
48398
|
}
|
|
48306
|
-
function
|
|
48399
|
+
function _toPrimitive47(t, r) {
|
|
48307
48400
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
48308
48401
|
var e = t[Symbol.toPrimitive];
|
|
48309
48402
|
if (void 0 !== e) {
|
|
@@ -48336,7 +48429,7 @@ var Content8 = function(t0) {
|
|
|
48336
48429
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48337
48430
|
var t1;
|
|
48338
48431
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
48339
|
-
t1 = /* @__PURE__ */ _jsx87(
|
|
48432
|
+
t1 = /* @__PURE__ */ _jsx87(Flex29, {
|
|
48340
48433
|
direction: "column",
|
|
48341
48434
|
flexGrow: "1",
|
|
48342
48435
|
p: "9",
|
|
@@ -48393,7 +48486,7 @@ var Provider5 = function(t0) {
|
|
|
48393
48486
|
var audioThreadContext = useAudioThreadContext();
|
|
48394
48487
|
var t1;
|
|
48395
48488
|
if ($[3] !== audioThreadContext || $[4] !== rest) {
|
|
48396
|
-
t1 =
|
|
48489
|
+
t1 = _objectSpread47(_objectSpread47({}, audioThreadContext), rest);
|
|
48397
48490
|
$[3] = audioThreadContext;
|
|
48398
48491
|
$[4] = rest;
|
|
48399
48492
|
$[5] = t1;
|
|
@@ -48414,7 +48507,7 @@ var Provider5 = function(t0) {
|
|
|
48414
48507
|
}
|
|
48415
48508
|
return t2;
|
|
48416
48509
|
};
|
|
48417
|
-
var
|
|
48510
|
+
var Root15 = function(t0) {
|
|
48418
48511
|
var $ = _c89(16);
|
|
48419
48512
|
var children;
|
|
48420
48513
|
var className;
|
|
@@ -48470,7 +48563,7 @@ var Root14 = function(t0) {
|
|
|
48470
48563
|
}
|
|
48471
48564
|
var t3;
|
|
48472
48565
|
if ($[13] !== rest || $[14] !== t2) {
|
|
48473
|
-
t3 = /* @__PURE__ */ _jsx87(Provider5,
|
|
48566
|
+
t3 = /* @__PURE__ */ _jsx87(Provider5, _objectSpread47(_objectSpread47({}, rest), {}, {
|
|
48474
48567
|
children: t2
|
|
48475
48568
|
}));
|
|
48476
48569
|
$[13] = rest;
|
|
@@ -48485,10 +48578,10 @@ var Root14 = function(t0) {
|
|
|
48485
48578
|
import { c as _c91 } from "react-compiler-runtime";
|
|
48486
48579
|
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
|
|
48487
48580
|
import _9 from "lodash";
|
|
48488
|
-
import { Flex as
|
|
48581
|
+
import { Flex as Flex31 } from "@radix-ui/themes";
|
|
48489
48582
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
48490
48583
|
import _8 from "lodash";
|
|
48491
|
-
import { Flex as
|
|
48584
|
+
import { Flex as Flex30, Grid } from "@radix-ui/themes";
|
|
48492
48585
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback7 } from "react";
|
|
48493
48586
|
import { cluster } from "radash";
|
|
48494
48587
|
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
@@ -48531,12 +48624,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
48531
48624
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
48532
48625
|
},
|
|
48533
48626
|
children: barHeights.map(function(barHeight, index) {
|
|
48534
|
-
return /* @__PURE__ */ _jsx88(
|
|
48627
|
+
return /* @__PURE__ */ _jsx88(Flex30, {
|
|
48535
48628
|
direction: "column",
|
|
48536
48629
|
align: "center",
|
|
48537
48630
|
justify: "center",
|
|
48538
48631
|
height: height,
|
|
48539
|
-
children: /* @__PURE__ */ _jsx88(
|
|
48632
|
+
children: /* @__PURE__ */ _jsx88(Flex30, {
|
|
48540
48633
|
minHeight: "50%",
|
|
48541
48634
|
maxHeight: "100%",
|
|
48542
48635
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -48615,7 +48708,7 @@ var _excluded32 = [
|
|
|
48615
48708
|
"height",
|
|
48616
48709
|
"width"
|
|
48617
48710
|
];
|
|
48618
|
-
function
|
|
48711
|
+
function ownKeys48(e, r) {
|
|
48619
48712
|
var t = Object.keys(e);
|
|
48620
48713
|
if (Object.getOwnPropertySymbols) {
|
|
48621
48714
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -48625,30 +48718,30 @@ function ownKeys47(e, r) {
|
|
|
48625
48718
|
}
|
|
48626
48719
|
return t;
|
|
48627
48720
|
}
|
|
48628
|
-
function
|
|
48721
|
+
function _objectSpread48(e) {
|
|
48629
48722
|
for(var r = 1; r < arguments.length; r++){
|
|
48630
48723
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
48631
|
-
r % 2 ?
|
|
48632
|
-
|
|
48633
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
48724
|
+
r % 2 ? ownKeys48(Object(t), true).forEach(function(r2) {
|
|
48725
|
+
_defineProperty48(e, r2, t[r2]);
|
|
48726
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys48(Object(t)).forEach(function(r2) {
|
|
48634
48727
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
48635
48728
|
});
|
|
48636
48729
|
}
|
|
48637
48730
|
return e;
|
|
48638
48731
|
}
|
|
48639
|
-
function
|
|
48640
|
-
return (r =
|
|
48732
|
+
function _defineProperty48(e, r, t) {
|
|
48733
|
+
return (r = _toPropertyKey48(r)) in e ? Object.defineProperty(e, r, {
|
|
48641
48734
|
value: t,
|
|
48642
48735
|
enumerable: true,
|
|
48643
48736
|
configurable: true,
|
|
48644
48737
|
writable: true
|
|
48645
48738
|
}) : e[r] = t, e;
|
|
48646
48739
|
}
|
|
48647
|
-
function
|
|
48648
|
-
var i =
|
|
48740
|
+
function _toPropertyKey48(t) {
|
|
48741
|
+
var i = _toPrimitive48(t, "string");
|
|
48649
48742
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
48650
48743
|
}
|
|
48651
|
-
function
|
|
48744
|
+
function _toPrimitive48(t, r) {
|
|
48652
48745
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
48653
48746
|
var e = t[Symbol.toPrimitive];
|
|
48654
48747
|
if (void 0 !== e) {
|
|
@@ -48713,7 +48806,7 @@ var Provider6 = function(_ref) {
|
|
|
48713
48806
|
children: children
|
|
48714
48807
|
});
|
|
48715
48808
|
};
|
|
48716
|
-
var
|
|
48809
|
+
var Root16 = function(t0) {
|
|
48717
48810
|
var $ = _c91(6);
|
|
48718
48811
|
var children;
|
|
48719
48812
|
var rest;
|
|
@@ -48732,7 +48825,7 @@ var Root15 = function(t0) {
|
|
|
48732
48825
|
var t1;
|
|
48733
48826
|
if ($[3] !== children || $[4] !== rest) {
|
|
48734
48827
|
t1 = /* @__PURE__ */ _jsx89(Provider6, {
|
|
48735
|
-
children: /* @__PURE__ */ _jsx89(
|
|
48828
|
+
children: /* @__PURE__ */ _jsx89(Flex31, _objectSpread48(_objectSpread48({
|
|
48736
48829
|
direction: "column",
|
|
48737
48830
|
align: "center",
|
|
48738
48831
|
justify: "center",
|
|
@@ -48777,7 +48870,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48777
48870
|
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48778
48871
|
var t4;
|
|
48779
48872
|
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
48780
|
-
t4 = /* @__PURE__ */ _jsx89(BarsVisualizer,
|
|
48873
|
+
t4 = /* @__PURE__ */ _jsx89(BarsVisualizer, _objectSpread48({
|
|
48781
48874
|
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
48782
48875
|
backgroundColor: t3,
|
|
48783
48876
|
height: height,
|
|
@@ -48833,7 +48926,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48833
48926
|
}
|
|
48834
48927
|
var t5;
|
|
48835
48928
|
if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
|
|
48836
|
-
t5 =
|
|
48929
|
+
t5 = _objectSpread48({
|
|
48837
48930
|
backgroundColor: t3,
|
|
48838
48931
|
borderRadius: "9999px",
|
|
48839
48932
|
scale: scale
|
|
@@ -48847,7 +48940,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48847
48940
|
}
|
|
48848
48941
|
var t6;
|
|
48849
48942
|
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
48850
|
-
t6 = /* @__PURE__ */ _jsx89(
|
|
48943
|
+
t6 = /* @__PURE__ */ _jsx89(Flex31, _objectSpread48(_objectSpread48({
|
|
48851
48944
|
align: "center",
|
|
48852
48945
|
justify: "center",
|
|
48853
48946
|
height: height,
|
|
@@ -48878,7 +48971,7 @@ var AssistantVisualization = function(props) {
|
|
|
48878
48971
|
}
|
|
48879
48972
|
var t1;
|
|
48880
48973
|
if ($[1] !== props) {
|
|
48881
|
-
t1 = /* @__PURE__ */ _jsx89(AssistantVisualizationRoot,
|
|
48974
|
+
t1 = /* @__PURE__ */ _jsx89(AssistantVisualizationRoot, _objectSpread48(_objectSpread48({}, props), {}, {
|
|
48882
48975
|
children: t0
|
|
48883
48976
|
}));
|
|
48884
48977
|
$[1] = props;
|
|
@@ -48912,7 +49005,7 @@ var AssistantInfo = function(props) {
|
|
|
48912
49005
|
}
|
|
48913
49006
|
var t2;
|
|
48914
49007
|
if ($[3] !== props || $[4] !== t1) {
|
|
48915
|
-
t2 = /* @__PURE__ */ _jsxs31(
|
|
49008
|
+
t2 = /* @__PURE__ */ _jsxs31(Flex31, _objectSpread48(_objectSpread48({
|
|
48916
49009
|
ml: "-22.5px",
|
|
48917
49010
|
gap: "3",
|
|
48918
49011
|
pt: "5"
|
|
@@ -48945,7 +49038,7 @@ var Visualization = function(props) {
|
|
|
48945
49038
|
}
|
|
48946
49039
|
var t2;
|
|
48947
49040
|
if ($[2] !== props) {
|
|
48948
|
-
t2 = /* @__PURE__ */ _jsxs31(
|
|
49041
|
+
t2 = /* @__PURE__ */ _jsxs31(Root16, _objectSpread48(_objectSpread48({}, props), {}, {
|
|
48949
49042
|
children: [
|
|
48950
49043
|
t0,
|
|
48951
49044
|
t1
|
|
@@ -48958,7 +49051,7 @@ var Visualization = function(props) {
|
|
|
48958
49051
|
}
|
|
48959
49052
|
return t2;
|
|
48960
49053
|
};
|
|
48961
|
-
Visualization.Root =
|
|
49054
|
+
Visualization.Root = Root16;
|
|
48962
49055
|
Visualization.Provider = Provider6;
|
|
48963
49056
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48964
49057
|
Visualization.AssistantInfo = AssistantInfo;
|
|
@@ -48966,7 +49059,7 @@ Visualization.AssistantInfo = AssistantInfo;
|
|
|
48966
49059
|
import { c as _c93 } from "react-compiler-runtime";
|
|
48967
49060
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
48968
49061
|
import { c as _c92 } from "react-compiler-runtime";
|
|
48969
|
-
import { Flex as
|
|
49062
|
+
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
48970
49063
|
import { jsx as _jsx90, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
48971
49064
|
var html = function(_ref) {
|
|
48972
49065
|
var texts = _ref.texts;
|
|
@@ -49014,7 +49107,7 @@ var StatusMessages = function(t0) {
|
|
|
49014
49107
|
}
|
|
49015
49108
|
var t4;
|
|
49016
49109
|
if ($[5] !== className || $[6] !== style || $[7] !== t3) {
|
|
49017
|
-
t4 = /* @__PURE__ */ _jsxs32(
|
|
49110
|
+
t4 = /* @__PURE__ */ _jsxs32(Flex32, {
|
|
49018
49111
|
justify: "center",
|
|
49019
49112
|
pb: "5",
|
|
49020
49113
|
className: className,
|
|
@@ -49035,7 +49128,7 @@ var StatusMessages = function(t0) {
|
|
|
49035
49128
|
};
|
|
49036
49129
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49037
49130
|
import { jsx as _jsx91 } from "react/jsx-runtime";
|
|
49038
|
-
function
|
|
49131
|
+
function ownKeys49(e, r) {
|
|
49039
49132
|
var t = Object.keys(e);
|
|
49040
49133
|
if (Object.getOwnPropertySymbols) {
|
|
49041
49134
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49045,30 +49138,30 @@ function ownKeys48(e, r) {
|
|
|
49045
49138
|
}
|
|
49046
49139
|
return t;
|
|
49047
49140
|
}
|
|
49048
|
-
function
|
|
49141
|
+
function _objectSpread49(e) {
|
|
49049
49142
|
for(var r = 1; r < arguments.length; r++){
|
|
49050
49143
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49051
|
-
r % 2 ?
|
|
49052
|
-
|
|
49053
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49144
|
+
r % 2 ? ownKeys49(Object(t), true).forEach(function(r2) {
|
|
49145
|
+
_defineProperty49(e, r2, t[r2]);
|
|
49146
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys49(Object(t)).forEach(function(r2) {
|
|
49054
49147
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49055
49148
|
});
|
|
49056
49149
|
}
|
|
49057
49150
|
return e;
|
|
49058
49151
|
}
|
|
49059
|
-
function
|
|
49060
|
-
return (r =
|
|
49152
|
+
function _defineProperty49(e, r, t) {
|
|
49153
|
+
return (r = _toPropertyKey49(r)) in e ? Object.defineProperty(e, r, {
|
|
49061
49154
|
value: t,
|
|
49062
49155
|
enumerable: true,
|
|
49063
49156
|
configurable: true,
|
|
49064
49157
|
writable: true
|
|
49065
49158
|
}) : e[r] = t, e;
|
|
49066
49159
|
}
|
|
49067
|
-
function
|
|
49068
|
-
var i =
|
|
49160
|
+
function _toPropertyKey49(t) {
|
|
49161
|
+
var i = _toPrimitive49(t, "string");
|
|
49069
49162
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49070
49163
|
}
|
|
49071
|
-
function
|
|
49164
|
+
function _toPrimitive49(t, r) {
|
|
49072
49165
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49073
49166
|
var e = t[Symbol.toPrimitive];
|
|
49074
49167
|
if (void 0 !== e) {
|
|
@@ -49096,7 +49189,7 @@ var Status = function(props) {
|
|
|
49096
49189
|
}
|
|
49097
49190
|
var _t2;
|
|
49098
49191
|
if ($[1] !== props) {
|
|
49099
|
-
_t2 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49192
|
+
_t2 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49100
49193
|
texts: _t
|
|
49101
49194
|
}, props));
|
|
49102
49195
|
$[1] = props;
|
|
@@ -49122,7 +49215,7 @@ var Status = function(props) {
|
|
|
49122
49215
|
}
|
|
49123
49216
|
var _t4;
|
|
49124
49217
|
if ($[4] !== props) {
|
|
49125
|
-
_t4 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49218
|
+
_t4 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49126
49219
|
texts: _t3
|
|
49127
49220
|
}, props));
|
|
49128
49221
|
$[4] = props;
|
|
@@ -49144,7 +49237,7 @@ var Status = function(props) {
|
|
|
49144
49237
|
}
|
|
49145
49238
|
var _t6;
|
|
49146
49239
|
if ($[7] !== props) {
|
|
49147
|
-
_t6 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49240
|
+
_t6 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49148
49241
|
texts: _t5
|
|
49149
49242
|
}, props));
|
|
49150
49243
|
$[7] = props;
|
|
@@ -49165,7 +49258,7 @@ var Status = function(props) {
|
|
|
49165
49258
|
}
|
|
49166
49259
|
var t1;
|
|
49167
49260
|
if ($[10] !== props) {
|
|
49168
|
-
t1 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49261
|
+
t1 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49169
49262
|
texts: t0
|
|
49170
49263
|
}, props));
|
|
49171
49264
|
$[10] = props;
|
|
@@ -49177,11 +49270,11 @@ var Status = function(props) {
|
|
|
49177
49270
|
};
|
|
49178
49271
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49179
49272
|
import { c as _c96 } from "react-compiler-runtime";
|
|
49180
|
-
import { Flex as
|
|
49273
|
+
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
49181
49274
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49182
49275
|
import { c as _c94 } from "react-compiler-runtime";
|
|
49183
49276
|
import { jsx as _jsx92 } from "react/jsx-runtime";
|
|
49184
|
-
function
|
|
49277
|
+
function ownKeys50(e, r) {
|
|
49185
49278
|
var t = Object.keys(e);
|
|
49186
49279
|
if (Object.getOwnPropertySymbols) {
|
|
49187
49280
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49191,30 +49284,30 @@ function ownKeys49(e, r) {
|
|
|
49191
49284
|
}
|
|
49192
49285
|
return t;
|
|
49193
49286
|
}
|
|
49194
|
-
function
|
|
49287
|
+
function _objectSpread50(e) {
|
|
49195
49288
|
for(var r = 1; r < arguments.length; r++){
|
|
49196
49289
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49197
|
-
r % 2 ?
|
|
49198
|
-
|
|
49199
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49290
|
+
r % 2 ? ownKeys50(Object(t), true).forEach(function(r2) {
|
|
49291
|
+
_defineProperty50(e, r2, t[r2]);
|
|
49292
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys50(Object(t)).forEach(function(r2) {
|
|
49200
49293
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49201
49294
|
});
|
|
49202
49295
|
}
|
|
49203
49296
|
return e;
|
|
49204
49297
|
}
|
|
49205
|
-
function
|
|
49206
|
-
return (r =
|
|
49298
|
+
function _defineProperty50(e, r, t) {
|
|
49299
|
+
return (r = _toPropertyKey50(r)) in e ? Object.defineProperty(e, r, {
|
|
49207
49300
|
value: t,
|
|
49208
49301
|
enumerable: true,
|
|
49209
49302
|
configurable: true,
|
|
49210
49303
|
writable: true
|
|
49211
49304
|
}) : e[r] = t, e;
|
|
49212
49305
|
}
|
|
49213
|
-
function
|
|
49214
|
-
var i =
|
|
49306
|
+
function _toPropertyKey50(t) {
|
|
49307
|
+
var i = _toPrimitive50(t, "string");
|
|
49215
49308
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49216
49309
|
}
|
|
49217
|
-
function
|
|
49310
|
+
function _toPrimitive50(t, r) {
|
|
49218
49311
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49219
49312
|
var e = t[Symbol.toPrimitive];
|
|
49220
49313
|
if (void 0 !== e) {
|
|
@@ -49238,7 +49331,7 @@ var MicIcon = function(props) {
|
|
|
49238
49331
|
}
|
|
49239
49332
|
var t1;
|
|
49240
49333
|
if ($[1] !== props) {
|
|
49241
|
-
t1 = /* @__PURE__ */ _jsx92("svg",
|
|
49334
|
+
t1 = /* @__PURE__ */ _jsx92("svg", _objectSpread50(_objectSpread50({
|
|
49242
49335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49243
49336
|
fill: "currentColor",
|
|
49244
49337
|
stroke: "currentColor",
|
|
@@ -49258,7 +49351,7 @@ var MicIcon = function(props) {
|
|
|
49258
49351
|
};
|
|
49259
49352
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49260
49353
|
import { c as _c95 } from "react-compiler-runtime";
|
|
49261
|
-
import { Flex as
|
|
49354
|
+
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
49262
49355
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
49263
49356
|
import { jsx as _jsx93, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
49264
49357
|
var ActionButton = function() {
|
|
@@ -49276,7 +49369,7 @@ var ActionButton = function() {
|
|
|
49276
49369
|
}
|
|
49277
49370
|
var t1;
|
|
49278
49371
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
49279
|
-
t1 = /* @__PURE__ */ _jsx93(
|
|
49372
|
+
t1 = /* @__PURE__ */ _jsx93(Flex33, {
|
|
49280
49373
|
mr: "3",
|
|
49281
49374
|
ml: "-7",
|
|
49282
49375
|
children: /* @__PURE__ */ _jsx93(IconButton10, {
|
|
@@ -49315,7 +49408,7 @@ var ActionButton = function() {
|
|
|
49315
49408
|
}
|
|
49316
49409
|
var t4;
|
|
49317
49410
|
if ($[6] !== t1 || $[7] !== t3) {
|
|
49318
|
-
t4 = /* @__PURE__ */ _jsxs33(
|
|
49411
|
+
t4 = /* @__PURE__ */ _jsxs33(Flex33, {
|
|
49319
49412
|
align: "center",
|
|
49320
49413
|
children: [
|
|
49321
49414
|
t1,
|
|
@@ -49456,7 +49549,7 @@ var ActionButton = function() {
|
|
|
49456
49549
|
};
|
|
49457
49550
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49458
49551
|
import { jsx as _jsx94, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
49459
|
-
function
|
|
49552
|
+
function ownKeys51(e, r) {
|
|
49460
49553
|
var t = Object.keys(e);
|
|
49461
49554
|
if (Object.getOwnPropertySymbols) {
|
|
49462
49555
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49466,30 +49559,30 @@ function ownKeys50(e, r) {
|
|
|
49466
49559
|
}
|
|
49467
49560
|
return t;
|
|
49468
49561
|
}
|
|
49469
|
-
function
|
|
49562
|
+
function _objectSpread51(e) {
|
|
49470
49563
|
for(var r = 1; r < arguments.length; r++){
|
|
49471
49564
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49472
|
-
r % 2 ?
|
|
49473
|
-
|
|
49474
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49565
|
+
r % 2 ? ownKeys51(Object(t), true).forEach(function(r2) {
|
|
49566
|
+
_defineProperty51(e, r2, t[r2]);
|
|
49567
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys51(Object(t)).forEach(function(r2) {
|
|
49475
49568
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49476
49569
|
});
|
|
49477
49570
|
}
|
|
49478
49571
|
return e;
|
|
49479
49572
|
}
|
|
49480
|
-
function
|
|
49481
|
-
return (r =
|
|
49573
|
+
function _defineProperty51(e, r, t) {
|
|
49574
|
+
return (r = _toPropertyKey51(r)) in e ? Object.defineProperty(e, r, {
|
|
49482
49575
|
value: t,
|
|
49483
49576
|
enumerable: true,
|
|
49484
49577
|
configurable: true,
|
|
49485
49578
|
writable: true
|
|
49486
49579
|
}) : e[r] = t, e;
|
|
49487
49580
|
}
|
|
49488
|
-
function
|
|
49489
|
-
var i =
|
|
49581
|
+
function _toPropertyKey51(t) {
|
|
49582
|
+
var i = _toPrimitive51(t, "string");
|
|
49490
49583
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49491
49584
|
}
|
|
49492
|
-
function
|
|
49585
|
+
function _toPrimitive51(t, r) {
|
|
49493
49586
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49494
49587
|
var e = t[Symbol.toPrimitive];
|
|
49495
49588
|
if (void 0 !== e) {
|
|
@@ -49506,7 +49599,7 @@ var Form = function(props) {
|
|
|
49506
49599
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49507
49600
|
var t1;
|
|
49508
49601
|
if ($[0] !== t0) {
|
|
49509
|
-
t1 = /* @__PURE__ */ _jsx94(
|
|
49602
|
+
t1 = /* @__PURE__ */ _jsx94(Flex34, {
|
|
49510
49603
|
ml: "-22.5px",
|
|
49511
49604
|
mr: "2",
|
|
49512
49605
|
align: "center",
|
|
@@ -49550,7 +49643,7 @@ var Form = function(props) {
|
|
|
49550
49643
|
}
|
|
49551
49644
|
var t6;
|
|
49552
49645
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
49553
|
-
t6 = /* @__PURE__ */ _jsx94(
|
|
49646
|
+
t6 = /* @__PURE__ */ _jsx94(Flex34, {
|
|
49554
49647
|
px: "2",
|
|
49555
49648
|
py: "1",
|
|
49556
49649
|
style: t3,
|
|
@@ -49564,7 +49657,7 @@ var Form = function(props) {
|
|
|
49564
49657
|
}
|
|
49565
49658
|
var t7;
|
|
49566
49659
|
if ($[10] !== t1 || $[11] !== t6) {
|
|
49567
|
-
t7 = /* @__PURE__ */ _jsxs34(
|
|
49660
|
+
t7 = /* @__PURE__ */ _jsxs34(Flex34, {
|
|
49568
49661
|
pb: "3",
|
|
49569
49662
|
align: "center",
|
|
49570
49663
|
children: [
|
|
@@ -49587,7 +49680,7 @@ var Form = function(props) {
|
|
|
49587
49680
|
}
|
|
49588
49681
|
var t9;
|
|
49589
49682
|
if ($[14] !== props || $[15] !== t7) {
|
|
49590
|
-
t9 = /* @__PURE__ */ _jsxs34(
|
|
49683
|
+
t9 = /* @__PURE__ */ _jsxs34(Flex34, _objectSpread51(_objectSpread51({
|
|
49591
49684
|
direction: "column",
|
|
49592
49685
|
align: "center"
|
|
49593
49686
|
}, props), {}, {
|
|
@@ -49606,7 +49699,7 @@ var Form = function(props) {
|
|
|
49606
49699
|
};
|
|
49607
49700
|
// src/components/threads/AudioThread/index.tsx
|
|
49608
49701
|
import { jsx as _jsx95, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
49609
|
-
function
|
|
49702
|
+
function ownKeys52(e, r) {
|
|
49610
49703
|
var t = Object.keys(e);
|
|
49611
49704
|
if (Object.getOwnPropertySymbols) {
|
|
49612
49705
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49616,30 +49709,30 @@ function ownKeys51(e, r) {
|
|
|
49616
49709
|
}
|
|
49617
49710
|
return t;
|
|
49618
49711
|
}
|
|
49619
|
-
function
|
|
49712
|
+
function _objectSpread52(e) {
|
|
49620
49713
|
for(var r = 1; r < arguments.length; r++){
|
|
49621
49714
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49622
|
-
r % 2 ?
|
|
49623
|
-
|
|
49624
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49715
|
+
r % 2 ? ownKeys52(Object(t), true).forEach(function(r2) {
|
|
49716
|
+
_defineProperty52(e, r2, t[r2]);
|
|
49717
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys52(Object(t)).forEach(function(r2) {
|
|
49625
49718
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49626
49719
|
});
|
|
49627
49720
|
}
|
|
49628
49721
|
return e;
|
|
49629
49722
|
}
|
|
49630
|
-
function
|
|
49631
|
-
return (r =
|
|
49723
|
+
function _defineProperty52(e, r, t) {
|
|
49724
|
+
return (r = _toPropertyKey52(r)) in e ? Object.defineProperty(e, r, {
|
|
49632
49725
|
value: t,
|
|
49633
49726
|
enumerable: true,
|
|
49634
49727
|
configurable: true,
|
|
49635
49728
|
writable: true
|
|
49636
49729
|
}) : e[r] = t, e;
|
|
49637
49730
|
}
|
|
49638
|
-
function
|
|
49639
|
-
var i =
|
|
49731
|
+
function _toPropertyKey52(t) {
|
|
49732
|
+
var i = _toPrimitive52(t, "string");
|
|
49640
49733
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49641
49734
|
}
|
|
49642
|
-
function
|
|
49735
|
+
function _toPrimitive52(t, r) {
|
|
49643
49736
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49644
49737
|
var e = t[Symbol.toPrimitive];
|
|
49645
49738
|
if (void 0 !== e) {
|
|
@@ -49668,7 +49761,7 @@ var AudioThread = function(props) {
|
|
|
49668
49761
|
}
|
|
49669
49762
|
var t3;
|
|
49670
49763
|
if ($[3] !== props) {
|
|
49671
|
-
t3 = /* @__PURE__ */ _jsxs35(
|
|
49764
|
+
t3 = /* @__PURE__ */ _jsxs35(Root15, _objectSpread52(_objectSpread52({}, props), {}, {
|
|
49672
49765
|
children: [
|
|
49673
49766
|
t0,
|
|
49674
49767
|
t1,
|
|
@@ -49682,13 +49775,13 @@ var AudioThread = function(props) {
|
|
|
49682
49775
|
}
|
|
49683
49776
|
return t3;
|
|
49684
49777
|
};
|
|
49685
|
-
AudioThread.Root =
|
|
49778
|
+
AudioThread.Root = Root15;
|
|
49686
49779
|
AudioThread.Visualization = Visualization;
|
|
49687
49780
|
AudioThread.Status = Status;
|
|
49688
49781
|
AudioThread.Form = Form;
|
|
49689
49782
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
49690
49783
|
import { jsx as _jsx96, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
49691
|
-
function
|
|
49784
|
+
function ownKeys53(e, r) {
|
|
49692
49785
|
var t = Object.keys(e);
|
|
49693
49786
|
if (Object.getOwnPropertySymbols) {
|
|
49694
49787
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49698,30 +49791,30 @@ function ownKeys52(e, r) {
|
|
|
49698
49791
|
}
|
|
49699
49792
|
return t;
|
|
49700
49793
|
}
|
|
49701
|
-
function
|
|
49794
|
+
function _objectSpread53(e) {
|
|
49702
49795
|
for(var r = 1; r < arguments.length; r++){
|
|
49703
49796
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49704
|
-
r % 2 ?
|
|
49705
|
-
|
|
49706
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49797
|
+
r % 2 ? ownKeys53(Object(t), true).forEach(function(r2) {
|
|
49798
|
+
_defineProperty53(e, r2, t[r2]);
|
|
49799
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys53(Object(t)).forEach(function(r2) {
|
|
49707
49800
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49708
49801
|
});
|
|
49709
49802
|
}
|
|
49710
49803
|
return e;
|
|
49711
49804
|
}
|
|
49712
|
-
function
|
|
49713
|
-
return (r =
|
|
49805
|
+
function _defineProperty53(e, r, t) {
|
|
49806
|
+
return (r = _toPropertyKey53(r)) in e ? Object.defineProperty(e, r, {
|
|
49714
49807
|
value: t,
|
|
49715
49808
|
enumerable: true,
|
|
49716
49809
|
configurable: true,
|
|
49717
49810
|
writable: true
|
|
49718
49811
|
}) : e[r] = t, e;
|
|
49719
49812
|
}
|
|
49720
|
-
function
|
|
49721
|
-
var i =
|
|
49813
|
+
function _toPropertyKey53(t) {
|
|
49814
|
+
var i = _toPrimitive53(t, "string");
|
|
49722
49815
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49723
49816
|
}
|
|
49724
|
-
function
|
|
49817
|
+
function _toPrimitive53(t, r) {
|
|
49725
49818
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49726
49819
|
var e = t[Symbol.toPrimitive];
|
|
49727
49820
|
if (void 0 !== e) {
|
|
@@ -49748,7 +49841,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49748
49841
|
}
|
|
49749
49842
|
var t2;
|
|
49750
49843
|
if ($[2] !== props) {
|
|
49751
|
-
t2 = /* @__PURE__ */ _jsxs36(
|
|
49844
|
+
t2 = /* @__PURE__ */ _jsxs36(Root12, _objectSpread53(_objectSpread53({}, props), {}, {
|
|
49752
49845
|
children: [
|
|
49753
49846
|
t0,
|
|
49754
49847
|
t1
|
|
@@ -49761,7 +49854,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49761
49854
|
}
|
|
49762
49855
|
return t2;
|
|
49763
49856
|
};
|
|
49764
|
-
AudioThreadDialog.Root =
|
|
49857
|
+
AudioThreadDialog.Root = Root12;
|
|
49765
49858
|
AudioThreadDialog.Trigger = Trigger;
|
|
49766
49859
|
AudioThreadDialog.Content = Content7;
|
|
49767
49860
|
// src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
|
|
@@ -50361,7 +50454,7 @@ import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
|
50361
50454
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50362
50455
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50363
50456
|
import { c as _c101 } from "react-compiler-runtime";
|
|
50364
|
-
import { Flex as
|
|
50457
|
+
import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
50365
50458
|
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50366
50459
|
var Content9 = function(t0) {
|
|
50367
50460
|
var $ = _c101(5);
|
|
@@ -50401,7 +50494,7 @@ var Content9 = function(t0) {
|
|
|
50401
50494
|
}
|
|
50402
50495
|
var t5;
|
|
50403
50496
|
if ($[3] !== t3) {
|
|
50404
|
-
t5 = /* @__PURE__ */ _jsx99(
|
|
50497
|
+
t5 = /* @__PURE__ */ _jsx99(Flex35, {
|
|
50405
50498
|
direction: "column",
|
|
50406
50499
|
flexGrow: "1",
|
|
50407
50500
|
gap: "3",
|
|
@@ -50410,7 +50503,7 @@ var Content9 = function(t0) {
|
|
|
50410
50503
|
children: /* @__PURE__ */ _jsx99(Inset3, {
|
|
50411
50504
|
clip: "padding-box",
|
|
50412
50505
|
style: t2,
|
|
50413
|
-
children: /* @__PURE__ */ _jsx99(
|
|
50506
|
+
children: /* @__PURE__ */ _jsx99(Flex35, {
|
|
50414
50507
|
flexGrow: "1",
|
|
50415
50508
|
children: /* @__PURE__ */ _jsx99("embed", {
|
|
50416
50509
|
src: t3,
|