@superinterface/react 3.25.0 → 3.27.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 +659 -538
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +700 -579
- 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,114 @@ 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(3);
|
|
43379
|
+
var children = t0.children;
|
|
43380
|
+
var t1;
|
|
43381
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43382
|
+
t1 = /* @__PURE__ */ _jsx55(Content6, {});
|
|
43383
|
+
$[0] = t1;
|
|
43384
|
+
} else {
|
|
43385
|
+
t1 = $[0];
|
|
43386
|
+
}
|
|
43387
|
+
var t2;
|
|
43388
|
+
if ($[1] !== children) {
|
|
43389
|
+
t2 = /* @__PURE__ */ _jsxs16(Root5, {
|
|
43390
|
+
children: [
|
|
43391
|
+
children,
|
|
43392
|
+
t1
|
|
43393
|
+
]
|
|
43394
|
+
});
|
|
43395
|
+
$[1] = children;
|
|
43396
|
+
$[2] = t2;
|
|
43397
|
+
} else {
|
|
43398
|
+
t2 = $[2];
|
|
43399
|
+
}
|
|
43400
|
+
return t2;
|
|
43401
|
+
};
|
|
43402
|
+
var Root5 = function(t0) {
|
|
43403
|
+
var $ = _c53(7);
|
|
43404
|
+
var children = t0.children;
|
|
43405
|
+
var assistantNameContext = useContext13(AssistantNameContext);
|
|
43406
|
+
var t1;
|
|
43407
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43408
|
+
t1 = /* @__PURE__ */ _jsx55(MessageGroup.AssistantAvatar, {});
|
|
43409
|
+
$[0] = t1;
|
|
43410
|
+
} else {
|
|
43411
|
+
t1 = $[0];
|
|
43412
|
+
}
|
|
43413
|
+
var t2;
|
|
43414
|
+
if ($[1] !== assistantNameContext) {
|
|
43415
|
+
t2 = /* @__PURE__ */ _jsx55(MessageGroup.Name, {
|
|
43416
|
+
children: assistantNameContext
|
|
43417
|
+
});
|
|
43418
|
+
$[1] = assistantNameContext;
|
|
43419
|
+
$[2] = t2;
|
|
43420
|
+
} else {
|
|
43421
|
+
t2 = $[2];
|
|
43422
|
+
}
|
|
43423
|
+
var t3;
|
|
43424
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43425
|
+
t3 = /* @__PURE__ */ _jsx55(StartingContentSkeleton, {});
|
|
43426
|
+
$[3] = t3;
|
|
43427
|
+
} else {
|
|
43428
|
+
t3 = $[3];
|
|
43429
|
+
}
|
|
43430
|
+
var t4;
|
|
43431
|
+
if ($[4] !== children || $[5] !== t2) {
|
|
43432
|
+
t4 = /* @__PURE__ */ _jsxs16(MessageGroup.Root, {
|
|
43433
|
+
children: [
|
|
43434
|
+
t1,
|
|
43435
|
+
/* @__PURE__ */ _jsxs16(Box10, {
|
|
43436
|
+
children: [
|
|
43437
|
+
t2,
|
|
43438
|
+
children,
|
|
43439
|
+
t3
|
|
43440
|
+
]
|
|
43441
|
+
})
|
|
43442
|
+
]
|
|
43443
|
+
});
|
|
43444
|
+
$[4] = children;
|
|
43445
|
+
$[5] = t2;
|
|
43446
|
+
$[6] = t4;
|
|
43447
|
+
} else {
|
|
43448
|
+
t4 = $[6];
|
|
43449
|
+
}
|
|
43450
|
+
return t4;
|
|
43451
|
+
};
|
|
43452
|
+
var Content6 = StartingContentSkeleton;
|
|
43453
|
+
StartingSkeleton.Root = Root5;
|
|
43454
|
+
StartingSkeleton.Content = Content6;
|
|
43279
43455
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
43280
43456
|
var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
43281
43457
|
components: {
|
|
@@ -43288,22 +43464,24 @@ var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
|
43288
43464
|
TextContent: TextContent,
|
|
43289
43465
|
ImageFileContent: ImageFileContent,
|
|
43290
43466
|
MessageGroup: MessageGroup,
|
|
43291
|
-
MessageAttachments: MessageAttachments
|
|
43467
|
+
MessageAttachments: MessageAttachments,
|
|
43468
|
+
StartingSkeleton: StartingSkeleton,
|
|
43469
|
+
StartingContentSkeleton: StartingContentSkeleton
|
|
43292
43470
|
}
|
|
43293
43471
|
});
|
|
43294
43472
|
// src/components/runSteps/RunSteps/index.tsx
|
|
43295
|
-
import { jsx as
|
|
43473
|
+
import { jsx as _jsx56 } from "react/jsx-runtime";
|
|
43296
43474
|
var RunSteps = function(t0) {
|
|
43297
|
-
var $ =
|
|
43475
|
+
var $ = _c54(7);
|
|
43298
43476
|
var runSteps = t0.runSteps;
|
|
43299
|
-
var componentsContext =
|
|
43477
|
+
var componentsContext = useContext14(ComponentsContext);
|
|
43300
43478
|
var Component2 = componentsContext.components.RunStep;
|
|
43301
43479
|
var t1;
|
|
43302
43480
|
if ($[0] !== Component2 || $[1] !== runSteps) {
|
|
43303
43481
|
var _t;
|
|
43304
43482
|
if ($[3] !== Component2) {
|
|
43305
43483
|
_t = function(runStep) {
|
|
43306
|
-
return /* @__PURE__ */
|
|
43484
|
+
return /* @__PURE__ */ _jsx56(Component2, {
|
|
43307
43485
|
runStep: runStep
|
|
43308
43486
|
}, runStep.id);
|
|
43309
43487
|
};
|
|
@@ -43321,7 +43499,7 @@ var RunSteps = function(t0) {
|
|
|
43321
43499
|
}
|
|
43322
43500
|
var t2;
|
|
43323
43501
|
if ($[5] !== t1) {
|
|
43324
|
-
t2 = /* @__PURE__ */
|
|
43502
|
+
t2 = /* @__PURE__ */ _jsx56(Flex15, {
|
|
43325
43503
|
direction: "column-reverse",
|
|
43326
43504
|
children: t1
|
|
43327
43505
|
});
|
|
@@ -43340,16 +43518,16 @@ var MessageContext = /* @__PURE__ */ createContext10({
|
|
|
43340
43518
|
// src/components/threads/Thread/Message/Provider.tsx
|
|
43341
43519
|
var Provider = MessageContext.Provider;
|
|
43342
43520
|
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
43343
|
-
import { c as
|
|
43344
|
-
import { jsx as
|
|
43521
|
+
import { c as _c55 } from "react-compiler-runtime";
|
|
43522
|
+
import { jsx as _jsx57 } from "react/jsx-runtime";
|
|
43345
43523
|
var Attachments = function(t0) {
|
|
43346
|
-
var $ =
|
|
43524
|
+
var $ = _c55(3);
|
|
43347
43525
|
var message = t0.message;
|
|
43348
43526
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43349
43527
|
var MessageAttachments2 = t1.MessageAttachments;
|
|
43350
43528
|
var t2;
|
|
43351
43529
|
if ($[0] !== MessageAttachments2 || $[1] !== message) {
|
|
43352
|
-
t2 = /* @__PURE__ */
|
|
43530
|
+
t2 = /* @__PURE__ */ _jsx57(MessageAttachments2, {
|
|
43353
43531
|
message: message
|
|
43354
43532
|
});
|
|
43355
43533
|
$[0] = MessageAttachments2;
|
|
@@ -43361,18 +43539,18 @@ var Attachments = function(t0) {
|
|
|
43361
43539
|
return t2;
|
|
43362
43540
|
};
|
|
43363
43541
|
// src/components/messages/MessageContent/index.tsx
|
|
43364
|
-
import { c as
|
|
43542
|
+
import { c as _c57 } from "react-compiler-runtime";
|
|
43365
43543
|
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
43366
|
-
import { c as
|
|
43367
|
-
import { jsx as
|
|
43544
|
+
import { c as _c56 } from "react-compiler-runtime";
|
|
43545
|
+
import { jsx as _jsx58 } from "react/jsx-runtime";
|
|
43368
43546
|
var TextContent2 = function(t0) {
|
|
43369
|
-
var $ =
|
|
43547
|
+
var $ = _c56(3);
|
|
43370
43548
|
var content2 = t0.content;
|
|
43371
43549
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43372
43550
|
var TextContent3 = t1.TextContent;
|
|
43373
43551
|
var t2;
|
|
43374
43552
|
if ($[0] !== TextContent3 || $[1] !== content2) {
|
|
43375
|
-
t2 = /* @__PURE__ */
|
|
43553
|
+
t2 = /* @__PURE__ */ _jsx58(TextContent3, {
|
|
43376
43554
|
content: content2
|
|
43377
43555
|
});
|
|
43378
43556
|
$[0] = TextContent3;
|
|
@@ -43384,13 +43562,13 @@ var TextContent2 = function(t0) {
|
|
|
43384
43562
|
return t2;
|
|
43385
43563
|
};
|
|
43386
43564
|
var ImageFileContent2 = function(t0) {
|
|
43387
|
-
var $ =
|
|
43565
|
+
var $ = _c56(3);
|
|
43388
43566
|
var content2 = t0.content;
|
|
43389
43567
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43390
43568
|
var ImageFileContent3 = t1.ImageFileContent;
|
|
43391
43569
|
var t2;
|
|
43392
43570
|
if ($[0] !== ImageFileContent3 || $[1] !== content2) {
|
|
43393
|
-
t2 = /* @__PURE__ */
|
|
43571
|
+
t2 = /* @__PURE__ */ _jsx58(ImageFileContent3, {
|
|
43394
43572
|
content: content2
|
|
43395
43573
|
});
|
|
43396
43574
|
$[0] = ImageFileContent3;
|
|
@@ -43402,12 +43580,12 @@ var ImageFileContent2 = function(t0) {
|
|
|
43402
43580
|
return t2;
|
|
43403
43581
|
};
|
|
43404
43582
|
var ContentPart = function(t0) {
|
|
43405
|
-
var $ =
|
|
43583
|
+
var $ = _c56(4);
|
|
43406
43584
|
var content2 = t0.content;
|
|
43407
43585
|
if (content2.type === "text") {
|
|
43408
43586
|
var t1;
|
|
43409
43587
|
if ($[0] !== content2) {
|
|
43410
|
-
t1 = /* @__PURE__ */
|
|
43588
|
+
t1 = /* @__PURE__ */ _jsx58(TextContent2, {
|
|
43411
43589
|
content: content2
|
|
43412
43590
|
});
|
|
43413
43591
|
$[0] = content2;
|
|
@@ -43420,7 +43598,7 @@ var ContentPart = function(t0) {
|
|
|
43420
43598
|
if (content2.type === "image_file") {
|
|
43421
43599
|
var _t;
|
|
43422
43600
|
if ($[2] !== content2) {
|
|
43423
|
-
_t = /* @__PURE__ */
|
|
43601
|
+
_t = /* @__PURE__ */ _jsx58(ImageFileContent2, {
|
|
43424
43602
|
content: content2
|
|
43425
43603
|
});
|
|
43426
43604
|
$[2] = content2;
|
|
@@ -43433,9 +43611,9 @@ var ContentPart = function(t0) {
|
|
|
43433
43611
|
return null;
|
|
43434
43612
|
};
|
|
43435
43613
|
// src/components/messages/MessageContent/index.tsx
|
|
43436
|
-
import { Fragment as _Fragment3, jsx as
|
|
43614
|
+
import { Fragment as _Fragment3, jsx as _jsx59 } from "react/jsx-runtime";
|
|
43437
43615
|
var MessageContent = function(t0) {
|
|
43438
|
-
var $ =
|
|
43616
|
+
var $ = _c57(4);
|
|
43439
43617
|
var message = t0.message;
|
|
43440
43618
|
var t1;
|
|
43441
43619
|
if ($[0] !== message.content) {
|
|
@@ -43447,7 +43625,7 @@ var MessageContent = function(t0) {
|
|
|
43447
43625
|
}
|
|
43448
43626
|
var t2;
|
|
43449
43627
|
if ($[2] !== t1) {
|
|
43450
|
-
t2 = /* @__PURE__ */
|
|
43628
|
+
t2 = /* @__PURE__ */ _jsx59(_Fragment3, {
|
|
43451
43629
|
children: t1
|
|
43452
43630
|
});
|
|
43453
43631
|
$[2] = t1;
|
|
@@ -43458,14 +43636,14 @@ var MessageContent = function(t0) {
|
|
|
43458
43636
|
return t2;
|
|
43459
43637
|
};
|
|
43460
43638
|
function _temp2(content2, index) {
|
|
43461
|
-
return /* @__PURE__ */
|
|
43639
|
+
return /* @__PURE__ */ _jsx59(ContentPart, {
|
|
43462
43640
|
content: content2
|
|
43463
43641
|
}, index);
|
|
43464
43642
|
}
|
|
43465
43643
|
// src/components/threads/Thread/Message/index.tsx
|
|
43466
|
-
import { jsx as
|
|
43644
|
+
import { jsx as _jsx60, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
43467
43645
|
var Message = function(t0) {
|
|
43468
|
-
var $ =
|
|
43646
|
+
var $ = _c58(37);
|
|
43469
43647
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43470
43648
|
var t1;
|
|
43471
43649
|
bb0: {
|
|
@@ -43573,7 +43751,7 @@ var Message = function(t0) {
|
|
|
43573
43751
|
}
|
|
43574
43752
|
var t3;
|
|
43575
43753
|
if ($[21] !== olderRunSteps_0) {
|
|
43576
|
-
t3 = /* @__PURE__ */
|
|
43754
|
+
t3 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43577
43755
|
runSteps: olderRunSteps_0
|
|
43578
43756
|
});
|
|
43579
43757
|
$[21] = olderRunSteps_0;
|
|
@@ -43592,13 +43770,13 @@ var Message = function(t0) {
|
|
|
43592
43770
|
}
|
|
43593
43771
|
var t5;
|
|
43594
43772
|
if ($[24] !== message) {
|
|
43595
|
-
t5 = /* @__PURE__ */
|
|
43773
|
+
t5 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43596
43774
|
style: t4,
|
|
43597
43775
|
children: [
|
|
43598
|
-
/* @__PURE__ */
|
|
43776
|
+
/* @__PURE__ */ _jsx60(Attachments, {
|
|
43599
43777
|
message: message
|
|
43600
43778
|
}),
|
|
43601
|
-
/* @__PURE__ */
|
|
43779
|
+
/* @__PURE__ */ _jsx60(MessageContent, {
|
|
43602
43780
|
message: message
|
|
43603
43781
|
})
|
|
43604
43782
|
]
|
|
@@ -43610,7 +43788,7 @@ var Message = function(t0) {
|
|
|
43610
43788
|
}
|
|
43611
43789
|
var t6;
|
|
43612
43790
|
if ($[26] !== laterRunSteps_0) {
|
|
43613
|
-
t6 = /* @__PURE__ */
|
|
43791
|
+
t6 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43614
43792
|
runSteps: laterRunSteps_0
|
|
43615
43793
|
});
|
|
43616
43794
|
$[26] = laterRunSteps_0;
|
|
@@ -43620,7 +43798,7 @@ var Message = function(t0) {
|
|
|
43620
43798
|
}
|
|
43621
43799
|
var t7;
|
|
43622
43800
|
if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
|
|
43623
|
-
t7 = /* @__PURE__ */
|
|
43801
|
+
t7 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43624
43802
|
className: className,
|
|
43625
43803
|
style: style,
|
|
43626
43804
|
children: [
|
|
@@ -43640,7 +43818,7 @@ var Message = function(t0) {
|
|
|
43640
43818
|
}
|
|
43641
43819
|
var t8;
|
|
43642
43820
|
if ($[34] !== t2 || $[35] !== t7) {
|
|
43643
|
-
t8 = /* @__PURE__ */
|
|
43821
|
+
t8 = /* @__PURE__ */ _jsx60(Provider, {
|
|
43644
43822
|
value: t2,
|
|
43645
43823
|
children: t7
|
|
43646
43824
|
});
|
|
@@ -43659,10 +43837,10 @@ function _temp22(runStep_1) {
|
|
|
43659
43837
|
return runStep_1.step_details.type === "message_creation";
|
|
43660
43838
|
}
|
|
43661
43839
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43662
|
-
import { c as
|
|
43840
|
+
import { c as _c61 } from "react-compiler-runtime";
|
|
43663
43841
|
import { useEffect as useEffect3 } from "react";
|
|
43664
43842
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43665
|
-
import { c as
|
|
43843
|
+
import { c as _c59 } from "react-compiler-runtime";
|
|
43666
43844
|
import { useMemo as useMemo11 } from "react";
|
|
43667
43845
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43668
43846
|
import _6 from "lodash";
|
|
@@ -43697,7 +43875,7 @@ var newGroup = function(_ref) {
|
|
|
43697
43875
|
]);
|
|
43698
43876
|
};
|
|
43699
43877
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43700
|
-
function
|
|
43878
|
+
function ownKeys26(e, r) {
|
|
43701
43879
|
var t = Object.keys(e);
|
|
43702
43880
|
if (Object.getOwnPropertySymbols) {
|
|
43703
43881
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -43707,30 +43885,30 @@ function ownKeys25(e, r) {
|
|
|
43707
43885
|
}
|
|
43708
43886
|
return t;
|
|
43709
43887
|
}
|
|
43710
|
-
function
|
|
43888
|
+
function _objectSpread26(e) {
|
|
43711
43889
|
for(var r = 1; r < arguments.length; r++){
|
|
43712
43890
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
43713
|
-
r % 2 ?
|
|
43714
|
-
|
|
43715
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
43891
|
+
r % 2 ? ownKeys26(Object(t), true).forEach(function(r2) {
|
|
43892
|
+
_defineProperty26(e, r2, t[r2]);
|
|
43893
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys26(Object(t)).forEach(function(r2) {
|
|
43716
43894
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
43717
43895
|
});
|
|
43718
43896
|
}
|
|
43719
43897
|
return e;
|
|
43720
43898
|
}
|
|
43721
|
-
function
|
|
43722
|
-
return (r =
|
|
43899
|
+
function _defineProperty26(e, r, t) {
|
|
43900
|
+
return (r = _toPropertyKey26(r)) in e ? Object.defineProperty(e, r, {
|
|
43723
43901
|
value: t,
|
|
43724
43902
|
enumerable: true,
|
|
43725
43903
|
configurable: true,
|
|
43726
43904
|
writable: true
|
|
43727
43905
|
}) : e[r] = t, e;
|
|
43728
43906
|
}
|
|
43729
|
-
function
|
|
43730
|
-
var i =
|
|
43907
|
+
function _toPropertyKey26(t) {
|
|
43908
|
+
var i = _toPrimitive26(t, "string");
|
|
43731
43909
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
43732
43910
|
}
|
|
43733
|
-
function
|
|
43911
|
+
function _toPrimitive26(t, r) {
|
|
43734
43912
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
43735
43913
|
var e = t[Symbol.toPrimitive];
|
|
43736
43914
|
if (void 0 !== e) {
|
|
@@ -43757,7 +43935,7 @@ var messageGroups = function(_ref) {
|
|
|
43757
43935
|
});
|
|
43758
43936
|
}
|
|
43759
43937
|
return _to_consumable_array(_6.dropRight(groups)).concat([
|
|
43760
|
-
|
|
43938
|
+
_objectSpread26(_objectSpread26({}, group), {}, {
|
|
43761
43939
|
messages: _to_consumable_array(group.messages).concat([
|
|
43762
43940
|
message
|
|
43763
43941
|
])
|
|
@@ -43767,7 +43945,7 @@ var messageGroups = function(_ref) {
|
|
|
43767
43945
|
};
|
|
43768
43946
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43769
43947
|
var useMessageGroups = function(t0) {
|
|
43770
|
-
var $ =
|
|
43948
|
+
var $ = _c59(4);
|
|
43771
43949
|
var messages2 = t0.messages;
|
|
43772
43950
|
var t1;
|
|
43773
43951
|
var t2;
|
|
@@ -43794,18 +43972,18 @@ var useMessageGroups = function(t0) {
|
|
|
43794
43972
|
return t1;
|
|
43795
43973
|
};
|
|
43796
43974
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
43797
|
-
import { c as
|
|
43975
|
+
import { c as _c60 } from "react-compiler-runtime";
|
|
43798
43976
|
import { forwardRef as forwardRef3 } from "react";
|
|
43799
|
-
import { Flex as Flex16, Avatar as Avatar3, Box as
|
|
43800
|
-
import { jsx as
|
|
43977
|
+
import { Flex as Flex16, Avatar as Avatar3, Box as Box12, Skeleton as Skeleton2 } from "@radix-ui/themes";
|
|
43978
|
+
import { jsx as _jsx61, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43801
43979
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
43802
|
-
var $ =
|
|
43980
|
+
var $ = _c60(7);
|
|
43803
43981
|
var t0;
|
|
43804
43982
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43805
|
-
t0 = /* @__PURE__ */
|
|
43983
|
+
t0 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43806
43984
|
loading: true,
|
|
43807
|
-
children: /* @__PURE__ */
|
|
43808
|
-
fallback: /* @__PURE__ */
|
|
43985
|
+
children: /* @__PURE__ */ _jsx61(Avatar3, {
|
|
43986
|
+
fallback: /* @__PURE__ */ _jsx61(Flex16, {}),
|
|
43809
43987
|
size: "1"
|
|
43810
43988
|
})
|
|
43811
43989
|
});
|
|
@@ -43815,8 +43993,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43815
43993
|
}
|
|
43816
43994
|
var t1;
|
|
43817
43995
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43818
|
-
t1 = /* @__PURE__ */
|
|
43819
|
-
children: /* @__PURE__ */
|
|
43996
|
+
t1 = /* @__PURE__ */ _jsx61(MessageGroup.Name, {
|
|
43997
|
+
children: /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43820
43998
|
loading: true,
|
|
43821
43999
|
style: {
|
|
43822
44000
|
width: "128px"
|
|
@@ -43829,7 +44007,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43829
44007
|
}
|
|
43830
44008
|
var t2;
|
|
43831
44009
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43832
|
-
t2 = /* @__PURE__ */
|
|
44010
|
+
t2 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43833
44011
|
loading: true,
|
|
43834
44012
|
style: {
|
|
43835
44013
|
width: "256px"
|
|
@@ -43841,7 +44019,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43841
44019
|
}
|
|
43842
44020
|
var t3;
|
|
43843
44021
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43844
|
-
t3 = /* @__PURE__ */
|
|
44022
|
+
t3 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43845
44023
|
loading: true,
|
|
43846
44024
|
style: {
|
|
43847
44025
|
width: "256px",
|
|
@@ -43854,13 +44032,13 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43854
44032
|
}
|
|
43855
44033
|
var t4;
|
|
43856
44034
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43857
|
-
t4 = /* @__PURE__ */
|
|
44035
|
+
t4 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43858
44036
|
pb: "3",
|
|
43859
44037
|
children: [
|
|
43860
44038
|
t1,
|
|
43861
44039
|
t2,
|
|
43862
44040
|
t3,
|
|
43863
|
-
/* @__PURE__ */
|
|
44041
|
+
/* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43864
44042
|
loading: true,
|
|
43865
44043
|
style: {
|
|
43866
44044
|
width: "256px",
|
|
@@ -43875,7 +44053,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43875
44053
|
}
|
|
43876
44054
|
var t5;
|
|
43877
44055
|
if ($[5] !== ref) {
|
|
43878
|
-
t5 = /* @__PURE__ */
|
|
44056
|
+
t5 = /* @__PURE__ */ _jsxs18(MessageGroup.Root, {
|
|
43879
44057
|
ref: ref,
|
|
43880
44058
|
children: [
|
|
43881
44059
|
t0,
|
|
@@ -43890,9 +44068,9 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43890
44068
|
return t5;
|
|
43891
44069
|
});
|
|
43892
44070
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43893
|
-
import { jsx as
|
|
43894
|
-
var
|
|
43895
|
-
var $ =
|
|
44071
|
+
import { jsx as _jsx62, Fragment as _Fragment4 } from "react/jsx-runtime";
|
|
44072
|
+
var Content7 = function() {
|
|
44073
|
+
var $ = _c61(14);
|
|
43896
44074
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
43897
44075
|
var addToast = useToasts().addToast;
|
|
43898
44076
|
var t0;
|
|
@@ -43935,7 +44113,7 @@ var Content6 = function() {
|
|
|
43935
44113
|
if (isLoading || isLoadingError) {
|
|
43936
44114
|
var _t;
|
|
43937
44115
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43938
|
-
_t = /* @__PURE__ */
|
|
44116
|
+
_t = /* @__PURE__ */ _jsx62(MessagesSkeleton, {});
|
|
43939
44117
|
$[6] = _t;
|
|
43940
44118
|
} else {
|
|
43941
44119
|
_t = $[6];
|
|
@@ -43947,7 +44125,7 @@ var Content6 = function() {
|
|
|
43947
44125
|
var _t2;
|
|
43948
44126
|
if ($[10] !== MessageGroup2) {
|
|
43949
44127
|
_t2 = function(messageGroup) {
|
|
43950
|
-
return /* @__PURE__ */
|
|
44128
|
+
return /* @__PURE__ */ _jsx62(MessageGroup2, {
|
|
43951
44129
|
messageGroup: messageGroup
|
|
43952
44130
|
}, messageGroup.id);
|
|
43953
44131
|
};
|
|
@@ -43965,7 +44143,7 @@ var Content6 = function() {
|
|
|
43965
44143
|
}
|
|
43966
44144
|
var t5;
|
|
43967
44145
|
if ($[12] !== t4) {
|
|
43968
|
-
t5 = /* @__PURE__ */
|
|
44146
|
+
t5 = /* @__PURE__ */ _jsx62(_Fragment4, {
|
|
43969
44147
|
children: t4
|
|
43970
44148
|
});
|
|
43971
44149
|
$[12] = t4;
|
|
@@ -43978,89 +44156,36 @@ var Content6 = function() {
|
|
|
43978
44156
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
43979
44157
|
import { c as _c62 } from "react-compiler-runtime";
|
|
43980
44158
|
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;
|
|
44159
|
+
import { Box as Box13 } from "@radix-ui/themes";
|
|
44160
|
+
import { jsx as _jsx63, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44161
|
+
var StartingSkeleton2 = function() {
|
|
44162
|
+
var $ = _c62(2);
|
|
44163
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44164
|
+
var StartingSkeleton3 = t0.StartingSkeleton;
|
|
44165
|
+
var t1;
|
|
44166
|
+
if ($[0] !== StartingSkeleton3) {
|
|
44167
|
+
t1 = /* @__PURE__ */ _jsx63(StartingSkeleton3, {});
|
|
44168
|
+
$[0] = StartingSkeleton3;
|
|
44169
|
+
$[1] = t1;
|
|
44005
44170
|
} else {
|
|
44006
|
-
|
|
44171
|
+
t1 = $[1];
|
|
44007
44172
|
}
|
|
44008
|
-
return
|
|
44173
|
+
return t1;
|
|
44009
44174
|
};
|
|
44010
|
-
|
|
44011
|
-
|
|
44012
|
-
var
|
|
44013
|
-
var
|
|
44014
|
-
var children = t0.children;
|
|
44015
|
-
var assistantNameContext = useContext14(AssistantNameContext);
|
|
44175
|
+
var StartingContentSkeleton2 = function() {
|
|
44176
|
+
var $ = _c62(2);
|
|
44177
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44178
|
+
var StartingContentSkeleton3 = t0.StartingContentSkeleton;
|
|
44016
44179
|
var t1;
|
|
44017
|
-
if ($[0]
|
|
44018
|
-
t1 = /* @__PURE__ */
|
|
44019
|
-
$[0] =
|
|
44180
|
+
if ($[0] !== StartingContentSkeleton3) {
|
|
44181
|
+
t1 = /* @__PURE__ */ _jsx63(StartingContentSkeleton3, {});
|
|
44182
|
+
$[0] = StartingContentSkeleton3;
|
|
44183
|
+
$[1] = t1;
|
|
44020
44184
|
} else {
|
|
44021
|
-
t1 = $[
|
|
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;
|
|
44037
|
-
} else {
|
|
44038
|
-
t3 = $[3];
|
|
44039
|
-
}
|
|
44040
|
-
var t4;
|
|
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];
|
|
44185
|
+
t1 = $[1];
|
|
44059
44186
|
}
|
|
44060
|
-
return
|
|
44187
|
+
return t1;
|
|
44061
44188
|
};
|
|
44062
|
-
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
44063
|
-
import { jsx as _jsx63, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44064
44189
|
var Progress = function() {
|
|
44065
44190
|
var $ = _c62(3);
|
|
44066
44191
|
var latestMessage = useLatestMessage().latestMessage;
|
|
@@ -44095,7 +44220,7 @@ var Progress = function() {
|
|
|
44095
44220
|
if (isStartingSkeletonVisible) {
|
|
44096
44221
|
var t1;
|
|
44097
44222
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44098
|
-
t1 = /* @__PURE__ */ _jsx63(
|
|
44223
|
+
t1 = /* @__PURE__ */ _jsx63(StartingSkeleton2, {});
|
|
44099
44224
|
$[0] = t1;
|
|
44100
44225
|
} else {
|
|
44101
44226
|
t1 = $[0];
|
|
@@ -44105,11 +44230,7 @@ var Progress = function() {
|
|
|
44105
44230
|
if (isMutatingMessage) {
|
|
44106
44231
|
var _t;
|
|
44107
44232
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44108
|
-
_t = /* @__PURE__ */ _jsx63(
|
|
44109
|
-
flexShrink: "0",
|
|
44110
|
-
height: "24px",
|
|
44111
|
-
width: "24px"
|
|
44112
|
-
});
|
|
44233
|
+
_t = /* @__PURE__ */ _jsx63(MessageGroup.AssistantAvatar.Root, {});
|
|
44113
44234
|
$[1] = _t;
|
|
44114
44235
|
} else {
|
|
44115
44236
|
_t = $[1];
|
|
@@ -44120,7 +44241,7 @@ var Progress = function() {
|
|
|
44120
44241
|
children: [
|
|
44121
44242
|
_t,
|
|
44122
44243
|
/* @__PURE__ */ _jsx63(Box13, {
|
|
44123
|
-
children: /* @__PURE__ */ _jsx63(
|
|
44244
|
+
children: /* @__PURE__ */ _jsx63(StartingContentSkeleton2, {})
|
|
44124
44245
|
})
|
|
44125
44246
|
]
|
|
44126
44247
|
});
|
|
@@ -44134,7 +44255,7 @@ var Progress = function() {
|
|
|
44134
44255
|
};
|
|
44135
44256
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44136
44257
|
import { c as _c63 } from "react-compiler-runtime";
|
|
44137
|
-
import { Flex as
|
|
44258
|
+
import { Flex as Flex17 } from "@radix-ui/themes";
|
|
44138
44259
|
// src/hooks/misc/useInfiniteScroll/index.tsx
|
|
44139
44260
|
import { useRef as useRef3 } from "react";
|
|
44140
44261
|
import { useInView } from "react-intersection-observer";
|
|
@@ -44187,7 +44308,7 @@ var useInfiniteScroll = function(_ref) {
|
|
|
44187
44308
|
};
|
|
44188
44309
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44189
44310
|
import { jsx as _jsx64, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
44190
|
-
function
|
|
44311
|
+
function ownKeys27(e, r) {
|
|
44191
44312
|
var t = Object.keys(e);
|
|
44192
44313
|
if (Object.getOwnPropertySymbols) {
|
|
44193
44314
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44197,30 +44318,30 @@ function ownKeys26(e, r) {
|
|
|
44197
44318
|
}
|
|
44198
44319
|
return t;
|
|
44199
44320
|
}
|
|
44200
|
-
function
|
|
44321
|
+
function _objectSpread27(e) {
|
|
44201
44322
|
for(var r = 1; r < arguments.length; r++){
|
|
44202
44323
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44203
|
-
r % 2 ?
|
|
44204
|
-
|
|
44205
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44324
|
+
r % 2 ? ownKeys27(Object(t), true).forEach(function(r2) {
|
|
44325
|
+
_defineProperty27(e, r2, t[r2]);
|
|
44326
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys27(Object(t)).forEach(function(r2) {
|
|
44206
44327
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44207
44328
|
});
|
|
44208
44329
|
}
|
|
44209
44330
|
return e;
|
|
44210
44331
|
}
|
|
44211
|
-
function
|
|
44212
|
-
return (r =
|
|
44332
|
+
function _defineProperty27(e, r, t) {
|
|
44333
|
+
return (r = _toPropertyKey27(r)) in e ? Object.defineProperty(e, r, {
|
|
44213
44334
|
value: t,
|
|
44214
44335
|
enumerable: true,
|
|
44215
44336
|
configurable: true,
|
|
44216
44337
|
writable: true
|
|
44217
44338
|
}) : e[r] = t, e;
|
|
44218
44339
|
}
|
|
44219
|
-
function
|
|
44220
|
-
var i =
|
|
44340
|
+
function _toPropertyKey27(t) {
|
|
44341
|
+
var i = _toPrimitive27(t, "string");
|
|
44221
44342
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44222
44343
|
}
|
|
44223
|
-
function
|
|
44344
|
+
function _toPrimitive27(t, r) {
|
|
44224
44345
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44225
44346
|
var e = t[Symbol.toPrimitive];
|
|
44226
44347
|
if (void 0 !== e) {
|
|
@@ -44230,7 +44351,7 @@ function _toPrimitive26(t, r) {
|
|
|
44230
44351
|
}
|
|
44231
44352
|
return ("string" === r ? String : Number)(t);
|
|
44232
44353
|
}
|
|
44233
|
-
var
|
|
44354
|
+
var Root6 = function(t0) {
|
|
44234
44355
|
var $ = _c63(18);
|
|
44235
44356
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44236
44357
|
var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
|
|
@@ -44259,7 +44380,7 @@ var Root4 = function(t0) {
|
|
|
44259
44380
|
}
|
|
44260
44381
|
var t3;
|
|
44261
44382
|
if ($[6] !== t2) {
|
|
44262
|
-
t3 =
|
|
44383
|
+
t3 = _objectSpread27({
|
|
44263
44384
|
overflow: "auto"
|
|
44264
44385
|
}, t2);
|
|
44265
44386
|
$[6] = t2;
|
|
@@ -44269,7 +44390,7 @@ var Root4 = function(t0) {
|
|
|
44269
44390
|
}
|
|
44270
44391
|
var t4;
|
|
44271
44392
|
if ($[8] !== hasNextPage || $[9] !== loaderRef) {
|
|
44272
|
-
t4 = hasNextPage && /* @__PURE__ */ _jsx64(
|
|
44393
|
+
t4 = hasNextPage && /* @__PURE__ */ _jsx64(Flex17, {
|
|
44273
44394
|
ref: loaderRef
|
|
44274
44395
|
});
|
|
44275
44396
|
$[8] = hasNextPage;
|
|
@@ -44280,7 +44401,7 @@ var Root4 = function(t0) {
|
|
|
44280
44401
|
}
|
|
44281
44402
|
var t5;
|
|
44282
44403
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44283
|
-
t5 = /* @__PURE__ */ _jsx64(
|
|
44404
|
+
t5 = /* @__PURE__ */ _jsx64(Flex17, {
|
|
44284
44405
|
flexShrink: "0",
|
|
44285
44406
|
flexGrow: "1"
|
|
44286
44407
|
});
|
|
@@ -44290,7 +44411,7 @@ var Root4 = function(t0) {
|
|
|
44290
44411
|
}
|
|
44291
44412
|
var t6;
|
|
44292
44413
|
if ($[12] !== children || $[13] !== className || $[14] !== containerRef || $[15] !== t3 || $[16] !== t4) {
|
|
44293
|
-
t6 = /* @__PURE__ */ _jsxs20(
|
|
44414
|
+
t6 = /* @__PURE__ */ _jsxs20(Flex17, {
|
|
44294
44415
|
ref: containerRef,
|
|
44295
44416
|
direction: "column-reverse",
|
|
44296
44417
|
flexGrow: "1",
|
|
@@ -44339,7 +44460,7 @@ var Messages2 = function(t0) {
|
|
|
44339
44460
|
var t1;
|
|
44340
44461
|
var t2;
|
|
44341
44462
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44342
|
-
t1 = /* @__PURE__ */ _jsx66(
|
|
44463
|
+
t1 = /* @__PURE__ */ _jsx66(Flex18, {
|
|
44343
44464
|
flexShrink: "0",
|
|
44344
44465
|
height: "var(--space-3)"
|
|
44345
44466
|
});
|
|
@@ -44354,9 +44475,9 @@ var Messages2 = function(t0) {
|
|
|
44354
44475
|
var t4;
|
|
44355
44476
|
var t5;
|
|
44356
44477
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44357
|
-
t3 = /* @__PURE__ */ _jsx66(
|
|
44478
|
+
t3 = /* @__PURE__ */ _jsx66(Content7, {});
|
|
44358
44479
|
t4 = /* @__PURE__ */ _jsx66(NextPageSkeleton, {});
|
|
44359
|
-
t5 = /* @__PURE__ */ _jsx66(
|
|
44480
|
+
t5 = /* @__PURE__ */ _jsx66(Flex18, {
|
|
44360
44481
|
flexShrink: "0",
|
|
44361
44482
|
flexGrow: "1",
|
|
44362
44483
|
minHeight: "var(--space-5)"
|
|
@@ -44371,7 +44492,7 @@ var Messages2 = function(t0) {
|
|
|
44371
44492
|
}
|
|
44372
44493
|
var t6;
|
|
44373
44494
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
44374
|
-
t6 = /* @__PURE__ */ _jsxs21(
|
|
44495
|
+
t6 = /* @__PURE__ */ _jsxs21(Root6, {
|
|
44375
44496
|
style: style,
|
|
44376
44497
|
className: className,
|
|
44377
44498
|
children: [
|
|
@@ -44392,7 +44513,7 @@ var Messages2 = function(t0) {
|
|
|
44392
44513
|
}
|
|
44393
44514
|
return t6;
|
|
44394
44515
|
};
|
|
44395
|
-
Messages2.Root =
|
|
44516
|
+
Messages2.Root = Root6;
|
|
44396
44517
|
Messages2.Message = Message;
|
|
44397
44518
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44398
44519
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
@@ -44400,7 +44521,7 @@ import { c as _c71 } from "react-compiler-runtime";
|
|
|
44400
44521
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44401
44522
|
import { c as _c66 } from "react-compiler-runtime";
|
|
44402
44523
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
44403
|
-
import { IconButton as IconButton5, Flex as
|
|
44524
|
+
import { IconButton as IconButton5, Flex as Flex19 } from "@radix-ui/themes";
|
|
44404
44525
|
// src/hooks/messages/useMessageFormContext/index.ts
|
|
44405
44526
|
import { useContext as useContext15 } from "react";
|
|
44406
44527
|
// src/contexts/messages/MessageFormContext/index.ts
|
|
@@ -44419,7 +44540,7 @@ var useMessageFormContext = function() {
|
|
|
44419
44540
|
};
|
|
44420
44541
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44421
44542
|
import { jsx as _jsx67 } from "react/jsx-runtime";
|
|
44422
|
-
function
|
|
44543
|
+
function ownKeys28(e, r) {
|
|
44423
44544
|
var t = Object.keys(e);
|
|
44424
44545
|
if (Object.getOwnPropertySymbols) {
|
|
44425
44546
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44429,30 +44550,30 @@ function ownKeys27(e, r) {
|
|
|
44429
44550
|
}
|
|
44430
44551
|
return t;
|
|
44431
44552
|
}
|
|
44432
|
-
function
|
|
44553
|
+
function _objectSpread28(e) {
|
|
44433
44554
|
for(var r = 1; r < arguments.length; r++){
|
|
44434
44555
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44435
|
-
r % 2 ?
|
|
44436
|
-
|
|
44437
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44556
|
+
r % 2 ? ownKeys28(Object(t), true).forEach(function(r2) {
|
|
44557
|
+
_defineProperty28(e, r2, t[r2]);
|
|
44558
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys28(Object(t)).forEach(function(r2) {
|
|
44438
44559
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44439
44560
|
});
|
|
44440
44561
|
}
|
|
44441
44562
|
return e;
|
|
44442
44563
|
}
|
|
44443
|
-
function
|
|
44444
|
-
return (r =
|
|
44564
|
+
function _defineProperty28(e, r, t) {
|
|
44565
|
+
return (r = _toPropertyKey28(r)) in e ? Object.defineProperty(e, r, {
|
|
44445
44566
|
value: t,
|
|
44446
44567
|
enumerable: true,
|
|
44447
44568
|
configurable: true,
|
|
44448
44569
|
writable: true
|
|
44449
44570
|
}) : e[r] = t, e;
|
|
44450
44571
|
}
|
|
44451
|
-
function
|
|
44452
|
-
var i =
|
|
44572
|
+
function _toPropertyKey28(t) {
|
|
44573
|
+
var i = _toPrimitive28(t, "string");
|
|
44453
44574
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44454
44575
|
}
|
|
44455
|
-
function
|
|
44576
|
+
function _toPrimitive28(t, r) {
|
|
44456
44577
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44457
44578
|
var e = t[Symbol.toPrimitive];
|
|
44458
44579
|
if (void 0 !== e) {
|
|
@@ -44462,12 +44583,12 @@ function _toPrimitive27(t, r) {
|
|
|
44462
44583
|
}
|
|
44463
44584
|
return ("string" === r ? String : Number)(t);
|
|
44464
44585
|
}
|
|
44465
|
-
var
|
|
44586
|
+
var Root7 = function(t0) {
|
|
44466
44587
|
var $ = _c66(4);
|
|
44467
44588
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44468
44589
|
var t1;
|
|
44469
44590
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44470
|
-
t1 = /* @__PURE__ */ _jsx67(
|
|
44591
|
+
t1 = /* @__PURE__ */ _jsx67(Flex19, {
|
|
44471
44592
|
flexShrink: "0",
|
|
44472
44593
|
align: "end",
|
|
44473
44594
|
style: style,
|
|
@@ -44508,7 +44629,7 @@ var Button3 = function(props) {
|
|
|
44508
44629
|
}
|
|
44509
44630
|
var _t3;
|
|
44510
44631
|
if ($[3] !== props || $[4] !== _t) {
|
|
44511
|
-
_t3 = /* @__PURE__ */ _jsx67(IconButton5,
|
|
44632
|
+
_t3 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread28(_objectSpread28({
|
|
44512
44633
|
type: "button",
|
|
44513
44634
|
onClick: _t
|
|
44514
44635
|
}, props), {}, {
|
|
@@ -44532,7 +44653,7 @@ var Button3 = function(props) {
|
|
|
44532
44653
|
}
|
|
44533
44654
|
var t2;
|
|
44534
44655
|
if ($[7] !== props || $[8] !== t0) {
|
|
44535
|
-
t2 = /* @__PURE__ */ _jsx67(IconButton5,
|
|
44656
|
+
t2 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread28(_objectSpread28({
|
|
44536
44657
|
type: "submit",
|
|
44537
44658
|
disabled: t0
|
|
44538
44659
|
}, props), {}, {
|
|
@@ -44557,7 +44678,7 @@ var Submit = function(props) {
|
|
|
44557
44678
|
}
|
|
44558
44679
|
var t1;
|
|
44559
44680
|
if ($[1] !== props) {
|
|
44560
|
-
t1 = /* @__PURE__ */ _jsx67(
|
|
44681
|
+
t1 = /* @__PURE__ */ _jsx67(Root7, _objectSpread28(_objectSpread28({}, props), {}, {
|
|
44561
44682
|
children: t0
|
|
44562
44683
|
}));
|
|
44563
44684
|
$[1] = props;
|
|
@@ -44567,7 +44688,7 @@ var Submit = function(props) {
|
|
|
44567
44688
|
}
|
|
44568
44689
|
return t1;
|
|
44569
44690
|
};
|
|
44570
|
-
Submit.Root =
|
|
44691
|
+
Submit.Root = Root7;
|
|
44571
44692
|
Submit.Button = Button3;
|
|
44572
44693
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44573
44694
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
@@ -44586,7 +44707,7 @@ var formOptions = {
|
|
|
44586
44707
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44587
44708
|
import { partob } from "radash";
|
|
44588
44709
|
import { jsx as _jsx68 } from "react/jsx-runtime";
|
|
44589
|
-
function
|
|
44710
|
+
function ownKeys29(e, r) {
|
|
44590
44711
|
var t = Object.keys(e);
|
|
44591
44712
|
if (Object.getOwnPropertySymbols) {
|
|
44592
44713
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44596,30 +44717,30 @@ function ownKeys28(e, r) {
|
|
|
44596
44717
|
}
|
|
44597
44718
|
return t;
|
|
44598
44719
|
}
|
|
44599
|
-
function
|
|
44720
|
+
function _objectSpread29(e) {
|
|
44600
44721
|
for(var r = 1; r < arguments.length; r++){
|
|
44601
44722
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44602
|
-
r % 2 ?
|
|
44603
|
-
|
|
44604
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44723
|
+
r % 2 ? ownKeys29(Object(t), true).forEach(function(r2) {
|
|
44724
|
+
_defineProperty29(e, r2, t[r2]);
|
|
44725
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys29(Object(t)).forEach(function(r2) {
|
|
44605
44726
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44606
44727
|
});
|
|
44607
44728
|
}
|
|
44608
44729
|
return e;
|
|
44609
44730
|
}
|
|
44610
|
-
function
|
|
44611
|
-
return (r =
|
|
44731
|
+
function _defineProperty29(e, r, t) {
|
|
44732
|
+
return (r = _toPropertyKey29(r)) in e ? Object.defineProperty(e, r, {
|
|
44612
44733
|
value: t,
|
|
44613
44734
|
enumerable: true,
|
|
44614
44735
|
configurable: true,
|
|
44615
44736
|
writable: true
|
|
44616
44737
|
}) : e[r] = t, e;
|
|
44617
44738
|
}
|
|
44618
|
-
function
|
|
44619
|
-
var i =
|
|
44739
|
+
function _toPropertyKey29(t) {
|
|
44740
|
+
var i = _toPrimitive29(t, "string");
|
|
44620
44741
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44621
44742
|
}
|
|
44622
|
-
function
|
|
44743
|
+
function _toPrimitive29(t, r) {
|
|
44623
44744
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44624
44745
|
var e = t[Symbol.toPrimitive];
|
|
44625
44746
|
if (void 0 !== e) {
|
|
@@ -44652,7 +44773,7 @@ function _asyncToGenerator6(n) {
|
|
|
44652
44773
|
});
|
|
44653
44774
|
};
|
|
44654
44775
|
}
|
|
44655
|
-
var
|
|
44776
|
+
var Root8 = function(_ref) {
|
|
44656
44777
|
"use no memo";
|
|
44657
44778
|
var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
|
|
44658
44779
|
var _useState4 = _sliced_to_array(useState4([]), 2), files = _useState4[0], setFiles = _useState4[1];
|
|
@@ -44725,7 +44846,7 @@ var Root6 = function(_ref) {
|
|
|
44725
44846
|
});
|
|
44726
44847
|
return [
|
|
44727
44848
|
4,
|
|
44728
|
-
createMessage(
|
|
44849
|
+
createMessage(_objectSpread29({
|
|
44729
44850
|
// @ts-ignore-next-line
|
|
44730
44851
|
content: data2.content
|
|
44731
44852
|
}, attachments.length ? {
|
|
@@ -44754,7 +44875,7 @@ var Root6 = function(_ref) {
|
|
|
44754
44875
|
isFileLoading: isFileLoading,
|
|
44755
44876
|
content: content2
|
|
44756
44877
|
},
|
|
44757
|
-
children: /* @__PURE__ */ _jsx68(FormProvider,
|
|
44878
|
+
children: /* @__PURE__ */ _jsx68(FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
|
|
44758
44879
|
children: /* @__PURE__ */ _jsx68(Box14, {
|
|
44759
44880
|
asChild: true,
|
|
44760
44881
|
flexShrink: "0",
|
|
@@ -44770,10 +44891,10 @@ var Root6 = function(_ref) {
|
|
|
44770
44891
|
};
|
|
44771
44892
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
44772
44893
|
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
44773
|
-
import { Container as RadixContainer, Flex as
|
|
44894
|
+
import { Container as RadixContainer, Flex as Flex23 } from "@radix-ui/themes";
|
|
44774
44895
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44775
44896
|
import { c as _c68 } from "react-compiler-runtime";
|
|
44776
|
-
import { Flex as
|
|
44897
|
+
import { Flex as Flex20 } from "@radix-ui/themes";
|
|
44777
44898
|
import { useFormContext } from "react-hook-form";
|
|
44778
44899
|
// src/hooks/misc/usePrevious.ts
|
|
44779
44900
|
import { useEffect as useEffect5, useRef as useRef4 } from "react";
|
|
@@ -44795,7 +44916,7 @@ var _excluded3 = [
|
|
|
44795
44916
|
"style",
|
|
44796
44917
|
"className"
|
|
44797
44918
|
];
|
|
44798
|
-
function
|
|
44919
|
+
function ownKeys30(e, r) {
|
|
44799
44920
|
var t = Object.keys(e);
|
|
44800
44921
|
if (Object.getOwnPropertySymbols) {
|
|
44801
44922
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44805,30 +44926,30 @@ function ownKeys29(e, r) {
|
|
|
44805
44926
|
}
|
|
44806
44927
|
return t;
|
|
44807
44928
|
}
|
|
44808
|
-
function
|
|
44929
|
+
function _objectSpread30(e) {
|
|
44809
44930
|
for(var r = 1; r < arguments.length; r++){
|
|
44810
44931
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44811
|
-
r % 2 ?
|
|
44812
|
-
|
|
44813
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44932
|
+
r % 2 ? ownKeys30(Object(t), true).forEach(function(r2) {
|
|
44933
|
+
_defineProperty30(e, r2, t[r2]);
|
|
44934
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys30(Object(t)).forEach(function(r2) {
|
|
44814
44935
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44815
44936
|
});
|
|
44816
44937
|
}
|
|
44817
44938
|
return e;
|
|
44818
44939
|
}
|
|
44819
|
-
function
|
|
44820
|
-
return (r =
|
|
44940
|
+
function _defineProperty30(e, r, t) {
|
|
44941
|
+
return (r = _toPropertyKey30(r)) in e ? Object.defineProperty(e, r, {
|
|
44821
44942
|
value: t,
|
|
44822
44943
|
enumerable: true,
|
|
44823
44944
|
configurable: true,
|
|
44824
44945
|
writable: true
|
|
44825
44946
|
}) : e[r] = t, e;
|
|
44826
44947
|
}
|
|
44827
|
-
function
|
|
44828
|
-
var i =
|
|
44948
|
+
function _toPropertyKey30(t) {
|
|
44949
|
+
var i = _toPrimitive30(t, "string");
|
|
44829
44950
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44830
44951
|
}
|
|
44831
|
-
function
|
|
44952
|
+
function _toPrimitive30(t, r) {
|
|
44832
44953
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44833
44954
|
var e = t[Symbol.toPrimitive];
|
|
44834
44955
|
if (void 0 !== e) {
|
|
@@ -44896,7 +45017,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44896
45017
|
}
|
|
44897
45018
|
var t4;
|
|
44898
45019
|
if ($[7] !== t3) {
|
|
44899
|
-
t4 =
|
|
45020
|
+
t4 = _objectSpread30({
|
|
44900
45021
|
border: 0,
|
|
44901
45022
|
outline: 0,
|
|
44902
45023
|
boxSizing: "border-box",
|
|
@@ -44915,7 +45036,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44915
45036
|
t5 = /* @__PURE__ */ _jsxs22(_Fragment5, {
|
|
44916
45037
|
children: [
|
|
44917
45038
|
t1,
|
|
44918
|
-
/* @__PURE__ */ _jsx69(TextareaAutosize,
|
|
45039
|
+
/* @__PURE__ */ _jsx69(TextareaAutosize, _objectSpread30({
|
|
44919
45040
|
ref: ref,
|
|
44920
45041
|
className: t2,
|
|
44921
45042
|
style: t4
|
|
@@ -44934,7 +45055,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44934
45055
|
});
|
|
44935
45056
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44936
45057
|
import { jsx as _jsx70 } from "react/jsx-runtime";
|
|
44937
|
-
function
|
|
45058
|
+
function ownKeys31(e, r) {
|
|
44938
45059
|
var t = Object.keys(e);
|
|
44939
45060
|
if (Object.getOwnPropertySymbols) {
|
|
44940
45061
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44944,30 +45065,30 @@ function ownKeys30(e, r) {
|
|
|
44944
45065
|
}
|
|
44945
45066
|
return t;
|
|
44946
45067
|
}
|
|
44947
|
-
function
|
|
45068
|
+
function _objectSpread31(e) {
|
|
44948
45069
|
for(var r = 1; r < arguments.length; r++){
|
|
44949
45070
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44950
|
-
r % 2 ?
|
|
44951
|
-
|
|
44952
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45071
|
+
r % 2 ? ownKeys31(Object(t), true).forEach(function(r2) {
|
|
45072
|
+
_defineProperty31(e, r2, t[r2]);
|
|
45073
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys31(Object(t)).forEach(function(r2) {
|
|
44953
45074
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44954
45075
|
});
|
|
44955
45076
|
}
|
|
44956
45077
|
return e;
|
|
44957
45078
|
}
|
|
44958
|
-
function
|
|
44959
|
-
return (r =
|
|
45079
|
+
function _defineProperty31(e, r, t) {
|
|
45080
|
+
return (r = _toPropertyKey31(r)) in e ? Object.defineProperty(e, r, {
|
|
44960
45081
|
value: t,
|
|
44961
45082
|
enumerable: true,
|
|
44962
45083
|
configurable: true,
|
|
44963
45084
|
writable: true
|
|
44964
45085
|
}) : e[r] = t, e;
|
|
44965
45086
|
}
|
|
44966
|
-
function
|
|
44967
|
-
var i =
|
|
45087
|
+
function _toPropertyKey31(t) {
|
|
45088
|
+
var i = _toPrimitive31(t, "string");
|
|
44968
45089
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44969
45090
|
}
|
|
44970
|
-
function
|
|
45091
|
+
function _toPrimitive31(t, r) {
|
|
44971
45092
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44972
45093
|
var e = t[Symbol.toPrimitive];
|
|
44973
45094
|
if (void 0 !== e) {
|
|
@@ -44977,12 +45098,12 @@ function _toPrimitive30(t, r) {
|
|
|
44977
45098
|
}
|
|
44978
45099
|
return ("string" === r ? String : Number)(t);
|
|
44979
45100
|
}
|
|
44980
|
-
var
|
|
45101
|
+
var Root9 = function(t0) {
|
|
44981
45102
|
var $ = _c68(4);
|
|
44982
45103
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44983
45104
|
var t1;
|
|
44984
45105
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44985
|
-
t1 = /* @__PURE__ */ _jsx70(
|
|
45106
|
+
t1 = /* @__PURE__ */ _jsx70(Flex20, {
|
|
44986
45107
|
flexGrow: "1",
|
|
44987
45108
|
pt: "4px",
|
|
44988
45109
|
style: style,
|
|
@@ -45023,7 +45144,7 @@ var Input = function(props) {
|
|
|
45023
45144
|
isDisabledPrevious,
|
|
45024
45145
|
textareaProps
|
|
45025
45146
|
]);
|
|
45026
|
-
return /* @__PURE__ */ _jsx70(TextareaBase,
|
|
45147
|
+
return /* @__PURE__ */ _jsx70(TextareaBase, _objectSpread31(_objectSpread31(_objectSpread31({
|
|
45027
45148
|
minRows: 1,
|
|
45028
45149
|
placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
|
|
45029
45150
|
disabled: isDisabled,
|
|
@@ -45053,7 +45174,7 @@ var Control = function(props) {
|
|
|
45053
45174
|
}
|
|
45054
45175
|
var t1;
|
|
45055
45176
|
if ($[1] !== props) {
|
|
45056
|
-
t1 = /* @__PURE__ */ _jsx70(
|
|
45177
|
+
t1 = /* @__PURE__ */ _jsx70(Root9, _objectSpread31(_objectSpread31({}, props), {}, {
|
|
45057
45178
|
children: t0
|
|
45058
45179
|
}));
|
|
45059
45180
|
$[1] = props;
|
|
@@ -45063,14 +45184,14 @@ var Control = function(props) {
|
|
|
45063
45184
|
}
|
|
45064
45185
|
return t1;
|
|
45065
45186
|
};
|
|
45066
|
-
Control.Root =
|
|
45187
|
+
Control.Root = Root9;
|
|
45067
45188
|
Control.Input = Input;
|
|
45068
45189
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
45069
45190
|
import { c as _c69 } from "react-compiler-runtime";
|
|
45070
|
-
import { Flex as
|
|
45191
|
+
import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
45071
45192
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
45072
45193
|
import { jsx as _jsx71, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
45073
|
-
function
|
|
45194
|
+
function ownKeys32(e, r) {
|
|
45074
45195
|
var t = Object.keys(e);
|
|
45075
45196
|
if (Object.getOwnPropertySymbols) {
|
|
45076
45197
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45080,30 +45201,30 @@ function ownKeys31(e, r) {
|
|
|
45080
45201
|
}
|
|
45081
45202
|
return t;
|
|
45082
45203
|
}
|
|
45083
|
-
function
|
|
45204
|
+
function _objectSpread32(e) {
|
|
45084
45205
|
for(var r = 1; r < arguments.length; r++){
|
|
45085
45206
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45086
|
-
r % 2 ?
|
|
45087
|
-
|
|
45088
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45207
|
+
r % 2 ? ownKeys32(Object(t), true).forEach(function(r2) {
|
|
45208
|
+
_defineProperty32(e, r2, t[r2]);
|
|
45209
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys32(Object(t)).forEach(function(r2) {
|
|
45089
45210
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45090
45211
|
});
|
|
45091
45212
|
}
|
|
45092
45213
|
return e;
|
|
45093
45214
|
}
|
|
45094
|
-
function
|
|
45095
|
-
return (r =
|
|
45215
|
+
function _defineProperty32(e, r, t) {
|
|
45216
|
+
return (r = _toPropertyKey32(r)) in e ? Object.defineProperty(e, r, {
|
|
45096
45217
|
value: t,
|
|
45097
45218
|
enumerable: true,
|
|
45098
45219
|
configurable: true,
|
|
45099
45220
|
writable: true
|
|
45100
45221
|
}) : e[r] = t, e;
|
|
45101
45222
|
}
|
|
45102
|
-
function
|
|
45103
|
-
var i =
|
|
45223
|
+
function _toPropertyKey32(t) {
|
|
45224
|
+
var i = _toPrimitive32(t, "string");
|
|
45104
45225
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45105
45226
|
}
|
|
45106
|
-
function
|
|
45227
|
+
function _toPrimitive32(t, r) {
|
|
45107
45228
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45108
45229
|
var e = t[Symbol.toPrimitive];
|
|
45109
45230
|
if (void 0 !== e) {
|
|
@@ -45126,19 +45247,19 @@ var Preview = function(props) {
|
|
|
45126
45247
|
_t = function(file) {
|
|
45127
45248
|
return /* @__PURE__ */ _jsx71(Card2, {
|
|
45128
45249
|
variant: "ghost",
|
|
45129
|
-
children: /* @__PURE__ */ _jsxs23(
|
|
45250
|
+
children: /* @__PURE__ */ _jsxs23(Flex21, {
|
|
45130
45251
|
align: "center",
|
|
45131
45252
|
justify: "between",
|
|
45132
45253
|
gap: "1",
|
|
45133
45254
|
children: [
|
|
45134
|
-
/* @__PURE__ */ _jsxs23(
|
|
45255
|
+
/* @__PURE__ */ _jsxs23(Flex21, {
|
|
45135
45256
|
align: "center",
|
|
45136
45257
|
gap: "1",
|
|
45137
45258
|
flexShrink: "1",
|
|
45138
45259
|
minWidth: "0",
|
|
45139
45260
|
maxWidth: "250px",
|
|
45140
45261
|
children: [
|
|
45141
|
-
/* @__PURE__ */ _jsx71(
|
|
45262
|
+
/* @__PURE__ */ _jsx71(Flex21, {
|
|
45142
45263
|
flexShrink: "0",
|
|
45143
45264
|
children: /* @__PURE__ */ _jsx71(Spinner2, {
|
|
45144
45265
|
loading: isOptimistic({
|
|
@@ -45155,7 +45276,7 @@ var Preview = function(props) {
|
|
|
45155
45276
|
})
|
|
45156
45277
|
]
|
|
45157
45278
|
}),
|
|
45158
|
-
/* @__PURE__ */ _jsx71(
|
|
45279
|
+
/* @__PURE__ */ _jsx71(Flex21, {
|
|
45159
45280
|
flexShrink: "0",
|
|
45160
45281
|
children: /* @__PURE__ */ _jsx71(IconButton6, {
|
|
45161
45282
|
onClick: function() {
|
|
@@ -45189,7 +45310,7 @@ var Preview = function(props) {
|
|
|
45189
45310
|
}
|
|
45190
45311
|
var t1;
|
|
45191
45312
|
if ($[5] !== props || $[6] !== t0) {
|
|
45192
|
-
t1 = /* @__PURE__ */ _jsx71(
|
|
45313
|
+
t1 = /* @__PURE__ */ _jsx71(Flex21, _objectSpread32(_objectSpread32({
|
|
45193
45314
|
flexBasis: "100%",
|
|
45194
45315
|
direction: "column",
|
|
45195
45316
|
pb: "2",
|
|
@@ -45210,7 +45331,7 @@ import { useCallback as useCallback3 } from "react";
|
|
|
45210
45331
|
import { omit as omit4 } from "radash";
|
|
45211
45332
|
import dayjs2 from "dayjs";
|
|
45212
45333
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45213
|
-
import { IconButton as IconButton7, Flex as
|
|
45334
|
+
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
45214
45335
|
// src/hooks/files/useCreateFile/index.ts
|
|
45215
45336
|
import { c as _c70 } from "react-compiler-runtime";
|
|
45216
45337
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
@@ -45223,7 +45344,7 @@ var formData = function(variables) {
|
|
|
45223
45344
|
return data2;
|
|
45224
45345
|
};
|
|
45225
45346
|
// src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/index.ts
|
|
45226
|
-
function
|
|
45347
|
+
function ownKeys33(e, r) {
|
|
45227
45348
|
var t = Object.keys(e);
|
|
45228
45349
|
if (Object.getOwnPropertySymbols) {
|
|
45229
45350
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45233,30 +45354,30 @@ function ownKeys32(e, r) {
|
|
|
45233
45354
|
}
|
|
45234
45355
|
return t;
|
|
45235
45356
|
}
|
|
45236
|
-
function
|
|
45357
|
+
function _objectSpread33(e) {
|
|
45237
45358
|
for(var r = 1; r < arguments.length; r++){
|
|
45238
45359
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45239
|
-
r % 2 ?
|
|
45240
|
-
|
|
45241
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45360
|
+
r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
|
|
45361
|
+
_defineProperty33(e, r2, t[r2]);
|
|
45362
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
|
|
45242
45363
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45243
45364
|
});
|
|
45244
45365
|
}
|
|
45245
45366
|
return e;
|
|
45246
45367
|
}
|
|
45247
|
-
function
|
|
45248
|
-
return (r =
|
|
45368
|
+
function _defineProperty33(e, r, t) {
|
|
45369
|
+
return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
|
|
45249
45370
|
value: t,
|
|
45250
45371
|
enumerable: true,
|
|
45251
45372
|
configurable: true,
|
|
45252
45373
|
writable: true
|
|
45253
45374
|
}) : e[r] = t, e;
|
|
45254
45375
|
}
|
|
45255
|
-
function
|
|
45256
|
-
var i =
|
|
45376
|
+
function _toPropertyKey33(t) {
|
|
45377
|
+
var i = _toPrimitive33(t, "string");
|
|
45257
45378
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45258
45379
|
}
|
|
45259
|
-
function
|
|
45380
|
+
function _toPrimitive33(t, r) {
|
|
45260
45381
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45261
45382
|
var e = t[Symbol.toPrimitive];
|
|
45262
45383
|
if (void 0 !== e) {
|
|
@@ -45276,7 +45397,7 @@ var body2 = function(_ref) {
|
|
|
45276
45397
|
assistantId: variables.assistantId
|
|
45277
45398
|
});
|
|
45278
45399
|
if (!threadId) return formData(variables);
|
|
45279
|
-
return formData(
|
|
45400
|
+
return formData(_objectSpread33(_objectSpread33({}, variables), {}, {
|
|
45280
45401
|
threadId: threadId
|
|
45281
45402
|
}));
|
|
45282
45403
|
};
|
|
@@ -45343,7 +45464,7 @@ var mutationFn2 = function(_ref) {
|
|
|
45343
45464
|
}();
|
|
45344
45465
|
};
|
|
45345
45466
|
// src/hooks/files/useCreateFile/lib/mutationOptions/index.ts
|
|
45346
|
-
function
|
|
45467
|
+
function ownKeys34(e, r) {
|
|
45347
45468
|
var t = Object.keys(e);
|
|
45348
45469
|
if (Object.getOwnPropertySymbols) {
|
|
45349
45470
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45353,30 +45474,30 @@ function ownKeys33(e, r) {
|
|
|
45353
45474
|
}
|
|
45354
45475
|
return t;
|
|
45355
45476
|
}
|
|
45356
|
-
function
|
|
45477
|
+
function _objectSpread34(e) {
|
|
45357
45478
|
for(var r = 1; r < arguments.length; r++){
|
|
45358
45479
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45359
|
-
r % 2 ?
|
|
45360
|
-
|
|
45361
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45480
|
+
r % 2 ? ownKeys34(Object(t), true).forEach(function(r2) {
|
|
45481
|
+
_defineProperty34(e, r2, t[r2]);
|
|
45482
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys34(Object(t)).forEach(function(r2) {
|
|
45362
45483
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45363
45484
|
});
|
|
45364
45485
|
}
|
|
45365
45486
|
return e;
|
|
45366
45487
|
}
|
|
45367
|
-
function
|
|
45368
|
-
return (r =
|
|
45488
|
+
function _defineProperty34(e, r, t) {
|
|
45489
|
+
return (r = _toPropertyKey34(r)) in e ? Object.defineProperty(e, r, {
|
|
45369
45490
|
value: t,
|
|
45370
45491
|
enumerable: true,
|
|
45371
45492
|
configurable: true,
|
|
45372
45493
|
writable: true
|
|
45373
45494
|
}) : e[r] = t, e;
|
|
45374
45495
|
}
|
|
45375
|
-
function
|
|
45376
|
-
var i =
|
|
45496
|
+
function _toPropertyKey34(t) {
|
|
45497
|
+
var i = _toPrimitive34(t, "string");
|
|
45377
45498
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45378
45499
|
}
|
|
45379
|
-
function
|
|
45500
|
+
function _toPrimitive34(t, r) {
|
|
45380
45501
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45381
45502
|
var e = t[Symbol.toPrimitive];
|
|
45382
45503
|
if (void 0 !== e) {
|
|
@@ -45392,7 +45513,7 @@ var mutationOptions2 = function(_ref) {
|
|
|
45392
45513
|
"createFile",
|
|
45393
45514
|
threadContext.variables
|
|
45394
45515
|
];
|
|
45395
|
-
return
|
|
45516
|
+
return _objectSpread34(_objectSpread34(_objectSpread34({
|
|
45396
45517
|
mutationFn: mutationFn2({
|
|
45397
45518
|
queryClient: queryClient,
|
|
45398
45519
|
superinterfaceContext: superinterfaceContext,
|
|
@@ -45404,7 +45525,7 @@ var mutationOptions2 = function(_ref) {
|
|
|
45404
45525
|
});
|
|
45405
45526
|
};
|
|
45406
45527
|
// src/hooks/files/useCreateFile/index.ts
|
|
45407
|
-
function
|
|
45528
|
+
function ownKeys35(e, r) {
|
|
45408
45529
|
var t = Object.keys(e);
|
|
45409
45530
|
if (Object.getOwnPropertySymbols) {
|
|
45410
45531
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45414,30 +45535,30 @@ function ownKeys34(e, r) {
|
|
|
45414
45535
|
}
|
|
45415
45536
|
return t;
|
|
45416
45537
|
}
|
|
45417
|
-
function
|
|
45538
|
+
function _objectSpread35(e) {
|
|
45418
45539
|
for(var r = 1; r < arguments.length; r++){
|
|
45419
45540
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45420
|
-
r % 2 ?
|
|
45421
|
-
|
|
45422
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45541
|
+
r % 2 ? ownKeys35(Object(t), true).forEach(function(r2) {
|
|
45542
|
+
_defineProperty35(e, r2, t[r2]);
|
|
45543
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys35(Object(t)).forEach(function(r2) {
|
|
45423
45544
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45424
45545
|
});
|
|
45425
45546
|
}
|
|
45426
45547
|
return e;
|
|
45427
45548
|
}
|
|
45428
|
-
function
|
|
45429
|
-
return (r =
|
|
45549
|
+
function _defineProperty35(e, r, t) {
|
|
45550
|
+
return (r = _toPropertyKey35(r)) in e ? Object.defineProperty(e, r, {
|
|
45430
45551
|
value: t,
|
|
45431
45552
|
enumerable: true,
|
|
45432
45553
|
configurable: true,
|
|
45433
45554
|
writable: true
|
|
45434
45555
|
}) : e[r] = t, e;
|
|
45435
45556
|
}
|
|
45436
|
-
function
|
|
45437
|
-
var i =
|
|
45557
|
+
function _toPropertyKey35(t) {
|
|
45558
|
+
var i = _toPrimitive35(t, "string");
|
|
45438
45559
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45439
45560
|
}
|
|
45440
|
-
function
|
|
45561
|
+
function _toPrimitive35(t, r) {
|
|
45441
45562
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45442
45563
|
var e = t[Symbol.toPrimitive];
|
|
45443
45564
|
if (void 0 !== e) {
|
|
@@ -45499,7 +45620,7 @@ var useCreateFile = function(t0) {
|
|
|
45499
45620
|
var args = t62;
|
|
45500
45621
|
var _args = _to_array(args), firstArg = _args[0], restArgs = _args.slice(1);
|
|
45501
45622
|
return (_props = props).mutateAsync.apply(_props, [
|
|
45502
|
-
|
|
45623
|
+
_objectSpread35(_objectSpread35({}, threadContext.variables), firstArg)
|
|
45503
45624
|
].concat(_to_consumable_array(restArgs)));
|
|
45504
45625
|
};
|
|
45505
45626
|
$[9] = props;
|
|
@@ -45510,7 +45631,7 @@ var useCreateFile = function(t0) {
|
|
|
45510
45631
|
}
|
|
45511
45632
|
var t6;
|
|
45512
45633
|
if ($[12] !== props || $[13] !== t5) {
|
|
45513
|
-
t6 =
|
|
45634
|
+
t6 = _objectSpread35(_objectSpread35({}, props), {}, {
|
|
45514
45635
|
createFile: t5
|
|
45515
45636
|
});
|
|
45516
45637
|
$[12] = props;
|
|
@@ -45525,7 +45646,7 @@ function _temp4() {}
|
|
|
45525
45646
|
function _temp23() {}
|
|
45526
45647
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45527
45648
|
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45528
|
-
function
|
|
45649
|
+
function ownKeys36(e, r) {
|
|
45529
45650
|
var t = Object.keys(e);
|
|
45530
45651
|
if (Object.getOwnPropertySymbols) {
|
|
45531
45652
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45535,30 +45656,30 @@ function ownKeys35(e, r) {
|
|
|
45535
45656
|
}
|
|
45536
45657
|
return t;
|
|
45537
45658
|
}
|
|
45538
|
-
function
|
|
45659
|
+
function _objectSpread36(e) {
|
|
45539
45660
|
for(var r = 1; r < arguments.length; r++){
|
|
45540
45661
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45541
|
-
r % 2 ?
|
|
45542
|
-
|
|
45543
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45662
|
+
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45663
|
+
_defineProperty36(e, r2, t[r2]);
|
|
45664
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45544
45665
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45545
45666
|
});
|
|
45546
45667
|
}
|
|
45547
45668
|
return e;
|
|
45548
45669
|
}
|
|
45549
|
-
function
|
|
45550
|
-
return (r =
|
|
45670
|
+
function _defineProperty36(e, r, t) {
|
|
45671
|
+
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45551
45672
|
value: t,
|
|
45552
45673
|
enumerable: true,
|
|
45553
45674
|
configurable: true,
|
|
45554
45675
|
writable: true
|
|
45555
45676
|
}) : e[r] = t, e;
|
|
45556
45677
|
}
|
|
45557
|
-
function
|
|
45558
|
-
var i =
|
|
45678
|
+
function _toPropertyKey36(t) {
|
|
45679
|
+
var i = _toPrimitive36(t, "string");
|
|
45559
45680
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45560
45681
|
}
|
|
45561
|
-
function
|
|
45682
|
+
function _toPrimitive36(t, r) {
|
|
45562
45683
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45563
45684
|
var e = t[Symbol.toPrimitive];
|
|
45564
45685
|
if (void 0 !== e) {
|
|
@@ -45805,7 +45926,7 @@ var Control2 = function(props) {
|
|
|
45805
45926
|
createFile,
|
|
45806
45927
|
setFiles
|
|
45807
45928
|
]);
|
|
45808
|
-
return /* @__PURE__ */ _jsx72(
|
|
45929
|
+
return /* @__PURE__ */ _jsx72(Flex22, _objectSpread36(_objectSpread36({
|
|
45809
45930
|
pt: "2",
|
|
45810
45931
|
pr: "2",
|
|
45811
45932
|
flexGrow: "0"
|
|
@@ -45847,7 +45968,7 @@ var Files = {
|
|
|
45847
45968
|
};
|
|
45848
45969
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
45849
45970
|
import { jsx as _jsx73 } from "react/jsx-runtime";
|
|
45850
|
-
function
|
|
45971
|
+
function ownKeys37(e, r) {
|
|
45851
45972
|
var t = Object.keys(e);
|
|
45852
45973
|
if (Object.getOwnPropertySymbols) {
|
|
45853
45974
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45857,30 +45978,30 @@ function ownKeys36(e, r) {
|
|
|
45857
45978
|
}
|
|
45858
45979
|
return t;
|
|
45859
45980
|
}
|
|
45860
|
-
function
|
|
45981
|
+
function _objectSpread37(e) {
|
|
45861
45982
|
for(var r = 1; r < arguments.length; r++){
|
|
45862
45983
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45863
|
-
r % 2 ?
|
|
45864
|
-
|
|
45865
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45984
|
+
r % 2 ? ownKeys37(Object(t), true).forEach(function(r2) {
|
|
45985
|
+
_defineProperty37(e, r2, t[r2]);
|
|
45986
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys37(Object(t)).forEach(function(r2) {
|
|
45866
45987
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45867
45988
|
});
|
|
45868
45989
|
}
|
|
45869
45990
|
return e;
|
|
45870
45991
|
}
|
|
45871
|
-
function
|
|
45872
|
-
return (r =
|
|
45992
|
+
function _defineProperty37(e, r, t) {
|
|
45993
|
+
return (r = _toPropertyKey37(r)) in e ? Object.defineProperty(e, r, {
|
|
45873
45994
|
value: t,
|
|
45874
45995
|
enumerable: true,
|
|
45875
45996
|
configurable: true,
|
|
45876
45997
|
writable: true
|
|
45877
45998
|
}) : e[r] = t, e;
|
|
45878
45999
|
}
|
|
45879
|
-
function
|
|
45880
|
-
var i =
|
|
46000
|
+
function _toPropertyKey37(t) {
|
|
46001
|
+
var i = _toPrimitive37(t, "string");
|
|
45881
46002
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45882
46003
|
}
|
|
45883
|
-
function
|
|
46004
|
+
function _toPrimitive37(t, r) {
|
|
45884
46005
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45885
46006
|
var e = t[Symbol.toPrimitive];
|
|
45886
46007
|
if (void 0 !== e) {
|
|
@@ -45890,7 +46011,7 @@ function _toPrimitive36(t, r) {
|
|
|
45890
46011
|
}
|
|
45891
46012
|
return ("string" === r ? String : Number)(t);
|
|
45892
46013
|
}
|
|
45893
|
-
var
|
|
46014
|
+
var Root10 = function(_ref) {
|
|
45894
46015
|
"use no memo";
|
|
45895
46016
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
45896
46017
|
var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
|
|
@@ -45899,14 +46020,14 @@ var Root8 = function(_ref) {
|
|
|
45899
46020
|
flexGrow: "0",
|
|
45900
46021
|
className: className,
|
|
45901
46022
|
style: style,
|
|
45902
|
-
children: /* @__PURE__ */ _jsx73(
|
|
46023
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
45903
46024
|
direction: "column",
|
|
45904
46025
|
flexShrink: "0",
|
|
45905
|
-
children: /* @__PURE__ */ _jsx73(
|
|
46026
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
45906
46027
|
direction: "column",
|
|
45907
46028
|
flexShrink: "0",
|
|
45908
|
-
children: /* @__PURE__ */ _jsx73(
|
|
45909
|
-
style:
|
|
46029
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
46030
|
+
style: _objectSpread37({
|
|
45910
46031
|
borderRadius: "var(--radius-2)",
|
|
45911
46032
|
borderWidth: "1px",
|
|
45912
46033
|
borderStyle: "solid",
|
|
@@ -45924,13 +46045,13 @@ var Root8 = function(_ref) {
|
|
|
45924
46045
|
});
|
|
45925
46046
|
};
|
|
45926
46047
|
var Field = {
|
|
45927
|
-
Root:
|
|
46048
|
+
Root: Root10,
|
|
45928
46049
|
Control: Control,
|
|
45929
46050
|
Files: Files
|
|
45930
46051
|
};
|
|
45931
46052
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
45932
46053
|
import { jsx as _jsx74, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
45933
|
-
function
|
|
46054
|
+
function ownKeys38(e, r) {
|
|
45934
46055
|
var t = Object.keys(e);
|
|
45935
46056
|
if (Object.getOwnPropertySymbols) {
|
|
45936
46057
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45940,30 +46061,30 @@ function ownKeys37(e, r) {
|
|
|
45940
46061
|
}
|
|
45941
46062
|
return t;
|
|
45942
46063
|
}
|
|
45943
|
-
function
|
|
46064
|
+
function _objectSpread38(e) {
|
|
45944
46065
|
for(var r = 1; r < arguments.length; r++){
|
|
45945
46066
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45946
|
-
r % 2 ?
|
|
45947
|
-
|
|
45948
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46067
|
+
r % 2 ? ownKeys38(Object(t), true).forEach(function(r2) {
|
|
46068
|
+
_defineProperty38(e, r2, t[r2]);
|
|
46069
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys38(Object(t)).forEach(function(r2) {
|
|
45949
46070
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45950
46071
|
});
|
|
45951
46072
|
}
|
|
45952
46073
|
return e;
|
|
45953
46074
|
}
|
|
45954
|
-
function
|
|
45955
|
-
return (r =
|
|
46075
|
+
function _defineProperty38(e, r, t) {
|
|
46076
|
+
return (r = _toPropertyKey38(r)) in e ? Object.defineProperty(e, r, {
|
|
45956
46077
|
value: t,
|
|
45957
46078
|
enumerable: true,
|
|
45958
46079
|
configurable: true,
|
|
45959
46080
|
writable: true
|
|
45960
46081
|
}) : e[r] = t, e;
|
|
45961
46082
|
}
|
|
45962
|
-
function
|
|
45963
|
-
var i =
|
|
46083
|
+
function _toPropertyKey38(t) {
|
|
46084
|
+
var i = _toPrimitive38(t, "string");
|
|
45964
46085
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45965
46086
|
}
|
|
45966
|
-
function
|
|
46087
|
+
function _toPrimitive38(t, r) {
|
|
45967
46088
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45968
46089
|
var e = t[Symbol.toPrimitive];
|
|
45969
46090
|
if (void 0 !== e) {
|
|
@@ -45989,7 +46110,7 @@ var MessageForm = function(props) {
|
|
|
45989
46110
|
}
|
|
45990
46111
|
var t1;
|
|
45991
46112
|
if ($[1] !== props) {
|
|
45992
|
-
t1 = /* @__PURE__ */ _jsx74(
|
|
46113
|
+
t1 = /* @__PURE__ */ _jsx74(Root8, _objectSpread38(_objectSpread38({}, props), {}, {
|
|
45993
46114
|
children: t0
|
|
45994
46115
|
}));
|
|
45995
46116
|
$[1] = props;
|
|
@@ -45999,12 +46120,12 @@ var MessageForm = function(props) {
|
|
|
45999
46120
|
}
|
|
46000
46121
|
return t1;
|
|
46001
46122
|
};
|
|
46002
|
-
MessageForm.Root =
|
|
46123
|
+
MessageForm.Root = Root8;
|
|
46003
46124
|
MessageForm.Field = Field;
|
|
46004
46125
|
MessageForm.Submit = Submit;
|
|
46005
46126
|
// src/components/threads/Thread/Root/index.tsx
|
|
46006
46127
|
import { c as _c74 } from "react-compiler-runtime";
|
|
46007
|
-
import { Flex as
|
|
46128
|
+
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
46008
46129
|
// src/components/threads/Thread/Provider/index.tsx
|
|
46009
46130
|
var Provider2 = SuperinterfaceProvider;
|
|
46010
46131
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
@@ -46014,7 +46135,7 @@ import * as Toast2 from "@radix-ui/react-toast";
|
|
|
46014
46135
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
46015
46136
|
import { c as _c72 } from "react-compiler-runtime";
|
|
46016
46137
|
import * as Toast from "@radix-ui/react-toast";
|
|
46017
|
-
import { Card as Card3, Text as Text8, Flex as
|
|
46138
|
+
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
46018
46139
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
46019
46140
|
import { jsx as _jsx75, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
46020
46141
|
var CustomToast = function(t0) {
|
|
@@ -46022,7 +46143,7 @@ var CustomToast = function(t0) {
|
|
|
46022
46143
|
var toast = t0.toast;
|
|
46023
46144
|
var t1;
|
|
46024
46145
|
if ($[0] !== toast.type) {
|
|
46025
|
-
t1 = /* @__PURE__ */ _jsx75(
|
|
46146
|
+
t1 = /* @__PURE__ */ _jsx75(Flex24, {
|
|
46026
46147
|
pr: "2",
|
|
46027
46148
|
height: "14px",
|
|
46028
46149
|
align: "center",
|
|
@@ -46054,7 +46175,7 @@ var CustomToast = function(t0) {
|
|
|
46054
46175
|
t3 = /* @__PURE__ */ _jsx75(Toast.Root, {
|
|
46055
46176
|
children: /* @__PURE__ */ _jsx75(Card3, {
|
|
46056
46177
|
children: /* @__PURE__ */ _jsx75(Toast.Title, {
|
|
46057
|
-
children: /* @__PURE__ */ _jsxs26(
|
|
46178
|
+
children: /* @__PURE__ */ _jsxs26(Flex24, {
|
|
46058
46179
|
children: [
|
|
46059
46180
|
t1,
|
|
46060
46181
|
t2
|
|
@@ -46184,7 +46305,7 @@ var _excluded4 = [
|
|
|
46184
46305
|
"style",
|
|
46185
46306
|
"className"
|
|
46186
46307
|
];
|
|
46187
|
-
function
|
|
46308
|
+
function ownKeys39(e, r) {
|
|
46188
46309
|
var t = Object.keys(e);
|
|
46189
46310
|
if (Object.getOwnPropertySymbols) {
|
|
46190
46311
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46194,30 +46315,30 @@ function ownKeys38(e, r) {
|
|
|
46194
46315
|
}
|
|
46195
46316
|
return t;
|
|
46196
46317
|
}
|
|
46197
|
-
function
|
|
46318
|
+
function _objectSpread39(e) {
|
|
46198
46319
|
for(var r = 1; r < arguments.length; r++){
|
|
46199
46320
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46200
|
-
r % 2 ?
|
|
46201
|
-
|
|
46202
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46321
|
+
r % 2 ? ownKeys39(Object(t), true).forEach(function(r2) {
|
|
46322
|
+
_defineProperty39(e, r2, t[r2]);
|
|
46323
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys39(Object(t)).forEach(function(r2) {
|
|
46203
46324
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46204
46325
|
});
|
|
46205
46326
|
}
|
|
46206
46327
|
return e;
|
|
46207
46328
|
}
|
|
46208
|
-
function
|
|
46209
|
-
return (r =
|
|
46329
|
+
function _defineProperty39(e, r, t) {
|
|
46330
|
+
return (r = _toPropertyKey39(r)) in e ? Object.defineProperty(e, r, {
|
|
46210
46331
|
value: t,
|
|
46211
46332
|
enumerable: true,
|
|
46212
46333
|
configurable: true,
|
|
46213
46334
|
writable: true
|
|
46214
46335
|
}) : e[r] = t, e;
|
|
46215
46336
|
}
|
|
46216
|
-
function
|
|
46217
|
-
var i =
|
|
46337
|
+
function _toPropertyKey39(t) {
|
|
46338
|
+
var i = _toPrimitive39(t, "string");
|
|
46218
46339
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46219
46340
|
}
|
|
46220
|
-
function
|
|
46341
|
+
function _toPrimitive39(t, r) {
|
|
46221
46342
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46222
46343
|
var e = t[Symbol.toPrimitive];
|
|
46223
46344
|
if (void 0 !== e) {
|
|
@@ -46245,7 +46366,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46245
46366
|
}
|
|
46246
46367
|
return t;
|
|
46247
46368
|
}
|
|
46248
|
-
var
|
|
46369
|
+
var Root12 = function(t0) {
|
|
46249
46370
|
var $ = _c74(12);
|
|
46250
46371
|
var children;
|
|
46251
46372
|
var className;
|
|
@@ -46270,7 +46391,7 @@ var Root10 = function(t0) {
|
|
|
46270
46391
|
}
|
|
46271
46392
|
var t1;
|
|
46272
46393
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
46273
|
-
t1 = /* @__PURE__ */ _jsx77(
|
|
46394
|
+
t1 = /* @__PURE__ */ _jsx77(Flex25, {
|
|
46274
46395
|
direction: "column",
|
|
46275
46396
|
flexGrow: "1",
|
|
46276
46397
|
className: className,
|
|
@@ -46288,7 +46409,7 @@ var Root10 = function(t0) {
|
|
|
46288
46409
|
if ($[9] !== rest || $[10] !== t1) {
|
|
46289
46410
|
t2 = /* @__PURE__ */ _jsx77(ToastsProvider, {
|
|
46290
46411
|
bottom: "var(--space-9)",
|
|
46291
|
-
children: /* @__PURE__ */ _jsx77(Provider2,
|
|
46412
|
+
children: /* @__PURE__ */ _jsx77(Provider2, _objectSpread39(_objectSpread39({}, rest), {}, {
|
|
46292
46413
|
children: t1
|
|
46293
46414
|
}))
|
|
46294
46415
|
});
|
|
@@ -46302,7 +46423,7 @@ var Root10 = function(t0) {
|
|
|
46302
46423
|
};
|
|
46303
46424
|
// src/components/threads/Thread/index.tsx
|
|
46304
46425
|
import { jsx as _jsx78, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
46305
|
-
function
|
|
46426
|
+
function ownKeys40(e, r) {
|
|
46306
46427
|
var t = Object.keys(e);
|
|
46307
46428
|
if (Object.getOwnPropertySymbols) {
|
|
46308
46429
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46312,30 +46433,30 @@ function ownKeys39(e, r) {
|
|
|
46312
46433
|
}
|
|
46313
46434
|
return t;
|
|
46314
46435
|
}
|
|
46315
|
-
function
|
|
46436
|
+
function _objectSpread40(e) {
|
|
46316
46437
|
for(var r = 1; r < arguments.length; r++){
|
|
46317
46438
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46318
|
-
r % 2 ?
|
|
46319
|
-
|
|
46320
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46439
|
+
r % 2 ? ownKeys40(Object(t), true).forEach(function(r2) {
|
|
46440
|
+
_defineProperty40(e, r2, t[r2]);
|
|
46441
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys40(Object(t)).forEach(function(r2) {
|
|
46321
46442
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46322
46443
|
});
|
|
46323
46444
|
}
|
|
46324
46445
|
return e;
|
|
46325
46446
|
}
|
|
46326
|
-
function
|
|
46327
|
-
return (r =
|
|
46447
|
+
function _defineProperty40(e, r, t) {
|
|
46448
|
+
return (r = _toPropertyKey40(r)) in e ? Object.defineProperty(e, r, {
|
|
46328
46449
|
value: t,
|
|
46329
46450
|
enumerable: true,
|
|
46330
46451
|
configurable: true,
|
|
46331
46452
|
writable: true
|
|
46332
46453
|
}) : e[r] = t, e;
|
|
46333
46454
|
}
|
|
46334
|
-
function
|
|
46335
|
-
var i =
|
|
46455
|
+
function _toPropertyKey40(t) {
|
|
46456
|
+
var i = _toPrimitive40(t, "string");
|
|
46336
46457
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46337
46458
|
}
|
|
46338
|
-
function
|
|
46459
|
+
function _toPrimitive40(t, r) {
|
|
46339
46460
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46340
46461
|
var e = t[Symbol.toPrimitive];
|
|
46341
46462
|
if (void 0 !== e) {
|
|
@@ -46360,7 +46481,7 @@ var Thread = function(props) {
|
|
|
46360
46481
|
}
|
|
46361
46482
|
var t2;
|
|
46362
46483
|
if ($[2] !== props) {
|
|
46363
|
-
t2 = /* @__PURE__ */ _jsxs28(
|
|
46484
|
+
t2 = /* @__PURE__ */ _jsxs28(Root12, _objectSpread40(_objectSpread40({}, props), {}, {
|
|
46364
46485
|
children: [
|
|
46365
46486
|
t0,
|
|
46366
46487
|
t1
|
|
@@ -46373,7 +46494,7 @@ var Thread = function(props) {
|
|
|
46373
46494
|
}
|
|
46374
46495
|
return t2;
|
|
46375
46496
|
};
|
|
46376
|
-
Thread.Root =
|
|
46497
|
+
Thread.Root = Root12;
|
|
46377
46498
|
Thread.Messages = Messages2;
|
|
46378
46499
|
Thread.MessageForm = MessageForm;
|
|
46379
46500
|
// src/hooks/messages/useMessageContext/index.ts
|
|
@@ -46488,7 +46609,7 @@ var queryOptions2 = function(_ref) {
|
|
|
46488
46609
|
});
|
|
46489
46610
|
};
|
|
46490
46611
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46491
|
-
function
|
|
46612
|
+
function ownKeys41(e, r) {
|
|
46492
46613
|
var t = Object.keys(e);
|
|
46493
46614
|
if (Object.getOwnPropertySymbols) {
|
|
46494
46615
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46498,30 +46619,30 @@ function ownKeys40(e, r) {
|
|
|
46498
46619
|
}
|
|
46499
46620
|
return t;
|
|
46500
46621
|
}
|
|
46501
|
-
function
|
|
46622
|
+
function _objectSpread41(e) {
|
|
46502
46623
|
for(var r = 1; r < arguments.length; r++){
|
|
46503
46624
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46504
|
-
r % 2 ?
|
|
46505
|
-
|
|
46506
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46625
|
+
r % 2 ? ownKeys41(Object(t), true).forEach(function(r2) {
|
|
46626
|
+
_defineProperty41(e, r2, t[r2]);
|
|
46627
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys41(Object(t)).forEach(function(r2) {
|
|
46507
46628
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46508
46629
|
});
|
|
46509
46630
|
}
|
|
46510
46631
|
return e;
|
|
46511
46632
|
}
|
|
46512
|
-
function
|
|
46513
|
-
return (r =
|
|
46633
|
+
function _defineProperty41(e, r, t) {
|
|
46634
|
+
return (r = _toPropertyKey41(r)) in e ? Object.defineProperty(e, r, {
|
|
46514
46635
|
value: t,
|
|
46515
46636
|
enumerable: true,
|
|
46516
46637
|
configurable: true,
|
|
46517
46638
|
writable: true
|
|
46518
46639
|
}) : e[r] = t, e;
|
|
46519
46640
|
}
|
|
46520
|
-
function
|
|
46521
|
-
var i =
|
|
46641
|
+
function _toPropertyKey41(t) {
|
|
46642
|
+
var i = _toPrimitive41(t, "string");
|
|
46522
46643
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46523
46644
|
}
|
|
46524
|
-
function
|
|
46645
|
+
function _toPrimitive41(t, r) {
|
|
46525
46646
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46526
46647
|
var e = t[Symbol.toPrimitive];
|
|
46527
46648
|
if (void 0 !== e) {
|
|
@@ -46552,7 +46673,7 @@ var useAssistant = function(t0) {
|
|
|
46552
46673
|
var t3 = props.data ? props.data.assistant : null;
|
|
46553
46674
|
var t4;
|
|
46554
46675
|
if ($[3] !== props || $[4] !== t3) {
|
|
46555
|
-
t4 =
|
|
46676
|
+
t4 = _objectSpread41(_objectSpread41({}, props), {}, {
|
|
46556
46677
|
assistant: t3
|
|
46557
46678
|
});
|
|
46558
46679
|
$[3] = props;
|
|
@@ -46616,7 +46737,7 @@ var Provider4 = function(t0) {
|
|
|
46616
46737
|
};
|
|
46617
46738
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46618
46739
|
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
46619
|
-
var
|
|
46740
|
+
var Root13 = function(t0) {
|
|
46620
46741
|
var $ = _c78(2);
|
|
46621
46742
|
var children = t0.children;
|
|
46622
46743
|
var t1;
|
|
@@ -46633,13 +46754,13 @@ var Root11 = function(t0) {
|
|
|
46633
46754
|
};
|
|
46634
46755
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46635
46756
|
import { c as _c80 } from "react-compiler-runtime";
|
|
46636
|
-
import { Flex as
|
|
46757
|
+
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
46637
46758
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46638
46759
|
import { c as _c79 } from "react-compiler-runtime";
|
|
46639
46760
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46640
46761
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46641
46762
|
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
46642
|
-
function
|
|
46763
|
+
function ownKeys42(e, r) {
|
|
46643
46764
|
var t = Object.keys(e);
|
|
46644
46765
|
if (Object.getOwnPropertySymbols) {
|
|
46645
46766
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46649,30 +46770,30 @@ function ownKeys41(e, r) {
|
|
|
46649
46770
|
}
|
|
46650
46771
|
return t;
|
|
46651
46772
|
}
|
|
46652
|
-
function
|
|
46773
|
+
function _objectSpread42(e) {
|
|
46653
46774
|
for(var r = 1; r < arguments.length; r++){
|
|
46654
46775
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46655
|
-
r % 2 ?
|
|
46656
|
-
|
|
46657
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46776
|
+
r % 2 ? ownKeys42(Object(t), true).forEach(function(r2) {
|
|
46777
|
+
_defineProperty42(e, r2, t[r2]);
|
|
46778
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys42(Object(t)).forEach(function(r2) {
|
|
46658
46779
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46659
46780
|
});
|
|
46660
46781
|
}
|
|
46661
46782
|
return e;
|
|
46662
46783
|
}
|
|
46663
|
-
function
|
|
46664
|
-
return (r =
|
|
46784
|
+
function _defineProperty42(e, r, t) {
|
|
46785
|
+
return (r = _toPropertyKey42(r)) in e ? Object.defineProperty(e, r, {
|
|
46665
46786
|
value: t,
|
|
46666
46787
|
enumerable: true,
|
|
46667
46788
|
configurable: true,
|
|
46668
46789
|
writable: true
|
|
46669
46790
|
}) : e[r] = t, e;
|
|
46670
46791
|
}
|
|
46671
|
-
function
|
|
46672
|
-
var i =
|
|
46792
|
+
function _toPropertyKey42(t) {
|
|
46793
|
+
var i = _toPrimitive42(t, "string");
|
|
46673
46794
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46674
46795
|
}
|
|
46675
|
-
function
|
|
46796
|
+
function _toPrimitive42(t, r) {
|
|
46676
46797
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46677
46798
|
var e = t[Symbol.toPrimitive];
|
|
46678
46799
|
if (void 0 !== e) {
|
|
@@ -46693,7 +46814,7 @@ var Button4 = function(props) {
|
|
|
46693
46814
|
}
|
|
46694
46815
|
var t1;
|
|
46695
46816
|
if ($[1] !== props) {
|
|
46696
|
-
t1 = /* @__PURE__ */ _jsx81(IconButton8,
|
|
46817
|
+
t1 = /* @__PURE__ */ _jsx81(IconButton8, _objectSpread42(_objectSpread42({
|
|
46697
46818
|
size: "4",
|
|
46698
46819
|
radius: "full"
|
|
46699
46820
|
}, props), {}, {
|
|
@@ -46708,7 +46829,7 @@ var Button4 = function(props) {
|
|
|
46708
46829
|
};
|
|
46709
46830
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46710
46831
|
import { jsx as _jsx82 } from "react/jsx-runtime";
|
|
46711
|
-
function
|
|
46832
|
+
function ownKeys43(e, r) {
|
|
46712
46833
|
var t = Object.keys(e);
|
|
46713
46834
|
if (Object.getOwnPropertySymbols) {
|
|
46714
46835
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46718,30 +46839,30 @@ function ownKeys42(e, r) {
|
|
|
46718
46839
|
}
|
|
46719
46840
|
return t;
|
|
46720
46841
|
}
|
|
46721
|
-
function
|
|
46842
|
+
function _objectSpread43(e) {
|
|
46722
46843
|
for(var r = 1; r < arguments.length; r++){
|
|
46723
46844
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46724
|
-
r % 2 ?
|
|
46725
|
-
|
|
46726
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46845
|
+
r % 2 ? ownKeys43(Object(t), true).forEach(function(r2) {
|
|
46846
|
+
_defineProperty43(e, r2, t[r2]);
|
|
46847
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys43(Object(t)).forEach(function(r2) {
|
|
46727
46848
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46728
46849
|
});
|
|
46729
46850
|
}
|
|
46730
46851
|
return e;
|
|
46731
46852
|
}
|
|
46732
|
-
function
|
|
46733
|
-
return (r =
|
|
46853
|
+
function _defineProperty43(e, r, t) {
|
|
46854
|
+
return (r = _toPropertyKey43(r)) in e ? Object.defineProperty(e, r, {
|
|
46734
46855
|
value: t,
|
|
46735
46856
|
enumerable: true,
|
|
46736
46857
|
configurable: true,
|
|
46737
46858
|
writable: true
|
|
46738
46859
|
}) : e[r] = t, e;
|
|
46739
46860
|
}
|
|
46740
|
-
function
|
|
46741
|
-
var i =
|
|
46861
|
+
function _toPropertyKey43(t) {
|
|
46862
|
+
var i = _toPrimitive43(t, "string");
|
|
46742
46863
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46743
46864
|
}
|
|
46744
|
-
function
|
|
46865
|
+
function _toPrimitive43(t, r) {
|
|
46745
46866
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46746
46867
|
var e = t[Symbol.toPrimitive];
|
|
46747
46868
|
if (void 0 !== e) {
|
|
@@ -46751,7 +46872,7 @@ function _toPrimitive42(t, r) {
|
|
|
46751
46872
|
}
|
|
46752
46873
|
return ("string" === r ? String : Number)(t);
|
|
46753
46874
|
}
|
|
46754
|
-
var
|
|
46875
|
+
var Root14 = function(t0) {
|
|
46755
46876
|
var $ = _c80(14);
|
|
46756
46877
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46757
46878
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
@@ -46787,7 +46908,7 @@ var Root12 = function(t0) {
|
|
|
46787
46908
|
}
|
|
46788
46909
|
var t5;
|
|
46789
46910
|
if ($[6] !== t4) {
|
|
46790
|
-
t5 =
|
|
46911
|
+
t5 = _objectSpread43({
|
|
46791
46912
|
zIndex: 9999999999
|
|
46792
46913
|
}, t4);
|
|
46793
46914
|
$[6] = t4;
|
|
@@ -46797,7 +46918,7 @@ var Root12 = function(t0) {
|
|
|
46797
46918
|
}
|
|
46798
46919
|
var t6;
|
|
46799
46920
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
46800
|
-
t6 = /* @__PURE__ */ _jsx82(
|
|
46921
|
+
t6 = /* @__PURE__ */ _jsx82(Flex26, {
|
|
46801
46922
|
display: t2,
|
|
46802
46923
|
onClick: t3,
|
|
46803
46924
|
direction: "column",
|
|
@@ -46833,7 +46954,7 @@ var Trigger = function(args) {
|
|
|
46833
46954
|
}
|
|
46834
46955
|
var t1;
|
|
46835
46956
|
if ($[1] !== args) {
|
|
46836
|
-
t1 = /* @__PURE__ */ _jsx82(
|
|
46957
|
+
t1 = /* @__PURE__ */ _jsx82(Root14, _objectSpread43(_objectSpread43({}, args), {}, {
|
|
46837
46958
|
children: t0
|
|
46838
46959
|
}));
|
|
46839
46960
|
$[1] = args;
|
|
@@ -46843,18 +46964,18 @@ var Trigger = function(args) {
|
|
|
46843
46964
|
}
|
|
46844
46965
|
return t1;
|
|
46845
46966
|
};
|
|
46846
|
-
Trigger.Root =
|
|
46967
|
+
Trigger.Root = Root14;
|
|
46847
46968
|
Trigger.Button = Button4;
|
|
46848
46969
|
function _temp6(prev) {
|
|
46849
46970
|
return !prev;
|
|
46850
46971
|
}
|
|
46851
46972
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46852
46973
|
import { c as _c82 } from "react-compiler-runtime";
|
|
46853
|
-
import { Card as Card4, Inset as Inset2, Flex as
|
|
46974
|
+
import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
|
|
46854
46975
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
46855
46976
|
import { c as _c81 } from "react-compiler-runtime";
|
|
46856
46977
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
46857
|
-
import { IconButton as IconButton9, Flex as
|
|
46978
|
+
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
46858
46979
|
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
46859
46980
|
var Close = function() {
|
|
46860
46981
|
var $ = _c81(9);
|
|
@@ -46903,7 +47024,7 @@ var Close = function() {
|
|
|
46903
47024
|
}
|
|
46904
47025
|
var t5;
|
|
46905
47026
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
46906
|
-
t5 = /* @__PURE__ */ _jsx83(
|
|
47027
|
+
t5 = /* @__PURE__ */ _jsx83(Flex27, {
|
|
46907
47028
|
display: t1,
|
|
46908
47029
|
onClick: t2,
|
|
46909
47030
|
direction: "column",
|
|
@@ -46929,7 +47050,7 @@ function _temp7(prev) {
|
|
|
46929
47050
|
}
|
|
46930
47051
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46931
47052
|
import { jsx as _jsx84, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
46932
|
-
function
|
|
47053
|
+
function ownKeys44(e, r) {
|
|
46933
47054
|
var t = Object.keys(e);
|
|
46934
47055
|
if (Object.getOwnPropertySymbols) {
|
|
46935
47056
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46939,30 +47060,30 @@ function ownKeys43(e, r) {
|
|
|
46939
47060
|
}
|
|
46940
47061
|
return t;
|
|
46941
47062
|
}
|
|
46942
|
-
function
|
|
47063
|
+
function _objectSpread44(e) {
|
|
46943
47064
|
for(var r = 1; r < arguments.length; r++){
|
|
46944
47065
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46945
|
-
r % 2 ?
|
|
46946
|
-
|
|
46947
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47066
|
+
r % 2 ? ownKeys44(Object(t), true).forEach(function(r2) {
|
|
47067
|
+
_defineProperty44(e, r2, t[r2]);
|
|
47068
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys44(Object(t)).forEach(function(r2) {
|
|
46948
47069
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46949
47070
|
});
|
|
46950
47071
|
}
|
|
46951
47072
|
return e;
|
|
46952
47073
|
}
|
|
46953
|
-
function
|
|
46954
|
-
return (r =
|
|
47074
|
+
function _defineProperty44(e, r, t) {
|
|
47075
|
+
return (r = _toPropertyKey44(r)) in e ? Object.defineProperty(e, r, {
|
|
46955
47076
|
value: t,
|
|
46956
47077
|
enumerable: true,
|
|
46957
47078
|
configurable: true,
|
|
46958
47079
|
writable: true
|
|
46959
47080
|
}) : e[r] = t, e;
|
|
46960
47081
|
}
|
|
46961
|
-
function
|
|
46962
|
-
var i =
|
|
47082
|
+
function _toPropertyKey44(t) {
|
|
47083
|
+
var i = _toPrimitive44(t, "string");
|
|
46963
47084
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46964
47085
|
}
|
|
46965
|
-
function
|
|
47086
|
+
function _toPrimitive44(t, r) {
|
|
46966
47087
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46967
47088
|
var e = t[Symbol.toPrimitive];
|
|
46968
47089
|
if (void 0 !== e) {
|
|
@@ -46972,7 +47093,7 @@ function _toPrimitive43(t, r) {
|
|
|
46972
47093
|
}
|
|
46973
47094
|
return ("string" === r ? String : Number)(t);
|
|
46974
47095
|
}
|
|
46975
|
-
var
|
|
47096
|
+
var Root15 = function(t0) {
|
|
46976
47097
|
var $ = _c82(19);
|
|
46977
47098
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
46978
47099
|
var isOpen = useThreadDialogContext().isOpen;
|
|
@@ -47022,7 +47143,7 @@ var Root13 = function(t0) {
|
|
|
47022
47143
|
}
|
|
47023
47144
|
var t6;
|
|
47024
47145
|
if ($[5] !== style) {
|
|
47025
|
-
t6 =
|
|
47146
|
+
t6 = _objectSpread44({
|
|
47026
47147
|
zIndex: 9999999999
|
|
47027
47148
|
}, style);
|
|
47028
47149
|
$[5] = style;
|
|
@@ -47096,7 +47217,7 @@ var Root13 = function(t0) {
|
|
|
47096
47217
|
}
|
|
47097
47218
|
var t13;
|
|
47098
47219
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
47099
|
-
t13 = /* @__PURE__ */ _jsx84(
|
|
47220
|
+
t13 = /* @__PURE__ */ _jsx84(Flex28, {
|
|
47100
47221
|
className: className,
|
|
47101
47222
|
direction: "column",
|
|
47102
47223
|
justify: "end",
|
|
@@ -47124,7 +47245,7 @@ var Messages3 = function(t0) {
|
|
|
47124
47245
|
var className = t0.className, style = t0.style;
|
|
47125
47246
|
var t1;
|
|
47126
47247
|
if ($[0] !== style) {
|
|
47127
|
-
t1 =
|
|
47248
|
+
t1 = _objectSpread44({
|
|
47128
47249
|
paddingTop: "var(--space-5)",
|
|
47129
47250
|
paddingRight: "var(--space-5)",
|
|
47130
47251
|
paddingLeft: "var(--space-5)"
|
|
@@ -47153,7 +47274,7 @@ var FormContainer = function(t0) {
|
|
|
47153
47274
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47154
47275
|
var t1;
|
|
47155
47276
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
47156
|
-
t1 = /* @__PURE__ */ _jsx84(
|
|
47277
|
+
t1 = /* @__PURE__ */ _jsx84(Flex28, {
|
|
47157
47278
|
direction: "column",
|
|
47158
47279
|
pl: "5",
|
|
47159
47280
|
pr: "5",
|
|
@@ -47172,7 +47293,7 @@ var FormContainer = function(t0) {
|
|
|
47172
47293
|
}
|
|
47173
47294
|
return t1;
|
|
47174
47295
|
};
|
|
47175
|
-
var
|
|
47296
|
+
var Content8 = function(props) {
|
|
47176
47297
|
var $ = _c82(4);
|
|
47177
47298
|
var t0;
|
|
47178
47299
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -47197,7 +47318,7 @@ var Content7 = function(props) {
|
|
|
47197
47318
|
}
|
|
47198
47319
|
var t2;
|
|
47199
47320
|
if ($[2] !== props) {
|
|
47200
|
-
t2 = /* @__PURE__ */ _jsx84(
|
|
47321
|
+
t2 = /* @__PURE__ */ _jsx84(Root15, _objectSpread44(_objectSpread44({}, props), {}, {
|
|
47201
47322
|
children: t1
|
|
47202
47323
|
}));
|
|
47203
47324
|
$[2] = props;
|
|
@@ -47207,18 +47328,18 @@ var Content7 = function(props) {
|
|
|
47207
47328
|
}
|
|
47208
47329
|
return t2;
|
|
47209
47330
|
};
|
|
47210
|
-
|
|
47211
|
-
|
|
47212
|
-
|
|
47331
|
+
Content8.Root = Root15;
|
|
47332
|
+
Content8.Messages = Messages3;
|
|
47333
|
+
Content8.FormContainer = FormContainer;
|
|
47213
47334
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47214
47335
|
import { jsx as _jsx85, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
47215
47336
|
var ThreadDialog = function() {
|
|
47216
47337
|
var $ = _c83(1);
|
|
47217
47338
|
var t0;
|
|
47218
47339
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47219
|
-
t0 = /* @__PURE__ */ _jsxs30(
|
|
47340
|
+
t0 = /* @__PURE__ */ _jsxs30(Root13, {
|
|
47220
47341
|
children: [
|
|
47221
|
-
/* @__PURE__ */ _jsx85(
|
|
47342
|
+
/* @__PURE__ */ _jsx85(Content8, {}),
|
|
47222
47343
|
/* @__PURE__ */ _jsx85(Trigger, {})
|
|
47223
47344
|
]
|
|
47224
47345
|
});
|
|
@@ -47228,16 +47349,16 @@ var ThreadDialog = function() {
|
|
|
47228
47349
|
}
|
|
47229
47350
|
return t0;
|
|
47230
47351
|
};
|
|
47231
|
-
ThreadDialog.Root =
|
|
47352
|
+
ThreadDialog.Root = Root13;
|
|
47232
47353
|
ThreadDialog.Trigger = Trigger;
|
|
47233
|
-
ThreadDialog.Content =
|
|
47354
|
+
ThreadDialog.Content = Content8;
|
|
47234
47355
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47235
47356
|
import { c as _c98 } from "react-compiler-runtime";
|
|
47236
47357
|
// src/components/threads/AudioThread/index.tsx
|
|
47237
47358
|
import { c as _c97 } from "react-compiler-runtime";
|
|
47238
47359
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47239
47360
|
import { c as _c89 } from "react-compiler-runtime";
|
|
47240
|
-
import { Flex as
|
|
47361
|
+
import { Flex as Flex29 } from "@radix-ui/themes";
|
|
47241
47362
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47242
47363
|
import { createContext as createContext13 } from "react";
|
|
47243
47364
|
var AudioThreadContext = /* @__PURE__ */ createContext13({
|
|
@@ -47370,7 +47491,7 @@ var useInterval = function(callback, delay) {
|
|
|
47370
47491
|
};
|
|
47371
47492
|
function _temp8() {}
|
|
47372
47493
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
47373
|
-
function
|
|
47494
|
+
function ownKeys45(e, r) {
|
|
47374
47495
|
var t = Object.keys(e);
|
|
47375
47496
|
if (Object.getOwnPropertySymbols) {
|
|
47376
47497
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -47380,30 +47501,30 @@ function ownKeys44(e, r) {
|
|
|
47380
47501
|
}
|
|
47381
47502
|
return t;
|
|
47382
47503
|
}
|
|
47383
|
-
function
|
|
47504
|
+
function _objectSpread45(e) {
|
|
47384
47505
|
for(var r = 1; r < arguments.length; r++){
|
|
47385
47506
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
47386
|
-
r % 2 ?
|
|
47387
|
-
|
|
47388
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47507
|
+
r % 2 ? ownKeys45(Object(t), true).forEach(function(r2) {
|
|
47508
|
+
_defineProperty45(e, r2, t[r2]);
|
|
47509
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys45(Object(t)).forEach(function(r2) {
|
|
47389
47510
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
47390
47511
|
});
|
|
47391
47512
|
}
|
|
47392
47513
|
return e;
|
|
47393
47514
|
}
|
|
47394
|
-
function
|
|
47395
|
-
return (r =
|
|
47515
|
+
function _defineProperty45(e, r, t) {
|
|
47516
|
+
return (r = _toPropertyKey45(r)) in e ? Object.defineProperty(e, r, {
|
|
47396
47517
|
value: t,
|
|
47397
47518
|
enumerable: true,
|
|
47398
47519
|
configurable: true,
|
|
47399
47520
|
writable: true
|
|
47400
47521
|
}) : e[r] = t, e;
|
|
47401
47522
|
}
|
|
47402
|
-
function
|
|
47403
|
-
var i =
|
|
47523
|
+
function _toPropertyKey45(t) {
|
|
47524
|
+
var i = _toPrimitive45(t, "string");
|
|
47404
47525
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
47405
47526
|
}
|
|
47406
|
-
function
|
|
47527
|
+
function _toPrimitive45(t, r) {
|
|
47407
47528
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
47408
47529
|
var e = t[Symbol.toPrimitive];
|
|
47409
47530
|
if (void 0 !== e) {
|
|
@@ -47577,7 +47698,7 @@ var useRecorder = function(_ref) {
|
|
|
47577
47698
|
if (!silenceStart.isBefore(dayjs3().subtract(1.5, "second"))) return;
|
|
47578
47699
|
audioCaptureProps.stop();
|
|
47579
47700
|
}, 300);
|
|
47580
|
-
return
|
|
47701
|
+
return _objectSpread45(_objectSpread45({}, audioCaptureProps), {}, {
|
|
47581
47702
|
status: status,
|
|
47582
47703
|
visualizationAnalyser: visualizationAnalyser
|
|
47583
47704
|
});
|
|
@@ -47610,7 +47731,7 @@ var unsupportedNames = [
|
|
|
47610
47731
|
];
|
|
47611
47732
|
var isHtmlAudioSupported = !unsupportedNames.includes(((_detect = detect()) === null || _detect === void 0 ? void 0 : _detect.name) || "");
|
|
47612
47733
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47613
|
-
function
|
|
47734
|
+
function ownKeys46(e, r) {
|
|
47614
47735
|
var t = Object.keys(e);
|
|
47615
47736
|
if (Object.getOwnPropertySymbols) {
|
|
47616
47737
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -47620,30 +47741,30 @@ function ownKeys45(e, r) {
|
|
|
47620
47741
|
}
|
|
47621
47742
|
return t;
|
|
47622
47743
|
}
|
|
47623
|
-
function
|
|
47744
|
+
function _objectSpread46(e) {
|
|
47624
47745
|
for(var r = 1; r < arguments.length; r++){
|
|
47625
47746
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
47626
|
-
r % 2 ?
|
|
47627
|
-
|
|
47628
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47747
|
+
r % 2 ? ownKeys46(Object(t), true).forEach(function(r2) {
|
|
47748
|
+
_defineProperty46(e, r2, t[r2]);
|
|
47749
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys46(Object(t)).forEach(function(r2) {
|
|
47629
47750
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
47630
47751
|
});
|
|
47631
47752
|
}
|
|
47632
47753
|
return e;
|
|
47633
47754
|
}
|
|
47634
|
-
function
|
|
47635
|
-
return (r =
|
|
47755
|
+
function _defineProperty46(e, r, t) {
|
|
47756
|
+
return (r = _toPropertyKey46(r)) in e ? Object.defineProperty(e, r, {
|
|
47636
47757
|
value: t,
|
|
47637
47758
|
enumerable: true,
|
|
47638
47759
|
configurable: true,
|
|
47639
47760
|
writable: true
|
|
47640
47761
|
}) : e[r] = t, e;
|
|
47641
47762
|
}
|
|
47642
|
-
function
|
|
47643
|
-
var i =
|
|
47763
|
+
function _toPropertyKey46(t) {
|
|
47764
|
+
var i = _toPrimitive46(t, "string");
|
|
47644
47765
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
47645
47766
|
}
|
|
47646
|
-
function
|
|
47767
|
+
function _toPrimitive46(t, r) {
|
|
47647
47768
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
47648
47769
|
var e = t[Symbol.toPrimitive];
|
|
47649
47770
|
if (void 0 !== e) {
|
|
@@ -47773,7 +47894,7 @@ var useMessageAudio = function(t0) {
|
|
|
47773
47894
|
if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext || $[16] !== unplayedMessageSentences) {
|
|
47774
47895
|
t4 = function(t52) {
|
|
47775
47896
|
var input_0 = t52.input, onPlay = t52.onPlay, onStop = t52.onStop, onEnd_0 = t52.onEnd;
|
|
47776
|
-
var searchParams = new URLSearchParams(
|
|
47897
|
+
var searchParams = new URLSearchParams(_objectSpread46({
|
|
47777
47898
|
input: input_0
|
|
47778
47899
|
}, superinterfaceContext.variables));
|
|
47779
47900
|
audioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(searchParams), {
|
|
@@ -47791,7 +47912,7 @@ var useMessageAudio = function(t0) {
|
|
|
47791
47912
|
if (!isNextFullSentence) {
|
|
47792
47913
|
return;
|
|
47793
47914
|
}
|
|
47794
|
-
var nextSearchParams = new URLSearchParams(
|
|
47915
|
+
var nextSearchParams = new URLSearchParams(_objectSpread46({
|
|
47795
47916
|
input: nextUnplayedMessageSentence.sentence
|
|
47796
47917
|
}, superinterfaceContext.variables));
|
|
47797
47918
|
nextAudioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(nextSearchParams), {
|
|
@@ -47984,7 +48105,7 @@ var useMessageAudio = function(t0) {
|
|
|
47984
48105
|
var isPending = t12;
|
|
47985
48106
|
var t13;
|
|
47986
48107
|
if ($[44] !== audioPlayer || $[45] !== isAudioPlayed || $[46] !== isPending || $[47] !== visualizationAnalyser) {
|
|
47987
|
-
t13 =
|
|
48108
|
+
t13 = _objectSpread46(_objectSpread46({
|
|
47988
48109
|
isPending: isPending,
|
|
47989
48110
|
isAudioPlayed: isAudioPlayed
|
|
47990
48111
|
}, audioPlayer), {}, {
|
|
@@ -48270,7 +48391,7 @@ var _excluded22 = [
|
|
|
48270
48391
|
"className",
|
|
48271
48392
|
"style"
|
|
48272
48393
|
];
|
|
48273
|
-
function
|
|
48394
|
+
function ownKeys47(e, r) {
|
|
48274
48395
|
var t = Object.keys(e);
|
|
48275
48396
|
if (Object.getOwnPropertySymbols) {
|
|
48276
48397
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -48280,30 +48401,30 @@ function ownKeys46(e, r) {
|
|
|
48280
48401
|
}
|
|
48281
48402
|
return t;
|
|
48282
48403
|
}
|
|
48283
|
-
function
|
|
48404
|
+
function _objectSpread47(e) {
|
|
48284
48405
|
for(var r = 1; r < arguments.length; r++){
|
|
48285
48406
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
48286
|
-
r % 2 ?
|
|
48287
|
-
|
|
48288
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
48407
|
+
r % 2 ? ownKeys47(Object(t), true).forEach(function(r2) {
|
|
48408
|
+
_defineProperty47(e, r2, t[r2]);
|
|
48409
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys47(Object(t)).forEach(function(r2) {
|
|
48289
48410
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
48290
48411
|
});
|
|
48291
48412
|
}
|
|
48292
48413
|
return e;
|
|
48293
48414
|
}
|
|
48294
|
-
function
|
|
48295
|
-
return (r =
|
|
48415
|
+
function _defineProperty47(e, r, t) {
|
|
48416
|
+
return (r = _toPropertyKey47(r)) in e ? Object.defineProperty(e, r, {
|
|
48296
48417
|
value: t,
|
|
48297
48418
|
enumerable: true,
|
|
48298
48419
|
configurable: true,
|
|
48299
48420
|
writable: true
|
|
48300
48421
|
}) : e[r] = t, e;
|
|
48301
48422
|
}
|
|
48302
|
-
function
|
|
48303
|
-
var i =
|
|
48423
|
+
function _toPropertyKey47(t) {
|
|
48424
|
+
var i = _toPrimitive47(t, "string");
|
|
48304
48425
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
48305
48426
|
}
|
|
48306
|
-
function
|
|
48427
|
+
function _toPrimitive47(t, r) {
|
|
48307
48428
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
48308
48429
|
var e = t[Symbol.toPrimitive];
|
|
48309
48430
|
if (void 0 !== e) {
|
|
@@ -48331,12 +48452,12 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48331
48452
|
}
|
|
48332
48453
|
return t;
|
|
48333
48454
|
}
|
|
48334
|
-
var
|
|
48455
|
+
var Content9 = function(t0) {
|
|
48335
48456
|
var $ = _c89(4);
|
|
48336
48457
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48337
48458
|
var t1;
|
|
48338
48459
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
48339
|
-
t1 = /* @__PURE__ */ _jsx87(
|
|
48460
|
+
t1 = /* @__PURE__ */ _jsx87(Flex29, {
|
|
48340
48461
|
direction: "column",
|
|
48341
48462
|
flexGrow: "1",
|
|
48342
48463
|
p: "9",
|
|
@@ -48393,7 +48514,7 @@ var Provider5 = function(t0) {
|
|
|
48393
48514
|
var audioThreadContext = useAudioThreadContext();
|
|
48394
48515
|
var t1;
|
|
48395
48516
|
if ($[3] !== audioThreadContext || $[4] !== rest) {
|
|
48396
|
-
t1 =
|
|
48517
|
+
t1 = _objectSpread47(_objectSpread47({}, audioThreadContext), rest);
|
|
48397
48518
|
$[3] = audioThreadContext;
|
|
48398
48519
|
$[4] = rest;
|
|
48399
48520
|
$[5] = t1;
|
|
@@ -48414,7 +48535,7 @@ var Provider5 = function(t0) {
|
|
|
48414
48535
|
}
|
|
48415
48536
|
return t2;
|
|
48416
48537
|
};
|
|
48417
|
-
var
|
|
48538
|
+
var Root16 = function(t0) {
|
|
48418
48539
|
var $ = _c89(16);
|
|
48419
48540
|
var children;
|
|
48420
48541
|
var className;
|
|
@@ -48443,7 +48564,7 @@ var Root14 = function(t0) {
|
|
|
48443
48564
|
var t1;
|
|
48444
48565
|
if ($[6] !== children || $[7] !== className || $[8] !== style) {
|
|
48445
48566
|
t1 = /* @__PURE__ */ _jsx87(ToastsProvider, {
|
|
48446
|
-
children: /* @__PURE__ */ _jsx87(
|
|
48567
|
+
children: /* @__PURE__ */ _jsx87(Content9, {
|
|
48447
48568
|
className: className,
|
|
48448
48569
|
style: style,
|
|
48449
48570
|
children: children
|
|
@@ -48470,7 +48591,7 @@ var Root14 = function(t0) {
|
|
|
48470
48591
|
}
|
|
48471
48592
|
var t3;
|
|
48472
48593
|
if ($[13] !== rest || $[14] !== t2) {
|
|
48473
|
-
t3 = /* @__PURE__ */ _jsx87(Provider5,
|
|
48594
|
+
t3 = /* @__PURE__ */ _jsx87(Provider5, _objectSpread47(_objectSpread47({}, rest), {}, {
|
|
48474
48595
|
children: t2
|
|
48475
48596
|
}));
|
|
48476
48597
|
$[13] = rest;
|
|
@@ -48485,10 +48606,10 @@ var Root14 = function(t0) {
|
|
|
48485
48606
|
import { c as _c91 } from "react-compiler-runtime";
|
|
48486
48607
|
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
|
|
48487
48608
|
import _9 from "lodash";
|
|
48488
|
-
import { Flex as
|
|
48609
|
+
import { Flex as Flex31 } from "@radix-ui/themes";
|
|
48489
48610
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
48490
48611
|
import _8 from "lodash";
|
|
48491
|
-
import { Flex as
|
|
48612
|
+
import { Flex as Flex30, Grid } from "@radix-ui/themes";
|
|
48492
48613
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback7 } from "react";
|
|
48493
48614
|
import { cluster } from "radash";
|
|
48494
48615
|
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
@@ -48531,12 +48652,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
48531
48652
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
48532
48653
|
},
|
|
48533
48654
|
children: barHeights.map(function(barHeight, index) {
|
|
48534
|
-
return /* @__PURE__ */ _jsx88(
|
|
48655
|
+
return /* @__PURE__ */ _jsx88(Flex30, {
|
|
48535
48656
|
direction: "column",
|
|
48536
48657
|
align: "center",
|
|
48537
48658
|
justify: "center",
|
|
48538
48659
|
height: height,
|
|
48539
|
-
children: /* @__PURE__ */ _jsx88(
|
|
48660
|
+
children: /* @__PURE__ */ _jsx88(Flex30, {
|
|
48540
48661
|
minHeight: "50%",
|
|
48541
48662
|
maxHeight: "100%",
|
|
48542
48663
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -48615,7 +48736,7 @@ var _excluded32 = [
|
|
|
48615
48736
|
"height",
|
|
48616
48737
|
"width"
|
|
48617
48738
|
];
|
|
48618
|
-
function
|
|
48739
|
+
function ownKeys48(e, r) {
|
|
48619
48740
|
var t = Object.keys(e);
|
|
48620
48741
|
if (Object.getOwnPropertySymbols) {
|
|
48621
48742
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -48625,30 +48746,30 @@ function ownKeys47(e, r) {
|
|
|
48625
48746
|
}
|
|
48626
48747
|
return t;
|
|
48627
48748
|
}
|
|
48628
|
-
function
|
|
48749
|
+
function _objectSpread48(e) {
|
|
48629
48750
|
for(var r = 1; r < arguments.length; r++){
|
|
48630
48751
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
48631
|
-
r % 2 ?
|
|
48632
|
-
|
|
48633
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
48752
|
+
r % 2 ? ownKeys48(Object(t), true).forEach(function(r2) {
|
|
48753
|
+
_defineProperty48(e, r2, t[r2]);
|
|
48754
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys48(Object(t)).forEach(function(r2) {
|
|
48634
48755
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
48635
48756
|
});
|
|
48636
48757
|
}
|
|
48637
48758
|
return e;
|
|
48638
48759
|
}
|
|
48639
|
-
function
|
|
48640
|
-
return (r =
|
|
48760
|
+
function _defineProperty48(e, r, t) {
|
|
48761
|
+
return (r = _toPropertyKey48(r)) in e ? Object.defineProperty(e, r, {
|
|
48641
48762
|
value: t,
|
|
48642
48763
|
enumerable: true,
|
|
48643
48764
|
configurable: true,
|
|
48644
48765
|
writable: true
|
|
48645
48766
|
}) : e[r] = t, e;
|
|
48646
48767
|
}
|
|
48647
|
-
function
|
|
48648
|
-
var i =
|
|
48768
|
+
function _toPropertyKey48(t) {
|
|
48769
|
+
var i = _toPrimitive48(t, "string");
|
|
48649
48770
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
48650
48771
|
}
|
|
48651
|
-
function
|
|
48772
|
+
function _toPrimitive48(t, r) {
|
|
48652
48773
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
48653
48774
|
var e = t[Symbol.toPrimitive];
|
|
48654
48775
|
if (void 0 !== e) {
|
|
@@ -48713,7 +48834,7 @@ var Provider6 = function(_ref) {
|
|
|
48713
48834
|
children: children
|
|
48714
48835
|
});
|
|
48715
48836
|
};
|
|
48716
|
-
var
|
|
48837
|
+
var Root17 = function(t0) {
|
|
48717
48838
|
var $ = _c91(6);
|
|
48718
48839
|
var children;
|
|
48719
48840
|
var rest;
|
|
@@ -48732,7 +48853,7 @@ var Root15 = function(t0) {
|
|
|
48732
48853
|
var t1;
|
|
48733
48854
|
if ($[3] !== children || $[4] !== rest) {
|
|
48734
48855
|
t1 = /* @__PURE__ */ _jsx89(Provider6, {
|
|
48735
|
-
children: /* @__PURE__ */ _jsx89(
|
|
48856
|
+
children: /* @__PURE__ */ _jsx89(Flex31, _objectSpread48(_objectSpread48({
|
|
48736
48857
|
direction: "column",
|
|
48737
48858
|
align: "center",
|
|
48738
48859
|
justify: "center",
|
|
@@ -48777,7 +48898,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48777
48898
|
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48778
48899
|
var t4;
|
|
48779
48900
|
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
48780
|
-
t4 = /* @__PURE__ */ _jsx89(BarsVisualizer,
|
|
48901
|
+
t4 = /* @__PURE__ */ _jsx89(BarsVisualizer, _objectSpread48({
|
|
48781
48902
|
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
48782
48903
|
backgroundColor: t3,
|
|
48783
48904
|
height: height,
|
|
@@ -48833,7 +48954,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48833
48954
|
}
|
|
48834
48955
|
var t5;
|
|
48835
48956
|
if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
|
|
48836
|
-
t5 =
|
|
48957
|
+
t5 = _objectSpread48({
|
|
48837
48958
|
backgroundColor: t3,
|
|
48838
48959
|
borderRadius: "9999px",
|
|
48839
48960
|
scale: scale
|
|
@@ -48847,7 +48968,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48847
48968
|
}
|
|
48848
48969
|
var t6;
|
|
48849
48970
|
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
48850
|
-
t6 = /* @__PURE__ */ _jsx89(
|
|
48971
|
+
t6 = /* @__PURE__ */ _jsx89(Flex31, _objectSpread48(_objectSpread48({
|
|
48851
48972
|
align: "center",
|
|
48852
48973
|
justify: "center",
|
|
48853
48974
|
height: height,
|
|
@@ -48878,7 +48999,7 @@ var AssistantVisualization = function(props) {
|
|
|
48878
48999
|
}
|
|
48879
49000
|
var t1;
|
|
48880
49001
|
if ($[1] !== props) {
|
|
48881
|
-
t1 = /* @__PURE__ */ _jsx89(AssistantVisualizationRoot,
|
|
49002
|
+
t1 = /* @__PURE__ */ _jsx89(AssistantVisualizationRoot, _objectSpread48(_objectSpread48({}, props), {}, {
|
|
48882
49003
|
children: t0
|
|
48883
49004
|
}));
|
|
48884
49005
|
$[1] = props;
|
|
@@ -48912,7 +49033,7 @@ var AssistantInfo = function(props) {
|
|
|
48912
49033
|
}
|
|
48913
49034
|
var t2;
|
|
48914
49035
|
if ($[3] !== props || $[4] !== t1) {
|
|
48915
|
-
t2 = /* @__PURE__ */ _jsxs31(
|
|
49036
|
+
t2 = /* @__PURE__ */ _jsxs31(Flex31, _objectSpread48(_objectSpread48({
|
|
48916
49037
|
ml: "-22.5px",
|
|
48917
49038
|
gap: "3",
|
|
48918
49039
|
pt: "5"
|
|
@@ -48945,7 +49066,7 @@ var Visualization = function(props) {
|
|
|
48945
49066
|
}
|
|
48946
49067
|
var t2;
|
|
48947
49068
|
if ($[2] !== props) {
|
|
48948
|
-
t2 = /* @__PURE__ */ _jsxs31(
|
|
49069
|
+
t2 = /* @__PURE__ */ _jsxs31(Root17, _objectSpread48(_objectSpread48({}, props), {}, {
|
|
48949
49070
|
children: [
|
|
48950
49071
|
t0,
|
|
48951
49072
|
t1
|
|
@@ -48958,7 +49079,7 @@ var Visualization = function(props) {
|
|
|
48958
49079
|
}
|
|
48959
49080
|
return t2;
|
|
48960
49081
|
};
|
|
48961
|
-
Visualization.Root =
|
|
49082
|
+
Visualization.Root = Root17;
|
|
48962
49083
|
Visualization.Provider = Provider6;
|
|
48963
49084
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48964
49085
|
Visualization.AssistantInfo = AssistantInfo;
|
|
@@ -48966,7 +49087,7 @@ Visualization.AssistantInfo = AssistantInfo;
|
|
|
48966
49087
|
import { c as _c93 } from "react-compiler-runtime";
|
|
48967
49088
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
48968
49089
|
import { c as _c92 } from "react-compiler-runtime";
|
|
48969
|
-
import { Flex as
|
|
49090
|
+
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
48970
49091
|
import { jsx as _jsx90, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
48971
49092
|
var html = function(_ref) {
|
|
48972
49093
|
var texts = _ref.texts;
|
|
@@ -49014,7 +49135,7 @@ var StatusMessages = function(t0) {
|
|
|
49014
49135
|
}
|
|
49015
49136
|
var t4;
|
|
49016
49137
|
if ($[5] !== className || $[6] !== style || $[7] !== t3) {
|
|
49017
|
-
t4 = /* @__PURE__ */ _jsxs32(
|
|
49138
|
+
t4 = /* @__PURE__ */ _jsxs32(Flex32, {
|
|
49018
49139
|
justify: "center",
|
|
49019
49140
|
pb: "5",
|
|
49020
49141
|
className: className,
|
|
@@ -49035,7 +49156,7 @@ var StatusMessages = function(t0) {
|
|
|
49035
49156
|
};
|
|
49036
49157
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49037
49158
|
import { jsx as _jsx91 } from "react/jsx-runtime";
|
|
49038
|
-
function
|
|
49159
|
+
function ownKeys49(e, r) {
|
|
49039
49160
|
var t = Object.keys(e);
|
|
49040
49161
|
if (Object.getOwnPropertySymbols) {
|
|
49041
49162
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49045,30 +49166,30 @@ function ownKeys48(e, r) {
|
|
|
49045
49166
|
}
|
|
49046
49167
|
return t;
|
|
49047
49168
|
}
|
|
49048
|
-
function
|
|
49169
|
+
function _objectSpread49(e) {
|
|
49049
49170
|
for(var r = 1; r < arguments.length; r++){
|
|
49050
49171
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49051
|
-
r % 2 ?
|
|
49052
|
-
|
|
49053
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49172
|
+
r % 2 ? ownKeys49(Object(t), true).forEach(function(r2) {
|
|
49173
|
+
_defineProperty49(e, r2, t[r2]);
|
|
49174
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys49(Object(t)).forEach(function(r2) {
|
|
49054
49175
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49055
49176
|
});
|
|
49056
49177
|
}
|
|
49057
49178
|
return e;
|
|
49058
49179
|
}
|
|
49059
|
-
function
|
|
49060
|
-
return (r =
|
|
49180
|
+
function _defineProperty49(e, r, t) {
|
|
49181
|
+
return (r = _toPropertyKey49(r)) in e ? Object.defineProperty(e, r, {
|
|
49061
49182
|
value: t,
|
|
49062
49183
|
enumerable: true,
|
|
49063
49184
|
configurable: true,
|
|
49064
49185
|
writable: true
|
|
49065
49186
|
}) : e[r] = t, e;
|
|
49066
49187
|
}
|
|
49067
|
-
function
|
|
49068
|
-
var i =
|
|
49188
|
+
function _toPropertyKey49(t) {
|
|
49189
|
+
var i = _toPrimitive49(t, "string");
|
|
49069
49190
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49070
49191
|
}
|
|
49071
|
-
function
|
|
49192
|
+
function _toPrimitive49(t, r) {
|
|
49072
49193
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49073
49194
|
var e = t[Symbol.toPrimitive];
|
|
49074
49195
|
if (void 0 !== e) {
|
|
@@ -49096,7 +49217,7 @@ var Status = function(props) {
|
|
|
49096
49217
|
}
|
|
49097
49218
|
var _t2;
|
|
49098
49219
|
if ($[1] !== props) {
|
|
49099
|
-
_t2 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49220
|
+
_t2 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49100
49221
|
texts: _t
|
|
49101
49222
|
}, props));
|
|
49102
49223
|
$[1] = props;
|
|
@@ -49122,7 +49243,7 @@ var Status = function(props) {
|
|
|
49122
49243
|
}
|
|
49123
49244
|
var _t4;
|
|
49124
49245
|
if ($[4] !== props) {
|
|
49125
|
-
_t4 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49246
|
+
_t4 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49126
49247
|
texts: _t3
|
|
49127
49248
|
}, props));
|
|
49128
49249
|
$[4] = props;
|
|
@@ -49144,7 +49265,7 @@ var Status = function(props) {
|
|
|
49144
49265
|
}
|
|
49145
49266
|
var _t6;
|
|
49146
49267
|
if ($[7] !== props) {
|
|
49147
|
-
_t6 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49268
|
+
_t6 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49148
49269
|
texts: _t5
|
|
49149
49270
|
}, props));
|
|
49150
49271
|
$[7] = props;
|
|
@@ -49165,7 +49286,7 @@ var Status = function(props) {
|
|
|
49165
49286
|
}
|
|
49166
49287
|
var t1;
|
|
49167
49288
|
if ($[10] !== props) {
|
|
49168
|
-
t1 = /* @__PURE__ */ _jsx91(StatusMessages,
|
|
49289
|
+
t1 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49169
49290
|
texts: t0
|
|
49170
49291
|
}, props));
|
|
49171
49292
|
$[10] = props;
|
|
@@ -49177,11 +49298,11 @@ var Status = function(props) {
|
|
|
49177
49298
|
};
|
|
49178
49299
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49179
49300
|
import { c as _c96 } from "react-compiler-runtime";
|
|
49180
|
-
import { Flex as
|
|
49301
|
+
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
49181
49302
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49182
49303
|
import { c as _c94 } from "react-compiler-runtime";
|
|
49183
49304
|
import { jsx as _jsx92 } from "react/jsx-runtime";
|
|
49184
|
-
function
|
|
49305
|
+
function ownKeys50(e, r) {
|
|
49185
49306
|
var t = Object.keys(e);
|
|
49186
49307
|
if (Object.getOwnPropertySymbols) {
|
|
49187
49308
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49191,30 +49312,30 @@ function ownKeys49(e, r) {
|
|
|
49191
49312
|
}
|
|
49192
49313
|
return t;
|
|
49193
49314
|
}
|
|
49194
|
-
function
|
|
49315
|
+
function _objectSpread50(e) {
|
|
49195
49316
|
for(var r = 1; r < arguments.length; r++){
|
|
49196
49317
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49197
|
-
r % 2 ?
|
|
49198
|
-
|
|
49199
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49318
|
+
r % 2 ? ownKeys50(Object(t), true).forEach(function(r2) {
|
|
49319
|
+
_defineProperty50(e, r2, t[r2]);
|
|
49320
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys50(Object(t)).forEach(function(r2) {
|
|
49200
49321
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49201
49322
|
});
|
|
49202
49323
|
}
|
|
49203
49324
|
return e;
|
|
49204
49325
|
}
|
|
49205
|
-
function
|
|
49206
|
-
return (r =
|
|
49326
|
+
function _defineProperty50(e, r, t) {
|
|
49327
|
+
return (r = _toPropertyKey50(r)) in e ? Object.defineProperty(e, r, {
|
|
49207
49328
|
value: t,
|
|
49208
49329
|
enumerable: true,
|
|
49209
49330
|
configurable: true,
|
|
49210
49331
|
writable: true
|
|
49211
49332
|
}) : e[r] = t, e;
|
|
49212
49333
|
}
|
|
49213
|
-
function
|
|
49214
|
-
var i =
|
|
49334
|
+
function _toPropertyKey50(t) {
|
|
49335
|
+
var i = _toPrimitive50(t, "string");
|
|
49215
49336
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49216
49337
|
}
|
|
49217
|
-
function
|
|
49338
|
+
function _toPrimitive50(t, r) {
|
|
49218
49339
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49219
49340
|
var e = t[Symbol.toPrimitive];
|
|
49220
49341
|
if (void 0 !== e) {
|
|
@@ -49238,7 +49359,7 @@ var MicIcon = function(props) {
|
|
|
49238
49359
|
}
|
|
49239
49360
|
var t1;
|
|
49240
49361
|
if ($[1] !== props) {
|
|
49241
|
-
t1 = /* @__PURE__ */ _jsx92("svg",
|
|
49362
|
+
t1 = /* @__PURE__ */ _jsx92("svg", _objectSpread50(_objectSpread50({
|
|
49242
49363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49243
49364
|
fill: "currentColor",
|
|
49244
49365
|
stroke: "currentColor",
|
|
@@ -49258,7 +49379,7 @@ var MicIcon = function(props) {
|
|
|
49258
49379
|
};
|
|
49259
49380
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49260
49381
|
import { c as _c95 } from "react-compiler-runtime";
|
|
49261
|
-
import { Flex as
|
|
49382
|
+
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
49262
49383
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
49263
49384
|
import { jsx as _jsx93, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
49264
49385
|
var ActionButton = function() {
|
|
@@ -49276,7 +49397,7 @@ var ActionButton = function() {
|
|
|
49276
49397
|
}
|
|
49277
49398
|
var t1;
|
|
49278
49399
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
49279
|
-
t1 = /* @__PURE__ */ _jsx93(
|
|
49400
|
+
t1 = /* @__PURE__ */ _jsx93(Flex33, {
|
|
49280
49401
|
mr: "3",
|
|
49281
49402
|
ml: "-7",
|
|
49282
49403
|
children: /* @__PURE__ */ _jsx93(IconButton10, {
|
|
@@ -49315,7 +49436,7 @@ var ActionButton = function() {
|
|
|
49315
49436
|
}
|
|
49316
49437
|
var t4;
|
|
49317
49438
|
if ($[6] !== t1 || $[7] !== t3) {
|
|
49318
|
-
t4 = /* @__PURE__ */ _jsxs33(
|
|
49439
|
+
t4 = /* @__PURE__ */ _jsxs33(Flex33, {
|
|
49319
49440
|
align: "center",
|
|
49320
49441
|
children: [
|
|
49321
49442
|
t1,
|
|
@@ -49456,7 +49577,7 @@ var ActionButton = function() {
|
|
|
49456
49577
|
};
|
|
49457
49578
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49458
49579
|
import { jsx as _jsx94, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
49459
|
-
function
|
|
49580
|
+
function ownKeys51(e, r) {
|
|
49460
49581
|
var t = Object.keys(e);
|
|
49461
49582
|
if (Object.getOwnPropertySymbols) {
|
|
49462
49583
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49466,30 +49587,30 @@ function ownKeys50(e, r) {
|
|
|
49466
49587
|
}
|
|
49467
49588
|
return t;
|
|
49468
49589
|
}
|
|
49469
|
-
function
|
|
49590
|
+
function _objectSpread51(e) {
|
|
49470
49591
|
for(var r = 1; r < arguments.length; r++){
|
|
49471
49592
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49472
|
-
r % 2 ?
|
|
49473
|
-
|
|
49474
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49593
|
+
r % 2 ? ownKeys51(Object(t), true).forEach(function(r2) {
|
|
49594
|
+
_defineProperty51(e, r2, t[r2]);
|
|
49595
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys51(Object(t)).forEach(function(r2) {
|
|
49475
49596
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49476
49597
|
});
|
|
49477
49598
|
}
|
|
49478
49599
|
return e;
|
|
49479
49600
|
}
|
|
49480
|
-
function
|
|
49481
|
-
return (r =
|
|
49601
|
+
function _defineProperty51(e, r, t) {
|
|
49602
|
+
return (r = _toPropertyKey51(r)) in e ? Object.defineProperty(e, r, {
|
|
49482
49603
|
value: t,
|
|
49483
49604
|
enumerable: true,
|
|
49484
49605
|
configurable: true,
|
|
49485
49606
|
writable: true
|
|
49486
49607
|
}) : e[r] = t, e;
|
|
49487
49608
|
}
|
|
49488
|
-
function
|
|
49489
|
-
var i =
|
|
49609
|
+
function _toPropertyKey51(t) {
|
|
49610
|
+
var i = _toPrimitive51(t, "string");
|
|
49490
49611
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49491
49612
|
}
|
|
49492
|
-
function
|
|
49613
|
+
function _toPrimitive51(t, r) {
|
|
49493
49614
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49494
49615
|
var e = t[Symbol.toPrimitive];
|
|
49495
49616
|
if (void 0 !== e) {
|
|
@@ -49506,7 +49627,7 @@ var Form = function(props) {
|
|
|
49506
49627
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49507
49628
|
var t1;
|
|
49508
49629
|
if ($[0] !== t0) {
|
|
49509
|
-
t1 = /* @__PURE__ */ _jsx94(
|
|
49630
|
+
t1 = /* @__PURE__ */ _jsx94(Flex34, {
|
|
49510
49631
|
ml: "-22.5px",
|
|
49511
49632
|
mr: "2",
|
|
49512
49633
|
align: "center",
|
|
@@ -49550,7 +49671,7 @@ var Form = function(props) {
|
|
|
49550
49671
|
}
|
|
49551
49672
|
var t6;
|
|
49552
49673
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
49553
|
-
t6 = /* @__PURE__ */ _jsx94(
|
|
49674
|
+
t6 = /* @__PURE__ */ _jsx94(Flex34, {
|
|
49554
49675
|
px: "2",
|
|
49555
49676
|
py: "1",
|
|
49556
49677
|
style: t3,
|
|
@@ -49564,7 +49685,7 @@ var Form = function(props) {
|
|
|
49564
49685
|
}
|
|
49565
49686
|
var t7;
|
|
49566
49687
|
if ($[10] !== t1 || $[11] !== t6) {
|
|
49567
|
-
t7 = /* @__PURE__ */ _jsxs34(
|
|
49688
|
+
t7 = /* @__PURE__ */ _jsxs34(Flex34, {
|
|
49568
49689
|
pb: "3",
|
|
49569
49690
|
align: "center",
|
|
49570
49691
|
children: [
|
|
@@ -49587,7 +49708,7 @@ var Form = function(props) {
|
|
|
49587
49708
|
}
|
|
49588
49709
|
var t9;
|
|
49589
49710
|
if ($[14] !== props || $[15] !== t7) {
|
|
49590
|
-
t9 = /* @__PURE__ */ _jsxs34(
|
|
49711
|
+
t9 = /* @__PURE__ */ _jsxs34(Flex34, _objectSpread51(_objectSpread51({
|
|
49591
49712
|
direction: "column",
|
|
49592
49713
|
align: "center"
|
|
49593
49714
|
}, props), {}, {
|
|
@@ -49606,7 +49727,7 @@ var Form = function(props) {
|
|
|
49606
49727
|
};
|
|
49607
49728
|
// src/components/threads/AudioThread/index.tsx
|
|
49608
49729
|
import { jsx as _jsx95, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
49609
|
-
function
|
|
49730
|
+
function ownKeys52(e, r) {
|
|
49610
49731
|
var t = Object.keys(e);
|
|
49611
49732
|
if (Object.getOwnPropertySymbols) {
|
|
49612
49733
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49616,30 +49737,30 @@ function ownKeys51(e, r) {
|
|
|
49616
49737
|
}
|
|
49617
49738
|
return t;
|
|
49618
49739
|
}
|
|
49619
|
-
function
|
|
49740
|
+
function _objectSpread52(e) {
|
|
49620
49741
|
for(var r = 1; r < arguments.length; r++){
|
|
49621
49742
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49622
|
-
r % 2 ?
|
|
49623
|
-
|
|
49624
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49743
|
+
r % 2 ? ownKeys52(Object(t), true).forEach(function(r2) {
|
|
49744
|
+
_defineProperty52(e, r2, t[r2]);
|
|
49745
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys52(Object(t)).forEach(function(r2) {
|
|
49625
49746
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49626
49747
|
});
|
|
49627
49748
|
}
|
|
49628
49749
|
return e;
|
|
49629
49750
|
}
|
|
49630
|
-
function
|
|
49631
|
-
return (r =
|
|
49751
|
+
function _defineProperty52(e, r, t) {
|
|
49752
|
+
return (r = _toPropertyKey52(r)) in e ? Object.defineProperty(e, r, {
|
|
49632
49753
|
value: t,
|
|
49633
49754
|
enumerable: true,
|
|
49634
49755
|
configurable: true,
|
|
49635
49756
|
writable: true
|
|
49636
49757
|
}) : e[r] = t, e;
|
|
49637
49758
|
}
|
|
49638
|
-
function
|
|
49639
|
-
var i =
|
|
49759
|
+
function _toPropertyKey52(t) {
|
|
49760
|
+
var i = _toPrimitive52(t, "string");
|
|
49640
49761
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49641
49762
|
}
|
|
49642
|
-
function
|
|
49763
|
+
function _toPrimitive52(t, r) {
|
|
49643
49764
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49644
49765
|
var e = t[Symbol.toPrimitive];
|
|
49645
49766
|
if (void 0 !== e) {
|
|
@@ -49668,7 +49789,7 @@ var AudioThread = function(props) {
|
|
|
49668
49789
|
}
|
|
49669
49790
|
var t3;
|
|
49670
49791
|
if ($[3] !== props) {
|
|
49671
|
-
t3 = /* @__PURE__ */ _jsxs35(
|
|
49792
|
+
t3 = /* @__PURE__ */ _jsxs35(Root16, _objectSpread52(_objectSpread52({}, props), {}, {
|
|
49672
49793
|
children: [
|
|
49673
49794
|
t0,
|
|
49674
49795
|
t1,
|
|
@@ -49682,13 +49803,13 @@ var AudioThread = function(props) {
|
|
|
49682
49803
|
}
|
|
49683
49804
|
return t3;
|
|
49684
49805
|
};
|
|
49685
|
-
AudioThread.Root =
|
|
49806
|
+
AudioThread.Root = Root16;
|
|
49686
49807
|
AudioThread.Visualization = Visualization;
|
|
49687
49808
|
AudioThread.Status = Status;
|
|
49688
49809
|
AudioThread.Form = Form;
|
|
49689
49810
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
49690
49811
|
import { jsx as _jsx96, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
49691
|
-
function
|
|
49812
|
+
function ownKeys53(e, r) {
|
|
49692
49813
|
var t = Object.keys(e);
|
|
49693
49814
|
if (Object.getOwnPropertySymbols) {
|
|
49694
49815
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49698,30 +49819,30 @@ function ownKeys52(e, r) {
|
|
|
49698
49819
|
}
|
|
49699
49820
|
return t;
|
|
49700
49821
|
}
|
|
49701
|
-
function
|
|
49822
|
+
function _objectSpread53(e) {
|
|
49702
49823
|
for(var r = 1; r < arguments.length; r++){
|
|
49703
49824
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49704
|
-
r % 2 ?
|
|
49705
|
-
|
|
49706
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49825
|
+
r % 2 ? ownKeys53(Object(t), true).forEach(function(r2) {
|
|
49826
|
+
_defineProperty53(e, r2, t[r2]);
|
|
49827
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys53(Object(t)).forEach(function(r2) {
|
|
49707
49828
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49708
49829
|
});
|
|
49709
49830
|
}
|
|
49710
49831
|
return e;
|
|
49711
49832
|
}
|
|
49712
|
-
function
|
|
49713
|
-
return (r =
|
|
49833
|
+
function _defineProperty53(e, r, t) {
|
|
49834
|
+
return (r = _toPropertyKey53(r)) in e ? Object.defineProperty(e, r, {
|
|
49714
49835
|
value: t,
|
|
49715
49836
|
enumerable: true,
|
|
49716
49837
|
configurable: true,
|
|
49717
49838
|
writable: true
|
|
49718
49839
|
}) : e[r] = t, e;
|
|
49719
49840
|
}
|
|
49720
|
-
function
|
|
49721
|
-
var i =
|
|
49841
|
+
function _toPropertyKey53(t) {
|
|
49842
|
+
var i = _toPrimitive53(t, "string");
|
|
49722
49843
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49723
49844
|
}
|
|
49724
|
-
function
|
|
49845
|
+
function _toPrimitive53(t, r) {
|
|
49725
49846
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49726
49847
|
var e = t[Symbol.toPrimitive];
|
|
49727
49848
|
if (void 0 !== e) {
|
|
@@ -49736,7 +49857,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49736
49857
|
var t0;
|
|
49737
49858
|
var t1;
|
|
49738
49859
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49739
|
-
t0 = /* @__PURE__ */ _jsx96(
|
|
49860
|
+
t0 = /* @__PURE__ */ _jsx96(Content8.Root, {
|
|
49740
49861
|
children: /* @__PURE__ */ _jsx96(AudioThread, {})
|
|
49741
49862
|
});
|
|
49742
49863
|
t1 = /* @__PURE__ */ _jsx96(Trigger, {});
|
|
@@ -49748,7 +49869,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49748
49869
|
}
|
|
49749
49870
|
var t2;
|
|
49750
49871
|
if ($[2] !== props) {
|
|
49751
|
-
t2 = /* @__PURE__ */ _jsxs36(
|
|
49872
|
+
t2 = /* @__PURE__ */ _jsxs36(Root13, _objectSpread53(_objectSpread53({}, props), {}, {
|
|
49752
49873
|
children: [
|
|
49753
49874
|
t0,
|
|
49754
49875
|
t1
|
|
@@ -49761,9 +49882,9 @@ var AudioThreadDialog = function(props) {
|
|
|
49761
49882
|
}
|
|
49762
49883
|
return t2;
|
|
49763
49884
|
};
|
|
49764
|
-
AudioThreadDialog.Root =
|
|
49885
|
+
AudioThreadDialog.Root = Root13;
|
|
49765
49886
|
AudioThreadDialog.Trigger = Trigger;
|
|
49766
|
-
AudioThreadDialog.Content =
|
|
49887
|
+
AudioThreadDialog.Content = Content8;
|
|
49767
49888
|
// src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
|
|
49768
49889
|
import { useEffect as useEffect13, useMemo as useMemo20, useRef as useRef9, useState as useState12 } from "react";
|
|
49769
49890
|
function asyncGeneratorStep12(n, t, e, r, o, a, c) {
|
|
@@ -50361,9 +50482,9 @@ import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
|
50361
50482
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50362
50483
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50363
50484
|
import { c as _c101 } from "react-compiler-runtime";
|
|
50364
|
-
import { Flex as
|
|
50485
|
+
import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
50365
50486
|
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50366
|
-
var
|
|
50487
|
+
var Content10 = function(t0) {
|
|
50367
50488
|
var $ = _c101(5);
|
|
50368
50489
|
var fileId = t0.fileId;
|
|
50369
50490
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -50401,7 +50522,7 @@ var Content9 = function(t0) {
|
|
|
50401
50522
|
}
|
|
50402
50523
|
var t5;
|
|
50403
50524
|
if ($[3] !== t3) {
|
|
50404
|
-
t5 = /* @__PURE__ */ _jsx99(
|
|
50525
|
+
t5 = /* @__PURE__ */ _jsx99(Flex35, {
|
|
50405
50526
|
direction: "column",
|
|
50406
50527
|
flexGrow: "1",
|
|
50407
50528
|
gap: "3",
|
|
@@ -50410,7 +50531,7 @@ var Content9 = function(t0) {
|
|
|
50410
50531
|
children: /* @__PURE__ */ _jsx99(Inset3, {
|
|
50411
50532
|
clip: "padding-box",
|
|
50412
50533
|
style: t2,
|
|
50413
|
-
children: /* @__PURE__ */ _jsx99(
|
|
50534
|
+
children: /* @__PURE__ */ _jsx99(Flex35, {
|
|
50414
50535
|
flexGrow: "1",
|
|
50415
50536
|
children: /* @__PURE__ */ _jsx99("embed", {
|
|
50416
50537
|
src: t3,
|
|
@@ -50500,7 +50621,7 @@ var FileCitation = function(t0) {
|
|
|
50500
50621
|
}
|
|
50501
50622
|
var t8;
|
|
50502
50623
|
if ($[8] !== activeFileId) {
|
|
50503
|
-
t8 = activeFileId && /* @__PURE__ */ _jsx100(
|
|
50624
|
+
t8 = activeFileId && /* @__PURE__ */ _jsx100(Content10, {
|
|
50504
50625
|
fileId: activeFileId
|
|
50505
50626
|
});
|
|
50506
50627
|
$[8] = activeFileId;
|