@superinterface/react 3.24.2 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +980 -865
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +1021 -906
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8292,7 +8292,7 @@ var require_lib = __commonJS({
|
|
|
8292
8292
|
key: "parseMaybeAssign",
|
|
8293
8293
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
8294
8294
|
var _this = this;
|
|
8295
|
-
var
|
|
8295
|
+
var _jsx107;
|
|
8296
8296
|
var state = null;
|
|
8297
8297
|
var jsx2;
|
|
8298
8298
|
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
|
|
@@ -8307,7 +8307,7 @@ var require_lib = __commonJS({
|
|
|
8307
8307
|
context.pop();
|
|
8308
8308
|
}
|
|
8309
8309
|
}
|
|
8310
|
-
if ((
|
|
8310
|
+
if ((_jsx107 = jsx2) != null && _jsx107.error || this.match(47)) {
|
|
8311
8311
|
var _jsx210, _jsx310;
|
|
8312
8312
|
state = state || this.state.clone();
|
|
8313
8313
|
var typeParameters;
|
|
@@ -13173,7 +13173,7 @@ var require_lib = __commonJS({
|
|
|
13173
13173
|
key: "parseMaybeAssign",
|
|
13174
13174
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
13175
13175
|
var _this = this;
|
|
13176
|
-
var
|
|
13176
|
+
var _jsx107, _jsx210, _typeCast, _jsx310, _typeCast2;
|
|
13177
13177
|
var state;
|
|
13178
13178
|
var jsx2;
|
|
13179
13179
|
var typeCast;
|
|
@@ -13189,7 +13189,7 @@ var require_lib = __commonJS({
|
|
|
13189
13189
|
context.pop();
|
|
13190
13190
|
}
|
|
13191
13191
|
}
|
|
13192
|
-
if (!((
|
|
13192
|
+
if (!((_jsx107 = jsx2) != null && _jsx107.error) && !this.match(47)) {
|
|
13193
13193
|
return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
|
|
13194
13194
|
}
|
|
13195
13195
|
if (!state || state === this.state) state = this.state.clone();
|
|
@@ -37811,18 +37811,18 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37811
37811
|
});
|
|
37812
37812
|
};
|
|
37813
37813
|
// src/components/threads/Thread/index.tsx
|
|
37814
|
-
import { c as
|
|
37814
|
+
import { c as _c75 } from "react-compiler-runtime";
|
|
37815
37815
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37816
|
-
import { c as
|
|
37817
|
-
import { Flex as
|
|
37816
|
+
import { c as _c65 } from "react-compiler-runtime";
|
|
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
|
|
37824
|
-
import { Flex as
|
|
37825
|
-
import { useContext as
|
|
37823
|
+
import { c as _c54 } from "react-compiler-runtime";
|
|
37824
|
+
import { Flex as Flex15 } from "@radix-ui/themes";
|
|
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,12 +43294,136 @@ 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;
|
|
43233
43301
|
MessageGroup.Messages = Messages;
|
|
43234
43302
|
MessageGroup.Content = Content5;
|
|
43303
|
+
// src/components/messages/MessageAttachments.tsx
|
|
43304
|
+
import { c as _c51 } from "react-compiler-runtime";
|
|
43305
|
+
import { Flex as Flex14, Badge as Badge2 } from "@radix-ui/themes";
|
|
43306
|
+
import { FileIcon } from "@radix-ui/react-icons";
|
|
43307
|
+
import { jsx as _jsx53, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
43308
|
+
var MessageAttachments = function(t0) {
|
|
43309
|
+
var _message$attachments;
|
|
43310
|
+
var $ = _c51(4);
|
|
43311
|
+
var message = t0.message;
|
|
43312
|
+
if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
|
|
43313
|
+
return null;
|
|
43314
|
+
}
|
|
43315
|
+
var t1;
|
|
43316
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43317
|
+
t1 = /* @__PURE__ */ _jsx53(FileIcon, {});
|
|
43318
|
+
$[0] = t1;
|
|
43319
|
+
} else {
|
|
43320
|
+
t1 = $[0];
|
|
43321
|
+
}
|
|
43322
|
+
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
43323
|
+
var t3;
|
|
43324
|
+
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
43325
|
+
t3 = /* @__PURE__ */ _jsx53(Flex14, {
|
|
43326
|
+
align: "start",
|
|
43327
|
+
pb: "1",
|
|
43328
|
+
children: /* @__PURE__ */ _jsxs15(Badge2, {
|
|
43329
|
+
color: "gray",
|
|
43330
|
+
variant: "surface",
|
|
43331
|
+
children: [
|
|
43332
|
+
t1,
|
|
43333
|
+
message.attachments.length,
|
|
43334
|
+
" file",
|
|
43335
|
+
t2
|
|
43336
|
+
]
|
|
43337
|
+
})
|
|
43338
|
+
});
|
|
43339
|
+
$[1] = message.attachments.length;
|
|
43340
|
+
$[2] = t2;
|
|
43341
|
+
$[3] = t3;
|
|
43342
|
+
} else {
|
|
43343
|
+
t3 = $[3];
|
|
43344
|
+
}
|
|
43345
|
+
return t3;
|
|
43346
|
+
};
|
|
43347
|
+
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43348
|
+
import { c as _c53 } from "react-compiler-runtime";
|
|
43349
|
+
import { useContext as useContext13 } from "react";
|
|
43350
|
+
import { Box as Box10 } from "@radix-ui/themes";
|
|
43351
|
+
// src/components/skeletons/StartingContentSkeleton/index.tsx
|
|
43352
|
+
import { c as _c52 } from "react-compiler-runtime";
|
|
43353
|
+
import { Skeleton } from "@radix-ui/themes";
|
|
43354
|
+
import { jsx as _jsx54 } from "react/jsx-runtime";
|
|
43355
|
+
var StartingContentSkeleton = function() {
|
|
43356
|
+
var $ = _c52(1);
|
|
43357
|
+
var t0;
|
|
43358
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43359
|
+
t0 = /* @__PURE__ */ _jsx54(Skeleton, {
|
|
43360
|
+
loading: true,
|
|
43361
|
+
mt: "1",
|
|
43362
|
+
height: "var(--space-4)",
|
|
43363
|
+
width: "var(--space-4)",
|
|
43364
|
+
style: {
|
|
43365
|
+
borderRadius: "var(--radius-6)",
|
|
43366
|
+
flexShrink: 0
|
|
43367
|
+
}
|
|
43368
|
+
});
|
|
43369
|
+
$[0] = t0;
|
|
43370
|
+
} else {
|
|
43371
|
+
t0 = $[0];
|
|
43372
|
+
}
|
|
43373
|
+
return t0;
|
|
43374
|
+
};
|
|
43375
|
+
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43376
|
+
import { jsx as _jsx55, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
43377
|
+
var StartingSkeleton = function(t0) {
|
|
43378
|
+
var $ = _c53(7);
|
|
43379
|
+
var children = t0.children;
|
|
43380
|
+
var assistantNameContext = useContext13(AssistantNameContext);
|
|
43381
|
+
var t1;
|
|
43382
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43383
|
+
t1 = /* @__PURE__ */ _jsx55(MessageGroup.AssistantAvatar, {});
|
|
43384
|
+
$[0] = t1;
|
|
43385
|
+
} else {
|
|
43386
|
+
t1 = $[0];
|
|
43387
|
+
}
|
|
43388
|
+
var t2;
|
|
43389
|
+
if ($[1] !== assistantNameContext) {
|
|
43390
|
+
t2 = /* @__PURE__ */ _jsx55(MessageGroup.Name, {
|
|
43391
|
+
children: assistantNameContext
|
|
43392
|
+
});
|
|
43393
|
+
$[1] = assistantNameContext;
|
|
43394
|
+
$[2] = t2;
|
|
43395
|
+
} else {
|
|
43396
|
+
t2 = $[2];
|
|
43397
|
+
}
|
|
43398
|
+
var t3;
|
|
43399
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43400
|
+
t3 = /* @__PURE__ */ _jsx55(StartingContentSkeleton, {});
|
|
43401
|
+
$[3] = t3;
|
|
43402
|
+
} else {
|
|
43403
|
+
t3 = $[3];
|
|
43404
|
+
}
|
|
43405
|
+
var t4;
|
|
43406
|
+
if ($[4] !== children || $[5] !== t2) {
|
|
43407
|
+
t4 = /* @__PURE__ */ _jsxs16(MessageGroup.Root, {
|
|
43408
|
+
children: [
|
|
43409
|
+
t1,
|
|
43410
|
+
/* @__PURE__ */ _jsxs16(Box10, {
|
|
43411
|
+
children: [
|
|
43412
|
+
t2,
|
|
43413
|
+
children,
|
|
43414
|
+
t3
|
|
43415
|
+
]
|
|
43416
|
+
})
|
|
43417
|
+
]
|
|
43418
|
+
});
|
|
43419
|
+
$[4] = children;
|
|
43420
|
+
$[5] = t2;
|
|
43421
|
+
$[6] = t4;
|
|
43422
|
+
} else {
|
|
43423
|
+
t4 = $[6];
|
|
43424
|
+
}
|
|
43425
|
+
return t4;
|
|
43426
|
+
};
|
|
43235
43427
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
43236
43428
|
var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
43237
43429
|
components: {
|
|
@@ -43243,22 +43435,25 @@ var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
|
43243
43435
|
FallbackToolCall: FallbackToolCall,
|
|
43244
43436
|
TextContent: TextContent,
|
|
43245
43437
|
ImageFileContent: ImageFileContent,
|
|
43246
|
-
MessageGroup: MessageGroup
|
|
43438
|
+
MessageGroup: MessageGroup,
|
|
43439
|
+
MessageAttachments: MessageAttachments,
|
|
43440
|
+
StartingSkeleton: StartingSkeleton,
|
|
43441
|
+
StartingContentSkeleton: StartingContentSkeleton
|
|
43247
43442
|
}
|
|
43248
43443
|
});
|
|
43249
43444
|
// src/components/runSteps/RunSteps/index.tsx
|
|
43250
|
-
import { jsx as
|
|
43445
|
+
import { jsx as _jsx56 } from "react/jsx-runtime";
|
|
43251
43446
|
var RunSteps = function(t0) {
|
|
43252
|
-
var $ =
|
|
43447
|
+
var $ = _c54(7);
|
|
43253
43448
|
var runSteps = t0.runSteps;
|
|
43254
|
-
var componentsContext =
|
|
43449
|
+
var componentsContext = useContext14(ComponentsContext);
|
|
43255
43450
|
var Component2 = componentsContext.components.RunStep;
|
|
43256
43451
|
var t1;
|
|
43257
43452
|
if ($[0] !== Component2 || $[1] !== runSteps) {
|
|
43258
43453
|
var _t;
|
|
43259
43454
|
if ($[3] !== Component2) {
|
|
43260
43455
|
_t = function(runStep) {
|
|
43261
|
-
return /* @__PURE__ */
|
|
43456
|
+
return /* @__PURE__ */ _jsx56(Component2, {
|
|
43262
43457
|
runStep: runStep
|
|
43263
43458
|
}, runStep.id);
|
|
43264
43459
|
};
|
|
@@ -43276,7 +43471,7 @@ var RunSteps = function(t0) {
|
|
|
43276
43471
|
}
|
|
43277
43472
|
var t2;
|
|
43278
43473
|
if ($[5] !== t1) {
|
|
43279
|
-
t2 = /* @__PURE__ */
|
|
43474
|
+
t2 = /* @__PURE__ */ _jsx56(Flex15, {
|
|
43280
43475
|
direction: "column-reverse",
|
|
43281
43476
|
children: t1
|
|
43282
43477
|
});
|
|
@@ -43295,62 +43490,39 @@ var MessageContext = /* @__PURE__ */ createContext10({
|
|
|
43295
43490
|
// src/components/threads/Thread/Message/Provider.tsx
|
|
43296
43491
|
var Provider = MessageContext.Provider;
|
|
43297
43492
|
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
43298
|
-
import { c as
|
|
43299
|
-
import {
|
|
43300
|
-
import { FileIcon } from "@radix-ui/react-icons";
|
|
43301
|
-
import { jsx as _jsx54, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
43493
|
+
import { c as _c55 } from "react-compiler-runtime";
|
|
43494
|
+
import { jsx as _jsx57 } from "react/jsx-runtime";
|
|
43302
43495
|
var Attachments = function(t0) {
|
|
43303
|
-
var
|
|
43304
|
-
var $ = _c52(4);
|
|
43496
|
+
var $ = _c55(3);
|
|
43305
43497
|
var message = t0.message;
|
|
43306
|
-
|
|
43307
|
-
|
|
43308
|
-
|
|
43309
|
-
|
|
43310
|
-
|
|
43311
|
-
|
|
43312
|
-
$[0] = t1;
|
|
43313
|
-
} else {
|
|
43314
|
-
t1 = $[0];
|
|
43315
|
-
}
|
|
43316
|
-
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
43317
|
-
var t3;
|
|
43318
|
-
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
43319
|
-
t3 = /* @__PURE__ */ _jsx54(Flex15, {
|
|
43320
|
-
align: "start",
|
|
43321
|
-
pb: "1",
|
|
43322
|
-
children: /* @__PURE__ */ _jsxs15(Badge2, {
|
|
43323
|
-
color: "gray",
|
|
43324
|
-
variant: "surface",
|
|
43325
|
-
children: [
|
|
43326
|
-
t1,
|
|
43327
|
-
message.attachments.length,
|
|
43328
|
-
" file",
|
|
43329
|
-
t2
|
|
43330
|
-
]
|
|
43331
|
-
})
|
|
43498
|
+
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43499
|
+
var MessageAttachments2 = t1.MessageAttachments;
|
|
43500
|
+
var t2;
|
|
43501
|
+
if ($[0] !== MessageAttachments2 || $[1] !== message) {
|
|
43502
|
+
t2 = /* @__PURE__ */ _jsx57(MessageAttachments2, {
|
|
43503
|
+
message: message
|
|
43332
43504
|
});
|
|
43333
|
-
$[
|
|
43505
|
+
$[0] = MessageAttachments2;
|
|
43506
|
+
$[1] = message;
|
|
43334
43507
|
$[2] = t2;
|
|
43335
|
-
$[3] = t3;
|
|
43336
43508
|
} else {
|
|
43337
|
-
|
|
43509
|
+
t2 = $[2];
|
|
43338
43510
|
}
|
|
43339
|
-
return
|
|
43511
|
+
return t2;
|
|
43340
43512
|
};
|
|
43341
43513
|
// src/components/messages/MessageContent/index.tsx
|
|
43342
|
-
import { c as
|
|
43514
|
+
import { c as _c57 } from "react-compiler-runtime";
|
|
43343
43515
|
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
43344
|
-
import { c as
|
|
43345
|
-
import { jsx as
|
|
43516
|
+
import { c as _c56 } from "react-compiler-runtime";
|
|
43517
|
+
import { jsx as _jsx58 } from "react/jsx-runtime";
|
|
43346
43518
|
var TextContent2 = function(t0) {
|
|
43347
|
-
var $ =
|
|
43519
|
+
var $ = _c56(3);
|
|
43348
43520
|
var content2 = t0.content;
|
|
43349
43521
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43350
43522
|
var TextContent3 = t1.TextContent;
|
|
43351
43523
|
var t2;
|
|
43352
43524
|
if ($[0] !== TextContent3 || $[1] !== content2) {
|
|
43353
|
-
t2 = /* @__PURE__ */
|
|
43525
|
+
t2 = /* @__PURE__ */ _jsx58(TextContent3, {
|
|
43354
43526
|
content: content2
|
|
43355
43527
|
});
|
|
43356
43528
|
$[0] = TextContent3;
|
|
@@ -43362,13 +43534,13 @@ var TextContent2 = function(t0) {
|
|
|
43362
43534
|
return t2;
|
|
43363
43535
|
};
|
|
43364
43536
|
var ImageFileContent2 = function(t0) {
|
|
43365
|
-
var $ =
|
|
43537
|
+
var $ = _c56(3);
|
|
43366
43538
|
var content2 = t0.content;
|
|
43367
43539
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43368
43540
|
var ImageFileContent3 = t1.ImageFileContent;
|
|
43369
43541
|
var t2;
|
|
43370
43542
|
if ($[0] !== ImageFileContent3 || $[1] !== content2) {
|
|
43371
|
-
t2 = /* @__PURE__ */
|
|
43543
|
+
t2 = /* @__PURE__ */ _jsx58(ImageFileContent3, {
|
|
43372
43544
|
content: content2
|
|
43373
43545
|
});
|
|
43374
43546
|
$[0] = ImageFileContent3;
|
|
@@ -43380,12 +43552,12 @@ var ImageFileContent2 = function(t0) {
|
|
|
43380
43552
|
return t2;
|
|
43381
43553
|
};
|
|
43382
43554
|
var ContentPart = function(t0) {
|
|
43383
|
-
var $ =
|
|
43555
|
+
var $ = _c56(4);
|
|
43384
43556
|
var content2 = t0.content;
|
|
43385
43557
|
if (content2.type === "text") {
|
|
43386
43558
|
var t1;
|
|
43387
43559
|
if ($[0] !== content2) {
|
|
43388
|
-
t1 = /* @__PURE__ */
|
|
43560
|
+
t1 = /* @__PURE__ */ _jsx58(TextContent2, {
|
|
43389
43561
|
content: content2
|
|
43390
43562
|
});
|
|
43391
43563
|
$[0] = content2;
|
|
@@ -43398,7 +43570,7 @@ var ContentPart = function(t0) {
|
|
|
43398
43570
|
if (content2.type === "image_file") {
|
|
43399
43571
|
var _t;
|
|
43400
43572
|
if ($[2] !== content2) {
|
|
43401
|
-
_t = /* @__PURE__ */
|
|
43573
|
+
_t = /* @__PURE__ */ _jsx58(ImageFileContent2, {
|
|
43402
43574
|
content: content2
|
|
43403
43575
|
});
|
|
43404
43576
|
$[2] = content2;
|
|
@@ -43411,9 +43583,9 @@ var ContentPart = function(t0) {
|
|
|
43411
43583
|
return null;
|
|
43412
43584
|
};
|
|
43413
43585
|
// src/components/messages/MessageContent/index.tsx
|
|
43414
|
-
import { Fragment as _Fragment3, jsx as
|
|
43586
|
+
import { Fragment as _Fragment3, jsx as _jsx59 } from "react/jsx-runtime";
|
|
43415
43587
|
var MessageContent = function(t0) {
|
|
43416
|
-
var $ =
|
|
43588
|
+
var $ = _c57(4);
|
|
43417
43589
|
var message = t0.message;
|
|
43418
43590
|
var t1;
|
|
43419
43591
|
if ($[0] !== message.content) {
|
|
@@ -43425,7 +43597,7 @@ var MessageContent = function(t0) {
|
|
|
43425
43597
|
}
|
|
43426
43598
|
var t2;
|
|
43427
43599
|
if ($[2] !== t1) {
|
|
43428
|
-
t2 = /* @__PURE__ */
|
|
43600
|
+
t2 = /* @__PURE__ */ _jsx59(_Fragment3, {
|
|
43429
43601
|
children: t1
|
|
43430
43602
|
});
|
|
43431
43603
|
$[2] = t1;
|
|
@@ -43436,14 +43608,14 @@ var MessageContent = function(t0) {
|
|
|
43436
43608
|
return t2;
|
|
43437
43609
|
};
|
|
43438
43610
|
function _temp2(content2, index) {
|
|
43439
|
-
return /* @__PURE__ */
|
|
43611
|
+
return /* @__PURE__ */ _jsx59(ContentPart, {
|
|
43440
43612
|
content: content2
|
|
43441
43613
|
}, index);
|
|
43442
43614
|
}
|
|
43443
43615
|
// src/components/threads/Thread/Message/index.tsx
|
|
43444
|
-
import { jsx as
|
|
43616
|
+
import { jsx as _jsx60, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
43445
43617
|
var Message = function(t0) {
|
|
43446
|
-
var $ =
|
|
43618
|
+
var $ = _c58(37);
|
|
43447
43619
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43448
43620
|
var t1;
|
|
43449
43621
|
bb0: {
|
|
@@ -43551,7 +43723,7 @@ var Message = function(t0) {
|
|
|
43551
43723
|
}
|
|
43552
43724
|
var t3;
|
|
43553
43725
|
if ($[21] !== olderRunSteps_0) {
|
|
43554
|
-
t3 = /* @__PURE__ */
|
|
43726
|
+
t3 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43555
43727
|
runSteps: olderRunSteps_0
|
|
43556
43728
|
});
|
|
43557
43729
|
$[21] = olderRunSteps_0;
|
|
@@ -43570,13 +43742,13 @@ var Message = function(t0) {
|
|
|
43570
43742
|
}
|
|
43571
43743
|
var t5;
|
|
43572
43744
|
if ($[24] !== message) {
|
|
43573
|
-
t5 = /* @__PURE__ */
|
|
43745
|
+
t5 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43574
43746
|
style: t4,
|
|
43575
43747
|
children: [
|
|
43576
|
-
/* @__PURE__ */
|
|
43748
|
+
/* @__PURE__ */ _jsx60(Attachments, {
|
|
43577
43749
|
message: message
|
|
43578
43750
|
}),
|
|
43579
|
-
/* @__PURE__ */
|
|
43751
|
+
/* @__PURE__ */ _jsx60(MessageContent, {
|
|
43580
43752
|
message: message
|
|
43581
43753
|
})
|
|
43582
43754
|
]
|
|
@@ -43588,7 +43760,7 @@ var Message = function(t0) {
|
|
|
43588
43760
|
}
|
|
43589
43761
|
var t6;
|
|
43590
43762
|
if ($[26] !== laterRunSteps_0) {
|
|
43591
|
-
t6 = /* @__PURE__ */
|
|
43763
|
+
t6 = /* @__PURE__ */ _jsx60(RunSteps, {
|
|
43592
43764
|
runSteps: laterRunSteps_0
|
|
43593
43765
|
});
|
|
43594
43766
|
$[26] = laterRunSteps_0;
|
|
@@ -43598,7 +43770,7 @@ var Message = function(t0) {
|
|
|
43598
43770
|
}
|
|
43599
43771
|
var t7;
|
|
43600
43772
|
if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
|
|
43601
|
-
t7 = /* @__PURE__ */
|
|
43773
|
+
t7 = /* @__PURE__ */ _jsxs17(Box11, {
|
|
43602
43774
|
className: className,
|
|
43603
43775
|
style: style,
|
|
43604
43776
|
children: [
|
|
@@ -43618,7 +43790,7 @@ var Message = function(t0) {
|
|
|
43618
43790
|
}
|
|
43619
43791
|
var t8;
|
|
43620
43792
|
if ($[34] !== t2 || $[35] !== t7) {
|
|
43621
|
-
t8 = /* @__PURE__ */
|
|
43793
|
+
t8 = /* @__PURE__ */ _jsx60(Provider, {
|
|
43622
43794
|
value: t2,
|
|
43623
43795
|
children: t7
|
|
43624
43796
|
});
|
|
@@ -43637,10 +43809,10 @@ function _temp22(runStep_1) {
|
|
|
43637
43809
|
return runStep_1.step_details.type === "message_creation";
|
|
43638
43810
|
}
|
|
43639
43811
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43640
|
-
import { c as
|
|
43812
|
+
import { c as _c61 } from "react-compiler-runtime";
|
|
43641
43813
|
import { useEffect as useEffect3 } from "react";
|
|
43642
43814
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43643
|
-
import { c as
|
|
43815
|
+
import { c as _c59 } from "react-compiler-runtime";
|
|
43644
43816
|
import { useMemo as useMemo11 } from "react";
|
|
43645
43817
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43646
43818
|
import _6 from "lodash";
|
|
@@ -43675,7 +43847,7 @@ var newGroup = function(_ref) {
|
|
|
43675
43847
|
]);
|
|
43676
43848
|
};
|
|
43677
43849
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43678
|
-
function
|
|
43850
|
+
function ownKeys26(e, r) {
|
|
43679
43851
|
var t = Object.keys(e);
|
|
43680
43852
|
if (Object.getOwnPropertySymbols) {
|
|
43681
43853
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -43685,30 +43857,30 @@ function ownKeys25(e, r) {
|
|
|
43685
43857
|
}
|
|
43686
43858
|
return t;
|
|
43687
43859
|
}
|
|
43688
|
-
function
|
|
43860
|
+
function _objectSpread26(e) {
|
|
43689
43861
|
for(var r = 1; r < arguments.length; r++){
|
|
43690
43862
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
43691
|
-
r % 2 ?
|
|
43692
|
-
|
|
43693
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
43863
|
+
r % 2 ? ownKeys26(Object(t), true).forEach(function(r2) {
|
|
43864
|
+
_defineProperty26(e, r2, t[r2]);
|
|
43865
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys26(Object(t)).forEach(function(r2) {
|
|
43694
43866
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
43695
43867
|
});
|
|
43696
43868
|
}
|
|
43697
43869
|
return e;
|
|
43698
43870
|
}
|
|
43699
|
-
function
|
|
43700
|
-
return (r =
|
|
43871
|
+
function _defineProperty26(e, r, t) {
|
|
43872
|
+
return (r = _toPropertyKey26(r)) in e ? Object.defineProperty(e, r, {
|
|
43701
43873
|
value: t,
|
|
43702
43874
|
enumerable: true,
|
|
43703
43875
|
configurable: true,
|
|
43704
43876
|
writable: true
|
|
43705
43877
|
}) : e[r] = t, e;
|
|
43706
43878
|
}
|
|
43707
|
-
function
|
|
43708
|
-
var i =
|
|
43879
|
+
function _toPropertyKey26(t) {
|
|
43880
|
+
var i = _toPrimitive26(t, "string");
|
|
43709
43881
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
43710
43882
|
}
|
|
43711
|
-
function
|
|
43883
|
+
function _toPrimitive26(t, r) {
|
|
43712
43884
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
43713
43885
|
var e = t[Symbol.toPrimitive];
|
|
43714
43886
|
if (void 0 !== e) {
|
|
@@ -43735,7 +43907,7 @@ var messageGroups = function(_ref) {
|
|
|
43735
43907
|
});
|
|
43736
43908
|
}
|
|
43737
43909
|
return _to_consumable_array(_6.dropRight(groups)).concat([
|
|
43738
|
-
|
|
43910
|
+
_objectSpread26(_objectSpread26({}, group), {}, {
|
|
43739
43911
|
messages: _to_consumable_array(group.messages).concat([
|
|
43740
43912
|
message
|
|
43741
43913
|
])
|
|
@@ -43745,7 +43917,7 @@ var messageGroups = function(_ref) {
|
|
|
43745
43917
|
};
|
|
43746
43918
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43747
43919
|
var useMessageGroups = function(t0) {
|
|
43748
|
-
var $ =
|
|
43920
|
+
var $ = _c59(4);
|
|
43749
43921
|
var messages2 = t0.messages;
|
|
43750
43922
|
var t1;
|
|
43751
43923
|
var t2;
|
|
@@ -43772,18 +43944,18 @@ var useMessageGroups = function(t0) {
|
|
|
43772
43944
|
return t1;
|
|
43773
43945
|
};
|
|
43774
43946
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
43775
|
-
import { c as
|
|
43947
|
+
import { c as _c60 } from "react-compiler-runtime";
|
|
43776
43948
|
import { forwardRef as forwardRef3 } from "react";
|
|
43777
|
-
import { Flex as Flex16, Avatar as Avatar3, Box as
|
|
43778
|
-
import { jsx as
|
|
43949
|
+
import { Flex as Flex16, Avatar as Avatar3, Box as Box12, Skeleton as Skeleton2 } from "@radix-ui/themes";
|
|
43950
|
+
import { jsx as _jsx61, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43779
43951
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
43780
|
-
var $ =
|
|
43952
|
+
var $ = _c60(7);
|
|
43781
43953
|
var t0;
|
|
43782
43954
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43783
|
-
t0 = /* @__PURE__ */
|
|
43955
|
+
t0 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43784
43956
|
loading: true,
|
|
43785
|
-
children: /* @__PURE__ */
|
|
43786
|
-
fallback: /* @__PURE__ */
|
|
43957
|
+
children: /* @__PURE__ */ _jsx61(Avatar3, {
|
|
43958
|
+
fallback: /* @__PURE__ */ _jsx61(Flex16, {}),
|
|
43787
43959
|
size: "1"
|
|
43788
43960
|
})
|
|
43789
43961
|
});
|
|
@@ -43793,8 +43965,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43793
43965
|
}
|
|
43794
43966
|
var t1;
|
|
43795
43967
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43796
|
-
t1 = /* @__PURE__ */
|
|
43797
|
-
children: /* @__PURE__ */
|
|
43968
|
+
t1 = /* @__PURE__ */ _jsx61(MessageGroup.Name, {
|
|
43969
|
+
children: /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43798
43970
|
loading: true,
|
|
43799
43971
|
style: {
|
|
43800
43972
|
width: "128px"
|
|
@@ -43807,7 +43979,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43807
43979
|
}
|
|
43808
43980
|
var t2;
|
|
43809
43981
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43810
|
-
t2 = /* @__PURE__ */
|
|
43982
|
+
t2 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43811
43983
|
loading: true,
|
|
43812
43984
|
style: {
|
|
43813
43985
|
width: "256px"
|
|
@@ -43819,7 +43991,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43819
43991
|
}
|
|
43820
43992
|
var t3;
|
|
43821
43993
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43822
|
-
t3 = /* @__PURE__ */
|
|
43994
|
+
t3 = /* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43823
43995
|
loading: true,
|
|
43824
43996
|
style: {
|
|
43825
43997
|
width: "256px",
|
|
@@ -43832,13 +44004,13 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43832
44004
|
}
|
|
43833
44005
|
var t4;
|
|
43834
44006
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43835
|
-
t4 = /* @__PURE__ */
|
|
44007
|
+
t4 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43836
44008
|
pb: "3",
|
|
43837
44009
|
children: [
|
|
43838
44010
|
t1,
|
|
43839
44011
|
t2,
|
|
43840
44012
|
t3,
|
|
43841
|
-
/* @__PURE__ */
|
|
44013
|
+
/* @__PURE__ */ _jsx61(Skeleton2, {
|
|
43842
44014
|
loading: true,
|
|
43843
44015
|
style: {
|
|
43844
44016
|
width: "256px",
|
|
@@ -43853,7 +44025,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43853
44025
|
}
|
|
43854
44026
|
var t5;
|
|
43855
44027
|
if ($[5] !== ref) {
|
|
43856
|
-
t5 = /* @__PURE__ */
|
|
44028
|
+
t5 = /* @__PURE__ */ _jsxs18(MessageGroup.Root, {
|
|
43857
44029
|
ref: ref,
|
|
43858
44030
|
children: [
|
|
43859
44031
|
t0,
|
|
@@ -43868,9 +44040,9 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43868
44040
|
return t5;
|
|
43869
44041
|
});
|
|
43870
44042
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43871
|
-
import { jsx as
|
|
44043
|
+
import { jsx as _jsx62, Fragment as _Fragment4 } from "react/jsx-runtime";
|
|
43872
44044
|
var Content6 = function() {
|
|
43873
|
-
var $ =
|
|
44045
|
+
var $ = _c61(14);
|
|
43874
44046
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
43875
44047
|
var addToast = useToasts().addToast;
|
|
43876
44048
|
var t0;
|
|
@@ -43913,7 +44085,7 @@ var Content6 = function() {
|
|
|
43913
44085
|
if (isLoading || isLoadingError) {
|
|
43914
44086
|
var _t;
|
|
43915
44087
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43916
|
-
_t = /* @__PURE__ */
|
|
44088
|
+
_t = /* @__PURE__ */ _jsx62(MessagesSkeleton, {});
|
|
43917
44089
|
$[6] = _t;
|
|
43918
44090
|
} else {
|
|
43919
44091
|
_t = $[6];
|
|
@@ -43925,7 +44097,7 @@ var Content6 = function() {
|
|
|
43925
44097
|
var _t2;
|
|
43926
44098
|
if ($[10] !== MessageGroup2) {
|
|
43927
44099
|
_t2 = function(messageGroup) {
|
|
43928
|
-
return /* @__PURE__ */
|
|
44100
|
+
return /* @__PURE__ */ _jsx62(MessageGroup2, {
|
|
43929
44101
|
messageGroup: messageGroup
|
|
43930
44102
|
}, messageGroup.id);
|
|
43931
44103
|
};
|
|
@@ -43943,7 +44115,7 @@ var Content6 = function() {
|
|
|
43943
44115
|
}
|
|
43944
44116
|
var t5;
|
|
43945
44117
|
if ($[12] !== t4) {
|
|
43946
|
-
t5 = /* @__PURE__ */
|
|
44118
|
+
t5 = /* @__PURE__ */ _jsx62(_Fragment4, {
|
|
43947
44119
|
children: t4
|
|
43948
44120
|
});
|
|
43949
44121
|
$[12] = t4;
|
|
@@ -43954,93 +44126,40 @@ var Content6 = function() {
|
|
|
43954
44126
|
return t5;
|
|
43955
44127
|
};
|
|
43956
44128
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
43957
|
-
import { c as
|
|
44129
|
+
import { c as _c62 } from "react-compiler-runtime";
|
|
43958
44130
|
import { useMemo as useMemo12 } from "react";
|
|
43959
|
-
import {
|
|
43960
|
-
|
|
43961
|
-
|
|
43962
|
-
|
|
43963
|
-
|
|
43964
|
-
|
|
43965
|
-
|
|
43966
|
-
|
|
43967
|
-
|
|
43968
|
-
|
|
43969
|
-
|
|
43970
|
-
var t0;
|
|
43971
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43972
|
-
t0 = /* @__PURE__ */ _jsx60(Skeleton2, {
|
|
43973
|
-
loading: true,
|
|
43974
|
-
mt: "1",
|
|
43975
|
-
height: "var(--space-4)",
|
|
43976
|
-
width: "var(--space-4)",
|
|
43977
|
-
style: {
|
|
43978
|
-
borderRadius: "var(--radius-6)",
|
|
43979
|
-
flexShrink: 0
|
|
43980
|
-
}
|
|
43981
|
-
});
|
|
43982
|
-
$[0] = t0;
|
|
44131
|
+
import { Box as Box13 } from "@radix-ui/themes";
|
|
44132
|
+
import { jsx as _jsx63, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44133
|
+
var StartingSkeleton2 = function() {
|
|
44134
|
+
var $ = _c62(2);
|
|
44135
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44136
|
+
var StartingSkeleton3 = t0.StartingSkeleton;
|
|
44137
|
+
var t1;
|
|
44138
|
+
if ($[0] !== StartingSkeleton3) {
|
|
44139
|
+
t1 = /* @__PURE__ */ _jsx63(StartingSkeleton3, {});
|
|
44140
|
+
$[0] = StartingSkeleton3;
|
|
44141
|
+
$[1] = t1;
|
|
43983
44142
|
} else {
|
|
43984
|
-
|
|
44143
|
+
t1 = $[1];
|
|
43985
44144
|
}
|
|
43986
|
-
return
|
|
44145
|
+
return t1;
|
|
43987
44146
|
};
|
|
43988
|
-
|
|
43989
|
-
|
|
43990
|
-
var
|
|
43991
|
-
var
|
|
43992
|
-
var children = t0.children;
|
|
43993
|
-
var assistantNameContext = useContext14(AssistantNameContext);
|
|
44147
|
+
var StartingContentSkeleton2 = function() {
|
|
44148
|
+
var $ = _c62(2);
|
|
44149
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44150
|
+
var StartingContentSkeleton3 = t0.StartingContentSkeleton;
|
|
43994
44151
|
var t1;
|
|
43995
|
-
if ($[0]
|
|
43996
|
-
t1 = /* @__PURE__ */
|
|
43997
|
-
$[0] =
|
|
43998
|
-
|
|
43999
|
-
t1 = $[0];
|
|
44000
|
-
}
|
|
44001
|
-
var t2;
|
|
44002
|
-
if ($[1] !== assistantNameContext) {
|
|
44003
|
-
t2 = /* @__PURE__ */ _jsx61(MessageGroup.Name, {
|
|
44004
|
-
children: assistantNameContext
|
|
44005
|
-
});
|
|
44006
|
-
$[1] = assistantNameContext;
|
|
44007
|
-
$[2] = t2;
|
|
44008
|
-
} else {
|
|
44009
|
-
t2 = $[2];
|
|
44010
|
-
}
|
|
44011
|
-
var t3;
|
|
44012
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44013
|
-
t3 = /* @__PURE__ */ _jsx61(StartingContentSkeleton, {});
|
|
44014
|
-
$[3] = t3;
|
|
44015
|
-
} else {
|
|
44016
|
-
t3 = $[3];
|
|
44017
|
-
}
|
|
44018
|
-
var t4;
|
|
44019
|
-
if ($[4] !== children || $[5] !== t2) {
|
|
44020
|
-
t4 = /* @__PURE__ */ _jsxs18(MessageGroup.Root, {
|
|
44021
|
-
children: [
|
|
44022
|
-
t1,
|
|
44023
|
-
/* @__PURE__ */ _jsxs18(Box12, {
|
|
44024
|
-
children: [
|
|
44025
|
-
t2,
|
|
44026
|
-
children,
|
|
44027
|
-
t3
|
|
44028
|
-
]
|
|
44029
|
-
})
|
|
44030
|
-
]
|
|
44031
|
-
});
|
|
44032
|
-
$[4] = children;
|
|
44033
|
-
$[5] = t2;
|
|
44034
|
-
$[6] = t4;
|
|
44152
|
+
if ($[0] !== StartingContentSkeleton3) {
|
|
44153
|
+
t1 = /* @__PURE__ */ _jsx63(StartingContentSkeleton3, {});
|
|
44154
|
+
$[0] = StartingContentSkeleton3;
|
|
44155
|
+
$[1] = t1;
|
|
44035
44156
|
} else {
|
|
44036
|
-
|
|
44157
|
+
t1 = $[1];
|
|
44037
44158
|
}
|
|
44038
|
-
return
|
|
44159
|
+
return t1;
|
|
44039
44160
|
};
|
|
44040
|
-
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
44041
|
-
import { jsx as _jsx62, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44042
44161
|
var Progress = function() {
|
|
44043
|
-
var $ =
|
|
44162
|
+
var $ = _c62(3);
|
|
44044
44163
|
var latestMessage = useLatestMessage().latestMessage;
|
|
44045
44164
|
var isMutatingMessage = useIsMutatingMessage();
|
|
44046
44165
|
var t0;
|
|
@@ -44073,7 +44192,7 @@ var Progress = function() {
|
|
|
44073
44192
|
if (isStartingSkeletonVisible) {
|
|
44074
44193
|
var t1;
|
|
44075
44194
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44076
|
-
t1 = /* @__PURE__ */
|
|
44195
|
+
t1 = /* @__PURE__ */ _jsx63(StartingSkeleton2, {});
|
|
44077
44196
|
$[0] = t1;
|
|
44078
44197
|
} else {
|
|
44079
44198
|
t1 = $[0];
|
|
@@ -44083,11 +44202,7 @@ var Progress = function() {
|
|
|
44083
44202
|
if (isMutatingMessage) {
|
|
44084
44203
|
var _t;
|
|
44085
44204
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44086
|
-
_t = /* @__PURE__ */
|
|
44087
|
-
flexShrink: "0",
|
|
44088
|
-
height: "24px",
|
|
44089
|
-
width: "24px"
|
|
44090
|
-
});
|
|
44205
|
+
_t = /* @__PURE__ */ _jsx63(MessageGroup.AssistantAvatar.Root, {});
|
|
44091
44206
|
$[1] = _t;
|
|
44092
44207
|
} else {
|
|
44093
44208
|
_t = $[1];
|
|
@@ -44097,8 +44212,8 @@ var Progress = function() {
|
|
|
44097
44212
|
t2 = /* @__PURE__ */ _jsxs19(MessageGroup.Root, {
|
|
44098
44213
|
children: [
|
|
44099
44214
|
_t,
|
|
44100
|
-
/* @__PURE__ */
|
|
44101
|
-
children: /* @__PURE__ */
|
|
44215
|
+
/* @__PURE__ */ _jsx63(Box13, {
|
|
44216
|
+
children: /* @__PURE__ */ _jsx63(StartingContentSkeleton2, {})
|
|
44102
44217
|
})
|
|
44103
44218
|
]
|
|
44104
44219
|
});
|
|
@@ -44111,8 +44226,8 @@ var Progress = function() {
|
|
|
44111
44226
|
return null;
|
|
44112
44227
|
};
|
|
44113
44228
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44114
|
-
import { c as
|
|
44115
|
-
import { Flex as
|
|
44229
|
+
import { c as _c63 } from "react-compiler-runtime";
|
|
44230
|
+
import { Flex as Flex17 } from "@radix-ui/themes";
|
|
44116
44231
|
// src/hooks/misc/useInfiniteScroll/index.tsx
|
|
44117
44232
|
import { useRef as useRef3 } from "react";
|
|
44118
44233
|
import { useInView } from "react-intersection-observer";
|
|
@@ -44164,8 +44279,8 @@ var useInfiniteScroll = function(_ref) {
|
|
|
44164
44279
|
};
|
|
44165
44280
|
};
|
|
44166
44281
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44167
|
-
import { jsx as
|
|
44168
|
-
function
|
|
44282
|
+
import { jsx as _jsx64, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
44283
|
+
function ownKeys27(e, r) {
|
|
44169
44284
|
var t = Object.keys(e);
|
|
44170
44285
|
if (Object.getOwnPropertySymbols) {
|
|
44171
44286
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44175,30 +44290,30 @@ function ownKeys26(e, r) {
|
|
|
44175
44290
|
}
|
|
44176
44291
|
return t;
|
|
44177
44292
|
}
|
|
44178
|
-
function
|
|
44293
|
+
function _objectSpread27(e) {
|
|
44179
44294
|
for(var r = 1; r < arguments.length; r++){
|
|
44180
44295
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44181
|
-
r % 2 ?
|
|
44182
|
-
|
|
44183
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44296
|
+
r % 2 ? ownKeys27(Object(t), true).forEach(function(r2) {
|
|
44297
|
+
_defineProperty27(e, r2, t[r2]);
|
|
44298
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys27(Object(t)).forEach(function(r2) {
|
|
44184
44299
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44185
44300
|
});
|
|
44186
44301
|
}
|
|
44187
44302
|
return e;
|
|
44188
44303
|
}
|
|
44189
|
-
function
|
|
44190
|
-
return (r =
|
|
44304
|
+
function _defineProperty27(e, r, t) {
|
|
44305
|
+
return (r = _toPropertyKey27(r)) in e ? Object.defineProperty(e, r, {
|
|
44191
44306
|
value: t,
|
|
44192
44307
|
enumerable: true,
|
|
44193
44308
|
configurable: true,
|
|
44194
44309
|
writable: true
|
|
44195
44310
|
}) : e[r] = t, e;
|
|
44196
44311
|
}
|
|
44197
|
-
function
|
|
44198
|
-
var i =
|
|
44312
|
+
function _toPropertyKey27(t) {
|
|
44313
|
+
var i = _toPrimitive27(t, "string");
|
|
44199
44314
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44200
44315
|
}
|
|
44201
|
-
function
|
|
44316
|
+
function _toPrimitive27(t, r) {
|
|
44202
44317
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44203
44318
|
var e = t[Symbol.toPrimitive];
|
|
44204
44319
|
if (void 0 !== e) {
|
|
@@ -44208,8 +44323,8 @@ function _toPrimitive26(t, r) {
|
|
|
44208
44323
|
}
|
|
44209
44324
|
return ("string" === r ? String : Number)(t);
|
|
44210
44325
|
}
|
|
44211
|
-
var
|
|
44212
|
-
var $ =
|
|
44326
|
+
var Root5 = function(t0) {
|
|
44327
|
+
var $ = _c63(18);
|
|
44213
44328
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44214
44329
|
var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
|
|
44215
44330
|
var t1;
|
|
@@ -44237,7 +44352,7 @@ var Root4 = function(t0) {
|
|
|
44237
44352
|
}
|
|
44238
44353
|
var t3;
|
|
44239
44354
|
if ($[6] !== t2) {
|
|
44240
|
-
t3 =
|
|
44355
|
+
t3 = _objectSpread27({
|
|
44241
44356
|
overflow: "auto"
|
|
44242
44357
|
}, t2);
|
|
44243
44358
|
$[6] = t2;
|
|
@@ -44247,7 +44362,7 @@ var Root4 = function(t0) {
|
|
|
44247
44362
|
}
|
|
44248
44363
|
var t4;
|
|
44249
44364
|
if ($[8] !== hasNextPage || $[9] !== loaderRef) {
|
|
44250
|
-
t4 = hasNextPage && /* @__PURE__ */
|
|
44365
|
+
t4 = hasNextPage && /* @__PURE__ */ _jsx64(Flex17, {
|
|
44251
44366
|
ref: loaderRef
|
|
44252
44367
|
});
|
|
44253
44368
|
$[8] = hasNextPage;
|
|
@@ -44258,7 +44373,7 @@ var Root4 = function(t0) {
|
|
|
44258
44373
|
}
|
|
44259
44374
|
var t5;
|
|
44260
44375
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44261
|
-
t5 = /* @__PURE__ */
|
|
44376
|
+
t5 = /* @__PURE__ */ _jsx64(Flex17, {
|
|
44262
44377
|
flexShrink: "0",
|
|
44263
44378
|
flexGrow: "1"
|
|
44264
44379
|
});
|
|
@@ -44268,7 +44383,7 @@ var Root4 = function(t0) {
|
|
|
44268
44383
|
}
|
|
44269
44384
|
var t6;
|
|
44270
44385
|
if ($[12] !== children || $[13] !== className || $[14] !== containerRef || $[15] !== t3 || $[16] !== t4) {
|
|
44271
|
-
t6 = /* @__PURE__ */ _jsxs20(
|
|
44386
|
+
t6 = /* @__PURE__ */ _jsxs20(Flex17, {
|
|
44272
44387
|
ref: containerRef,
|
|
44273
44388
|
direction: "column-reverse",
|
|
44274
44389
|
flexGrow: "1",
|
|
@@ -44292,17 +44407,17 @@ var Root4 = function(t0) {
|
|
|
44292
44407
|
return t6;
|
|
44293
44408
|
};
|
|
44294
44409
|
// src/components/threads/Thread/Messages/NextPageSkeleton.tsx
|
|
44295
|
-
import { c as
|
|
44296
|
-
import { jsx as
|
|
44410
|
+
import { c as _c64 } from "react-compiler-runtime";
|
|
44411
|
+
import { jsx as _jsx65 } from "react/jsx-runtime";
|
|
44297
44412
|
var NextPageSkeleton = function() {
|
|
44298
|
-
var $ =
|
|
44413
|
+
var $ = _c64(1);
|
|
44299
44414
|
var hasNextPage = useMessages().hasNextPage;
|
|
44300
44415
|
if (!hasNextPage) {
|
|
44301
44416
|
return null;
|
|
44302
44417
|
}
|
|
44303
44418
|
var t0;
|
|
44304
44419
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44305
|
-
t0 = /* @__PURE__ */
|
|
44420
|
+
t0 = /* @__PURE__ */ _jsx65(MessagesSkeleton, {});
|
|
44306
44421
|
$[0] = t0;
|
|
44307
44422
|
} else {
|
|
44308
44423
|
t0 = $[0];
|
|
@@ -44310,18 +44425,18 @@ var NextPageSkeleton = function() {
|
|
|
44310
44425
|
return t0;
|
|
44311
44426
|
};
|
|
44312
44427
|
// src/components/threads/Thread/Messages/index.tsx
|
|
44313
|
-
import { jsx as
|
|
44428
|
+
import { jsx as _jsx66, jsxs as _jsxs21 } from "react/jsx-runtime";
|
|
44314
44429
|
var Messages2 = function(t0) {
|
|
44315
|
-
var $ =
|
|
44430
|
+
var $ = _c65(9);
|
|
44316
44431
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
44317
44432
|
var t1;
|
|
44318
44433
|
var t2;
|
|
44319
44434
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44320
|
-
t1 = /* @__PURE__ */
|
|
44435
|
+
t1 = /* @__PURE__ */ _jsx66(Flex18, {
|
|
44321
44436
|
flexShrink: "0",
|
|
44322
44437
|
height: "var(--space-3)"
|
|
44323
44438
|
});
|
|
44324
|
-
t2 = /* @__PURE__ */
|
|
44439
|
+
t2 = /* @__PURE__ */ _jsx66(Progress, {});
|
|
44325
44440
|
$[0] = t1;
|
|
44326
44441
|
$[1] = t2;
|
|
44327
44442
|
} else {
|
|
@@ -44332,9 +44447,9 @@ var Messages2 = function(t0) {
|
|
|
44332
44447
|
var t4;
|
|
44333
44448
|
var t5;
|
|
44334
44449
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44335
|
-
t3 = /* @__PURE__ */
|
|
44336
|
-
t4 = /* @__PURE__ */
|
|
44337
|
-
t5 = /* @__PURE__ */
|
|
44450
|
+
t3 = /* @__PURE__ */ _jsx66(Content6, {});
|
|
44451
|
+
t4 = /* @__PURE__ */ _jsx66(NextPageSkeleton, {});
|
|
44452
|
+
t5 = /* @__PURE__ */ _jsx66(Flex18, {
|
|
44338
44453
|
flexShrink: "0",
|
|
44339
44454
|
flexGrow: "1",
|
|
44340
44455
|
minHeight: "var(--space-5)"
|
|
@@ -44349,7 +44464,7 @@ var Messages2 = function(t0) {
|
|
|
44349
44464
|
}
|
|
44350
44465
|
var t6;
|
|
44351
44466
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
44352
|
-
t6 = /* @__PURE__ */ _jsxs21(
|
|
44467
|
+
t6 = /* @__PURE__ */ _jsxs21(Root5, {
|
|
44353
44468
|
style: style,
|
|
44354
44469
|
className: className,
|
|
44355
44470
|
children: [
|
|
@@ -44370,15 +44485,15 @@ var Messages2 = function(t0) {
|
|
|
44370
44485
|
}
|
|
44371
44486
|
return t6;
|
|
44372
44487
|
};
|
|
44373
|
-
Messages2.Root =
|
|
44488
|
+
Messages2.Root = Root5;
|
|
44374
44489
|
Messages2.Message = Message;
|
|
44375
44490
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44376
44491
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44377
|
-
import { c as
|
|
44492
|
+
import { c as _c71 } from "react-compiler-runtime";
|
|
44378
44493
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44379
|
-
import { c as
|
|
44494
|
+
import { c as _c66 } from "react-compiler-runtime";
|
|
44380
44495
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
44381
|
-
import { IconButton as IconButton5, Flex as
|
|
44496
|
+
import { IconButton as IconButton5, Flex as Flex19 } from "@radix-ui/themes";
|
|
44382
44497
|
// src/hooks/messages/useMessageFormContext/index.ts
|
|
44383
44498
|
import { useContext as useContext15 } from "react";
|
|
44384
44499
|
// src/contexts/messages/MessageFormContext/index.ts
|
|
@@ -44396,8 +44511,8 @@ var useMessageFormContext = function() {
|
|
|
44396
44511
|
return useContext15(MessageFormContext);
|
|
44397
44512
|
};
|
|
44398
44513
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44399
|
-
import { jsx as
|
|
44400
|
-
function
|
|
44514
|
+
import { jsx as _jsx67 } from "react/jsx-runtime";
|
|
44515
|
+
function ownKeys28(e, r) {
|
|
44401
44516
|
var t = Object.keys(e);
|
|
44402
44517
|
if (Object.getOwnPropertySymbols) {
|
|
44403
44518
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44407,30 +44522,30 @@ function ownKeys27(e, r) {
|
|
|
44407
44522
|
}
|
|
44408
44523
|
return t;
|
|
44409
44524
|
}
|
|
44410
|
-
function
|
|
44525
|
+
function _objectSpread28(e) {
|
|
44411
44526
|
for(var r = 1; r < arguments.length; r++){
|
|
44412
44527
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44413
|
-
r % 2 ?
|
|
44414
|
-
|
|
44415
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44528
|
+
r % 2 ? ownKeys28(Object(t), true).forEach(function(r2) {
|
|
44529
|
+
_defineProperty28(e, r2, t[r2]);
|
|
44530
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys28(Object(t)).forEach(function(r2) {
|
|
44416
44531
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44417
44532
|
});
|
|
44418
44533
|
}
|
|
44419
44534
|
return e;
|
|
44420
44535
|
}
|
|
44421
|
-
function
|
|
44422
|
-
return (r =
|
|
44536
|
+
function _defineProperty28(e, r, t) {
|
|
44537
|
+
return (r = _toPropertyKey28(r)) in e ? Object.defineProperty(e, r, {
|
|
44423
44538
|
value: t,
|
|
44424
44539
|
enumerable: true,
|
|
44425
44540
|
configurable: true,
|
|
44426
44541
|
writable: true
|
|
44427
44542
|
}) : e[r] = t, e;
|
|
44428
44543
|
}
|
|
44429
|
-
function
|
|
44430
|
-
var i =
|
|
44544
|
+
function _toPropertyKey28(t) {
|
|
44545
|
+
var i = _toPrimitive28(t, "string");
|
|
44431
44546
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44432
44547
|
}
|
|
44433
|
-
function
|
|
44548
|
+
function _toPrimitive28(t, r) {
|
|
44434
44549
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44435
44550
|
var e = t[Symbol.toPrimitive];
|
|
44436
44551
|
if (void 0 !== e) {
|
|
@@ -44440,12 +44555,12 @@ function _toPrimitive27(t, r) {
|
|
|
44440
44555
|
}
|
|
44441
44556
|
return ("string" === r ? String : Number)(t);
|
|
44442
44557
|
}
|
|
44443
|
-
var
|
|
44444
|
-
var $ =
|
|
44558
|
+
var Root6 = function(t0) {
|
|
44559
|
+
var $ = _c66(4);
|
|
44445
44560
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44446
44561
|
var t1;
|
|
44447
44562
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44448
|
-
t1 = /* @__PURE__ */
|
|
44563
|
+
t1 = /* @__PURE__ */ _jsx67(Flex19, {
|
|
44449
44564
|
flexShrink: "0",
|
|
44450
44565
|
align: "end",
|
|
44451
44566
|
style: style,
|
|
@@ -44462,7 +44577,7 @@ var Root5 = function(t0) {
|
|
|
44462
44577
|
return t1;
|
|
44463
44578
|
};
|
|
44464
44579
|
var Button3 = function(props) {
|
|
44465
|
-
var $ =
|
|
44580
|
+
var $ = _c66(10);
|
|
44466
44581
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
44467
44582
|
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
|
|
44468
44583
|
if (isLoading) {
|
|
@@ -44479,14 +44594,14 @@ var Button3 = function(props) {
|
|
|
44479
44594
|
}
|
|
44480
44595
|
var _t2;
|
|
44481
44596
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44482
|
-
_t2 = /* @__PURE__ */
|
|
44597
|
+
_t2 = /* @__PURE__ */ _jsx67(StopIcon, {});
|
|
44483
44598
|
$[2] = _t2;
|
|
44484
44599
|
} else {
|
|
44485
44600
|
_t2 = $[2];
|
|
44486
44601
|
}
|
|
44487
44602
|
var _t3;
|
|
44488
44603
|
if ($[3] !== props || $[4] !== _t) {
|
|
44489
|
-
_t3 = /* @__PURE__ */
|
|
44604
|
+
_t3 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread28(_objectSpread28({
|
|
44490
44605
|
type: "button",
|
|
44491
44606
|
onClick: _t
|
|
44492
44607
|
}, props), {}, {
|
|
@@ -44503,14 +44618,14 @@ var Button3 = function(props) {
|
|
|
44503
44618
|
var t0 = isDisabled || isFileLoading;
|
|
44504
44619
|
var t1;
|
|
44505
44620
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44506
|
-
t1 = /* @__PURE__ */
|
|
44621
|
+
t1 = /* @__PURE__ */ _jsx67(ArrowUpIcon2, {});
|
|
44507
44622
|
$[6] = t1;
|
|
44508
44623
|
} else {
|
|
44509
44624
|
t1 = $[6];
|
|
44510
44625
|
}
|
|
44511
44626
|
var t2;
|
|
44512
44627
|
if ($[7] !== props || $[8] !== t0) {
|
|
44513
|
-
t2 = /* @__PURE__ */
|
|
44628
|
+
t2 = /* @__PURE__ */ _jsx67(IconButton5, _objectSpread28(_objectSpread28({
|
|
44514
44629
|
type: "submit",
|
|
44515
44630
|
disabled: t0
|
|
44516
44631
|
}, props), {}, {
|
|
@@ -44525,17 +44640,17 @@ var Button3 = function(props) {
|
|
|
44525
44640
|
return t2;
|
|
44526
44641
|
};
|
|
44527
44642
|
var Submit = function(props) {
|
|
44528
|
-
var $ =
|
|
44643
|
+
var $ = _c66(3);
|
|
44529
44644
|
var t0;
|
|
44530
44645
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44531
|
-
t0 = /* @__PURE__ */
|
|
44646
|
+
t0 = /* @__PURE__ */ _jsx67(Button3, {});
|
|
44532
44647
|
$[0] = t0;
|
|
44533
44648
|
} else {
|
|
44534
44649
|
t0 = $[0];
|
|
44535
44650
|
}
|
|
44536
44651
|
var t1;
|
|
44537
44652
|
if ($[1] !== props) {
|
|
44538
|
-
t1 = /* @__PURE__ */
|
|
44653
|
+
t1 = /* @__PURE__ */ _jsx67(Root6, _objectSpread28(_objectSpread28({}, props), {}, {
|
|
44539
44654
|
children: t0
|
|
44540
44655
|
}));
|
|
44541
44656
|
$[1] = props;
|
|
@@ -44545,7 +44660,7 @@ var Submit = function(props) {
|
|
|
44545
44660
|
}
|
|
44546
44661
|
return t1;
|
|
44547
44662
|
};
|
|
44548
|
-
Submit.Root =
|
|
44663
|
+
Submit.Root = Root6;
|
|
44549
44664
|
Submit.Button = Button3;
|
|
44550
44665
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44551
44666
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
@@ -44563,8 +44678,8 @@ var formOptions = {
|
|
|
44563
44678
|
};
|
|
44564
44679
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44565
44680
|
import { partob } from "radash";
|
|
44566
|
-
import { jsx as
|
|
44567
|
-
function
|
|
44681
|
+
import { jsx as _jsx68 } from "react/jsx-runtime";
|
|
44682
|
+
function ownKeys29(e, r) {
|
|
44568
44683
|
var t = Object.keys(e);
|
|
44569
44684
|
if (Object.getOwnPropertySymbols) {
|
|
44570
44685
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44574,30 +44689,30 @@ function ownKeys28(e, r) {
|
|
|
44574
44689
|
}
|
|
44575
44690
|
return t;
|
|
44576
44691
|
}
|
|
44577
|
-
function
|
|
44692
|
+
function _objectSpread29(e) {
|
|
44578
44693
|
for(var r = 1; r < arguments.length; r++){
|
|
44579
44694
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44580
|
-
r % 2 ?
|
|
44581
|
-
|
|
44582
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44695
|
+
r % 2 ? ownKeys29(Object(t), true).forEach(function(r2) {
|
|
44696
|
+
_defineProperty29(e, r2, t[r2]);
|
|
44697
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys29(Object(t)).forEach(function(r2) {
|
|
44583
44698
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44584
44699
|
});
|
|
44585
44700
|
}
|
|
44586
44701
|
return e;
|
|
44587
44702
|
}
|
|
44588
|
-
function
|
|
44589
|
-
return (r =
|
|
44703
|
+
function _defineProperty29(e, r, t) {
|
|
44704
|
+
return (r = _toPropertyKey29(r)) in e ? Object.defineProperty(e, r, {
|
|
44590
44705
|
value: t,
|
|
44591
44706
|
enumerable: true,
|
|
44592
44707
|
configurable: true,
|
|
44593
44708
|
writable: true
|
|
44594
44709
|
}) : e[r] = t, e;
|
|
44595
44710
|
}
|
|
44596
|
-
function
|
|
44597
|
-
var i =
|
|
44711
|
+
function _toPropertyKey29(t) {
|
|
44712
|
+
var i = _toPrimitive29(t, "string");
|
|
44598
44713
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44599
44714
|
}
|
|
44600
|
-
function
|
|
44715
|
+
function _toPrimitive29(t, r) {
|
|
44601
44716
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44602
44717
|
var e = t[Symbol.toPrimitive];
|
|
44603
44718
|
if (void 0 !== e) {
|
|
@@ -44630,7 +44745,7 @@ function _asyncToGenerator6(n) {
|
|
|
44630
44745
|
});
|
|
44631
44746
|
};
|
|
44632
44747
|
}
|
|
44633
|
-
var
|
|
44748
|
+
var Root7 = function(_ref) {
|
|
44634
44749
|
"use no memo";
|
|
44635
44750
|
var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
|
|
44636
44751
|
var _useState4 = _sliced_to_array(useState4([]), 2), files = _useState4[0], setFiles = _useState4[1];
|
|
@@ -44703,7 +44818,7 @@ var Root6 = function(_ref) {
|
|
|
44703
44818
|
});
|
|
44704
44819
|
return [
|
|
44705
44820
|
4,
|
|
44706
|
-
createMessage(
|
|
44821
|
+
createMessage(_objectSpread29({
|
|
44707
44822
|
// @ts-ignore-next-line
|
|
44708
44823
|
content: data2.content
|
|
44709
44824
|
}, attachments.length ? {
|
|
@@ -44723,7 +44838,7 @@ var Root6 = function(_ref) {
|
|
|
44723
44838
|
};
|
|
44724
44839
|
}();
|
|
44725
44840
|
var content2 = watch("content");
|
|
44726
|
-
return /* @__PURE__ */
|
|
44841
|
+
return /* @__PURE__ */ _jsx68(MessageFormContext.Provider, {
|
|
44727
44842
|
value: {
|
|
44728
44843
|
isDisabled: isDisabled,
|
|
44729
44844
|
isLoading: isLoading,
|
|
@@ -44732,13 +44847,13 @@ var Root6 = function(_ref) {
|
|
|
44732
44847
|
isFileLoading: isFileLoading,
|
|
44733
44848
|
content: content2
|
|
44734
44849
|
},
|
|
44735
|
-
children: /* @__PURE__ */
|
|
44736
|
-
children: /* @__PURE__ */
|
|
44850
|
+
children: /* @__PURE__ */ _jsx68(FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
|
|
44851
|
+
children: /* @__PURE__ */ _jsx68(Box14, {
|
|
44737
44852
|
asChild: true,
|
|
44738
44853
|
flexShrink: "0",
|
|
44739
44854
|
style: style,
|
|
44740
44855
|
className: className,
|
|
44741
|
-
children: /* @__PURE__ */
|
|
44856
|
+
children: /* @__PURE__ */ _jsx68("form", {
|
|
44742
44857
|
onSubmit: handleSubmit(onSubmit),
|
|
44743
44858
|
children: children
|
|
44744
44859
|
})
|
|
@@ -44748,10 +44863,10 @@ var Root6 = function(_ref) {
|
|
|
44748
44863
|
};
|
|
44749
44864
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
44750
44865
|
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
44751
|
-
import { Container as RadixContainer, Flex as
|
|
44866
|
+
import { Container as RadixContainer, Flex as Flex23 } from "@radix-ui/themes";
|
|
44752
44867
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44753
|
-
import { c as
|
|
44754
|
-
import { Flex as
|
|
44868
|
+
import { c as _c68 } from "react-compiler-runtime";
|
|
44869
|
+
import { Flex as Flex20 } from "@radix-ui/themes";
|
|
44755
44870
|
import { useFormContext } from "react-hook-form";
|
|
44756
44871
|
// src/hooks/misc/usePrevious.ts
|
|
44757
44872
|
import { useEffect as useEffect5, useRef as useRef4 } from "react";
|
|
@@ -44765,15 +44880,15 @@ var usePrevious = function(state) {
|
|
|
44765
44880
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44766
44881
|
import { useContext as useContext16, useMemo as useMemo14, useRef as useRef5, useEffect as useEffect6 } from "react";
|
|
44767
44882
|
// src/components/textareas/TextareaBase/index.tsx
|
|
44768
|
-
import { c as
|
|
44883
|
+
import { c as _c67 } from "react-compiler-runtime";
|
|
44769
44884
|
import { forwardRef as forwardRef4 } from "react";
|
|
44770
44885
|
import TextareaAutosize from "react-textarea-autosize";
|
|
44771
|
-
import { jsx as
|
|
44886
|
+
import { jsx as _jsx69, Fragment as _Fragment5, jsxs as _jsxs22 } from "react/jsx-runtime";
|
|
44772
44887
|
var _excluded3 = [
|
|
44773
44888
|
"style",
|
|
44774
44889
|
"className"
|
|
44775
44890
|
];
|
|
44776
|
-
function
|
|
44891
|
+
function ownKeys30(e, r) {
|
|
44777
44892
|
var t = Object.keys(e);
|
|
44778
44893
|
if (Object.getOwnPropertySymbols) {
|
|
44779
44894
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44783,30 +44898,30 @@ function ownKeys29(e, r) {
|
|
|
44783
44898
|
}
|
|
44784
44899
|
return t;
|
|
44785
44900
|
}
|
|
44786
|
-
function
|
|
44901
|
+
function _objectSpread30(e) {
|
|
44787
44902
|
for(var r = 1; r < arguments.length; r++){
|
|
44788
44903
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44789
|
-
r % 2 ?
|
|
44790
|
-
|
|
44791
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
44904
|
+
r % 2 ? ownKeys30(Object(t), true).forEach(function(r2) {
|
|
44905
|
+
_defineProperty30(e, r2, t[r2]);
|
|
44906
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys30(Object(t)).forEach(function(r2) {
|
|
44792
44907
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44793
44908
|
});
|
|
44794
44909
|
}
|
|
44795
44910
|
return e;
|
|
44796
44911
|
}
|
|
44797
|
-
function
|
|
44798
|
-
return (r =
|
|
44912
|
+
function _defineProperty30(e, r, t) {
|
|
44913
|
+
return (r = _toPropertyKey30(r)) in e ? Object.defineProperty(e, r, {
|
|
44799
44914
|
value: t,
|
|
44800
44915
|
enumerable: true,
|
|
44801
44916
|
configurable: true,
|
|
44802
44917
|
writable: true
|
|
44803
44918
|
}) : e[r] = t, e;
|
|
44804
44919
|
}
|
|
44805
|
-
function
|
|
44806
|
-
var i =
|
|
44920
|
+
function _toPropertyKey30(t) {
|
|
44921
|
+
var i = _toPrimitive30(t, "string");
|
|
44807
44922
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44808
44923
|
}
|
|
44809
|
-
function
|
|
44924
|
+
function _toPrimitive30(t, r) {
|
|
44810
44925
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44811
44926
|
var e = t[Symbol.toPrimitive];
|
|
44812
44927
|
if (void 0 !== e) {
|
|
@@ -44835,7 +44950,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
|
|
|
44835
44950
|
return t;
|
|
44836
44951
|
}
|
|
44837
44952
|
var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
44838
|
-
var $ =
|
|
44953
|
+
var $ = _c67(14);
|
|
44839
44954
|
var className;
|
|
44840
44955
|
var rest;
|
|
44841
44956
|
var style;
|
|
@@ -44856,7 +44971,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44856
44971
|
}
|
|
44857
44972
|
var t1;
|
|
44858
44973
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44859
|
-
t1 = /* @__PURE__ */
|
|
44974
|
+
t1 = /* @__PURE__ */ _jsx69("style", {
|
|
44860
44975
|
children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
|
|
44861
44976
|
});
|
|
44862
44977
|
$[4] = t1;
|
|
@@ -44874,7 +44989,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44874
44989
|
}
|
|
44875
44990
|
var t4;
|
|
44876
44991
|
if ($[7] !== t3) {
|
|
44877
|
-
t4 =
|
|
44992
|
+
t4 = _objectSpread30({
|
|
44878
44993
|
border: 0,
|
|
44879
44994
|
outline: 0,
|
|
44880
44995
|
boxSizing: "border-box",
|
|
@@ -44893,7 +45008,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44893
45008
|
t5 = /* @__PURE__ */ _jsxs22(_Fragment5, {
|
|
44894
45009
|
children: [
|
|
44895
45010
|
t1,
|
|
44896
|
-
/* @__PURE__ */
|
|
45011
|
+
/* @__PURE__ */ _jsx69(TextareaAutosize, _objectSpread30({
|
|
44897
45012
|
ref: ref,
|
|
44898
45013
|
className: t2,
|
|
44899
45014
|
style: t4
|
|
@@ -44911,8 +45026,8 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44911
45026
|
return t5;
|
|
44912
45027
|
});
|
|
44913
45028
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44914
|
-
import { jsx as
|
|
44915
|
-
function
|
|
45029
|
+
import { jsx as _jsx70 } from "react/jsx-runtime";
|
|
45030
|
+
function ownKeys31(e, r) {
|
|
44916
45031
|
var t = Object.keys(e);
|
|
44917
45032
|
if (Object.getOwnPropertySymbols) {
|
|
44918
45033
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -44922,30 +45037,30 @@ function ownKeys30(e, r) {
|
|
|
44922
45037
|
}
|
|
44923
45038
|
return t;
|
|
44924
45039
|
}
|
|
44925
|
-
function
|
|
45040
|
+
function _objectSpread31(e) {
|
|
44926
45041
|
for(var r = 1; r < arguments.length; r++){
|
|
44927
45042
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
44928
|
-
r % 2 ?
|
|
44929
|
-
|
|
44930
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45043
|
+
r % 2 ? ownKeys31(Object(t), true).forEach(function(r2) {
|
|
45044
|
+
_defineProperty31(e, r2, t[r2]);
|
|
45045
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys31(Object(t)).forEach(function(r2) {
|
|
44931
45046
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
44932
45047
|
});
|
|
44933
45048
|
}
|
|
44934
45049
|
return e;
|
|
44935
45050
|
}
|
|
44936
|
-
function
|
|
44937
|
-
return (r =
|
|
45051
|
+
function _defineProperty31(e, r, t) {
|
|
45052
|
+
return (r = _toPropertyKey31(r)) in e ? Object.defineProperty(e, r, {
|
|
44938
45053
|
value: t,
|
|
44939
45054
|
enumerable: true,
|
|
44940
45055
|
configurable: true,
|
|
44941
45056
|
writable: true
|
|
44942
45057
|
}) : e[r] = t, e;
|
|
44943
45058
|
}
|
|
44944
|
-
function
|
|
44945
|
-
var i =
|
|
45059
|
+
function _toPropertyKey31(t) {
|
|
45060
|
+
var i = _toPrimitive31(t, "string");
|
|
44946
45061
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
44947
45062
|
}
|
|
44948
|
-
function
|
|
45063
|
+
function _toPrimitive31(t, r) {
|
|
44949
45064
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
44950
45065
|
var e = t[Symbol.toPrimitive];
|
|
44951
45066
|
if (void 0 !== e) {
|
|
@@ -44955,12 +45070,12 @@ function _toPrimitive30(t, r) {
|
|
|
44955
45070
|
}
|
|
44956
45071
|
return ("string" === r ? String : Number)(t);
|
|
44957
45072
|
}
|
|
44958
|
-
var
|
|
44959
|
-
var $ =
|
|
45073
|
+
var Root8 = function(t0) {
|
|
45074
|
+
var $ = _c68(4);
|
|
44960
45075
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44961
45076
|
var t1;
|
|
44962
45077
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44963
|
-
t1 = /* @__PURE__ */
|
|
45078
|
+
t1 = /* @__PURE__ */ _jsx70(Flex20, {
|
|
44964
45079
|
flexGrow: "1",
|
|
44965
45080
|
pt: "4px",
|
|
44966
45081
|
style: style,
|
|
@@ -45001,7 +45116,7 @@ var Input = function(props) {
|
|
|
45001
45116
|
isDisabledPrevious,
|
|
45002
45117
|
textareaProps
|
|
45003
45118
|
]);
|
|
45004
|
-
return /* @__PURE__ */
|
|
45119
|
+
return /* @__PURE__ */ _jsx70(TextareaBase, _objectSpread31(_objectSpread31(_objectSpread31({
|
|
45005
45120
|
minRows: 1,
|
|
45006
45121
|
placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
|
|
45007
45122
|
disabled: isDisabled,
|
|
@@ -45021,17 +45136,17 @@ var Input = function(props) {
|
|
|
45021
45136
|
}));
|
|
45022
45137
|
};
|
|
45023
45138
|
var Control = function(props) {
|
|
45024
|
-
var $ =
|
|
45139
|
+
var $ = _c68(3);
|
|
45025
45140
|
var t0;
|
|
45026
45141
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45027
|
-
t0 = /* @__PURE__ */
|
|
45142
|
+
t0 = /* @__PURE__ */ _jsx70(Input, {});
|
|
45028
45143
|
$[0] = t0;
|
|
45029
45144
|
} else {
|
|
45030
45145
|
t0 = $[0];
|
|
45031
45146
|
}
|
|
45032
45147
|
var t1;
|
|
45033
45148
|
if ($[1] !== props) {
|
|
45034
|
-
t1 = /* @__PURE__ */
|
|
45149
|
+
t1 = /* @__PURE__ */ _jsx70(Root8, _objectSpread31(_objectSpread31({}, props), {}, {
|
|
45035
45150
|
children: t0
|
|
45036
45151
|
}));
|
|
45037
45152
|
$[1] = props;
|
|
@@ -45041,14 +45156,14 @@ var Control = function(props) {
|
|
|
45041
45156
|
}
|
|
45042
45157
|
return t1;
|
|
45043
45158
|
};
|
|
45044
|
-
Control.Root =
|
|
45159
|
+
Control.Root = Root8;
|
|
45045
45160
|
Control.Input = Input;
|
|
45046
45161
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
45047
|
-
import { c as
|
|
45048
|
-
import { Flex as
|
|
45162
|
+
import { c as _c69 } from "react-compiler-runtime";
|
|
45163
|
+
import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
45049
45164
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
45050
|
-
import { jsx as
|
|
45051
|
-
function
|
|
45165
|
+
import { jsx as _jsx71, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
45166
|
+
function ownKeys32(e, r) {
|
|
45052
45167
|
var t = Object.keys(e);
|
|
45053
45168
|
if (Object.getOwnPropertySymbols) {
|
|
45054
45169
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45058,30 +45173,30 @@ function ownKeys31(e, r) {
|
|
|
45058
45173
|
}
|
|
45059
45174
|
return t;
|
|
45060
45175
|
}
|
|
45061
|
-
function
|
|
45176
|
+
function _objectSpread32(e) {
|
|
45062
45177
|
for(var r = 1; r < arguments.length; r++){
|
|
45063
45178
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45064
|
-
r % 2 ?
|
|
45065
|
-
|
|
45066
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45179
|
+
r % 2 ? ownKeys32(Object(t), true).forEach(function(r2) {
|
|
45180
|
+
_defineProperty32(e, r2, t[r2]);
|
|
45181
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys32(Object(t)).forEach(function(r2) {
|
|
45067
45182
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45068
45183
|
});
|
|
45069
45184
|
}
|
|
45070
45185
|
return e;
|
|
45071
45186
|
}
|
|
45072
|
-
function
|
|
45073
|
-
return (r =
|
|
45187
|
+
function _defineProperty32(e, r, t) {
|
|
45188
|
+
return (r = _toPropertyKey32(r)) in e ? Object.defineProperty(e, r, {
|
|
45074
45189
|
value: t,
|
|
45075
45190
|
enumerable: true,
|
|
45076
45191
|
configurable: true,
|
|
45077
45192
|
writable: true
|
|
45078
45193
|
}) : e[r] = t, e;
|
|
45079
45194
|
}
|
|
45080
|
-
function
|
|
45081
|
-
var i =
|
|
45195
|
+
function _toPropertyKey32(t) {
|
|
45196
|
+
var i = _toPrimitive32(t, "string");
|
|
45082
45197
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45083
45198
|
}
|
|
45084
|
-
function
|
|
45199
|
+
function _toPrimitive32(t, r) {
|
|
45085
45200
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45086
45201
|
var e = t[Symbol.toPrimitive];
|
|
45087
45202
|
if (void 0 !== e) {
|
|
@@ -45092,7 +45207,7 @@ function _toPrimitive31(t, r) {
|
|
|
45092
45207
|
return ("string" === r ? String : Number)(t);
|
|
45093
45208
|
}
|
|
45094
45209
|
var Preview = function(props) {
|
|
45095
|
-
var $ =
|
|
45210
|
+
var $ = _c69(8);
|
|
45096
45211
|
var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
|
|
45097
45212
|
if (!files.length) {
|
|
45098
45213
|
return null;
|
|
@@ -45102,30 +45217,30 @@ var Preview = function(props) {
|
|
|
45102
45217
|
var _t;
|
|
45103
45218
|
if ($[3] !== setFiles) {
|
|
45104
45219
|
_t = function(file) {
|
|
45105
|
-
return /* @__PURE__ */
|
|
45220
|
+
return /* @__PURE__ */ _jsx71(Card2, {
|
|
45106
45221
|
variant: "ghost",
|
|
45107
|
-
children: /* @__PURE__ */ _jsxs23(
|
|
45222
|
+
children: /* @__PURE__ */ _jsxs23(Flex21, {
|
|
45108
45223
|
align: "center",
|
|
45109
45224
|
justify: "between",
|
|
45110
45225
|
gap: "1",
|
|
45111
45226
|
children: [
|
|
45112
|
-
/* @__PURE__ */ _jsxs23(
|
|
45227
|
+
/* @__PURE__ */ _jsxs23(Flex21, {
|
|
45113
45228
|
align: "center",
|
|
45114
45229
|
gap: "1",
|
|
45115
45230
|
flexShrink: "1",
|
|
45116
45231
|
minWidth: "0",
|
|
45117
45232
|
maxWidth: "250px",
|
|
45118
45233
|
children: [
|
|
45119
|
-
/* @__PURE__ */
|
|
45234
|
+
/* @__PURE__ */ _jsx71(Flex21, {
|
|
45120
45235
|
flexShrink: "0",
|
|
45121
|
-
children: /* @__PURE__ */
|
|
45236
|
+
children: /* @__PURE__ */ _jsx71(Spinner2, {
|
|
45122
45237
|
loading: isOptimistic({
|
|
45123
45238
|
id: file.id
|
|
45124
45239
|
}),
|
|
45125
|
-
children: /* @__PURE__ */
|
|
45240
|
+
children: /* @__PURE__ */ _jsx71(FileIcon2, {})
|
|
45126
45241
|
})
|
|
45127
45242
|
}),
|
|
45128
|
-
/* @__PURE__ */
|
|
45243
|
+
/* @__PURE__ */ _jsx71(Text7, {
|
|
45129
45244
|
size: "2",
|
|
45130
45245
|
truncate: true,
|
|
45131
45246
|
wrap: "nowrap",
|
|
@@ -45133,9 +45248,9 @@ var Preview = function(props) {
|
|
|
45133
45248
|
})
|
|
45134
45249
|
]
|
|
45135
45250
|
}),
|
|
45136
|
-
/* @__PURE__ */
|
|
45251
|
+
/* @__PURE__ */ _jsx71(Flex21, {
|
|
45137
45252
|
flexShrink: "0",
|
|
45138
|
-
children: /* @__PURE__ */
|
|
45253
|
+
children: /* @__PURE__ */ _jsx71(IconButton6, {
|
|
45139
45254
|
onClick: function() {
|
|
45140
45255
|
return setFiles(function(prev) {
|
|
45141
45256
|
return prev.filter(function(prevFile) {
|
|
@@ -45146,7 +45261,7 @@ var Preview = function(props) {
|
|
|
45146
45261
|
color: "gray",
|
|
45147
45262
|
variant: "ghost",
|
|
45148
45263
|
size: "1",
|
|
45149
|
-
children: /* @__PURE__ */
|
|
45264
|
+
children: /* @__PURE__ */ _jsx71(Cross2Icon, {})
|
|
45150
45265
|
})
|
|
45151
45266
|
})
|
|
45152
45267
|
]
|
|
@@ -45167,7 +45282,7 @@ var Preview = function(props) {
|
|
|
45167
45282
|
}
|
|
45168
45283
|
var t1;
|
|
45169
45284
|
if ($[5] !== props || $[6] !== t0) {
|
|
45170
|
-
t1 = /* @__PURE__ */
|
|
45285
|
+
t1 = /* @__PURE__ */ _jsx71(Flex21, _objectSpread32(_objectSpread32({
|
|
45171
45286
|
flexBasis: "100%",
|
|
45172
45287
|
direction: "column",
|
|
45173
45288
|
pb: "2",
|
|
@@ -45188,9 +45303,9 @@ import { useCallback as useCallback3 } from "react";
|
|
|
45188
45303
|
import { omit as omit4 } from "radash";
|
|
45189
45304
|
import dayjs2 from "dayjs";
|
|
45190
45305
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45191
|
-
import { IconButton as IconButton7, Flex as
|
|
45306
|
+
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
45192
45307
|
// src/hooks/files/useCreateFile/index.ts
|
|
45193
|
-
import { c as
|
|
45308
|
+
import { c as _c70 } from "react-compiler-runtime";
|
|
45194
45309
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
45195
45310
|
// src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
|
|
45196
45311
|
var formData = function(variables) {
|
|
@@ -45201,7 +45316,7 @@ var formData = function(variables) {
|
|
|
45201
45316
|
return data2;
|
|
45202
45317
|
};
|
|
45203
45318
|
// src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/index.ts
|
|
45204
|
-
function
|
|
45319
|
+
function ownKeys33(e, r) {
|
|
45205
45320
|
var t = Object.keys(e);
|
|
45206
45321
|
if (Object.getOwnPropertySymbols) {
|
|
45207
45322
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45211,30 +45326,30 @@ function ownKeys32(e, r) {
|
|
|
45211
45326
|
}
|
|
45212
45327
|
return t;
|
|
45213
45328
|
}
|
|
45214
|
-
function
|
|
45329
|
+
function _objectSpread33(e) {
|
|
45215
45330
|
for(var r = 1; r < arguments.length; r++){
|
|
45216
45331
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45217
|
-
r % 2 ?
|
|
45218
|
-
|
|
45219
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45332
|
+
r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
|
|
45333
|
+
_defineProperty33(e, r2, t[r2]);
|
|
45334
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
|
|
45220
45335
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45221
45336
|
});
|
|
45222
45337
|
}
|
|
45223
45338
|
return e;
|
|
45224
45339
|
}
|
|
45225
|
-
function
|
|
45226
|
-
return (r =
|
|
45340
|
+
function _defineProperty33(e, r, t) {
|
|
45341
|
+
return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
|
|
45227
45342
|
value: t,
|
|
45228
45343
|
enumerable: true,
|
|
45229
45344
|
configurable: true,
|
|
45230
45345
|
writable: true
|
|
45231
45346
|
}) : e[r] = t, e;
|
|
45232
45347
|
}
|
|
45233
|
-
function
|
|
45234
|
-
var i =
|
|
45348
|
+
function _toPropertyKey33(t) {
|
|
45349
|
+
var i = _toPrimitive33(t, "string");
|
|
45235
45350
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45236
45351
|
}
|
|
45237
|
-
function
|
|
45352
|
+
function _toPrimitive33(t, r) {
|
|
45238
45353
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45239
45354
|
var e = t[Symbol.toPrimitive];
|
|
45240
45355
|
if (void 0 !== e) {
|
|
@@ -45254,7 +45369,7 @@ var body2 = function(_ref) {
|
|
|
45254
45369
|
assistantId: variables.assistantId
|
|
45255
45370
|
});
|
|
45256
45371
|
if (!threadId) return formData(variables);
|
|
45257
|
-
return formData(
|
|
45372
|
+
return formData(_objectSpread33(_objectSpread33({}, variables), {}, {
|
|
45258
45373
|
threadId: threadId
|
|
45259
45374
|
}));
|
|
45260
45375
|
};
|
|
@@ -45321,67 +45436,6 @@ var mutationFn2 = function(_ref) {
|
|
|
45321
45436
|
}();
|
|
45322
45437
|
};
|
|
45323
45438
|
// src/hooks/files/useCreateFile/lib/mutationOptions/index.ts
|
|
45324
|
-
function ownKeys33(e, r) {
|
|
45325
|
-
var t = Object.keys(e);
|
|
45326
|
-
if (Object.getOwnPropertySymbols) {
|
|
45327
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
45328
|
-
r && (o = o.filter(function(r2) {
|
|
45329
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45330
|
-
})), t.push.apply(t, o);
|
|
45331
|
-
}
|
|
45332
|
-
return t;
|
|
45333
|
-
}
|
|
45334
|
-
function _objectSpread33(e) {
|
|
45335
|
-
for(var r = 1; r < arguments.length; r++){
|
|
45336
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
45337
|
-
r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
|
|
45338
|
-
_defineProperty33(e, r2, t[r2]);
|
|
45339
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
|
|
45340
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45341
|
-
});
|
|
45342
|
-
}
|
|
45343
|
-
return e;
|
|
45344
|
-
}
|
|
45345
|
-
function _defineProperty33(e, r, t) {
|
|
45346
|
-
return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
|
|
45347
|
-
value: t,
|
|
45348
|
-
enumerable: true,
|
|
45349
|
-
configurable: true,
|
|
45350
|
-
writable: true
|
|
45351
|
-
}) : e[r] = t, e;
|
|
45352
|
-
}
|
|
45353
|
-
function _toPropertyKey33(t) {
|
|
45354
|
-
var i = _toPrimitive33(t, "string");
|
|
45355
|
-
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45356
|
-
}
|
|
45357
|
-
function _toPrimitive33(t, r) {
|
|
45358
|
-
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45359
|
-
var e = t[Symbol.toPrimitive];
|
|
45360
|
-
if (void 0 !== e) {
|
|
45361
|
-
var i = e.call(t, r || "default");
|
|
45362
|
-
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
45363
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45364
|
-
}
|
|
45365
|
-
return ("string" === r ? String : Number)(t);
|
|
45366
|
-
}
|
|
45367
|
-
var mutationOptions2 = function(_ref) {
|
|
45368
|
-
var queryClient = _ref.queryClient, threadContext = _ref.threadContext, superinterfaceContext = _ref.superinterfaceContext, onError = _ref.onError;
|
|
45369
|
-
var mutationKey = [
|
|
45370
|
-
"createFile",
|
|
45371
|
-
threadContext.variables
|
|
45372
|
-
];
|
|
45373
|
-
return _objectSpread33(_objectSpread33(_objectSpread33({
|
|
45374
|
-
mutationFn: mutationFn2({
|
|
45375
|
-
queryClient: queryClient,
|
|
45376
|
-
superinterfaceContext: superinterfaceContext,
|
|
45377
|
-
threadContext: threadContext
|
|
45378
|
-
}),
|
|
45379
|
-
onError: onError
|
|
45380
|
-
}, threadContext.defaultOptions.mutations), queryClient.getMutationDefaults(mutationKey)), {}, {
|
|
45381
|
-
mutationKey: mutationKey
|
|
45382
|
-
});
|
|
45383
|
-
};
|
|
45384
|
-
// src/hooks/files/useCreateFile/index.ts
|
|
45385
45439
|
function ownKeys34(e, r) {
|
|
45386
45440
|
var t = Object.keys(e);
|
|
45387
45441
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45425,8 +45479,69 @@ function _toPrimitive34(t, r) {
|
|
|
45425
45479
|
}
|
|
45426
45480
|
return ("string" === r ? String : Number)(t);
|
|
45427
45481
|
}
|
|
45482
|
+
var mutationOptions2 = function(_ref) {
|
|
45483
|
+
var queryClient = _ref.queryClient, threadContext = _ref.threadContext, superinterfaceContext = _ref.superinterfaceContext, onError = _ref.onError;
|
|
45484
|
+
var mutationKey = [
|
|
45485
|
+
"createFile",
|
|
45486
|
+
threadContext.variables
|
|
45487
|
+
];
|
|
45488
|
+
return _objectSpread34(_objectSpread34(_objectSpread34({
|
|
45489
|
+
mutationFn: mutationFn2({
|
|
45490
|
+
queryClient: queryClient,
|
|
45491
|
+
superinterfaceContext: superinterfaceContext,
|
|
45492
|
+
threadContext: threadContext
|
|
45493
|
+
}),
|
|
45494
|
+
onError: onError
|
|
45495
|
+
}, threadContext.defaultOptions.mutations), queryClient.getMutationDefaults(mutationKey)), {}, {
|
|
45496
|
+
mutationKey: mutationKey
|
|
45497
|
+
});
|
|
45498
|
+
};
|
|
45499
|
+
// src/hooks/files/useCreateFile/index.ts
|
|
45500
|
+
function ownKeys35(e, r) {
|
|
45501
|
+
var t = Object.keys(e);
|
|
45502
|
+
if (Object.getOwnPropertySymbols) {
|
|
45503
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
45504
|
+
r && (o = o.filter(function(r2) {
|
|
45505
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45506
|
+
})), t.push.apply(t, o);
|
|
45507
|
+
}
|
|
45508
|
+
return t;
|
|
45509
|
+
}
|
|
45510
|
+
function _objectSpread35(e) {
|
|
45511
|
+
for(var r = 1; r < arguments.length; r++){
|
|
45512
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
45513
|
+
r % 2 ? ownKeys35(Object(t), true).forEach(function(r2) {
|
|
45514
|
+
_defineProperty35(e, r2, t[r2]);
|
|
45515
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys35(Object(t)).forEach(function(r2) {
|
|
45516
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45517
|
+
});
|
|
45518
|
+
}
|
|
45519
|
+
return e;
|
|
45520
|
+
}
|
|
45521
|
+
function _defineProperty35(e, r, t) {
|
|
45522
|
+
return (r = _toPropertyKey35(r)) in e ? Object.defineProperty(e, r, {
|
|
45523
|
+
value: t,
|
|
45524
|
+
enumerable: true,
|
|
45525
|
+
configurable: true,
|
|
45526
|
+
writable: true
|
|
45527
|
+
}) : e[r] = t, e;
|
|
45528
|
+
}
|
|
45529
|
+
function _toPropertyKey35(t) {
|
|
45530
|
+
var i = _toPrimitive35(t, "string");
|
|
45531
|
+
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45532
|
+
}
|
|
45533
|
+
function _toPrimitive35(t, r) {
|
|
45534
|
+
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45535
|
+
var e = t[Symbol.toPrimitive];
|
|
45536
|
+
if (void 0 !== e) {
|
|
45537
|
+
var i = e.call(t, r || "default");
|
|
45538
|
+
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
45539
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45540
|
+
}
|
|
45541
|
+
return ("string" === r ? String : Number)(t);
|
|
45542
|
+
}
|
|
45428
45543
|
var useCreateFile = function(t0) {
|
|
45429
|
-
var $ =
|
|
45544
|
+
var $ = _c70(15);
|
|
45430
45545
|
var t1;
|
|
45431
45546
|
if ($[0] !== t0) {
|
|
45432
45547
|
t1 = t0 === void 0 ? {
|
|
@@ -45477,7 +45592,7 @@ var useCreateFile = function(t0) {
|
|
|
45477
45592
|
var args = t62;
|
|
45478
45593
|
var _args = _to_array(args), firstArg = _args[0], restArgs = _args.slice(1);
|
|
45479
45594
|
return (_props = props).mutateAsync.apply(_props, [
|
|
45480
|
-
|
|
45595
|
+
_objectSpread35(_objectSpread35({}, threadContext.variables), firstArg)
|
|
45481
45596
|
].concat(_to_consumable_array(restArgs)));
|
|
45482
45597
|
};
|
|
45483
45598
|
$[9] = props;
|
|
@@ -45488,7 +45603,7 @@ var useCreateFile = function(t0) {
|
|
|
45488
45603
|
}
|
|
45489
45604
|
var t6;
|
|
45490
45605
|
if ($[12] !== props || $[13] !== t5) {
|
|
45491
|
-
t6 =
|
|
45606
|
+
t6 = _objectSpread35(_objectSpread35({}, props), {}, {
|
|
45492
45607
|
createFile: t5
|
|
45493
45608
|
});
|
|
45494
45609
|
$[12] = props;
|
|
@@ -45502,8 +45617,8 @@ var useCreateFile = function(t0) {
|
|
|
45502
45617
|
function _temp4() {}
|
|
45503
45618
|
function _temp23() {}
|
|
45504
45619
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45505
|
-
import { jsx as
|
|
45506
|
-
function
|
|
45620
|
+
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45621
|
+
function ownKeys36(e, r) {
|
|
45507
45622
|
var t = Object.keys(e);
|
|
45508
45623
|
if (Object.getOwnPropertySymbols) {
|
|
45509
45624
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45513,30 +45628,30 @@ function ownKeys35(e, r) {
|
|
|
45513
45628
|
}
|
|
45514
45629
|
return t;
|
|
45515
45630
|
}
|
|
45516
|
-
function
|
|
45631
|
+
function _objectSpread36(e) {
|
|
45517
45632
|
for(var r = 1; r < arguments.length; r++){
|
|
45518
45633
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45519
|
-
r % 2 ?
|
|
45520
|
-
|
|
45521
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45634
|
+
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45635
|
+
_defineProperty36(e, r2, t[r2]);
|
|
45636
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45522
45637
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45523
45638
|
});
|
|
45524
45639
|
}
|
|
45525
45640
|
return e;
|
|
45526
45641
|
}
|
|
45527
|
-
function
|
|
45528
|
-
return (r =
|
|
45642
|
+
function _defineProperty36(e, r, t) {
|
|
45643
|
+
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45529
45644
|
value: t,
|
|
45530
45645
|
enumerable: true,
|
|
45531
45646
|
configurable: true,
|
|
45532
45647
|
writable: true
|
|
45533
45648
|
}) : e[r] = t, e;
|
|
45534
45649
|
}
|
|
45535
|
-
function
|
|
45536
|
-
var i =
|
|
45650
|
+
function _toPropertyKey36(t) {
|
|
45651
|
+
var i = _toPrimitive36(t, "string");
|
|
45537
45652
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45538
45653
|
}
|
|
45539
|
-
function
|
|
45654
|
+
function _toPrimitive36(t, r) {
|
|
45540
45655
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45541
45656
|
var e = t[Symbol.toPrimitive];
|
|
45542
45657
|
if (void 0 !== e) {
|
|
@@ -45783,7 +45898,7 @@ var Control2 = function(props) {
|
|
|
45783
45898
|
createFile,
|
|
45784
45899
|
setFiles
|
|
45785
45900
|
]);
|
|
45786
|
-
return /* @__PURE__ */
|
|
45901
|
+
return /* @__PURE__ */ _jsx72(Flex22, _objectSpread36(_objectSpread36({
|
|
45787
45902
|
pt: "2",
|
|
45788
45903
|
pr: "2",
|
|
45789
45904
|
flexGrow: "0"
|
|
@@ -45798,8 +45913,8 @@ var Control2 = function(props) {
|
|
|
45798
45913
|
overflow: "hidden"
|
|
45799
45914
|
},
|
|
45800
45915
|
children: [
|
|
45801
|
-
/* @__PURE__ */
|
|
45802
|
-
/* @__PURE__ */
|
|
45916
|
+
/* @__PURE__ */ _jsx72(FilePlusIcon, {}),
|
|
45917
|
+
/* @__PURE__ */ _jsx72("input", {
|
|
45803
45918
|
type: "file",
|
|
45804
45919
|
multiple: true,
|
|
45805
45920
|
accept: accept,
|
|
@@ -45824,8 +45939,8 @@ var Files = {
|
|
|
45824
45939
|
Control: Control2
|
|
45825
45940
|
};
|
|
45826
45941
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
45827
|
-
import { jsx as
|
|
45828
|
-
function
|
|
45942
|
+
import { jsx as _jsx73 } from "react/jsx-runtime";
|
|
45943
|
+
function ownKeys37(e, r) {
|
|
45829
45944
|
var t = Object.keys(e);
|
|
45830
45945
|
if (Object.getOwnPropertySymbols) {
|
|
45831
45946
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45835,30 +45950,30 @@ function ownKeys36(e, r) {
|
|
|
45835
45950
|
}
|
|
45836
45951
|
return t;
|
|
45837
45952
|
}
|
|
45838
|
-
function
|
|
45953
|
+
function _objectSpread37(e) {
|
|
45839
45954
|
for(var r = 1; r < arguments.length; r++){
|
|
45840
45955
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45841
|
-
r % 2 ?
|
|
45842
|
-
|
|
45843
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
45956
|
+
r % 2 ? ownKeys37(Object(t), true).forEach(function(r2) {
|
|
45957
|
+
_defineProperty37(e, r2, t[r2]);
|
|
45958
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys37(Object(t)).forEach(function(r2) {
|
|
45844
45959
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45845
45960
|
});
|
|
45846
45961
|
}
|
|
45847
45962
|
return e;
|
|
45848
45963
|
}
|
|
45849
|
-
function
|
|
45850
|
-
return (r =
|
|
45964
|
+
function _defineProperty37(e, r, t) {
|
|
45965
|
+
return (r = _toPropertyKey37(r)) in e ? Object.defineProperty(e, r, {
|
|
45851
45966
|
value: t,
|
|
45852
45967
|
enumerable: true,
|
|
45853
45968
|
configurable: true,
|
|
45854
45969
|
writable: true
|
|
45855
45970
|
}) : e[r] = t, e;
|
|
45856
45971
|
}
|
|
45857
|
-
function
|
|
45858
|
-
var i =
|
|
45972
|
+
function _toPropertyKey37(t) {
|
|
45973
|
+
var i = _toPrimitive37(t, "string");
|
|
45859
45974
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45860
45975
|
}
|
|
45861
|
-
function
|
|
45976
|
+
function _toPrimitive37(t, r) {
|
|
45862
45977
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45863
45978
|
var e = t[Symbol.toPrimitive];
|
|
45864
45979
|
if (void 0 !== e) {
|
|
@@ -45868,23 +45983,23 @@ function _toPrimitive36(t, r) {
|
|
|
45868
45983
|
}
|
|
45869
45984
|
return ("string" === r ? String : Number)(t);
|
|
45870
45985
|
}
|
|
45871
|
-
var
|
|
45986
|
+
var Root9 = function(_ref) {
|
|
45872
45987
|
"use no memo";
|
|
45873
45988
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
45874
45989
|
var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
|
|
45875
|
-
return /* @__PURE__ */
|
|
45990
|
+
return /* @__PURE__ */ _jsx73(RadixContainer, {
|
|
45876
45991
|
size: "2",
|
|
45877
45992
|
flexGrow: "0",
|
|
45878
45993
|
className: className,
|
|
45879
45994
|
style: style,
|
|
45880
|
-
children: /* @__PURE__ */
|
|
45995
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
45881
45996
|
direction: "column",
|
|
45882
45997
|
flexShrink: "0",
|
|
45883
|
-
children: /* @__PURE__ */
|
|
45998
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
45884
45999
|
direction: "column",
|
|
45885
46000
|
flexShrink: "0",
|
|
45886
|
-
children: /* @__PURE__ */
|
|
45887
|
-
style:
|
|
46001
|
+
children: /* @__PURE__ */ _jsx73(Flex23, {
|
|
46002
|
+
style: _objectSpread37({
|
|
45888
46003
|
borderRadius: "var(--radius-2)",
|
|
45889
46004
|
borderWidth: "1px",
|
|
45890
46005
|
borderStyle: "solid",
|
|
@@ -45902,13 +46017,13 @@ var Root8 = function(_ref) {
|
|
|
45902
46017
|
});
|
|
45903
46018
|
};
|
|
45904
46019
|
var Field = {
|
|
45905
|
-
Root:
|
|
46020
|
+
Root: Root9,
|
|
45906
46021
|
Control: Control,
|
|
45907
46022
|
Files: Files
|
|
45908
46023
|
};
|
|
45909
46024
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
45910
|
-
import { jsx as
|
|
45911
|
-
function
|
|
46025
|
+
import { jsx as _jsx74, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
46026
|
+
function ownKeys38(e, r) {
|
|
45912
46027
|
var t = Object.keys(e);
|
|
45913
46028
|
if (Object.getOwnPropertySymbols) {
|
|
45914
46029
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -45918,30 +46033,30 @@ function ownKeys37(e, r) {
|
|
|
45918
46033
|
}
|
|
45919
46034
|
return t;
|
|
45920
46035
|
}
|
|
45921
|
-
function
|
|
46036
|
+
function _objectSpread38(e) {
|
|
45922
46037
|
for(var r = 1; r < arguments.length; r++){
|
|
45923
46038
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
45924
|
-
r % 2 ?
|
|
45925
|
-
|
|
45926
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46039
|
+
r % 2 ? ownKeys38(Object(t), true).forEach(function(r2) {
|
|
46040
|
+
_defineProperty38(e, r2, t[r2]);
|
|
46041
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys38(Object(t)).forEach(function(r2) {
|
|
45927
46042
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45928
46043
|
});
|
|
45929
46044
|
}
|
|
45930
46045
|
return e;
|
|
45931
46046
|
}
|
|
45932
|
-
function
|
|
45933
|
-
return (r =
|
|
46047
|
+
function _defineProperty38(e, r, t) {
|
|
46048
|
+
return (r = _toPropertyKey38(r)) in e ? Object.defineProperty(e, r, {
|
|
45934
46049
|
value: t,
|
|
45935
46050
|
enumerable: true,
|
|
45936
46051
|
configurable: true,
|
|
45937
46052
|
writable: true
|
|
45938
46053
|
}) : e[r] = t, e;
|
|
45939
46054
|
}
|
|
45940
|
-
function
|
|
45941
|
-
var i =
|
|
46055
|
+
function _toPropertyKey38(t) {
|
|
46056
|
+
var i = _toPrimitive38(t, "string");
|
|
45942
46057
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45943
46058
|
}
|
|
45944
|
-
function
|
|
46059
|
+
function _toPrimitive38(t, r) {
|
|
45945
46060
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45946
46061
|
var e = t[Symbol.toPrimitive];
|
|
45947
46062
|
if (void 0 !== e) {
|
|
@@ -45952,13 +46067,13 @@ function _toPrimitive37(t, r) {
|
|
|
45952
46067
|
return ("string" === r ? String : Number)(t);
|
|
45953
46068
|
}
|
|
45954
46069
|
var MessageForm = function(props) {
|
|
45955
|
-
var $ =
|
|
46070
|
+
var $ = _c71(3);
|
|
45956
46071
|
var t0;
|
|
45957
46072
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45958
46073
|
t0 = /* @__PURE__ */ _jsxs25(Field.Root, {
|
|
45959
46074
|
children: [
|
|
45960
|
-
/* @__PURE__ */
|
|
45961
|
-
/* @__PURE__ */
|
|
46075
|
+
/* @__PURE__ */ _jsx74(Field.Control, {}),
|
|
46076
|
+
/* @__PURE__ */ _jsx74(Submit, {})
|
|
45962
46077
|
]
|
|
45963
46078
|
});
|
|
45964
46079
|
$[0] = t0;
|
|
@@ -45967,7 +46082,7 @@ var MessageForm = function(props) {
|
|
|
45967
46082
|
}
|
|
45968
46083
|
var t1;
|
|
45969
46084
|
if ($[1] !== props) {
|
|
45970
|
-
t1 = /* @__PURE__ */
|
|
46085
|
+
t1 = /* @__PURE__ */ _jsx74(Root7, _objectSpread38(_objectSpread38({}, props), {}, {
|
|
45971
46086
|
children: t0
|
|
45972
46087
|
}));
|
|
45973
46088
|
$[1] = props;
|
|
@@ -45977,36 +46092,36 @@ var MessageForm = function(props) {
|
|
|
45977
46092
|
}
|
|
45978
46093
|
return t1;
|
|
45979
46094
|
};
|
|
45980
|
-
MessageForm.Root =
|
|
46095
|
+
MessageForm.Root = Root7;
|
|
45981
46096
|
MessageForm.Field = Field;
|
|
45982
46097
|
MessageForm.Submit = Submit;
|
|
45983
46098
|
// src/components/threads/Thread/Root/index.tsx
|
|
45984
|
-
import { c as
|
|
45985
|
-
import { Flex as
|
|
46099
|
+
import { c as _c74 } from "react-compiler-runtime";
|
|
46100
|
+
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
45986
46101
|
// src/components/threads/Thread/Provider/index.tsx
|
|
45987
46102
|
var Provider2 = SuperinterfaceProvider;
|
|
45988
46103
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
45989
|
-
import { c as
|
|
46104
|
+
import { c as _c73 } from "react-compiler-runtime";
|
|
45990
46105
|
import { useState as useState5, useCallback as useCallback4 } from "react";
|
|
45991
46106
|
import * as Toast2 from "@radix-ui/react-toast";
|
|
45992
46107
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
45993
|
-
import { c as
|
|
46108
|
+
import { c as _c72 } from "react-compiler-runtime";
|
|
45994
46109
|
import * as Toast from "@radix-ui/react-toast";
|
|
45995
|
-
import { Card as Card3, Text as Text8, Flex as
|
|
46110
|
+
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
45996
46111
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
45997
|
-
import { jsx as
|
|
46112
|
+
import { jsx as _jsx75, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
45998
46113
|
var CustomToast = function(t0) {
|
|
45999
|
-
var $ =
|
|
46114
|
+
var $ = _c72(7);
|
|
46000
46115
|
var toast = t0.toast;
|
|
46001
46116
|
var t1;
|
|
46002
46117
|
if ($[0] !== toast.type) {
|
|
46003
|
-
t1 = /* @__PURE__ */
|
|
46118
|
+
t1 = /* @__PURE__ */ _jsx75(Flex24, {
|
|
46004
46119
|
pr: "2",
|
|
46005
46120
|
height: "14px",
|
|
46006
46121
|
align: "center",
|
|
46007
|
-
children: toast.type === "success" ? /* @__PURE__ */
|
|
46122
|
+
children: toast.type === "success" ? /* @__PURE__ */ _jsx75(CheckCircledIcon2, {
|
|
46008
46123
|
color: "var(--accent-9)"
|
|
46009
|
-
}) : /* @__PURE__ */
|
|
46124
|
+
}) : /* @__PURE__ */ _jsx75(CrossCircledIcon, {
|
|
46010
46125
|
color: "var(--red-9)"
|
|
46011
46126
|
})
|
|
46012
46127
|
});
|
|
@@ -46017,7 +46132,7 @@ var CustomToast = function(t0) {
|
|
|
46017
46132
|
}
|
|
46018
46133
|
var t2;
|
|
46019
46134
|
if ($[2] !== toast.message) {
|
|
46020
|
-
t2 = /* @__PURE__ */
|
|
46135
|
+
t2 = /* @__PURE__ */ _jsx75(Text8, {
|
|
46021
46136
|
weight: "medium",
|
|
46022
46137
|
size: "1",
|
|
46023
46138
|
children: toast.message
|
|
@@ -46029,10 +46144,10 @@ var CustomToast = function(t0) {
|
|
|
46029
46144
|
}
|
|
46030
46145
|
var t3;
|
|
46031
46146
|
if ($[4] !== t1 || $[5] !== t2) {
|
|
46032
|
-
t3 = /* @__PURE__ */
|
|
46033
|
-
children: /* @__PURE__ */
|
|
46034
|
-
children: /* @__PURE__ */
|
|
46035
|
-
children: /* @__PURE__ */ _jsxs26(
|
|
46147
|
+
t3 = /* @__PURE__ */ _jsx75(Toast.Root, {
|
|
46148
|
+
children: /* @__PURE__ */ _jsx75(Card3, {
|
|
46149
|
+
children: /* @__PURE__ */ _jsx75(Toast.Title, {
|
|
46150
|
+
children: /* @__PURE__ */ _jsxs26(Flex24, {
|
|
46036
46151
|
children: [
|
|
46037
46152
|
t1,
|
|
46038
46153
|
t2
|
|
@@ -46050,9 +46165,9 @@ var CustomToast = function(t0) {
|
|
|
46050
46165
|
return t3;
|
|
46051
46166
|
};
|
|
46052
46167
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46053
|
-
import { jsx as
|
|
46168
|
+
import { jsx as _jsx76, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
46054
46169
|
var ToastsProvider = function(t0) {
|
|
46055
|
-
var $ =
|
|
46170
|
+
var $ = _c73(15);
|
|
46056
46171
|
var children = t0.children, t1 = t0.bottom;
|
|
46057
46172
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
46058
46173
|
var t2;
|
|
@@ -46098,7 +46213,7 @@ var ToastsProvider = function(t0) {
|
|
|
46098
46213
|
}
|
|
46099
46214
|
var t6;
|
|
46100
46215
|
if ($[6] !== bottom) {
|
|
46101
|
-
t6 = /* @__PURE__ */
|
|
46216
|
+
t6 = /* @__PURE__ */ _jsx76(Toast2.Viewport, {
|
|
46102
46217
|
style: {
|
|
46103
46218
|
position: "absolute",
|
|
46104
46219
|
bottom: bottom,
|
|
@@ -46138,7 +46253,7 @@ var ToastsProvider = function(t0) {
|
|
|
46138
46253
|
}
|
|
46139
46254
|
var t8;
|
|
46140
46255
|
if ($[12] !== t4 || $[13] !== t7) {
|
|
46141
|
-
t8 = /* @__PURE__ */
|
|
46256
|
+
t8 = /* @__PURE__ */ _jsx76(ToastsContext.Provider, {
|
|
46142
46257
|
value: t4,
|
|
46143
46258
|
children: t7
|
|
46144
46259
|
});
|
|
@@ -46151,18 +46266,18 @@ var ToastsProvider = function(t0) {
|
|
|
46151
46266
|
return t8;
|
|
46152
46267
|
};
|
|
46153
46268
|
function _temp5(toast_0, index) {
|
|
46154
|
-
return /* @__PURE__ */
|
|
46269
|
+
return /* @__PURE__ */ _jsx76(CustomToast, {
|
|
46155
46270
|
toast: toast_0
|
|
46156
46271
|
}, index);
|
|
46157
46272
|
}
|
|
46158
46273
|
// src/components/threads/Thread/Root/index.tsx
|
|
46159
|
-
import { jsx as
|
|
46274
|
+
import { jsx as _jsx77 } from "react/jsx-runtime";
|
|
46160
46275
|
var _excluded4 = [
|
|
46161
46276
|
"children",
|
|
46162
46277
|
"style",
|
|
46163
46278
|
"className"
|
|
46164
46279
|
];
|
|
46165
|
-
function
|
|
46280
|
+
function ownKeys39(e, r) {
|
|
46166
46281
|
var t = Object.keys(e);
|
|
46167
46282
|
if (Object.getOwnPropertySymbols) {
|
|
46168
46283
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46172,30 +46287,30 @@ function ownKeys38(e, r) {
|
|
|
46172
46287
|
}
|
|
46173
46288
|
return t;
|
|
46174
46289
|
}
|
|
46175
|
-
function
|
|
46290
|
+
function _objectSpread39(e) {
|
|
46176
46291
|
for(var r = 1; r < arguments.length; r++){
|
|
46177
46292
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46178
|
-
r % 2 ?
|
|
46179
|
-
|
|
46180
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46293
|
+
r % 2 ? ownKeys39(Object(t), true).forEach(function(r2) {
|
|
46294
|
+
_defineProperty39(e, r2, t[r2]);
|
|
46295
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys39(Object(t)).forEach(function(r2) {
|
|
46181
46296
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46182
46297
|
});
|
|
46183
46298
|
}
|
|
46184
46299
|
return e;
|
|
46185
46300
|
}
|
|
46186
|
-
function
|
|
46187
|
-
return (r =
|
|
46301
|
+
function _defineProperty39(e, r, t) {
|
|
46302
|
+
return (r = _toPropertyKey39(r)) in e ? Object.defineProperty(e, r, {
|
|
46188
46303
|
value: t,
|
|
46189
46304
|
enumerable: true,
|
|
46190
46305
|
configurable: true,
|
|
46191
46306
|
writable: true
|
|
46192
46307
|
}) : e[r] = t, e;
|
|
46193
46308
|
}
|
|
46194
|
-
function
|
|
46195
|
-
var i =
|
|
46309
|
+
function _toPropertyKey39(t) {
|
|
46310
|
+
var i = _toPrimitive39(t, "string");
|
|
46196
46311
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46197
46312
|
}
|
|
46198
|
-
function
|
|
46313
|
+
function _toPrimitive39(t, r) {
|
|
46199
46314
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46200
46315
|
var e = t[Symbol.toPrimitive];
|
|
46201
46316
|
if (void 0 !== e) {
|
|
@@ -46223,8 +46338,8 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46223
46338
|
}
|
|
46224
46339
|
return t;
|
|
46225
46340
|
}
|
|
46226
|
-
var
|
|
46227
|
-
var $ =
|
|
46341
|
+
var Root11 = function(t0) {
|
|
46342
|
+
var $ = _c74(12);
|
|
46228
46343
|
var children;
|
|
46229
46344
|
var className;
|
|
46230
46345
|
var rest;
|
|
@@ -46248,7 +46363,7 @@ var Root10 = function(t0) {
|
|
|
46248
46363
|
}
|
|
46249
46364
|
var t1;
|
|
46250
46365
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
46251
|
-
t1 = /* @__PURE__ */
|
|
46366
|
+
t1 = /* @__PURE__ */ _jsx77(Flex25, {
|
|
46252
46367
|
direction: "column",
|
|
46253
46368
|
flexGrow: "1",
|
|
46254
46369
|
className: className,
|
|
@@ -46264,9 +46379,9 @@ var Root10 = function(t0) {
|
|
|
46264
46379
|
}
|
|
46265
46380
|
var t2;
|
|
46266
46381
|
if ($[9] !== rest || $[10] !== t1) {
|
|
46267
|
-
t2 = /* @__PURE__ */
|
|
46382
|
+
t2 = /* @__PURE__ */ _jsx77(ToastsProvider, {
|
|
46268
46383
|
bottom: "var(--space-9)",
|
|
46269
|
-
children: /* @__PURE__ */
|
|
46384
|
+
children: /* @__PURE__ */ _jsx77(Provider2, _objectSpread39(_objectSpread39({}, rest), {}, {
|
|
46270
46385
|
children: t1
|
|
46271
46386
|
}))
|
|
46272
46387
|
});
|
|
@@ -46279,8 +46394,8 @@ var Root10 = function(t0) {
|
|
|
46279
46394
|
return t2;
|
|
46280
46395
|
};
|
|
46281
46396
|
// src/components/threads/Thread/index.tsx
|
|
46282
|
-
import { jsx as
|
|
46283
|
-
function
|
|
46397
|
+
import { jsx as _jsx78, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
46398
|
+
function ownKeys40(e, r) {
|
|
46284
46399
|
var t = Object.keys(e);
|
|
46285
46400
|
if (Object.getOwnPropertySymbols) {
|
|
46286
46401
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46290,30 +46405,30 @@ function ownKeys39(e, r) {
|
|
|
46290
46405
|
}
|
|
46291
46406
|
return t;
|
|
46292
46407
|
}
|
|
46293
|
-
function
|
|
46408
|
+
function _objectSpread40(e) {
|
|
46294
46409
|
for(var r = 1; r < arguments.length; r++){
|
|
46295
46410
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46296
|
-
r % 2 ?
|
|
46297
|
-
|
|
46298
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46411
|
+
r % 2 ? ownKeys40(Object(t), true).forEach(function(r2) {
|
|
46412
|
+
_defineProperty40(e, r2, t[r2]);
|
|
46413
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys40(Object(t)).forEach(function(r2) {
|
|
46299
46414
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46300
46415
|
});
|
|
46301
46416
|
}
|
|
46302
46417
|
return e;
|
|
46303
46418
|
}
|
|
46304
|
-
function
|
|
46305
|
-
return (r =
|
|
46419
|
+
function _defineProperty40(e, r, t) {
|
|
46420
|
+
return (r = _toPropertyKey40(r)) in e ? Object.defineProperty(e, r, {
|
|
46306
46421
|
value: t,
|
|
46307
46422
|
enumerable: true,
|
|
46308
46423
|
configurable: true,
|
|
46309
46424
|
writable: true
|
|
46310
46425
|
}) : e[r] = t, e;
|
|
46311
46426
|
}
|
|
46312
|
-
function
|
|
46313
|
-
var i =
|
|
46427
|
+
function _toPropertyKey40(t) {
|
|
46428
|
+
var i = _toPrimitive40(t, "string");
|
|
46314
46429
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46315
46430
|
}
|
|
46316
|
-
function
|
|
46431
|
+
function _toPrimitive40(t, r) {
|
|
46317
46432
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46318
46433
|
var e = t[Symbol.toPrimitive];
|
|
46319
46434
|
if (void 0 !== e) {
|
|
@@ -46324,12 +46439,12 @@ function _toPrimitive39(t, r) {
|
|
|
46324
46439
|
return ("string" === r ? String : Number)(t);
|
|
46325
46440
|
}
|
|
46326
46441
|
var Thread = function(props) {
|
|
46327
|
-
var $ =
|
|
46442
|
+
var $ = _c75(4);
|
|
46328
46443
|
var t0;
|
|
46329
46444
|
var t1;
|
|
46330
46445
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46331
|
-
t0 = /* @__PURE__ */
|
|
46332
|
-
t1 = /* @__PURE__ */
|
|
46446
|
+
t0 = /* @__PURE__ */ _jsx78(Messages2, {});
|
|
46447
|
+
t1 = /* @__PURE__ */ _jsx78(MessageForm, {});
|
|
46333
46448
|
$[0] = t0;
|
|
46334
46449
|
$[1] = t1;
|
|
46335
46450
|
} else {
|
|
@@ -46338,7 +46453,7 @@ var Thread = function(props) {
|
|
|
46338
46453
|
}
|
|
46339
46454
|
var t2;
|
|
46340
46455
|
if ($[2] !== props) {
|
|
46341
|
-
t2 = /* @__PURE__ */ _jsxs28(
|
|
46456
|
+
t2 = /* @__PURE__ */ _jsxs28(Root11, _objectSpread40(_objectSpread40({}, props), {}, {
|
|
46342
46457
|
children: [
|
|
46343
46458
|
t0,
|
|
46344
46459
|
t1
|
|
@@ -46351,7 +46466,7 @@ var Thread = function(props) {
|
|
|
46351
46466
|
}
|
|
46352
46467
|
return t2;
|
|
46353
46468
|
};
|
|
46354
|
-
Thread.Root =
|
|
46469
|
+
Thread.Root = Root11;
|
|
46355
46470
|
Thread.Messages = Messages2;
|
|
46356
46471
|
Thread.MessageForm = MessageForm;
|
|
46357
46472
|
// src/hooks/messages/useMessageContext/index.ts
|
|
@@ -46360,7 +46475,7 @@ var useMessageContext = function() {
|
|
|
46360
46475
|
return useContext17(MessageContext);
|
|
46361
46476
|
};
|
|
46362
46477
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46363
|
-
import { c as
|
|
46478
|
+
import { c as _c76 } from "react-compiler-runtime";
|
|
46364
46479
|
import { useMemo as useMemo15 } from "react";
|
|
46365
46480
|
import { useQuery } from "@tanstack/react-query";
|
|
46366
46481
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
@@ -46466,7 +46581,7 @@ var queryOptions2 = function(_ref) {
|
|
|
46466
46581
|
});
|
|
46467
46582
|
};
|
|
46468
46583
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46469
|
-
function
|
|
46584
|
+
function ownKeys41(e, r) {
|
|
46470
46585
|
var t = Object.keys(e);
|
|
46471
46586
|
if (Object.getOwnPropertySymbols) {
|
|
46472
46587
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46476,30 +46591,30 @@ function ownKeys40(e, r) {
|
|
|
46476
46591
|
}
|
|
46477
46592
|
return t;
|
|
46478
46593
|
}
|
|
46479
|
-
function
|
|
46594
|
+
function _objectSpread41(e) {
|
|
46480
46595
|
for(var r = 1; r < arguments.length; r++){
|
|
46481
46596
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46482
|
-
r % 2 ?
|
|
46483
|
-
|
|
46484
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46597
|
+
r % 2 ? ownKeys41(Object(t), true).forEach(function(r2) {
|
|
46598
|
+
_defineProperty41(e, r2, t[r2]);
|
|
46599
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys41(Object(t)).forEach(function(r2) {
|
|
46485
46600
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46486
46601
|
});
|
|
46487
46602
|
}
|
|
46488
46603
|
return e;
|
|
46489
46604
|
}
|
|
46490
|
-
function
|
|
46491
|
-
return (r =
|
|
46605
|
+
function _defineProperty41(e, r, t) {
|
|
46606
|
+
return (r = _toPropertyKey41(r)) in e ? Object.defineProperty(e, r, {
|
|
46492
46607
|
value: t,
|
|
46493
46608
|
enumerable: true,
|
|
46494
46609
|
configurable: true,
|
|
46495
46610
|
writable: true
|
|
46496
46611
|
}) : e[r] = t, e;
|
|
46497
46612
|
}
|
|
46498
|
-
function
|
|
46499
|
-
var i =
|
|
46613
|
+
function _toPropertyKey41(t) {
|
|
46614
|
+
var i = _toPrimitive41(t, "string");
|
|
46500
46615
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46501
46616
|
}
|
|
46502
|
-
function
|
|
46617
|
+
function _toPrimitive41(t, r) {
|
|
46503
46618
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46504
46619
|
var e = t[Symbol.toPrimitive];
|
|
46505
46620
|
if (void 0 !== e) {
|
|
@@ -46510,7 +46625,7 @@ function _toPrimitive40(t, r) {
|
|
|
46510
46625
|
return ("string" === r ? String : Number)(t);
|
|
46511
46626
|
}
|
|
46512
46627
|
var useAssistant = function(t0) {
|
|
46513
|
-
var $ =
|
|
46628
|
+
var $ = _c76(6);
|
|
46514
46629
|
var assistantId = t0.assistantId;
|
|
46515
46630
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46516
46631
|
var t1;
|
|
@@ -46530,7 +46645,7 @@ var useAssistant = function(t0) {
|
|
|
46530
46645
|
var t3 = props.data ? props.data.assistant : null;
|
|
46531
46646
|
var t4;
|
|
46532
46647
|
if ($[3] !== props || $[4] !== t3) {
|
|
46533
|
-
t4 =
|
|
46648
|
+
t4 = _objectSpread41(_objectSpread41({}, props), {}, {
|
|
46534
46649
|
assistant: t3
|
|
46535
46650
|
});
|
|
46536
46651
|
$[3] = props;
|
|
@@ -46543,11 +46658,11 @@ var useAssistant = function(t0) {
|
|
|
46543
46658
|
return t2;
|
|
46544
46659
|
};
|
|
46545
46660
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46546
|
-
import { c as
|
|
46661
|
+
import { c as _c83 } from "react-compiler-runtime";
|
|
46547
46662
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46548
|
-
import { c as
|
|
46663
|
+
import { c as _c78 } from "react-compiler-runtime";
|
|
46549
46664
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46550
|
-
import { c as
|
|
46665
|
+
import { c as _c77 } from "react-compiler-runtime";
|
|
46551
46666
|
import { useState as useState6 } from "react";
|
|
46552
46667
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46553
46668
|
import { createContext as createContext12 } from "react";
|
|
@@ -46561,9 +46676,9 @@ var useThreadDialogContext = function() {
|
|
|
46561
46676
|
return useContext18(ThreadDialogContext);
|
|
46562
46677
|
};
|
|
46563
46678
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46564
|
-
import { jsx as
|
|
46679
|
+
import { jsx as _jsx79 } from "react/jsx-runtime";
|
|
46565
46680
|
var Provider4 = function(t0) {
|
|
46566
|
-
var $ =
|
|
46681
|
+
var $ = _c77(5);
|
|
46567
46682
|
var children = t0.children;
|
|
46568
46683
|
var threadDialogContext = useThreadDialogContext();
|
|
46569
46684
|
var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
|
|
@@ -46580,7 +46695,7 @@ var Provider4 = function(t0) {
|
|
|
46580
46695
|
}
|
|
46581
46696
|
var t2;
|
|
46582
46697
|
if ($[2] !== children || $[3] !== t1) {
|
|
46583
|
-
t2 = /* @__PURE__ */
|
|
46698
|
+
t2 = /* @__PURE__ */ _jsx79(ThreadDialogContext.Provider, {
|
|
46584
46699
|
value: t1,
|
|
46585
46700
|
children: children
|
|
46586
46701
|
});
|
|
@@ -46593,13 +46708,13 @@ var Provider4 = function(t0) {
|
|
|
46593
46708
|
return t2;
|
|
46594
46709
|
};
|
|
46595
46710
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46596
|
-
import { jsx as
|
|
46597
|
-
var
|
|
46598
|
-
var $ =
|
|
46711
|
+
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
46712
|
+
var Root12 = function(t0) {
|
|
46713
|
+
var $ = _c78(2);
|
|
46599
46714
|
var children = t0.children;
|
|
46600
46715
|
var t1;
|
|
46601
46716
|
if ($[0] !== children) {
|
|
46602
|
-
t1 = /* @__PURE__ */
|
|
46717
|
+
t1 = /* @__PURE__ */ _jsx80(Provider4, {
|
|
46603
46718
|
children: children
|
|
46604
46719
|
});
|
|
46605
46720
|
$[0] = children;
|
|
@@ -46610,14 +46725,14 @@ var Root11 = function(t0) {
|
|
|
46610
46725
|
return t1;
|
|
46611
46726
|
};
|
|
46612
46727
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46613
|
-
import { c as
|
|
46614
|
-
import { Flex as
|
|
46728
|
+
import { c as _c80 } from "react-compiler-runtime";
|
|
46729
|
+
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
46615
46730
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46616
|
-
import { c as
|
|
46731
|
+
import { c as _c79 } from "react-compiler-runtime";
|
|
46617
46732
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46618
46733
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46619
|
-
import { jsx as
|
|
46620
|
-
function
|
|
46734
|
+
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
46735
|
+
function ownKeys42(e, r) {
|
|
46621
46736
|
var t = Object.keys(e);
|
|
46622
46737
|
if (Object.getOwnPropertySymbols) {
|
|
46623
46738
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46627,30 +46742,30 @@ function ownKeys41(e, r) {
|
|
|
46627
46742
|
}
|
|
46628
46743
|
return t;
|
|
46629
46744
|
}
|
|
46630
|
-
function
|
|
46745
|
+
function _objectSpread42(e) {
|
|
46631
46746
|
for(var r = 1; r < arguments.length; r++){
|
|
46632
46747
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46633
|
-
r % 2 ?
|
|
46634
|
-
|
|
46635
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46748
|
+
r % 2 ? ownKeys42(Object(t), true).forEach(function(r2) {
|
|
46749
|
+
_defineProperty42(e, r2, t[r2]);
|
|
46750
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys42(Object(t)).forEach(function(r2) {
|
|
46636
46751
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46637
46752
|
});
|
|
46638
46753
|
}
|
|
46639
46754
|
return e;
|
|
46640
46755
|
}
|
|
46641
|
-
function
|
|
46642
|
-
return (r =
|
|
46756
|
+
function _defineProperty42(e, r, t) {
|
|
46757
|
+
return (r = _toPropertyKey42(r)) in e ? Object.defineProperty(e, r, {
|
|
46643
46758
|
value: t,
|
|
46644
46759
|
enumerable: true,
|
|
46645
46760
|
configurable: true,
|
|
46646
46761
|
writable: true
|
|
46647
46762
|
}) : e[r] = t, e;
|
|
46648
46763
|
}
|
|
46649
|
-
function
|
|
46650
|
-
var i =
|
|
46764
|
+
function _toPropertyKey42(t) {
|
|
46765
|
+
var i = _toPrimitive42(t, "string");
|
|
46651
46766
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46652
46767
|
}
|
|
46653
|
-
function
|
|
46768
|
+
function _toPrimitive42(t, r) {
|
|
46654
46769
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46655
46770
|
var e = t[Symbol.toPrimitive];
|
|
46656
46771
|
if (void 0 !== e) {
|
|
@@ -46661,17 +46776,17 @@ function _toPrimitive41(t, r) {
|
|
|
46661
46776
|
return ("string" === r ? String : Number)(t);
|
|
46662
46777
|
}
|
|
46663
46778
|
var Button4 = function(props) {
|
|
46664
|
-
var $ =
|
|
46779
|
+
var $ = _c79(3);
|
|
46665
46780
|
var t0;
|
|
46666
46781
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46667
|
-
t0 = /* @__PURE__ */
|
|
46782
|
+
t0 = /* @__PURE__ */ _jsx81(ChatBubbleIcon, {});
|
|
46668
46783
|
$[0] = t0;
|
|
46669
46784
|
} else {
|
|
46670
46785
|
t0 = $[0];
|
|
46671
46786
|
}
|
|
46672
46787
|
var t1;
|
|
46673
46788
|
if ($[1] !== props) {
|
|
46674
|
-
t1 = /* @__PURE__ */
|
|
46789
|
+
t1 = /* @__PURE__ */ _jsx81(IconButton8, _objectSpread42(_objectSpread42({
|
|
46675
46790
|
size: "4",
|
|
46676
46791
|
radius: "full"
|
|
46677
46792
|
}, props), {}, {
|
|
@@ -46685,8 +46800,8 @@ var Button4 = function(props) {
|
|
|
46685
46800
|
return t1;
|
|
46686
46801
|
};
|
|
46687
46802
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46688
|
-
import { jsx as
|
|
46689
|
-
function
|
|
46803
|
+
import { jsx as _jsx82 } from "react/jsx-runtime";
|
|
46804
|
+
function ownKeys43(e, r) {
|
|
46690
46805
|
var t = Object.keys(e);
|
|
46691
46806
|
if (Object.getOwnPropertySymbols) {
|
|
46692
46807
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46696,30 +46811,30 @@ function ownKeys42(e, r) {
|
|
|
46696
46811
|
}
|
|
46697
46812
|
return t;
|
|
46698
46813
|
}
|
|
46699
|
-
function
|
|
46814
|
+
function _objectSpread43(e) {
|
|
46700
46815
|
for(var r = 1; r < arguments.length; r++){
|
|
46701
46816
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46702
|
-
r % 2 ?
|
|
46703
|
-
|
|
46704
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
46817
|
+
r % 2 ? ownKeys43(Object(t), true).forEach(function(r2) {
|
|
46818
|
+
_defineProperty43(e, r2, t[r2]);
|
|
46819
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys43(Object(t)).forEach(function(r2) {
|
|
46705
46820
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46706
46821
|
});
|
|
46707
46822
|
}
|
|
46708
46823
|
return e;
|
|
46709
46824
|
}
|
|
46710
|
-
function
|
|
46711
|
-
return (r =
|
|
46825
|
+
function _defineProperty43(e, r, t) {
|
|
46826
|
+
return (r = _toPropertyKey43(r)) in e ? Object.defineProperty(e, r, {
|
|
46712
46827
|
value: t,
|
|
46713
46828
|
enumerable: true,
|
|
46714
46829
|
configurable: true,
|
|
46715
46830
|
writable: true
|
|
46716
46831
|
}) : e[r] = t, e;
|
|
46717
46832
|
}
|
|
46718
|
-
function
|
|
46719
|
-
var i =
|
|
46833
|
+
function _toPropertyKey43(t) {
|
|
46834
|
+
var i = _toPrimitive43(t, "string");
|
|
46720
46835
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46721
46836
|
}
|
|
46722
|
-
function
|
|
46837
|
+
function _toPrimitive43(t, r) {
|
|
46723
46838
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46724
46839
|
var e = t[Symbol.toPrimitive];
|
|
46725
46840
|
if (void 0 !== e) {
|
|
@@ -46729,8 +46844,8 @@ function _toPrimitive42(t, r) {
|
|
|
46729
46844
|
}
|
|
46730
46845
|
return ("string" === r ? String : Number)(t);
|
|
46731
46846
|
}
|
|
46732
|
-
var
|
|
46733
|
-
var $ =
|
|
46847
|
+
var Root13 = function(t0) {
|
|
46848
|
+
var $ = _c80(14);
|
|
46734
46849
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46735
46850
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46736
46851
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -46765,7 +46880,7 @@ var Root12 = function(t0) {
|
|
|
46765
46880
|
}
|
|
46766
46881
|
var t5;
|
|
46767
46882
|
if ($[6] !== t4) {
|
|
46768
|
-
t5 =
|
|
46883
|
+
t5 = _objectSpread43({
|
|
46769
46884
|
zIndex: 9999999999
|
|
46770
46885
|
}, t4);
|
|
46771
46886
|
$[6] = t4;
|
|
@@ -46775,7 +46890,7 @@ var Root12 = function(t0) {
|
|
|
46775
46890
|
}
|
|
46776
46891
|
var t6;
|
|
46777
46892
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
46778
|
-
t6 = /* @__PURE__ */
|
|
46893
|
+
t6 = /* @__PURE__ */ _jsx82(Flex26, {
|
|
46779
46894
|
display: t2,
|
|
46780
46895
|
onClick: t3,
|
|
46781
46896
|
direction: "column",
|
|
@@ -46801,17 +46916,17 @@ var Root12 = function(t0) {
|
|
|
46801
46916
|
return t6;
|
|
46802
46917
|
};
|
|
46803
46918
|
var Trigger = function(args) {
|
|
46804
|
-
var $ =
|
|
46919
|
+
var $ = _c80(3);
|
|
46805
46920
|
var t0;
|
|
46806
46921
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46807
|
-
t0 = /* @__PURE__ */
|
|
46922
|
+
t0 = /* @__PURE__ */ _jsx82(Button4, {});
|
|
46808
46923
|
$[0] = t0;
|
|
46809
46924
|
} else {
|
|
46810
46925
|
t0 = $[0];
|
|
46811
46926
|
}
|
|
46812
46927
|
var t1;
|
|
46813
46928
|
if ($[1] !== args) {
|
|
46814
|
-
t1 = /* @__PURE__ */
|
|
46929
|
+
t1 = /* @__PURE__ */ _jsx82(Root13, _objectSpread43(_objectSpread43({}, args), {}, {
|
|
46815
46930
|
children: t0
|
|
46816
46931
|
}));
|
|
46817
46932
|
$[1] = args;
|
|
@@ -46821,21 +46936,21 @@ var Trigger = function(args) {
|
|
|
46821
46936
|
}
|
|
46822
46937
|
return t1;
|
|
46823
46938
|
};
|
|
46824
|
-
Trigger.Root =
|
|
46939
|
+
Trigger.Root = Root13;
|
|
46825
46940
|
Trigger.Button = Button4;
|
|
46826
46941
|
function _temp6(prev) {
|
|
46827
46942
|
return !prev;
|
|
46828
46943
|
}
|
|
46829
46944
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46830
|
-
import { c as
|
|
46831
|
-
import { Card as Card4, Inset as Inset2, Flex as
|
|
46945
|
+
import { c as _c82 } from "react-compiler-runtime";
|
|
46946
|
+
import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
|
|
46832
46947
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
46833
|
-
import { c as
|
|
46948
|
+
import { c as _c81 } from "react-compiler-runtime";
|
|
46834
46949
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
46835
|
-
import { IconButton as IconButton9, Flex as
|
|
46836
|
-
import { jsx as
|
|
46950
|
+
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
46951
|
+
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
46837
46952
|
var Close = function() {
|
|
46838
|
-
var $ =
|
|
46953
|
+
var $ = _c81(9);
|
|
46839
46954
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46840
46955
|
var t0 = isOpen ? "flex" : "none";
|
|
46841
46956
|
var t1;
|
|
@@ -46870,10 +46985,10 @@ var Close = function() {
|
|
|
46870
46985
|
}
|
|
46871
46986
|
var t4;
|
|
46872
46987
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46873
|
-
t4 = /* @__PURE__ */
|
|
46988
|
+
t4 = /* @__PURE__ */ _jsx83(IconButton9, {
|
|
46874
46989
|
size: "2",
|
|
46875
46990
|
variant: "soft",
|
|
46876
|
-
children: /* @__PURE__ */
|
|
46991
|
+
children: /* @__PURE__ */ _jsx83(Cross1Icon, {})
|
|
46877
46992
|
});
|
|
46878
46993
|
$[5] = t4;
|
|
46879
46994
|
} else {
|
|
@@ -46881,7 +46996,7 @@ var Close = function() {
|
|
|
46881
46996
|
}
|
|
46882
46997
|
var t5;
|
|
46883
46998
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
46884
|
-
t5 = /* @__PURE__ */
|
|
46999
|
+
t5 = /* @__PURE__ */ _jsx83(Flex27, {
|
|
46885
47000
|
display: t1,
|
|
46886
47001
|
onClick: t2,
|
|
46887
47002
|
direction: "column",
|
|
@@ -46906,8 +47021,8 @@ function _temp7(prev) {
|
|
|
46906
47021
|
return !prev;
|
|
46907
47022
|
}
|
|
46908
47023
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46909
|
-
import { jsx as
|
|
46910
|
-
function
|
|
47024
|
+
import { jsx as _jsx84, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
47025
|
+
function ownKeys44(e, r) {
|
|
46911
47026
|
var t = Object.keys(e);
|
|
46912
47027
|
if (Object.getOwnPropertySymbols) {
|
|
46913
47028
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -46917,30 +47032,30 @@ function ownKeys43(e, r) {
|
|
|
46917
47032
|
}
|
|
46918
47033
|
return t;
|
|
46919
47034
|
}
|
|
46920
|
-
function
|
|
47035
|
+
function _objectSpread44(e) {
|
|
46921
47036
|
for(var r = 1; r < arguments.length; r++){
|
|
46922
47037
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
46923
|
-
r % 2 ?
|
|
46924
|
-
|
|
46925
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47038
|
+
r % 2 ? ownKeys44(Object(t), true).forEach(function(r2) {
|
|
47039
|
+
_defineProperty44(e, r2, t[r2]);
|
|
47040
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys44(Object(t)).forEach(function(r2) {
|
|
46926
47041
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46927
47042
|
});
|
|
46928
47043
|
}
|
|
46929
47044
|
return e;
|
|
46930
47045
|
}
|
|
46931
|
-
function
|
|
46932
|
-
return (r =
|
|
47046
|
+
function _defineProperty44(e, r, t) {
|
|
47047
|
+
return (r = _toPropertyKey44(r)) in e ? Object.defineProperty(e, r, {
|
|
46933
47048
|
value: t,
|
|
46934
47049
|
enumerable: true,
|
|
46935
47050
|
configurable: true,
|
|
46936
47051
|
writable: true
|
|
46937
47052
|
}) : e[r] = t, e;
|
|
46938
47053
|
}
|
|
46939
|
-
function
|
|
46940
|
-
var i =
|
|
47054
|
+
function _toPropertyKey44(t) {
|
|
47055
|
+
var i = _toPrimitive44(t, "string");
|
|
46941
47056
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46942
47057
|
}
|
|
46943
|
-
function
|
|
47058
|
+
function _toPrimitive44(t, r) {
|
|
46944
47059
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46945
47060
|
var e = t[Symbol.toPrimitive];
|
|
46946
47061
|
if (void 0 !== e) {
|
|
@@ -46950,8 +47065,8 @@ function _toPrimitive43(t, r) {
|
|
|
46950
47065
|
}
|
|
46951
47066
|
return ("string" === r ? String : Number)(t);
|
|
46952
47067
|
}
|
|
46953
|
-
var
|
|
46954
|
-
var $ =
|
|
47068
|
+
var Root14 = function(t0) {
|
|
47069
|
+
var $ = _c82(19);
|
|
46955
47070
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
46956
47071
|
var isOpen = useThreadDialogContext().isOpen;
|
|
46957
47072
|
if (!isOpen) {
|
|
@@ -47000,7 +47115,7 @@ var Root13 = function(t0) {
|
|
|
47000
47115
|
}
|
|
47001
47116
|
var t6;
|
|
47002
47117
|
if ($[5] !== style) {
|
|
47003
|
-
t6 =
|
|
47118
|
+
t6 = _objectSpread44({
|
|
47004
47119
|
zIndex: 9999999999
|
|
47005
47120
|
}, style);
|
|
47006
47121
|
$[5] = style;
|
|
@@ -47038,7 +47153,7 @@ var Root13 = function(t0) {
|
|
|
47038
47153
|
}
|
|
47039
47154
|
var t10;
|
|
47040
47155
|
if ($[10] !== children) {
|
|
47041
|
-
t10 = /* @__PURE__ */
|
|
47156
|
+
t10 = /* @__PURE__ */ _jsx84(Inset2, {
|
|
47042
47157
|
clip: "padding-box",
|
|
47043
47158
|
side: "all",
|
|
47044
47159
|
pb: "current",
|
|
@@ -47052,7 +47167,7 @@ var Root13 = function(t0) {
|
|
|
47052
47167
|
}
|
|
47053
47168
|
var t11;
|
|
47054
47169
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47055
|
-
t11 = /* @__PURE__ */
|
|
47170
|
+
t11 = /* @__PURE__ */ _jsx84(Close, {});
|
|
47056
47171
|
$[12] = t11;
|
|
47057
47172
|
} else {
|
|
47058
47173
|
t11 = $[12];
|
|
@@ -47074,7 +47189,7 @@ var Root13 = function(t0) {
|
|
|
47074
47189
|
}
|
|
47075
47190
|
var t13;
|
|
47076
47191
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
47077
|
-
t13 = /* @__PURE__ */
|
|
47192
|
+
t13 = /* @__PURE__ */ _jsx84(Flex28, {
|
|
47078
47193
|
className: className,
|
|
47079
47194
|
direction: "column",
|
|
47080
47195
|
justify: "end",
|
|
@@ -47098,11 +47213,11 @@ var Root13 = function(t0) {
|
|
|
47098
47213
|
return t13;
|
|
47099
47214
|
};
|
|
47100
47215
|
var Messages3 = function(t0) {
|
|
47101
|
-
var $ =
|
|
47216
|
+
var $ = _c82(5);
|
|
47102
47217
|
var className = t0.className, style = t0.style;
|
|
47103
47218
|
var t1;
|
|
47104
47219
|
if ($[0] !== style) {
|
|
47105
|
-
t1 =
|
|
47220
|
+
t1 = _objectSpread44({
|
|
47106
47221
|
paddingTop: "var(--space-5)",
|
|
47107
47222
|
paddingRight: "var(--space-5)",
|
|
47108
47223
|
paddingLeft: "var(--space-5)"
|
|
@@ -47114,7 +47229,7 @@ var Messages3 = function(t0) {
|
|
|
47114
47229
|
}
|
|
47115
47230
|
var t2;
|
|
47116
47231
|
if ($[2] !== className || $[3] !== t1) {
|
|
47117
|
-
t2 = /* @__PURE__ */
|
|
47232
|
+
t2 = /* @__PURE__ */ _jsx84(Thread.Messages, {
|
|
47118
47233
|
className: className,
|
|
47119
47234
|
style: t1
|
|
47120
47235
|
});
|
|
@@ -47127,11 +47242,11 @@ var Messages3 = function(t0) {
|
|
|
47127
47242
|
return t2;
|
|
47128
47243
|
};
|
|
47129
47244
|
var FormContainer = function(t0) {
|
|
47130
|
-
var $ =
|
|
47245
|
+
var $ = _c82(4);
|
|
47131
47246
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47132
47247
|
var t1;
|
|
47133
47248
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
47134
|
-
t1 = /* @__PURE__ */
|
|
47249
|
+
t1 = /* @__PURE__ */ _jsx84(Flex28, {
|
|
47135
47250
|
direction: "column",
|
|
47136
47251
|
pl: "5",
|
|
47137
47252
|
pr: "5",
|
|
@@ -47151,10 +47266,10 @@ var FormContainer = function(t0) {
|
|
|
47151
47266
|
return t1;
|
|
47152
47267
|
};
|
|
47153
47268
|
var Content7 = function(props) {
|
|
47154
|
-
var $ =
|
|
47269
|
+
var $ = _c82(4);
|
|
47155
47270
|
var t0;
|
|
47156
47271
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47157
|
-
t0 = /* @__PURE__ */
|
|
47272
|
+
t0 = /* @__PURE__ */ _jsx84(Messages3, {});
|
|
47158
47273
|
$[0] = t0;
|
|
47159
47274
|
} else {
|
|
47160
47275
|
t0 = $[0];
|
|
@@ -47164,8 +47279,8 @@ var Content7 = function(props) {
|
|
|
47164
47279
|
t1 = /* @__PURE__ */ _jsxs29(Thread.Root, {
|
|
47165
47280
|
children: [
|
|
47166
47281
|
t0,
|
|
47167
|
-
/* @__PURE__ */
|
|
47168
|
-
children: /* @__PURE__ */
|
|
47282
|
+
/* @__PURE__ */ _jsx84(FormContainer, {
|
|
47283
|
+
children: /* @__PURE__ */ _jsx84(Thread.MessageForm, {})
|
|
47169
47284
|
})
|
|
47170
47285
|
]
|
|
47171
47286
|
});
|
|
@@ -47175,7 +47290,7 @@ var Content7 = function(props) {
|
|
|
47175
47290
|
}
|
|
47176
47291
|
var t2;
|
|
47177
47292
|
if ($[2] !== props) {
|
|
47178
|
-
t2 = /* @__PURE__ */
|
|
47293
|
+
t2 = /* @__PURE__ */ _jsx84(Root14, _objectSpread44(_objectSpread44({}, props), {}, {
|
|
47179
47294
|
children: t1
|
|
47180
47295
|
}));
|
|
47181
47296
|
$[2] = props;
|
|
@@ -47185,19 +47300,19 @@ var Content7 = function(props) {
|
|
|
47185
47300
|
}
|
|
47186
47301
|
return t2;
|
|
47187
47302
|
};
|
|
47188
|
-
Content7.Root =
|
|
47303
|
+
Content7.Root = Root14;
|
|
47189
47304
|
Content7.Messages = Messages3;
|
|
47190
47305
|
Content7.FormContainer = FormContainer;
|
|
47191
47306
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47192
|
-
import { jsx as
|
|
47307
|
+
import { jsx as _jsx85, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
47193
47308
|
var ThreadDialog = function() {
|
|
47194
|
-
var $ =
|
|
47309
|
+
var $ = _c83(1);
|
|
47195
47310
|
var t0;
|
|
47196
47311
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47197
|
-
t0 = /* @__PURE__ */ _jsxs30(
|
|
47312
|
+
t0 = /* @__PURE__ */ _jsxs30(Root12, {
|
|
47198
47313
|
children: [
|
|
47199
|
-
/* @__PURE__ */
|
|
47200
|
-
/* @__PURE__ */
|
|
47314
|
+
/* @__PURE__ */ _jsx85(Content7, {}),
|
|
47315
|
+
/* @__PURE__ */ _jsx85(Trigger, {})
|
|
47201
47316
|
]
|
|
47202
47317
|
});
|
|
47203
47318
|
$[0] = t0;
|
|
@@ -47206,16 +47321,16 @@ var ThreadDialog = function() {
|
|
|
47206
47321
|
}
|
|
47207
47322
|
return t0;
|
|
47208
47323
|
};
|
|
47209
|
-
ThreadDialog.Root =
|
|
47324
|
+
ThreadDialog.Root = Root12;
|
|
47210
47325
|
ThreadDialog.Trigger = Trigger;
|
|
47211
47326
|
ThreadDialog.Content = Content7;
|
|
47212
47327
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47213
|
-
import { c as
|
|
47328
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
47214
47329
|
// src/components/threads/AudioThread/index.tsx
|
|
47215
|
-
import { c as
|
|
47330
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
47216
47331
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47217
|
-
import { c as
|
|
47218
|
-
import { Flex as
|
|
47332
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
47333
|
+
import { Flex as Flex29 } from "@radix-ui/themes";
|
|
47219
47334
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47220
47335
|
import { createContext as createContext13 } from "react";
|
|
47221
47336
|
var AudioThreadContext = /* @__PURE__ */ createContext13({
|
|
@@ -47227,12 +47342,12 @@ var useAudioThreadContext = function() {
|
|
|
47227
47342
|
return useContext19(AudioThreadContext);
|
|
47228
47343
|
};
|
|
47229
47344
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47230
|
-
import { c as
|
|
47345
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
47231
47346
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
47232
|
-
import { c as
|
|
47347
|
+
import { c as _c87 } from "react-compiler-runtime";
|
|
47233
47348
|
import { useMemo as useMemo18 } from "react";
|
|
47234
47349
|
// src/hooks/misc/usePermission/index.ts
|
|
47235
|
-
import { c as
|
|
47350
|
+
import { c as _c84 } from "react-compiler-runtime";
|
|
47236
47351
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
47237
47352
|
// src/hooks/misc/usePermission/util.ts
|
|
47238
47353
|
var noop = function() {};
|
|
@@ -47256,7 +47371,7 @@ function off(obj) {
|
|
|
47256
47371
|
}
|
|
47257
47372
|
// src/hooks/misc/usePermission/index.ts
|
|
47258
47373
|
var usePermission = function(permissionDesc) {
|
|
47259
|
-
var $ =
|
|
47374
|
+
var $ = _c84(3);
|
|
47260
47375
|
var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
|
|
47261
47376
|
var t0;
|
|
47262
47377
|
var t1;
|
|
@@ -47305,10 +47420,10 @@ import { useAudioCapture } from "use-audio-capture";
|
|
|
47305
47420
|
import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
|
|
47306
47421
|
import { useAudioPlayer } from "react-use-audio-player";
|
|
47307
47422
|
// src/hooks/misc/useInterval.ts
|
|
47308
|
-
import { c as
|
|
47423
|
+
import { c as _c85 } from "react-compiler-runtime";
|
|
47309
47424
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
47310
47425
|
var useInterval = function(callback, delay) {
|
|
47311
|
-
var $ =
|
|
47426
|
+
var $ = _c85(5);
|
|
47312
47427
|
var savedCallback = useRef6(_temp8);
|
|
47313
47428
|
var t0;
|
|
47314
47429
|
if ($[0] !== callback) {
|
|
@@ -47348,7 +47463,7 @@ var useInterval = function(callback, delay) {
|
|
|
47348
47463
|
};
|
|
47349
47464
|
function _temp8() {}
|
|
47350
47465
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
47351
|
-
function
|
|
47466
|
+
function ownKeys45(e, r) {
|
|
47352
47467
|
var t = Object.keys(e);
|
|
47353
47468
|
if (Object.getOwnPropertySymbols) {
|
|
47354
47469
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -47358,30 +47473,30 @@ function ownKeys44(e, r) {
|
|
|
47358
47473
|
}
|
|
47359
47474
|
return t;
|
|
47360
47475
|
}
|
|
47361
|
-
function
|
|
47476
|
+
function _objectSpread45(e) {
|
|
47362
47477
|
for(var r = 1; r < arguments.length; r++){
|
|
47363
47478
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
47364
|
-
r % 2 ?
|
|
47365
|
-
|
|
47366
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47479
|
+
r % 2 ? ownKeys45(Object(t), true).forEach(function(r2) {
|
|
47480
|
+
_defineProperty45(e, r2, t[r2]);
|
|
47481
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys45(Object(t)).forEach(function(r2) {
|
|
47367
47482
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
47368
47483
|
});
|
|
47369
47484
|
}
|
|
47370
47485
|
return e;
|
|
47371
47486
|
}
|
|
47372
|
-
function
|
|
47373
|
-
return (r =
|
|
47487
|
+
function _defineProperty45(e, r, t) {
|
|
47488
|
+
return (r = _toPropertyKey45(r)) in e ? Object.defineProperty(e, r, {
|
|
47374
47489
|
value: t,
|
|
47375
47490
|
enumerable: true,
|
|
47376
47491
|
configurable: true,
|
|
47377
47492
|
writable: true
|
|
47378
47493
|
}) : e[r] = t, e;
|
|
47379
47494
|
}
|
|
47380
|
-
function
|
|
47381
|
-
var i =
|
|
47495
|
+
function _toPropertyKey45(t) {
|
|
47496
|
+
var i = _toPrimitive45(t, "string");
|
|
47382
47497
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
47383
47498
|
}
|
|
47384
|
-
function
|
|
47499
|
+
function _toPrimitive45(t, r) {
|
|
47385
47500
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
47386
47501
|
var e = t[Symbol.toPrimitive];
|
|
47387
47502
|
if (void 0 !== e) {
|
|
@@ -47555,13 +47670,13 @@ var useRecorder = function(_ref) {
|
|
|
47555
47670
|
if (!silenceStart.isBefore(dayjs3().subtract(1.5, "second"))) return;
|
|
47556
47671
|
audioCaptureProps.stop();
|
|
47557
47672
|
}, 300);
|
|
47558
|
-
return
|
|
47673
|
+
return _objectSpread45(_objectSpread45({}, audioCaptureProps), {}, {
|
|
47559
47674
|
status: status,
|
|
47560
47675
|
visualizationAnalyser: visualizationAnalyser
|
|
47561
47676
|
});
|
|
47562
47677
|
};
|
|
47563
47678
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47564
|
-
import { c as
|
|
47679
|
+
import { c as _c86 } from "react-compiler-runtime";
|
|
47565
47680
|
import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
|
|
47566
47681
|
import nlp from "compromise";
|
|
47567
47682
|
import { Howler } from "howler";
|
|
@@ -47588,7 +47703,7 @@ var unsupportedNames = [
|
|
|
47588
47703
|
];
|
|
47589
47704
|
var isHtmlAudioSupported = !unsupportedNames.includes(((_detect = detect()) === null || _detect === void 0 ? void 0 : _detect.name) || "");
|
|
47590
47705
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47591
|
-
function
|
|
47706
|
+
function ownKeys46(e, r) {
|
|
47592
47707
|
var t = Object.keys(e);
|
|
47593
47708
|
if (Object.getOwnPropertySymbols) {
|
|
47594
47709
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -47598,30 +47713,30 @@ function ownKeys45(e, r) {
|
|
|
47598
47713
|
}
|
|
47599
47714
|
return t;
|
|
47600
47715
|
}
|
|
47601
|
-
function
|
|
47716
|
+
function _objectSpread46(e) {
|
|
47602
47717
|
for(var r = 1; r < arguments.length; r++){
|
|
47603
47718
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
47604
|
-
r % 2 ?
|
|
47605
|
-
|
|
47606
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
47719
|
+
r % 2 ? ownKeys46(Object(t), true).forEach(function(r2) {
|
|
47720
|
+
_defineProperty46(e, r2, t[r2]);
|
|
47721
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys46(Object(t)).forEach(function(r2) {
|
|
47607
47722
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
47608
47723
|
});
|
|
47609
47724
|
}
|
|
47610
47725
|
return e;
|
|
47611
47726
|
}
|
|
47612
|
-
function
|
|
47613
|
-
return (r =
|
|
47727
|
+
function _defineProperty46(e, r, t) {
|
|
47728
|
+
return (r = _toPropertyKey46(r)) in e ? Object.defineProperty(e, r, {
|
|
47614
47729
|
value: t,
|
|
47615
47730
|
enumerable: true,
|
|
47616
47731
|
configurable: true,
|
|
47617
47732
|
writable: true
|
|
47618
47733
|
}) : e[r] = t, e;
|
|
47619
47734
|
}
|
|
47620
|
-
function
|
|
47621
|
-
var i =
|
|
47735
|
+
function _toPropertyKey46(t) {
|
|
47736
|
+
var i = _toPrimitive46(t, "string");
|
|
47622
47737
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
47623
47738
|
}
|
|
47624
|
-
function
|
|
47739
|
+
function _toPrimitive46(t, r) {
|
|
47625
47740
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
47626
47741
|
var e = t[Symbol.toPrimitive];
|
|
47627
47742
|
if (void 0 !== e) {
|
|
@@ -47644,7 +47759,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47644
47759
|
};
|
|
47645
47760
|
var useMessageAudio = function(t0) {
|
|
47646
47761
|
var _latestMessageProps$l;
|
|
47647
|
-
var $ =
|
|
47762
|
+
var $ = _c86(49);
|
|
47648
47763
|
var _onEnd = t0.onEnd, passedPlay = t0.play;
|
|
47649
47764
|
var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
|
|
47650
47765
|
var t1;
|
|
@@ -47751,7 +47866,7 @@ var useMessageAudio = function(t0) {
|
|
|
47751
47866
|
if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext || $[16] !== unplayedMessageSentences) {
|
|
47752
47867
|
t4 = function(t52) {
|
|
47753
47868
|
var input_0 = t52.input, onPlay = t52.onPlay, onStop = t52.onStop, onEnd_0 = t52.onEnd;
|
|
47754
|
-
var searchParams = new URLSearchParams(
|
|
47869
|
+
var searchParams = new URLSearchParams(_objectSpread46({
|
|
47755
47870
|
input: input_0
|
|
47756
47871
|
}, superinterfaceContext.variables));
|
|
47757
47872
|
audioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(searchParams), {
|
|
@@ -47769,7 +47884,7 @@ var useMessageAudio = function(t0) {
|
|
|
47769
47884
|
if (!isNextFullSentence) {
|
|
47770
47885
|
return;
|
|
47771
47886
|
}
|
|
47772
|
-
var nextSearchParams = new URLSearchParams(
|
|
47887
|
+
var nextSearchParams = new URLSearchParams(_objectSpread46({
|
|
47773
47888
|
input: nextUnplayedMessageSentence.sentence
|
|
47774
47889
|
}, superinterfaceContext.variables));
|
|
47775
47890
|
nextAudioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(nextSearchParams), {
|
|
@@ -47962,7 +48077,7 @@ var useMessageAudio = function(t0) {
|
|
|
47962
48077
|
var isPending = t12;
|
|
47963
48078
|
var t13;
|
|
47964
48079
|
if ($[44] !== audioPlayer || $[45] !== isAudioPlayed || $[46] !== isPending || $[47] !== visualizationAnalyser) {
|
|
47965
|
-
t13 =
|
|
48080
|
+
t13 = _objectSpread46(_objectSpread46({
|
|
47966
48081
|
isPending: isPending,
|
|
47967
48082
|
isAudioPlayed: isAudioPlayed
|
|
47968
48083
|
}, audioPlayer), {}, {
|
|
@@ -48024,7 +48139,7 @@ function _asyncToGenerator11(n) {
|
|
|
48024
48139
|
};
|
|
48025
48140
|
}
|
|
48026
48141
|
var useTtsAudioRuntime = function(t0) {
|
|
48027
|
-
var $ =
|
|
48142
|
+
var $ = _c87(30);
|
|
48028
48143
|
var play = t0.play;
|
|
48029
48144
|
var addToast = useToasts().addToast;
|
|
48030
48145
|
var queryClient = useQueryClient6();
|
|
@@ -48198,9 +48313,9 @@ function _temp24() {
|
|
|
48198
48313
|
return _temp24.apply(this, arguments);
|
|
48199
48314
|
}
|
|
48200
48315
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
48201
|
-
import { jsx as
|
|
48316
|
+
import { jsx as _jsx86 } from "react/jsx-runtime";
|
|
48202
48317
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
48203
|
-
var $ =
|
|
48318
|
+
var $ = _c88(7);
|
|
48204
48319
|
var children = t0.children, play = t0.play;
|
|
48205
48320
|
var t1;
|
|
48206
48321
|
if ($[0] !== play) {
|
|
@@ -48225,7 +48340,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
48225
48340
|
}
|
|
48226
48341
|
var t3;
|
|
48227
48342
|
if ($[4] !== children || $[5] !== t2) {
|
|
48228
|
-
t3 = /* @__PURE__ */
|
|
48343
|
+
t3 = /* @__PURE__ */ _jsx86(AudioThreadContext.Provider, {
|
|
48229
48344
|
value: t2,
|
|
48230
48345
|
children: children
|
|
48231
48346
|
});
|
|
@@ -48238,7 +48353,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
48238
48353
|
return t3;
|
|
48239
48354
|
};
|
|
48240
48355
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
48241
|
-
import { jsx as
|
|
48356
|
+
import { jsx as _jsx87 } from "react/jsx-runtime";
|
|
48242
48357
|
var _excluded5 = [
|
|
48243
48358
|
"children"
|
|
48244
48359
|
];
|
|
@@ -48248,7 +48363,7 @@ var _excluded22 = [
|
|
|
48248
48363
|
"className",
|
|
48249
48364
|
"style"
|
|
48250
48365
|
];
|
|
48251
|
-
function
|
|
48366
|
+
function ownKeys47(e, r) {
|
|
48252
48367
|
var t = Object.keys(e);
|
|
48253
48368
|
if (Object.getOwnPropertySymbols) {
|
|
48254
48369
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -48258,30 +48373,30 @@ function ownKeys46(e, r) {
|
|
|
48258
48373
|
}
|
|
48259
48374
|
return t;
|
|
48260
48375
|
}
|
|
48261
|
-
function
|
|
48376
|
+
function _objectSpread47(e) {
|
|
48262
48377
|
for(var r = 1; r < arguments.length; r++){
|
|
48263
48378
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
48264
|
-
r % 2 ?
|
|
48265
|
-
|
|
48266
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
48379
|
+
r % 2 ? ownKeys47(Object(t), true).forEach(function(r2) {
|
|
48380
|
+
_defineProperty47(e, r2, t[r2]);
|
|
48381
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys47(Object(t)).forEach(function(r2) {
|
|
48267
48382
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
48268
48383
|
});
|
|
48269
48384
|
}
|
|
48270
48385
|
return e;
|
|
48271
48386
|
}
|
|
48272
|
-
function
|
|
48273
|
-
return (r =
|
|
48387
|
+
function _defineProperty47(e, r, t) {
|
|
48388
|
+
return (r = _toPropertyKey47(r)) in e ? Object.defineProperty(e, r, {
|
|
48274
48389
|
value: t,
|
|
48275
48390
|
enumerable: true,
|
|
48276
48391
|
configurable: true,
|
|
48277
48392
|
writable: true
|
|
48278
48393
|
}) : e[r] = t, e;
|
|
48279
48394
|
}
|
|
48280
|
-
function
|
|
48281
|
-
var i =
|
|
48395
|
+
function _toPropertyKey47(t) {
|
|
48396
|
+
var i = _toPrimitive47(t, "string");
|
|
48282
48397
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
48283
48398
|
}
|
|
48284
|
-
function
|
|
48399
|
+
function _toPrimitive47(t, r) {
|
|
48285
48400
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
48286
48401
|
var e = t[Symbol.toPrimitive];
|
|
48287
48402
|
if (void 0 !== e) {
|
|
@@ -48310,11 +48425,11 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48310
48425
|
return t;
|
|
48311
48426
|
}
|
|
48312
48427
|
var Content8 = function(t0) {
|
|
48313
|
-
var $ =
|
|
48428
|
+
var $ = _c89(4);
|
|
48314
48429
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48315
48430
|
var t1;
|
|
48316
48431
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
48317
|
-
t1 = /* @__PURE__ */
|
|
48432
|
+
t1 = /* @__PURE__ */ _jsx87(Flex29, {
|
|
48318
48433
|
direction: "column",
|
|
48319
48434
|
flexGrow: "1",
|
|
48320
48435
|
p: "9",
|
|
@@ -48332,7 +48447,7 @@ var Content8 = function(t0) {
|
|
|
48332
48447
|
return t1;
|
|
48333
48448
|
};
|
|
48334
48449
|
var AudioRuntimeProvider = function(t0) {
|
|
48335
|
-
var $ =
|
|
48450
|
+
var $ = _c89(3);
|
|
48336
48451
|
var children = t0.children, play = t0.play;
|
|
48337
48452
|
var audioThreadContext = useAudioThreadContext();
|
|
48338
48453
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48340,7 +48455,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48340
48455
|
}
|
|
48341
48456
|
var t1;
|
|
48342
48457
|
if ($[0] !== children || $[1] !== play) {
|
|
48343
|
-
t1 = /* @__PURE__ */
|
|
48458
|
+
t1 = /* @__PURE__ */ _jsx87(TtsAudioRuntimeProvider, {
|
|
48344
48459
|
play: play,
|
|
48345
48460
|
children: children
|
|
48346
48461
|
});
|
|
@@ -48353,7 +48468,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48353
48468
|
return t1;
|
|
48354
48469
|
};
|
|
48355
48470
|
var Provider5 = function(t0) {
|
|
48356
|
-
var $ =
|
|
48471
|
+
var $ = _c89(9);
|
|
48357
48472
|
var children;
|
|
48358
48473
|
var rest;
|
|
48359
48474
|
if ($[0] !== t0) {
|
|
@@ -48371,7 +48486,7 @@ var Provider5 = function(t0) {
|
|
|
48371
48486
|
var audioThreadContext = useAudioThreadContext();
|
|
48372
48487
|
var t1;
|
|
48373
48488
|
if ($[3] !== audioThreadContext || $[4] !== rest) {
|
|
48374
|
-
t1 =
|
|
48489
|
+
t1 = _objectSpread47(_objectSpread47({}, audioThreadContext), rest);
|
|
48375
48490
|
$[3] = audioThreadContext;
|
|
48376
48491
|
$[4] = rest;
|
|
48377
48492
|
$[5] = t1;
|
|
@@ -48380,7 +48495,7 @@ var Provider5 = function(t0) {
|
|
|
48380
48495
|
}
|
|
48381
48496
|
var t2;
|
|
48382
48497
|
if ($[6] !== children || $[7] !== t1) {
|
|
48383
|
-
t2 = /* @__PURE__ */
|
|
48498
|
+
t2 = /* @__PURE__ */ _jsx87(AudioThreadContext.Provider, {
|
|
48384
48499
|
value: t1,
|
|
48385
48500
|
children: children
|
|
48386
48501
|
});
|
|
@@ -48392,8 +48507,8 @@ var Provider5 = function(t0) {
|
|
|
48392
48507
|
}
|
|
48393
48508
|
return t2;
|
|
48394
48509
|
};
|
|
48395
|
-
var
|
|
48396
|
-
var $ =
|
|
48510
|
+
var Root15 = function(t0) {
|
|
48511
|
+
var $ = _c89(16);
|
|
48397
48512
|
var children;
|
|
48398
48513
|
var className;
|
|
48399
48514
|
var play;
|
|
@@ -48420,8 +48535,8 @@ var Root14 = function(t0) {
|
|
|
48420
48535
|
}
|
|
48421
48536
|
var t1;
|
|
48422
48537
|
if ($[6] !== children || $[7] !== className || $[8] !== style) {
|
|
48423
|
-
t1 = /* @__PURE__ */
|
|
48424
|
-
children: /* @__PURE__ */
|
|
48538
|
+
t1 = /* @__PURE__ */ _jsx87(ToastsProvider, {
|
|
48539
|
+
children: /* @__PURE__ */ _jsx87(Content8, {
|
|
48425
48540
|
className: className,
|
|
48426
48541
|
style: style,
|
|
48427
48542
|
children: children
|
|
@@ -48436,7 +48551,7 @@ var Root14 = function(t0) {
|
|
|
48436
48551
|
}
|
|
48437
48552
|
var t2;
|
|
48438
48553
|
if ($[10] !== play || $[11] !== t1) {
|
|
48439
|
-
t2 = /* @__PURE__ */
|
|
48554
|
+
t2 = /* @__PURE__ */ _jsx87(AudioRuntimeProvider, {
|
|
48440
48555
|
play: play,
|
|
48441
48556
|
children: t1
|
|
48442
48557
|
});
|
|
@@ -48448,7 +48563,7 @@ var Root14 = function(t0) {
|
|
|
48448
48563
|
}
|
|
48449
48564
|
var t3;
|
|
48450
48565
|
if ($[13] !== rest || $[14] !== t2) {
|
|
48451
|
-
t3 = /* @__PURE__ */
|
|
48566
|
+
t3 = /* @__PURE__ */ _jsx87(Provider5, _objectSpread47(_objectSpread47({}, rest), {}, {
|
|
48452
48567
|
children: t2
|
|
48453
48568
|
}));
|
|
48454
48569
|
$[13] = rest;
|
|
@@ -48460,16 +48575,16 @@ var Root14 = function(t0) {
|
|
|
48460
48575
|
return t3;
|
|
48461
48576
|
};
|
|
48462
48577
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48463
|
-
import { c as
|
|
48578
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
48464
48579
|
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
|
|
48465
48580
|
import _9 from "lodash";
|
|
48466
|
-
import { Flex as
|
|
48581
|
+
import { Flex as Flex31 } from "@radix-ui/themes";
|
|
48467
48582
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
48468
48583
|
import _8 from "lodash";
|
|
48469
|
-
import { Flex as
|
|
48584
|
+
import { Flex as Flex30, Grid } from "@radix-ui/themes";
|
|
48470
48585
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback7 } from "react";
|
|
48471
48586
|
import { cluster } from "radash";
|
|
48472
|
-
import { jsx as
|
|
48587
|
+
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
48473
48588
|
var barCount = 4;
|
|
48474
48589
|
var BarsVisualizer = function(_ref) {
|
|
48475
48590
|
var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
|
|
@@ -48500,7 +48615,7 @@ var BarsVisualizer = function(_ref) {
|
|
|
48500
48615
|
draw,
|
|
48501
48616
|
visualizationAnalyser
|
|
48502
48617
|
]);
|
|
48503
|
-
return /* @__PURE__ */
|
|
48618
|
+
return /* @__PURE__ */ _jsx88(Grid, {
|
|
48504
48619
|
columns: "".concat(barCount),
|
|
48505
48620
|
gap: "1",
|
|
48506
48621
|
width: "auto",
|
|
@@ -48509,12 +48624,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
48509
48624
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
48510
48625
|
},
|
|
48511
48626
|
children: barHeights.map(function(barHeight, index) {
|
|
48512
|
-
return /* @__PURE__ */
|
|
48627
|
+
return /* @__PURE__ */ _jsx88(Flex30, {
|
|
48513
48628
|
direction: "column",
|
|
48514
48629
|
align: "center",
|
|
48515
48630
|
justify: "center",
|
|
48516
48631
|
height: height,
|
|
48517
|
-
children: /* @__PURE__ */
|
|
48632
|
+
children: /* @__PURE__ */ _jsx88(Flex30, {
|
|
48518
48633
|
minHeight: "50%",
|
|
48519
48634
|
maxHeight: "100%",
|
|
48520
48635
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -48529,10 +48644,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48529
48644
|
});
|
|
48530
48645
|
};
|
|
48531
48646
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48532
|
-
import { c as
|
|
48647
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
48533
48648
|
import { useMemo as useMemo19 } from "react";
|
|
48534
48649
|
var useStatus = function() {
|
|
48535
|
-
var $ =
|
|
48650
|
+
var $ = _c90(2);
|
|
48536
48651
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48537
48652
|
var t0;
|
|
48538
48653
|
bb0: {
|
|
@@ -48580,7 +48695,7 @@ var useStatus = function() {
|
|
|
48580
48695
|
return t1;
|
|
48581
48696
|
};
|
|
48582
48697
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48583
|
-
import { jsx as
|
|
48698
|
+
import { jsx as _jsx89, jsxs as _jsxs31 } from "react/jsx-runtime";
|
|
48584
48699
|
var _excluded6 = [
|
|
48585
48700
|
"children"
|
|
48586
48701
|
];
|
|
@@ -48593,7 +48708,7 @@ var _excluded32 = [
|
|
|
48593
48708
|
"height",
|
|
48594
48709
|
"width"
|
|
48595
48710
|
];
|
|
48596
|
-
function
|
|
48711
|
+
function ownKeys48(e, r) {
|
|
48597
48712
|
var t = Object.keys(e);
|
|
48598
48713
|
if (Object.getOwnPropertySymbols) {
|
|
48599
48714
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -48603,30 +48718,30 @@ function ownKeys47(e, r) {
|
|
|
48603
48718
|
}
|
|
48604
48719
|
return t;
|
|
48605
48720
|
}
|
|
48606
|
-
function
|
|
48721
|
+
function _objectSpread48(e) {
|
|
48607
48722
|
for(var r = 1; r < arguments.length; r++){
|
|
48608
48723
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
48609
|
-
r % 2 ?
|
|
48610
|
-
|
|
48611
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
48724
|
+
r % 2 ? ownKeys48(Object(t), true).forEach(function(r2) {
|
|
48725
|
+
_defineProperty48(e, r2, t[r2]);
|
|
48726
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys48(Object(t)).forEach(function(r2) {
|
|
48612
48727
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
48613
48728
|
});
|
|
48614
48729
|
}
|
|
48615
48730
|
return e;
|
|
48616
48731
|
}
|
|
48617
|
-
function
|
|
48618
|
-
return (r =
|
|
48732
|
+
function _defineProperty48(e, r, t) {
|
|
48733
|
+
return (r = _toPropertyKey48(r)) in e ? Object.defineProperty(e, r, {
|
|
48619
48734
|
value: t,
|
|
48620
48735
|
enumerable: true,
|
|
48621
48736
|
configurable: true,
|
|
48622
48737
|
writable: true
|
|
48623
48738
|
}) : e[r] = t, e;
|
|
48624
48739
|
}
|
|
48625
|
-
function
|
|
48626
|
-
var i =
|
|
48740
|
+
function _toPropertyKey48(t) {
|
|
48741
|
+
var i = _toPrimitive48(t, "string");
|
|
48627
48742
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
48628
48743
|
}
|
|
48629
|
-
function
|
|
48744
|
+
function _toPrimitive48(t, r) {
|
|
48630
48745
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
48631
48746
|
var e = t[Symbol.toPrimitive];
|
|
48632
48747
|
if (void 0 !== e) {
|
|
@@ -48684,15 +48799,15 @@ var Provider6 = function(_ref) {
|
|
|
48684
48799
|
draw,
|
|
48685
48800
|
audioThreadContext
|
|
48686
48801
|
]);
|
|
48687
|
-
return /* @__PURE__ */
|
|
48802
|
+
return /* @__PURE__ */ _jsx89(AudioThreadVisualizationContext.Provider, {
|
|
48688
48803
|
value: {
|
|
48689
48804
|
scale: scale
|
|
48690
48805
|
},
|
|
48691
48806
|
children: children
|
|
48692
48807
|
});
|
|
48693
48808
|
};
|
|
48694
|
-
var
|
|
48695
|
-
var $ =
|
|
48809
|
+
var Root16 = function(t0) {
|
|
48810
|
+
var $ = _c91(6);
|
|
48696
48811
|
var children;
|
|
48697
48812
|
var rest;
|
|
48698
48813
|
if ($[0] !== t0) {
|
|
@@ -48709,8 +48824,8 @@ var Root15 = function(t0) {
|
|
|
48709
48824
|
}
|
|
48710
48825
|
var t1;
|
|
48711
48826
|
if ($[3] !== children || $[4] !== rest) {
|
|
48712
|
-
t1 = /* @__PURE__ */
|
|
48713
|
-
children: /* @__PURE__ */
|
|
48827
|
+
t1 = /* @__PURE__ */ _jsx89(Provider6, {
|
|
48828
|
+
children: /* @__PURE__ */ _jsx89(Flex31, _objectSpread48(_objectSpread48({
|
|
48714
48829
|
direction: "column",
|
|
48715
48830
|
align: "center",
|
|
48716
48831
|
justify: "center",
|
|
@@ -48729,7 +48844,7 @@ var Root15 = function(t0) {
|
|
|
48729
48844
|
return t1;
|
|
48730
48845
|
};
|
|
48731
48846
|
var BarsVisualizer2 = function(t0) {
|
|
48732
|
-
var $ =
|
|
48847
|
+
var $ = _c91(10);
|
|
48733
48848
|
var rest;
|
|
48734
48849
|
var t1;
|
|
48735
48850
|
var t2;
|
|
@@ -48755,7 +48870,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48755
48870
|
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48756
48871
|
var t4;
|
|
48757
48872
|
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
48758
|
-
t4 = /* @__PURE__ */
|
|
48873
|
+
t4 = /* @__PURE__ */ _jsx89(BarsVisualizer, _objectSpread48({
|
|
48759
48874
|
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
48760
48875
|
backgroundColor: t3,
|
|
48761
48876
|
height: height,
|
|
@@ -48773,7 +48888,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48773
48888
|
return t4;
|
|
48774
48889
|
};
|
|
48775
48890
|
var AssistantVisualizationRoot = function(t0) {
|
|
48776
|
-
var $ =
|
|
48891
|
+
var $ = _c91(17);
|
|
48777
48892
|
var children;
|
|
48778
48893
|
var rest;
|
|
48779
48894
|
var t1;
|
|
@@ -48811,7 +48926,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48811
48926
|
}
|
|
48812
48927
|
var t5;
|
|
48813
48928
|
if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
|
|
48814
|
-
t5 =
|
|
48929
|
+
t5 = _objectSpread48({
|
|
48815
48930
|
backgroundColor: t3,
|
|
48816
48931
|
borderRadius: "9999px",
|
|
48817
48932
|
scale: scale
|
|
@@ -48825,7 +48940,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48825
48940
|
}
|
|
48826
48941
|
var t6;
|
|
48827
48942
|
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
48828
|
-
t6 = /* @__PURE__ */
|
|
48943
|
+
t6 = /* @__PURE__ */ _jsx89(Flex31, _objectSpread48(_objectSpread48({
|
|
48829
48944
|
align: "center",
|
|
48830
48945
|
justify: "center",
|
|
48831
48946
|
height: height,
|
|
@@ -48846,17 +48961,17 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48846
48961
|
return t6;
|
|
48847
48962
|
};
|
|
48848
48963
|
var AssistantVisualization = function(props) {
|
|
48849
|
-
var $ =
|
|
48964
|
+
var $ = _c91(3);
|
|
48850
48965
|
var t0;
|
|
48851
48966
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48852
|
-
t0 = /* @__PURE__ */
|
|
48967
|
+
t0 = /* @__PURE__ */ _jsx89(BarsVisualizer2, {});
|
|
48853
48968
|
$[0] = t0;
|
|
48854
48969
|
} else {
|
|
48855
48970
|
t0 = $[0];
|
|
48856
48971
|
}
|
|
48857
48972
|
var t1;
|
|
48858
48973
|
if ($[1] !== props) {
|
|
48859
|
-
t1 = /* @__PURE__ */
|
|
48974
|
+
t1 = /* @__PURE__ */ _jsx89(AssistantVisualizationRoot, _objectSpread48(_objectSpread48({}, props), {}, {
|
|
48860
48975
|
children: t0
|
|
48861
48976
|
}));
|
|
48862
48977
|
$[1] = props;
|
|
@@ -48869,18 +48984,18 @@ var AssistantVisualization = function(props) {
|
|
|
48869
48984
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
48870
48985
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
48871
48986
|
var AssistantInfo = function(props) {
|
|
48872
|
-
var $ =
|
|
48987
|
+
var $ = _c91(6);
|
|
48873
48988
|
var assistantNameContext = useContext20(AssistantNameContext);
|
|
48874
48989
|
var t0;
|
|
48875
48990
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48876
|
-
t0 = /* @__PURE__ */
|
|
48991
|
+
t0 = /* @__PURE__ */ _jsx89(MessageGroup.AssistantAvatar, {});
|
|
48877
48992
|
$[0] = t0;
|
|
48878
48993
|
} else {
|
|
48879
48994
|
t0 = $[0];
|
|
48880
48995
|
}
|
|
48881
48996
|
var t1;
|
|
48882
48997
|
if ($[1] !== assistantNameContext) {
|
|
48883
|
-
t1 = /* @__PURE__ */
|
|
48998
|
+
t1 = /* @__PURE__ */ _jsx89(MessageGroup.Name, {
|
|
48884
48999
|
children: assistantNameContext
|
|
48885
49000
|
});
|
|
48886
49001
|
$[1] = assistantNameContext;
|
|
@@ -48890,7 +49005,7 @@ var AssistantInfo = function(props) {
|
|
|
48890
49005
|
}
|
|
48891
49006
|
var t2;
|
|
48892
49007
|
if ($[3] !== props || $[4] !== t1) {
|
|
48893
|
-
t2 = /* @__PURE__ */ _jsxs31(
|
|
49008
|
+
t2 = /* @__PURE__ */ _jsxs31(Flex31, _objectSpread48(_objectSpread48({
|
|
48894
49009
|
ml: "-22.5px",
|
|
48895
49010
|
gap: "3",
|
|
48896
49011
|
pt: "5"
|
|
@@ -48909,12 +49024,12 @@ var AssistantInfo = function(props) {
|
|
|
48909
49024
|
return t2;
|
|
48910
49025
|
};
|
|
48911
49026
|
var Visualization = function(props) {
|
|
48912
|
-
var $ =
|
|
49027
|
+
var $ = _c91(4);
|
|
48913
49028
|
var t0;
|
|
48914
49029
|
var t1;
|
|
48915
49030
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48916
|
-
t0 = /* @__PURE__ */
|
|
48917
|
-
t1 = /* @__PURE__ */
|
|
49031
|
+
t0 = /* @__PURE__ */ _jsx89(AssistantVisualization, {});
|
|
49032
|
+
t1 = /* @__PURE__ */ _jsx89(AssistantInfo, {});
|
|
48918
49033
|
$[0] = t0;
|
|
48919
49034
|
$[1] = t1;
|
|
48920
49035
|
} else {
|
|
@@ -48923,7 +49038,7 @@ var Visualization = function(props) {
|
|
|
48923
49038
|
}
|
|
48924
49039
|
var t2;
|
|
48925
49040
|
if ($[2] !== props) {
|
|
48926
|
-
t2 = /* @__PURE__ */ _jsxs31(
|
|
49041
|
+
t2 = /* @__PURE__ */ _jsxs31(Root16, _objectSpread48(_objectSpread48({}, props), {}, {
|
|
48927
49042
|
children: [
|
|
48928
49043
|
t0,
|
|
48929
49044
|
t1
|
|
@@ -48936,16 +49051,16 @@ var Visualization = function(props) {
|
|
|
48936
49051
|
}
|
|
48937
49052
|
return t2;
|
|
48938
49053
|
};
|
|
48939
|
-
Visualization.Root =
|
|
49054
|
+
Visualization.Root = Root16;
|
|
48940
49055
|
Visualization.Provider = Provider6;
|
|
48941
49056
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48942
49057
|
Visualization.AssistantInfo = AssistantInfo;
|
|
48943
49058
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
48944
|
-
import { c as
|
|
49059
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
48945
49060
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
48946
|
-
import { c as
|
|
48947
|
-
import { Flex as
|
|
48948
|
-
import { jsx as
|
|
49061
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
49062
|
+
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
49063
|
+
import { jsx as _jsx90, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
48949
49064
|
var html = function(_ref) {
|
|
48950
49065
|
var texts = _ref.texts;
|
|
48951
49066
|
return "\n .status-messages-texts:after {\n content: '".concat(texts[0], "';\n animation: texts ").concat(texts.length * 5, "s linear infinite;\n }\n\n @keyframes texts {\n ").concat(texts.map(function(_10, i) {
|
|
@@ -48953,11 +49068,11 @@ var html = function(_ref) {
|
|
|
48953
49068
|
}).join(""), "\n }");
|
|
48954
49069
|
};
|
|
48955
49070
|
var StatusMessages = function(t0) {
|
|
48956
|
-
var $ =
|
|
49071
|
+
var $ = _c92(9);
|
|
48957
49072
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
48958
49073
|
var t1;
|
|
48959
49074
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48960
|
-
t1 = /* @__PURE__ */
|
|
49075
|
+
t1 = /* @__PURE__ */ _jsx90(Text9, {
|
|
48961
49076
|
size: "2",
|
|
48962
49077
|
weight: "regular",
|
|
48963
49078
|
color: "gray",
|
|
@@ -48980,7 +49095,7 @@ var StatusMessages = function(t0) {
|
|
|
48980
49095
|
}
|
|
48981
49096
|
var t3;
|
|
48982
49097
|
if ($[3] !== t2) {
|
|
48983
|
-
t3 = /* @__PURE__ */
|
|
49098
|
+
t3 = /* @__PURE__ */ _jsx90("style", {
|
|
48984
49099
|
dangerouslySetInnerHTML: {
|
|
48985
49100
|
__html: t2
|
|
48986
49101
|
}
|
|
@@ -48992,7 +49107,7 @@ var StatusMessages = function(t0) {
|
|
|
48992
49107
|
}
|
|
48993
49108
|
var t4;
|
|
48994
49109
|
if ($[5] !== className || $[6] !== style || $[7] !== t3) {
|
|
48995
|
-
t4 = /* @__PURE__ */ _jsxs32(
|
|
49110
|
+
t4 = /* @__PURE__ */ _jsxs32(Flex32, {
|
|
48996
49111
|
justify: "center",
|
|
48997
49112
|
pb: "5",
|
|
48998
49113
|
className: className,
|
|
@@ -49012,8 +49127,8 @@ var StatusMessages = function(t0) {
|
|
|
49012
49127
|
return t4;
|
|
49013
49128
|
};
|
|
49014
49129
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49015
|
-
import { jsx as
|
|
49016
|
-
function
|
|
49130
|
+
import { jsx as _jsx91 } from "react/jsx-runtime";
|
|
49131
|
+
function ownKeys49(e, r) {
|
|
49017
49132
|
var t = Object.keys(e);
|
|
49018
49133
|
if (Object.getOwnPropertySymbols) {
|
|
49019
49134
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49023,30 +49138,30 @@ function ownKeys48(e, r) {
|
|
|
49023
49138
|
}
|
|
49024
49139
|
return t;
|
|
49025
49140
|
}
|
|
49026
|
-
function
|
|
49141
|
+
function _objectSpread49(e) {
|
|
49027
49142
|
for(var r = 1; r < arguments.length; r++){
|
|
49028
49143
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49029
|
-
r % 2 ?
|
|
49030
|
-
|
|
49031
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49144
|
+
r % 2 ? ownKeys49(Object(t), true).forEach(function(r2) {
|
|
49145
|
+
_defineProperty49(e, r2, t[r2]);
|
|
49146
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys49(Object(t)).forEach(function(r2) {
|
|
49032
49147
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49033
49148
|
});
|
|
49034
49149
|
}
|
|
49035
49150
|
return e;
|
|
49036
49151
|
}
|
|
49037
|
-
function
|
|
49038
|
-
return (r =
|
|
49152
|
+
function _defineProperty49(e, r, t) {
|
|
49153
|
+
return (r = _toPropertyKey49(r)) in e ? Object.defineProperty(e, r, {
|
|
49039
49154
|
value: t,
|
|
49040
49155
|
enumerable: true,
|
|
49041
49156
|
configurable: true,
|
|
49042
49157
|
writable: true
|
|
49043
49158
|
}) : e[r] = t, e;
|
|
49044
49159
|
}
|
|
49045
|
-
function
|
|
49046
|
-
var i =
|
|
49160
|
+
function _toPropertyKey49(t) {
|
|
49161
|
+
var i = _toPrimitive49(t, "string");
|
|
49047
49162
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49048
49163
|
}
|
|
49049
|
-
function
|
|
49164
|
+
function _toPrimitive49(t, r) {
|
|
49050
49165
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49051
49166
|
var e = t[Symbol.toPrimitive];
|
|
49052
49167
|
if (void 0 !== e) {
|
|
@@ -49057,7 +49172,7 @@ function _toPrimitive48(t, r) {
|
|
|
49057
49172
|
return ("string" === r ? String : Number)(t);
|
|
49058
49173
|
}
|
|
49059
49174
|
var Status = function(props) {
|
|
49060
|
-
var $ =
|
|
49175
|
+
var $ = _c93(12);
|
|
49061
49176
|
var status = useStatus().status;
|
|
49062
49177
|
if (status === "recording") {
|
|
49063
49178
|
var _t;
|
|
@@ -49074,7 +49189,7 @@ var Status = function(props) {
|
|
|
49074
49189
|
}
|
|
49075
49190
|
var _t2;
|
|
49076
49191
|
if ($[1] !== props) {
|
|
49077
|
-
_t2 = /* @__PURE__ */
|
|
49192
|
+
_t2 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49078
49193
|
texts: _t
|
|
49079
49194
|
}, props));
|
|
49080
49195
|
$[1] = props;
|
|
@@ -49100,7 +49215,7 @@ var Status = function(props) {
|
|
|
49100
49215
|
}
|
|
49101
49216
|
var _t4;
|
|
49102
49217
|
if ($[4] !== props) {
|
|
49103
|
-
_t4 = /* @__PURE__ */
|
|
49218
|
+
_t4 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49104
49219
|
texts: _t3
|
|
49105
49220
|
}, props));
|
|
49106
49221
|
$[4] = props;
|
|
@@ -49122,7 +49237,7 @@ var Status = function(props) {
|
|
|
49122
49237
|
}
|
|
49123
49238
|
var _t6;
|
|
49124
49239
|
if ($[7] !== props) {
|
|
49125
|
-
_t6 = /* @__PURE__ */
|
|
49240
|
+
_t6 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49126
49241
|
texts: _t5
|
|
49127
49242
|
}, props));
|
|
49128
49243
|
$[7] = props;
|
|
@@ -49143,7 +49258,7 @@ var Status = function(props) {
|
|
|
49143
49258
|
}
|
|
49144
49259
|
var t1;
|
|
49145
49260
|
if ($[10] !== props) {
|
|
49146
|
-
t1 = /* @__PURE__ */
|
|
49261
|
+
t1 = /* @__PURE__ */ _jsx91(StatusMessages, _objectSpread49({
|
|
49147
49262
|
texts: t0
|
|
49148
49263
|
}, props));
|
|
49149
49264
|
$[10] = props;
|
|
@@ -49154,12 +49269,12 @@ var Status = function(props) {
|
|
|
49154
49269
|
return t1;
|
|
49155
49270
|
};
|
|
49156
49271
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49157
|
-
import { c as
|
|
49158
|
-
import { Flex as
|
|
49272
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
49273
|
+
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
49159
49274
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49160
|
-
import { c as
|
|
49161
|
-
import { jsx as
|
|
49162
|
-
function
|
|
49275
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
49276
|
+
import { jsx as _jsx92 } from "react/jsx-runtime";
|
|
49277
|
+
function ownKeys50(e, r) {
|
|
49163
49278
|
var t = Object.keys(e);
|
|
49164
49279
|
if (Object.getOwnPropertySymbols) {
|
|
49165
49280
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49169,30 +49284,30 @@ function ownKeys49(e, r) {
|
|
|
49169
49284
|
}
|
|
49170
49285
|
return t;
|
|
49171
49286
|
}
|
|
49172
|
-
function
|
|
49287
|
+
function _objectSpread50(e) {
|
|
49173
49288
|
for(var r = 1; r < arguments.length; r++){
|
|
49174
49289
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49175
|
-
r % 2 ?
|
|
49176
|
-
|
|
49177
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49290
|
+
r % 2 ? ownKeys50(Object(t), true).forEach(function(r2) {
|
|
49291
|
+
_defineProperty50(e, r2, t[r2]);
|
|
49292
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys50(Object(t)).forEach(function(r2) {
|
|
49178
49293
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49179
49294
|
});
|
|
49180
49295
|
}
|
|
49181
49296
|
return e;
|
|
49182
49297
|
}
|
|
49183
|
-
function
|
|
49184
|
-
return (r =
|
|
49298
|
+
function _defineProperty50(e, r, t) {
|
|
49299
|
+
return (r = _toPropertyKey50(r)) in e ? Object.defineProperty(e, r, {
|
|
49185
49300
|
value: t,
|
|
49186
49301
|
enumerable: true,
|
|
49187
49302
|
configurable: true,
|
|
49188
49303
|
writable: true
|
|
49189
49304
|
}) : e[r] = t, e;
|
|
49190
49305
|
}
|
|
49191
|
-
function
|
|
49192
|
-
var i =
|
|
49306
|
+
function _toPropertyKey50(t) {
|
|
49307
|
+
var i = _toPrimitive50(t, "string");
|
|
49193
49308
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49194
49309
|
}
|
|
49195
|
-
function
|
|
49310
|
+
function _toPrimitive50(t, r) {
|
|
49196
49311
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49197
49312
|
var e = t[Symbol.toPrimitive];
|
|
49198
49313
|
if (void 0 !== e) {
|
|
@@ -49203,10 +49318,10 @@ function _toPrimitive49(t, r) {
|
|
|
49203
49318
|
return ("string" === r ? String : Number)(t);
|
|
49204
49319
|
}
|
|
49205
49320
|
var MicIcon = function(props) {
|
|
49206
|
-
var $ =
|
|
49321
|
+
var $ = _c94(3);
|
|
49207
49322
|
var t0;
|
|
49208
49323
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49209
|
-
t0 = /* @__PURE__ */
|
|
49324
|
+
t0 = /* @__PURE__ */ _jsx92("path", {
|
|
49210
49325
|
stroke: "none",
|
|
49211
49326
|
d: "M192 0c-53 0-96 43-96 96v160c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1 66.2 162.7 152 174.4V464h-48c-13.3 0-24 10.7-24 24s10.7 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24h-48v-33.6c85.8-11.7 152-85.3 152-174.4v-40c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 70.7-57.3 128-128 128S64 326.7 64 256v-40z"
|
|
49212
49327
|
});
|
|
@@ -49216,7 +49331,7 @@ var MicIcon = function(props) {
|
|
|
49216
49331
|
}
|
|
49217
49332
|
var t1;
|
|
49218
49333
|
if ($[1] !== props) {
|
|
49219
|
-
t1 = /* @__PURE__ */
|
|
49334
|
+
t1 = /* @__PURE__ */ _jsx92("svg", _objectSpread50(_objectSpread50({
|
|
49220
49335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49221
49336
|
fill: "currentColor",
|
|
49222
49337
|
stroke: "currentColor",
|
|
@@ -49235,29 +49350,29 @@ var MicIcon = function(props) {
|
|
|
49235
49350
|
return t1;
|
|
49236
49351
|
};
|
|
49237
49352
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49238
|
-
import { c as
|
|
49239
|
-
import { Flex as
|
|
49353
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
49354
|
+
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
49240
49355
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
49241
|
-
import { jsx as
|
|
49356
|
+
import { jsx as _jsx93, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
49242
49357
|
var ActionButton = function() {
|
|
49243
|
-
var $ =
|
|
49358
|
+
var $ = _c95(27);
|
|
49244
49359
|
var status = useStatus().status;
|
|
49245
49360
|
var audioThreadContext = useAudioThreadContext();
|
|
49246
49361
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
49247
49362
|
if (status === "recording") {
|
|
49248
49363
|
var _t;
|
|
49249
49364
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49250
|
-
_t = /* @__PURE__ */
|
|
49365
|
+
_t = /* @__PURE__ */ _jsx93(PauseIcon2, {});
|
|
49251
49366
|
$[0] = _t;
|
|
49252
49367
|
} else {
|
|
49253
49368
|
_t = $[0];
|
|
49254
49369
|
}
|
|
49255
49370
|
var t1;
|
|
49256
49371
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
49257
|
-
t1 = /* @__PURE__ */
|
|
49372
|
+
t1 = /* @__PURE__ */ _jsx93(Flex33, {
|
|
49258
49373
|
mr: "3",
|
|
49259
49374
|
ml: "-7",
|
|
49260
|
-
children: /* @__PURE__ */
|
|
49375
|
+
children: /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49261
49376
|
onClick: audioThreadContext.audioRuntime.user.pause,
|
|
49262
49377
|
color: "gray",
|
|
49263
49378
|
variant: "soft",
|
|
@@ -49272,14 +49387,14 @@ var ActionButton = function() {
|
|
|
49272
49387
|
}
|
|
49273
49388
|
var t2;
|
|
49274
49389
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49275
|
-
t2 = /* @__PURE__ */
|
|
49390
|
+
t2 = /* @__PURE__ */ _jsx93(ArrowUpIcon3, {});
|
|
49276
49391
|
$[3] = t2;
|
|
49277
49392
|
} else {
|
|
49278
49393
|
t2 = $[3];
|
|
49279
49394
|
}
|
|
49280
49395
|
var t3;
|
|
49281
49396
|
if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
|
|
49282
|
-
t3 = /* @__PURE__ */
|
|
49397
|
+
t3 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49283
49398
|
onClick: audioThreadContext.audioRuntime.user.stop,
|
|
49284
49399
|
highContrast: true,
|
|
49285
49400
|
variant: "soft",
|
|
@@ -49293,7 +49408,7 @@ var ActionButton = function() {
|
|
|
49293
49408
|
}
|
|
49294
49409
|
var t4;
|
|
49295
49410
|
if ($[6] !== t1 || $[7] !== t3) {
|
|
49296
|
-
t4 = /* @__PURE__ */ _jsxs33(
|
|
49411
|
+
t4 = /* @__PURE__ */ _jsxs33(Flex33, {
|
|
49297
49412
|
align: "center",
|
|
49298
49413
|
children: [
|
|
49299
49414
|
t1,
|
|
@@ -49311,14 +49426,14 @@ var ActionButton = function() {
|
|
|
49311
49426
|
if (status === "recorderPaused") {
|
|
49312
49427
|
var _t2;
|
|
49313
49428
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49314
|
-
_t2 = /* @__PURE__ */
|
|
49429
|
+
_t2 = /* @__PURE__ */ _jsx93(ResumeIcon, {});
|
|
49315
49430
|
$[9] = _t2;
|
|
49316
49431
|
} else {
|
|
49317
49432
|
_t2 = $[9];
|
|
49318
49433
|
}
|
|
49319
49434
|
var _t3;
|
|
49320
49435
|
if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
|
|
49321
|
-
_t3 = /* @__PURE__ */
|
|
49436
|
+
_t3 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49322
49437
|
onClick: audioThreadContext.audioRuntime.user.resume,
|
|
49323
49438
|
color: "red",
|
|
49324
49439
|
size: "4",
|
|
@@ -49334,7 +49449,7 @@ var ActionButton = function() {
|
|
|
49334
49449
|
if (status === "idle") {
|
|
49335
49450
|
var _t4;
|
|
49336
49451
|
if ($[12] !== audioThreadContext.audioRuntime.user) {
|
|
49337
|
-
_t4 = /* @__PURE__ */
|
|
49452
|
+
_t4 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49338
49453
|
onClick: function() {
|
|
49339
49454
|
return audioThreadContext.audioRuntime.user.start();
|
|
49340
49455
|
},
|
|
@@ -49366,14 +49481,14 @@ var ActionButton = function() {
|
|
|
49366
49481
|
}
|
|
49367
49482
|
var _t6;
|
|
49368
49483
|
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49369
|
-
_t6 = /* @__PURE__ */
|
|
49484
|
+
_t6 = /* @__PURE__ */ _jsx93(StopIcon2, {});
|
|
49370
49485
|
$[18] = _t6;
|
|
49371
49486
|
} else {
|
|
49372
49487
|
_t6 = $[18];
|
|
49373
49488
|
}
|
|
49374
49489
|
var _t7;
|
|
49375
49490
|
if ($[19] !== _t5) {
|
|
49376
|
-
_t7 = /* @__PURE__ */
|
|
49491
|
+
_t7 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49377
49492
|
onClick: _t5,
|
|
49378
49493
|
size: "4",
|
|
49379
49494
|
color: "gray",
|
|
@@ -49400,14 +49515,14 @@ var ActionButton = function() {
|
|
|
49400
49515
|
}
|
|
49401
49516
|
var _t9;
|
|
49402
49517
|
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49403
|
-
_t9 = /* @__PURE__ */
|
|
49518
|
+
_t9 = /* @__PURE__ */ _jsx93(ResumeIcon, {});
|
|
49404
49519
|
$[23] = _t9;
|
|
49405
49520
|
} else {
|
|
49406
49521
|
_t9 = $[23];
|
|
49407
49522
|
}
|
|
49408
49523
|
var _t10;
|
|
49409
49524
|
if ($[24] !== _t8) {
|
|
49410
|
-
_t10 = /* @__PURE__ */
|
|
49525
|
+
_t10 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49411
49526
|
onClick: _t8,
|
|
49412
49527
|
size: "4",
|
|
49413
49528
|
children: _t9
|
|
@@ -49421,7 +49536,7 @@ var ActionButton = function() {
|
|
|
49421
49536
|
}
|
|
49422
49537
|
var t0;
|
|
49423
49538
|
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49424
|
-
t0 = /* @__PURE__ */
|
|
49539
|
+
t0 = /* @__PURE__ */ _jsx93(IconButton10, {
|
|
49425
49540
|
size: "4",
|
|
49426
49541
|
variant: "soft",
|
|
49427
49542
|
disabled: true
|
|
@@ -49433,8 +49548,8 @@ var ActionButton = function() {
|
|
|
49433
49548
|
return t0;
|
|
49434
49549
|
};
|
|
49435
49550
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49436
|
-
import { jsx as
|
|
49437
|
-
function
|
|
49551
|
+
import { jsx as _jsx94, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
49552
|
+
function ownKeys51(e, r) {
|
|
49438
49553
|
var t = Object.keys(e);
|
|
49439
49554
|
if (Object.getOwnPropertySymbols) {
|
|
49440
49555
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49444,30 +49559,30 @@ function ownKeys50(e, r) {
|
|
|
49444
49559
|
}
|
|
49445
49560
|
return t;
|
|
49446
49561
|
}
|
|
49447
|
-
function
|
|
49562
|
+
function _objectSpread51(e) {
|
|
49448
49563
|
for(var r = 1; r < arguments.length; r++){
|
|
49449
49564
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49450
|
-
r % 2 ?
|
|
49451
|
-
|
|
49452
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49565
|
+
r % 2 ? ownKeys51(Object(t), true).forEach(function(r2) {
|
|
49566
|
+
_defineProperty51(e, r2, t[r2]);
|
|
49567
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys51(Object(t)).forEach(function(r2) {
|
|
49453
49568
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49454
49569
|
});
|
|
49455
49570
|
}
|
|
49456
49571
|
return e;
|
|
49457
49572
|
}
|
|
49458
|
-
function
|
|
49459
|
-
return (r =
|
|
49573
|
+
function _defineProperty51(e, r, t) {
|
|
49574
|
+
return (r = _toPropertyKey51(r)) in e ? Object.defineProperty(e, r, {
|
|
49460
49575
|
value: t,
|
|
49461
49576
|
enumerable: true,
|
|
49462
49577
|
configurable: true,
|
|
49463
49578
|
writable: true
|
|
49464
49579
|
}) : e[r] = t, e;
|
|
49465
49580
|
}
|
|
49466
|
-
function
|
|
49467
|
-
var i =
|
|
49581
|
+
function _toPropertyKey51(t) {
|
|
49582
|
+
var i = _toPrimitive51(t, "string");
|
|
49468
49583
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49469
49584
|
}
|
|
49470
|
-
function
|
|
49585
|
+
function _toPrimitive51(t, r) {
|
|
49471
49586
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49472
49587
|
var e = t[Symbol.toPrimitive];
|
|
49473
49588
|
if (void 0 !== e) {
|
|
@@ -49478,17 +49593,17 @@ function _toPrimitive50(t, r) {
|
|
|
49478
49593
|
return ("string" === r ? String : Number)(t);
|
|
49479
49594
|
}
|
|
49480
49595
|
var Form = function(props) {
|
|
49481
|
-
var $ =
|
|
49596
|
+
var $ = _c96(17);
|
|
49482
49597
|
var status = useStatus().status;
|
|
49483
49598
|
var audioThreadContext = useAudioThreadContext();
|
|
49484
49599
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49485
49600
|
var t1;
|
|
49486
49601
|
if ($[0] !== t0) {
|
|
49487
|
-
t1 = /* @__PURE__ */
|
|
49602
|
+
t1 = /* @__PURE__ */ _jsx94(Flex34, {
|
|
49488
49603
|
ml: "-22.5px",
|
|
49489
49604
|
mr: "2",
|
|
49490
49605
|
align: "center",
|
|
49491
|
-
children: /* @__PURE__ */
|
|
49606
|
+
children: /* @__PURE__ */ _jsx94(MicIcon, {
|
|
49492
49607
|
style: {
|
|
49493
49608
|
color: t0
|
|
49494
49609
|
}
|
|
@@ -49514,7 +49629,7 @@ var Form = function(props) {
|
|
|
49514
49629
|
var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49515
49630
|
var t5;
|
|
49516
49631
|
if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
|
|
49517
|
-
t5 = /* @__PURE__ */
|
|
49632
|
+
t5 = /* @__PURE__ */ _jsx94(BarsVisualizer, {
|
|
49518
49633
|
visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
|
|
49519
49634
|
backgroundColor: t4,
|
|
49520
49635
|
height: "20px",
|
|
@@ -49528,7 +49643,7 @@ var Form = function(props) {
|
|
|
49528
49643
|
}
|
|
49529
49644
|
var t6;
|
|
49530
49645
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
49531
|
-
t6 = /* @__PURE__ */
|
|
49646
|
+
t6 = /* @__PURE__ */ _jsx94(Flex34, {
|
|
49532
49647
|
px: "2",
|
|
49533
49648
|
py: "1",
|
|
49534
49649
|
style: t3,
|
|
@@ -49542,7 +49657,7 @@ var Form = function(props) {
|
|
|
49542
49657
|
}
|
|
49543
49658
|
var t7;
|
|
49544
49659
|
if ($[10] !== t1 || $[11] !== t6) {
|
|
49545
|
-
t7 = /* @__PURE__ */ _jsxs34(
|
|
49660
|
+
t7 = /* @__PURE__ */ _jsxs34(Flex34, {
|
|
49546
49661
|
pb: "3",
|
|
49547
49662
|
align: "center",
|
|
49548
49663
|
children: [
|
|
@@ -49558,14 +49673,14 @@ var Form = function(props) {
|
|
|
49558
49673
|
}
|
|
49559
49674
|
var t8;
|
|
49560
49675
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49561
|
-
t8 = /* @__PURE__ */
|
|
49676
|
+
t8 = /* @__PURE__ */ _jsx94(ActionButton, {});
|
|
49562
49677
|
$[13] = t8;
|
|
49563
49678
|
} else {
|
|
49564
49679
|
t8 = $[13];
|
|
49565
49680
|
}
|
|
49566
49681
|
var t9;
|
|
49567
49682
|
if ($[14] !== props || $[15] !== t7) {
|
|
49568
|
-
t9 = /* @__PURE__ */ _jsxs34(
|
|
49683
|
+
t9 = /* @__PURE__ */ _jsxs34(Flex34, _objectSpread51(_objectSpread51({
|
|
49569
49684
|
direction: "column",
|
|
49570
49685
|
align: "center"
|
|
49571
49686
|
}, props), {}, {
|
|
@@ -49583,8 +49698,8 @@ var Form = function(props) {
|
|
|
49583
49698
|
return t9;
|
|
49584
49699
|
};
|
|
49585
49700
|
// src/components/threads/AudioThread/index.tsx
|
|
49586
|
-
import { jsx as
|
|
49587
|
-
function
|
|
49701
|
+
import { jsx as _jsx95, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
49702
|
+
function ownKeys52(e, r) {
|
|
49588
49703
|
var t = Object.keys(e);
|
|
49589
49704
|
if (Object.getOwnPropertySymbols) {
|
|
49590
49705
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49594,30 +49709,30 @@ function ownKeys51(e, r) {
|
|
|
49594
49709
|
}
|
|
49595
49710
|
return t;
|
|
49596
49711
|
}
|
|
49597
|
-
function
|
|
49712
|
+
function _objectSpread52(e) {
|
|
49598
49713
|
for(var r = 1; r < arguments.length; r++){
|
|
49599
49714
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49600
|
-
r % 2 ?
|
|
49601
|
-
|
|
49602
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49715
|
+
r % 2 ? ownKeys52(Object(t), true).forEach(function(r2) {
|
|
49716
|
+
_defineProperty52(e, r2, t[r2]);
|
|
49717
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys52(Object(t)).forEach(function(r2) {
|
|
49603
49718
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49604
49719
|
});
|
|
49605
49720
|
}
|
|
49606
49721
|
return e;
|
|
49607
49722
|
}
|
|
49608
|
-
function
|
|
49609
|
-
return (r =
|
|
49723
|
+
function _defineProperty52(e, r, t) {
|
|
49724
|
+
return (r = _toPropertyKey52(r)) in e ? Object.defineProperty(e, r, {
|
|
49610
49725
|
value: t,
|
|
49611
49726
|
enumerable: true,
|
|
49612
49727
|
configurable: true,
|
|
49613
49728
|
writable: true
|
|
49614
49729
|
}) : e[r] = t, e;
|
|
49615
49730
|
}
|
|
49616
|
-
function
|
|
49617
|
-
var i =
|
|
49731
|
+
function _toPropertyKey52(t) {
|
|
49732
|
+
var i = _toPrimitive52(t, "string");
|
|
49618
49733
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49619
49734
|
}
|
|
49620
|
-
function
|
|
49735
|
+
function _toPrimitive52(t, r) {
|
|
49621
49736
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49622
49737
|
var e = t[Symbol.toPrimitive];
|
|
49623
49738
|
if (void 0 !== e) {
|
|
@@ -49628,14 +49743,14 @@ function _toPrimitive51(t, r) {
|
|
|
49628
49743
|
return ("string" === r ? String : Number)(t);
|
|
49629
49744
|
}
|
|
49630
49745
|
var AudioThread = function(props) {
|
|
49631
|
-
var $ =
|
|
49746
|
+
var $ = _c97(5);
|
|
49632
49747
|
var t0;
|
|
49633
49748
|
var t1;
|
|
49634
49749
|
var t2;
|
|
49635
49750
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49636
|
-
t0 = /* @__PURE__ */
|
|
49637
|
-
t1 = /* @__PURE__ */
|
|
49638
|
-
t2 = /* @__PURE__ */
|
|
49751
|
+
t0 = /* @__PURE__ */ _jsx95(Visualization, {});
|
|
49752
|
+
t1 = /* @__PURE__ */ _jsx95(Status, {});
|
|
49753
|
+
t2 = /* @__PURE__ */ _jsx95(Form, {});
|
|
49639
49754
|
$[0] = t0;
|
|
49640
49755
|
$[1] = t1;
|
|
49641
49756
|
$[2] = t2;
|
|
@@ -49646,7 +49761,7 @@ var AudioThread = function(props) {
|
|
|
49646
49761
|
}
|
|
49647
49762
|
var t3;
|
|
49648
49763
|
if ($[3] !== props) {
|
|
49649
|
-
t3 = /* @__PURE__ */ _jsxs35(
|
|
49764
|
+
t3 = /* @__PURE__ */ _jsxs35(Root15, _objectSpread52(_objectSpread52({}, props), {}, {
|
|
49650
49765
|
children: [
|
|
49651
49766
|
t0,
|
|
49652
49767
|
t1,
|
|
@@ -49660,13 +49775,13 @@ var AudioThread = function(props) {
|
|
|
49660
49775
|
}
|
|
49661
49776
|
return t3;
|
|
49662
49777
|
};
|
|
49663
|
-
AudioThread.Root =
|
|
49778
|
+
AudioThread.Root = Root15;
|
|
49664
49779
|
AudioThread.Visualization = Visualization;
|
|
49665
49780
|
AudioThread.Status = Status;
|
|
49666
49781
|
AudioThread.Form = Form;
|
|
49667
49782
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
49668
|
-
import { jsx as
|
|
49669
|
-
function
|
|
49783
|
+
import { jsx as _jsx96, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
49784
|
+
function ownKeys53(e, r) {
|
|
49670
49785
|
var t = Object.keys(e);
|
|
49671
49786
|
if (Object.getOwnPropertySymbols) {
|
|
49672
49787
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -49676,30 +49791,30 @@ function ownKeys52(e, r) {
|
|
|
49676
49791
|
}
|
|
49677
49792
|
return t;
|
|
49678
49793
|
}
|
|
49679
|
-
function
|
|
49794
|
+
function _objectSpread53(e) {
|
|
49680
49795
|
for(var r = 1; r < arguments.length; r++){
|
|
49681
49796
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
49682
|
-
r % 2 ?
|
|
49683
|
-
|
|
49684
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
49797
|
+
r % 2 ? ownKeys53(Object(t), true).forEach(function(r2) {
|
|
49798
|
+
_defineProperty53(e, r2, t[r2]);
|
|
49799
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys53(Object(t)).forEach(function(r2) {
|
|
49685
49800
|
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
49686
49801
|
});
|
|
49687
49802
|
}
|
|
49688
49803
|
return e;
|
|
49689
49804
|
}
|
|
49690
|
-
function
|
|
49691
|
-
return (r =
|
|
49805
|
+
function _defineProperty53(e, r, t) {
|
|
49806
|
+
return (r = _toPropertyKey53(r)) in e ? Object.defineProperty(e, r, {
|
|
49692
49807
|
value: t,
|
|
49693
49808
|
enumerable: true,
|
|
49694
49809
|
configurable: true,
|
|
49695
49810
|
writable: true
|
|
49696
49811
|
}) : e[r] = t, e;
|
|
49697
49812
|
}
|
|
49698
|
-
function
|
|
49699
|
-
var i =
|
|
49813
|
+
function _toPropertyKey53(t) {
|
|
49814
|
+
var i = _toPrimitive53(t, "string");
|
|
49700
49815
|
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
49701
49816
|
}
|
|
49702
|
-
function
|
|
49817
|
+
function _toPrimitive53(t, r) {
|
|
49703
49818
|
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
49704
49819
|
var e = t[Symbol.toPrimitive];
|
|
49705
49820
|
if (void 0 !== e) {
|
|
@@ -49710,14 +49825,14 @@ function _toPrimitive52(t, r) {
|
|
|
49710
49825
|
return ("string" === r ? String : Number)(t);
|
|
49711
49826
|
}
|
|
49712
49827
|
var AudioThreadDialog = function(props) {
|
|
49713
|
-
var $ =
|
|
49828
|
+
var $ = _c98(4);
|
|
49714
49829
|
var t0;
|
|
49715
49830
|
var t1;
|
|
49716
49831
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49717
|
-
t0 = /* @__PURE__ */
|
|
49718
|
-
children: /* @__PURE__ */
|
|
49832
|
+
t0 = /* @__PURE__ */ _jsx96(Content7.Root, {
|
|
49833
|
+
children: /* @__PURE__ */ _jsx96(AudioThread, {})
|
|
49719
49834
|
});
|
|
49720
|
-
t1 = /* @__PURE__ */
|
|
49835
|
+
t1 = /* @__PURE__ */ _jsx96(Trigger, {});
|
|
49721
49836
|
$[0] = t0;
|
|
49722
49837
|
$[1] = t1;
|
|
49723
49838
|
} else {
|
|
@@ -49726,7 +49841,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49726
49841
|
}
|
|
49727
49842
|
var t2;
|
|
49728
49843
|
if ($[2] !== props) {
|
|
49729
|
-
t2 = /* @__PURE__ */ _jsxs36(
|
|
49844
|
+
t2 = /* @__PURE__ */ _jsxs36(Root12, _objectSpread53(_objectSpread53({}, props), {}, {
|
|
49730
49845
|
children: [
|
|
49731
49846
|
t0,
|
|
49732
49847
|
t1
|
|
@@ -49739,7 +49854,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49739
49854
|
}
|
|
49740
49855
|
return t2;
|
|
49741
49856
|
};
|
|
49742
|
-
AudioThreadDialog.Root =
|
|
49857
|
+
AudioThreadDialog.Root = Root12;
|
|
49743
49858
|
AudioThreadDialog.Trigger = Trigger;
|
|
49744
49859
|
AudioThreadDialog.Content = Content7;
|
|
49745
49860
|
// src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
|
|
@@ -50232,10 +50347,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
50232
50347
|
]);
|
|
50233
50348
|
};
|
|
50234
50349
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
50235
|
-
import { c as
|
|
50236
|
-
import { jsx as
|
|
50350
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
50351
|
+
import { jsx as _jsx97 } from "react/jsx-runtime";
|
|
50237
50352
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
50238
|
-
var $ =
|
|
50353
|
+
var $ = _c99(5);
|
|
50239
50354
|
var children = t0.children;
|
|
50240
50355
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
50241
50356
|
var t1;
|
|
@@ -50250,7 +50365,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50250
50365
|
}
|
|
50251
50366
|
var t2;
|
|
50252
50367
|
if ($[2] !== children || $[3] !== t1) {
|
|
50253
|
-
t2 = /* @__PURE__ */
|
|
50368
|
+
t2 = /* @__PURE__ */ _jsx97(AudioThreadContext.Provider, {
|
|
50254
50369
|
value: t1,
|
|
50255
50370
|
children: children
|
|
50256
50371
|
});
|
|
@@ -50263,9 +50378,9 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50263
50378
|
return t2;
|
|
50264
50379
|
};
|
|
50265
50380
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50266
|
-
import { c as
|
|
50381
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
50267
50382
|
import { useMemo as useMemo21 } from "react";
|
|
50268
|
-
import { jsx as
|
|
50383
|
+
import { jsx as _jsx98 } from "react/jsx-runtime";
|
|
50269
50384
|
var _excluded7 = [
|
|
50270
50385
|
"children"
|
|
50271
50386
|
];
|
|
@@ -50288,7 +50403,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50288
50403
|
return t;
|
|
50289
50404
|
}
|
|
50290
50405
|
var MarkdownProvider = function(t0) {
|
|
50291
|
-
var $ =
|
|
50406
|
+
var $ = _c100(9);
|
|
50292
50407
|
var children;
|
|
50293
50408
|
var rest;
|
|
50294
50409
|
if ($[0] !== t0) {
|
|
@@ -50318,7 +50433,7 @@ var MarkdownProvider = function(t0) {
|
|
|
50318
50433
|
var value = t1;
|
|
50319
50434
|
var t3;
|
|
50320
50435
|
if ($[6] !== children || $[7] !== value) {
|
|
50321
|
-
t3 = /* @__PURE__ */
|
|
50436
|
+
t3 = /* @__PURE__ */ _jsx98(MarkdownContext.Provider, {
|
|
50322
50437
|
value: value,
|
|
50323
50438
|
children: children
|
|
50324
50439
|
});
|
|
@@ -50331,18 +50446,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50331
50446
|
return t3;
|
|
50332
50447
|
};
|
|
50333
50448
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50334
|
-
import { c as
|
|
50449
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50335
50450
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50336
|
-
import { c as
|
|
50451
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50337
50452
|
import { useState as useState13 } from "react";
|
|
50338
50453
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
50339
50454
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50340
50455
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50341
|
-
import { c as
|
|
50342
|
-
import { Flex as
|
|
50343
|
-
import { jsx as
|
|
50456
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50457
|
+
import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
50458
|
+
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50344
50459
|
var Content9 = function(t0) {
|
|
50345
|
-
var $ =
|
|
50460
|
+
var $ = _c101(5);
|
|
50346
50461
|
var fileId = t0.fileId;
|
|
50347
50462
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50348
50463
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50379,18 +50494,18 @@ var Content9 = function(t0) {
|
|
|
50379
50494
|
}
|
|
50380
50495
|
var t5;
|
|
50381
50496
|
if ($[3] !== t3) {
|
|
50382
|
-
t5 = /* @__PURE__ */
|
|
50497
|
+
t5 = /* @__PURE__ */ _jsx99(Flex35, {
|
|
50383
50498
|
direction: "column",
|
|
50384
50499
|
flexGrow: "1",
|
|
50385
50500
|
gap: "3",
|
|
50386
|
-
children: /* @__PURE__ */
|
|
50501
|
+
children: /* @__PURE__ */ _jsx99(Card5, {
|
|
50387
50502
|
style: t1,
|
|
50388
|
-
children: /* @__PURE__ */
|
|
50503
|
+
children: /* @__PURE__ */ _jsx99(Inset3, {
|
|
50389
50504
|
clip: "padding-box",
|
|
50390
50505
|
style: t2,
|
|
50391
|
-
children: /* @__PURE__ */
|
|
50506
|
+
children: /* @__PURE__ */ _jsx99(Flex35, {
|
|
50392
50507
|
flexGrow: "1",
|
|
50393
|
-
children: /* @__PURE__ */
|
|
50508
|
+
children: /* @__PURE__ */ _jsx99("embed", {
|
|
50394
50509
|
src: t3,
|
|
50395
50510
|
style: t4
|
|
50396
50511
|
})
|
|
@@ -50406,9 +50521,9 @@ var Content9 = function(t0) {
|
|
|
50406
50521
|
return t5;
|
|
50407
50522
|
};
|
|
50408
50523
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50409
|
-
import { jsx as
|
|
50524
|
+
import { jsx as _jsx100, jsxs as _jsxs37, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50410
50525
|
var FileCitation = function(t0) {
|
|
50411
|
-
var $ =
|
|
50526
|
+
var $ = _c102(18);
|
|
50412
50527
|
var annotation = t0.annotation;
|
|
50413
50528
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
50414
50529
|
var t1;
|
|
@@ -50423,14 +50538,14 @@ var FileCitation = function(t0) {
|
|
|
50423
50538
|
}
|
|
50424
50539
|
var t2;
|
|
50425
50540
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50426
|
-
t2 = /* @__PURE__ */
|
|
50541
|
+
t2 = /* @__PURE__ */ _jsx100(QuoteIcon2, {});
|
|
50427
50542
|
$[2] = t2;
|
|
50428
50543
|
} else {
|
|
50429
50544
|
t2 = $[2];
|
|
50430
50545
|
}
|
|
50431
50546
|
var t3;
|
|
50432
50547
|
if ($[3] !== t1) {
|
|
50433
|
-
t3 = /* @__PURE__ */
|
|
50548
|
+
t3 = /* @__PURE__ */ _jsx100(IconButton11, {
|
|
50434
50549
|
variant: "soft",
|
|
50435
50550
|
color: "gray",
|
|
50436
50551
|
size: "1",
|
|
@@ -50466,9 +50581,9 @@ var FileCitation = function(t0) {
|
|
|
50466
50581
|
}
|
|
50467
50582
|
var t7;
|
|
50468
50583
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50469
|
-
t7 = /* @__PURE__ */
|
|
50584
|
+
t7 = /* @__PURE__ */ _jsx100(VisuallyHidden, {
|
|
50470
50585
|
asChild: true,
|
|
50471
|
-
children: /* @__PURE__ */
|
|
50586
|
+
children: /* @__PURE__ */ _jsx100(Dialog.Title, {
|
|
50472
50587
|
children: "Source"
|
|
50473
50588
|
})
|
|
50474
50589
|
});
|
|
@@ -50478,7 +50593,7 @@ var FileCitation = function(t0) {
|
|
|
50478
50593
|
}
|
|
50479
50594
|
var t8;
|
|
50480
50595
|
if ($[8] !== activeFileId) {
|
|
50481
|
-
t8 = activeFileId && /* @__PURE__ */
|
|
50596
|
+
t8 = activeFileId && /* @__PURE__ */ _jsx100(Content9, {
|
|
50482
50597
|
fileId: activeFileId
|
|
50483
50598
|
});
|
|
50484
50599
|
$[8] = activeFileId;
|
|
@@ -50506,7 +50621,7 @@ var FileCitation = function(t0) {
|
|
|
50506
50621
|
}
|
|
50507
50622
|
var t10;
|
|
50508
50623
|
if ($[12] !== t4 || $[13] !== t9) {
|
|
50509
|
-
t10 = /* @__PURE__ */
|
|
50624
|
+
t10 = /* @__PURE__ */ _jsx100(Dialog.Root, {
|
|
50510
50625
|
open: t4,
|
|
50511
50626
|
onOpenChange: t5,
|
|
50512
50627
|
children: t9
|
|
@@ -50534,7 +50649,7 @@ var FileCitation = function(t0) {
|
|
|
50534
50649
|
return t11;
|
|
50535
50650
|
};
|
|
50536
50651
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50537
|
-
import { jsx as
|
|
50652
|
+
import { jsx as _jsx101 } from "react/jsx-runtime";
|
|
50538
50653
|
var _excluded8 = [
|
|
50539
50654
|
"children"
|
|
50540
50655
|
];
|
|
@@ -50557,7 +50672,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
50557
50672
|
return t;
|
|
50558
50673
|
}
|
|
50559
50674
|
var SourceAnnotation = function(t0) {
|
|
50560
|
-
var $ =
|
|
50675
|
+
var $ = _c103(10);
|
|
50561
50676
|
var children;
|
|
50562
50677
|
var rest;
|
|
50563
50678
|
if ($[0] !== t0) {
|
|
@@ -50585,7 +50700,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50585
50700
|
if (annotation.type === "file_citation") {
|
|
50586
50701
|
var t2;
|
|
50587
50702
|
if ($[5] !== annotation) {
|
|
50588
|
-
t2 = /* @__PURE__ */
|
|
50703
|
+
t2 = /* @__PURE__ */ _jsx101(FileCitation, {
|
|
50589
50704
|
annotation: annotation
|
|
50590
50705
|
});
|
|
50591
50706
|
$[5] = annotation;
|
|
@@ -50598,7 +50713,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50598
50713
|
if (annotation.type === "file_path") {
|
|
50599
50714
|
var _t2;
|
|
50600
50715
|
if ($[7] !== annotation || $[8] !== children) {
|
|
50601
|
-
_t2 = /* @__PURE__ */
|
|
50716
|
+
_t2 = /* @__PURE__ */ _jsx101(FilePathAnnotation, {
|
|
50602
50717
|
annotation: annotation,
|
|
50603
50718
|
children: children
|
|
50604
50719
|
});
|
|
@@ -50614,7 +50729,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50614
50729
|
return null;
|
|
50615
50730
|
};
|
|
50616
50731
|
// src/components/avatars/Avatar.tsx
|
|
50617
|
-
import { c as
|
|
50732
|
+
import { c as _c106 } from "react-compiler-runtime";
|
|
50618
50733
|
// src/lib/enums/index.ts
|
|
50619
50734
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
50620
50735
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -50639,7 +50754,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
50639
50754
|
// src/components/avatars/Avatar.tsx
|
|
50640
50755
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
50641
50756
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50642
|
-
import { c as
|
|
50757
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50643
50758
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
50644
50759
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
50645
50760
|
var width = function(_ref) {
|
|
@@ -50691,9 +50806,9 @@ var optimizedSrc = function(_ref) {
|
|
|
50691
50806
|
}));
|
|
50692
50807
|
};
|
|
50693
50808
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50694
|
-
import { jsx as
|
|
50809
|
+
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
50695
50810
|
var ImageAvatar = function(t0) {
|
|
50696
|
-
var $ =
|
|
50811
|
+
var $ = _c104(9);
|
|
50697
50812
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50698
50813
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50699
50814
|
var t1;
|
|
@@ -50712,7 +50827,7 @@ var ImageAvatar = function(t0) {
|
|
|
50712
50827
|
}
|
|
50713
50828
|
var t2;
|
|
50714
50829
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
50715
|
-
t2 = /* @__PURE__ */
|
|
50830
|
+
t2 = /* @__PURE__ */ _jsx102(Avatar4, {
|
|
50716
50831
|
className: className,
|
|
50717
50832
|
style: style,
|
|
50718
50833
|
fallback: "",
|
|
@@ -50730,7 +50845,7 @@ var ImageAvatar = function(t0) {
|
|
|
50730
50845
|
return t2;
|
|
50731
50846
|
};
|
|
50732
50847
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50733
|
-
import { c as
|
|
50848
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50734
50849
|
import { useMemo as useMemo22 } from "react";
|
|
50735
50850
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
50736
50851
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -50738,16 +50853,16 @@ import { BackpackIcon, RocketIcon, MagicWandIcon, CubeIcon, TargetIcon, DiscIcon
|
|
|
50738
50853
|
var _obj;
|
|
50739
50854
|
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, CubeIcon), _define_property(_obj, IconAvatarName.TARGET, TargetIcon), _define_property(_obj, IconAvatarName.DISC, DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, GlobeIcon), _define_property(_obj, IconAvatarName.STAR, StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, LightningBoltIcon2), _define_property(_obj, IconAvatarName.FACE, FaceIcon), _define_property(_obj, IconAvatarName.PERSON, PersonIcon2), _define_property(_obj, IconAvatarName.HEART, HeartIcon), _obj);
|
|
50740
50855
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50741
|
-
import { jsx as
|
|
50856
|
+
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
50742
50857
|
var IconAvatar = function(t0) {
|
|
50743
|
-
var $ =
|
|
50858
|
+
var $ = _c105(7);
|
|
50744
50859
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50745
50860
|
var t1;
|
|
50746
50861
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
50747
50862
|
var Component2 = t1;
|
|
50748
50863
|
var t2;
|
|
50749
50864
|
if ($[0] !== Component2) {
|
|
50750
|
-
t2 = Component2 ? /* @__PURE__ */
|
|
50865
|
+
t2 = Component2 ? /* @__PURE__ */ _jsx103(Component2, {}) : "";
|
|
50751
50866
|
$[0] = Component2;
|
|
50752
50867
|
$[1] = t2;
|
|
50753
50868
|
} else {
|
|
@@ -50755,7 +50870,7 @@ var IconAvatar = function(t0) {
|
|
|
50755
50870
|
}
|
|
50756
50871
|
var t3;
|
|
50757
50872
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
50758
|
-
t3 = /* @__PURE__ */
|
|
50873
|
+
t3 = /* @__PURE__ */ _jsx103(Avatar5, {
|
|
50759
50874
|
className: className,
|
|
50760
50875
|
style: style,
|
|
50761
50876
|
size: size,
|
|
@@ -50772,16 +50887,16 @@ var IconAvatar = function(t0) {
|
|
|
50772
50887
|
return t3;
|
|
50773
50888
|
};
|
|
50774
50889
|
// src/components/avatars/Avatar.tsx
|
|
50775
|
-
import { jsx as
|
|
50890
|
+
import { jsx as _jsx104 } from "react/jsx-runtime";
|
|
50776
50891
|
var Avatar6 = function(t0) {
|
|
50777
|
-
var $ =
|
|
50892
|
+
var $ = _c106(14);
|
|
50778
50893
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
50779
50894
|
var size = t1 === void 0 ? "1" : t1;
|
|
50780
50895
|
if (avatar) {
|
|
50781
50896
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
50782
50897
|
var _t;
|
|
50783
50898
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
50784
|
-
_t = /* @__PURE__ */
|
|
50899
|
+
_t = /* @__PURE__ */ _jsx104(ImageAvatar, {
|
|
50785
50900
|
imageAvatar: avatar.imageAvatar,
|
|
50786
50901
|
size: size,
|
|
50787
50902
|
className: className,
|
|
@@ -50800,7 +50915,7 @@ var Avatar6 = function(t0) {
|
|
|
50800
50915
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
50801
50916
|
var _t2;
|
|
50802
50917
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
50803
|
-
_t2 = /* @__PURE__ */
|
|
50918
|
+
_t2 = /* @__PURE__ */ _jsx104(IconAvatar, {
|
|
50804
50919
|
iconAvatar: avatar.iconAvatar,
|
|
50805
50920
|
size: size,
|
|
50806
50921
|
className: className,
|
|
@@ -50819,7 +50934,7 @@ var Avatar6 = function(t0) {
|
|
|
50819
50934
|
}
|
|
50820
50935
|
var t2;
|
|
50821
50936
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
50822
|
-
t2 = /* @__PURE__ */
|
|
50937
|
+
t2 = /* @__PURE__ */ _jsx104(RadixAvatar, {
|
|
50823
50938
|
fallback: "",
|
|
50824
50939
|
size: size,
|
|
50825
50940
|
className: className,
|
|
@@ -50835,9 +50950,9 @@ var Avatar6 = function(t0) {
|
|
|
50835
50950
|
return t2;
|
|
50836
50951
|
};
|
|
50837
50952
|
// src/components/components/ComponentsProvider.tsx
|
|
50838
|
-
import { c as
|
|
50953
|
+
import { c as _c107 } from "react-compiler-runtime";
|
|
50839
50954
|
import { useMemo as useMemo23 } from "react";
|
|
50840
|
-
import { jsx as
|
|
50955
|
+
import { jsx as _jsx105 } from "react/jsx-runtime";
|
|
50841
50956
|
var _excluded9 = [
|
|
50842
50957
|
"children"
|
|
50843
50958
|
];
|
|
@@ -50860,7 +50975,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
50860
50975
|
return t;
|
|
50861
50976
|
}
|
|
50862
50977
|
var ComponentsProvider = function(t0) {
|
|
50863
|
-
var $ =
|
|
50978
|
+
var $ = _c107(9);
|
|
50864
50979
|
var children;
|
|
50865
50980
|
var rest;
|
|
50866
50981
|
if ($[0] !== t0) {
|
|
@@ -50890,7 +51005,7 @@ var ComponentsProvider = function(t0) {
|
|
|
50890
51005
|
var value = t1;
|
|
50891
51006
|
var t3;
|
|
50892
51007
|
if ($[6] !== children || $[7] !== value) {
|
|
50893
|
-
t3 = /* @__PURE__ */
|
|
51008
|
+
t3 = /* @__PURE__ */ _jsx105(ComponentsContext.Provider, {
|
|
50894
51009
|
value: value,
|
|
50895
51010
|
children: children
|
|
50896
51011
|
});
|
|
@@ -50903,11 +51018,11 @@ var ComponentsProvider = function(t0) {
|
|
|
50903
51018
|
return t3;
|
|
50904
51019
|
};
|
|
50905
51020
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
50906
|
-
import { c as
|
|
50907
|
-
import { jsx as
|
|
51021
|
+
import { c as _c108 } from "react-compiler-runtime";
|
|
51022
|
+
import { jsx as _jsx106 } from "react/jsx-runtime";
|
|
50908
51023
|
var AssistantProvider = function(t0) {
|
|
50909
51024
|
var _assistant$name;
|
|
50910
|
-
var $ =
|
|
51025
|
+
var $ = _c108(10);
|
|
50911
51026
|
var children = t0.children;
|
|
50912
51027
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50913
51028
|
var t1;
|
|
@@ -50925,7 +51040,7 @@ var AssistantProvider = function(t0) {
|
|
|
50925
51040
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
50926
51041
|
var t4;
|
|
50927
51042
|
if ($[2] !== t3) {
|
|
50928
|
-
t4 = /* @__PURE__ */
|
|
51043
|
+
t4 = /* @__PURE__ */ _jsx106(Avatar6, {
|
|
50929
51044
|
avatar: t3
|
|
50930
51045
|
});
|
|
50931
51046
|
$[2] = t3;
|
|
@@ -50935,7 +51050,7 @@ var AssistantProvider = function(t0) {
|
|
|
50935
51050
|
}
|
|
50936
51051
|
var t5;
|
|
50937
51052
|
if ($[4] !== children || $[5] !== t4) {
|
|
50938
|
-
t5 = /* @__PURE__ */
|
|
51053
|
+
t5 = /* @__PURE__ */ _jsx106(AssistantAvatarContext.Provider, {
|
|
50939
51054
|
value: t4,
|
|
50940
51055
|
children: children
|
|
50941
51056
|
});
|
|
@@ -50947,7 +51062,7 @@ var AssistantProvider = function(t0) {
|
|
|
50947
51062
|
}
|
|
50948
51063
|
var t6;
|
|
50949
51064
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
50950
|
-
t6 = /* @__PURE__ */
|
|
51065
|
+
t6 = /* @__PURE__ */ _jsx106(AssistantNameContext.Provider, {
|
|
50951
51066
|
value: t2,
|
|
50952
51067
|
children: t5
|
|
50953
51068
|
});
|