@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 CHANGED
@@ -8304,7 +8304,7 @@ var require_lib = __commonJS({
8304
8304
  key: "parseMaybeAssign",
8305
8305
  value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
8306
8306
  var _this = this;
8307
- var _jsx106;
8307
+ var _jsx107;
8308
8308
  var state = null;
8309
8309
  var jsx2;
8310
8310
  if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
@@ -8319,7 +8319,7 @@ var require_lib = __commonJS({
8319
8319
  context.pop();
8320
8320
  }
8321
8321
  }
8322
- if ((_jsx106 = jsx2) != null && _jsx106.error || this.match(47)) {
8322
+ if ((_jsx107 = jsx2) != null && _jsx107.error || this.match(47)) {
8323
8323
  var _jsx210, _jsx310;
8324
8324
  state = state || this.state.clone();
8325
8325
  var typeParameters;
@@ -13185,7 +13185,7 @@ var require_lib = __commonJS({
13185
13185
  key: "parseMaybeAssign",
13186
13186
  value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
13187
13187
  var _this = this;
13188
- var _jsx106, _jsx210, _typeCast, _jsx310, _typeCast2;
13188
+ var _jsx107, _jsx210, _typeCast, _jsx310, _typeCast2;
13189
13189
  var state;
13190
13190
  var jsx2;
13191
13191
  var typeCast;
@@ -13201,7 +13201,7 @@ var require_lib = __commonJS({
13201
13201
  context.pop();
13202
13202
  }
13203
13203
  }
13204
- if (!((_jsx106 = jsx2) != null && _jsx106.error) && !this.match(47)) {
13204
+ if (!((_jsx107 = jsx2) != null && _jsx107.error) && !this.match(47)) {
13205
13205
  return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
13206
13206
  }
13207
13207
  if (!state || state === this.state) state = this.state.clone();
@@ -37945,20 +37945,20 @@ var SuperinterfaceProvider = function(_ref) {
37945
37945
  });
37946
37946
  };
37947
37947
  // src/components/threads/Thread/index.tsx
37948
- var import_react_compiler_runtime74 = require("react-compiler-runtime");
37948
+ var import_react_compiler_runtime75 = require("react-compiler-runtime");
37949
37949
  // src/components/threads/Thread/Messages/index.tsx
37950
- var import_react_compiler_runtime64 = require("react-compiler-runtime");
37950
+ var import_react_compiler_runtime65 = require("react-compiler-runtime");
37951
37951
  var import_themes45 = require("@radix-ui/themes");
37952
37952
  // src/components/threads/Thread/Message/index.tsx
37953
- var import_react_compiler_runtime55 = require("react-compiler-runtime");
37954
- var import_react41 = require("react");
37955
- var import_themes39 = require("@radix-ui/themes");
37953
+ var import_react_compiler_runtime58 = require("react-compiler-runtime");
37954
+ var import_react42 = require("react");
37955
+ var import_themes41 = require("@radix-ui/themes");
37956
37956
  // src/components/runSteps/RunSteps/index.tsx
37957
- var import_react_compiler_runtime51 = require("react-compiler-runtime");
37958
- var import_themes37 = require("@radix-ui/themes");
37959
- var import_react39 = require("react");
37957
+ var import_react_compiler_runtime54 = require("react-compiler-runtime");
37958
+ var import_themes40 = require("@radix-ui/themes");
37959
+ var import_react40 = require("react");
37960
37960
  // src/contexts/components/ComponentsContext/index.tsx
37961
- var import_react38 = require("react");
37961
+ var import_react39 = require("react");
37962
37962
  // src/components/runSteps/RunStep/index.tsx
37963
37963
  var import_react_compiler_runtime7 = require("react-compiler-runtime");
37964
37964
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
@@ -43115,35 +43115,103 @@ var AssistantAvatarContext = /* @__PURE__ */ (0, import_react31.createContext)(/
43115
43115
  }));
43116
43116
  // src/components/messageGroups/MessageGroup/AssistantAvatar.tsx
43117
43117
  var import_jsx_runtime47 = require("react/jsx-runtime");
43118
- var AssistantAvatar = function() {
43119
- var $ = (0, import_react_compiler_runtime46.c)(3);
43120
- var AssistantAvatarContextValue = (0, import_react32.useContext)(AssistantAvatarContext);
43121
- var t0;
43122
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43123
- t0 = {
43118
+ function ownKeys25(e, r) {
43119
+ var t = Object.keys(e);
43120
+ if (Object.getOwnPropertySymbols) {
43121
+ var o = Object.getOwnPropertySymbols(e);
43122
+ r && (o = o.filter(function(r2) {
43123
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
43124
+ })), t.push.apply(t, o);
43125
+ }
43126
+ return t;
43127
+ }
43128
+ function _objectSpread25(e) {
43129
+ for(var r = 1; r < arguments.length; r++){
43130
+ var t = null != arguments[r] ? arguments[r] : {};
43131
+ r % 2 ? ownKeys25(Object(t), true).forEach(function(r2) {
43132
+ _defineProperty25(e, r2, t[r2]);
43133
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys25(Object(t)).forEach(function(r2) {
43134
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
43135
+ });
43136
+ }
43137
+ return e;
43138
+ }
43139
+ function _defineProperty25(e, r, t) {
43140
+ return (r = _toPropertyKey25(r)) in e ? Object.defineProperty(e, r, {
43141
+ value: t,
43142
+ enumerable: true,
43143
+ configurable: true,
43144
+ writable: true
43145
+ }) : e[r] = t, e;
43146
+ }
43147
+ function _toPropertyKey25(t) {
43148
+ var i = _toPrimitive25(t, "string");
43149
+ return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
43150
+ }
43151
+ function _toPrimitive25(t, r) {
43152
+ if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
43153
+ var e = t[Symbol.toPrimitive];
43154
+ if (void 0 !== e) {
43155
+ var i = e.call(t, r || "default");
43156
+ if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
43157
+ throw new TypeError("@@toPrimitive must return a primitive value.");
43158
+ }
43159
+ return ("string" === r ? String : Number)(t);
43160
+ }
43161
+ var Root2 = function(t0) {
43162
+ var $ = (0, import_react_compiler_runtime46.c)(6);
43163
+ var children = t0.children, style = t0.style, className = t0.className;
43164
+ var t1;
43165
+ if ($[0] !== style) {
43166
+ t1 = _objectSpread25({
43124
43167
  borderRadius: "var(--radius-3)",
43125
43168
  overflow: "hidden"
43126
- };
43127
- $[0] = t0;
43169
+ }, style);
43170
+ $[0] = style;
43171
+ $[1] = t1;
43128
43172
  } else {
43129
- t0 = $[0];
43173
+ t1 = $[1];
43130
43174
  }
43131
- var t1;
43132
- if ($[1] !== AssistantAvatarContextValue) {
43133
- t1 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes31.Flex, {
43175
+ var t2;
43176
+ if ($[2] !== children || $[3] !== className || $[4] !== t1) {
43177
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes31.Flex, {
43134
43178
  flexShrink: "0",
43135
43179
  height: "24px",
43136
43180
  width: "24px",
43137
- style: t0,
43181
+ className: className,
43182
+ style: t1,
43183
+ children: children
43184
+ });
43185
+ $[2] = children;
43186
+ $[3] = className;
43187
+ $[4] = t1;
43188
+ $[5] = t2;
43189
+ } else {
43190
+ t2 = $[5];
43191
+ }
43192
+ return t2;
43193
+ };
43194
+ var AssistantAvatar = function(t0) {
43195
+ var $ = (0, import_react_compiler_runtime46.c)(4);
43196
+ var style = t0.style, className = t0.className;
43197
+ var AssistantAvatarContextValue = (0, import_react32.useContext)(AssistantAvatarContext);
43198
+ var t1;
43199
+ if ($[0] !== AssistantAvatarContextValue || $[1] !== className || $[2] !== style) {
43200
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Root2, {
43201
+ style: style,
43202
+ className: className,
43138
43203
  children: AssistantAvatarContextValue
43139
43204
  });
43140
- $[1] = AssistantAvatarContextValue;
43141
- $[2] = t1;
43205
+ $[0] = AssistantAvatarContextValue;
43206
+ $[1] = className;
43207
+ $[2] = style;
43208
+ $[3] = t1;
43142
43209
  } else {
43143
- t1 = $[2];
43210
+ t1 = $[3];
43144
43211
  }
43145
43212
  return t1;
43146
43213
  };
43214
+ AssistantAvatar.Root = Root2;
43147
43215
  // src/contexts/assistants/AssistantNameContext/index.tsx
43148
43216
  var import_react33 = require("react");
43149
43217
  var AssistantNameContext = /* @__PURE__ */ (0, import_react33.createContext)("Assistant");
@@ -43229,7 +43297,7 @@ var import_react_compiler_runtime49 = require("react-compiler-runtime");
43229
43297
  var import_react36 = require("react");
43230
43298
  var import_themes35 = require("@radix-ui/themes");
43231
43299
  var import_jsx_runtime51 = require("react/jsx-runtime");
43232
- var Root2 = /* @__PURE__ */ (0, import_react36.forwardRef)(function Root3(t0, ref) {
43300
+ var Root3 = /* @__PURE__ */ (0, import_react36.forwardRef)(function Root4(t0, ref) {
43233
43301
  var $ = (0, import_react_compiler_runtime49.c)(7);
43234
43302
  var children = t0.children, style = t0.style, className = t0.className;
43235
43303
  var t1;
@@ -43345,7 +43413,7 @@ var MessageGroup = function(t0) {
43345
43413
  }
43346
43414
  var t2;
43347
43415
  if ($[2] !== className || $[3] !== style || $[4] !== t1) {
43348
- t2 = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Root2, {
43416
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Root3, {
43349
43417
  className: className,
43350
43418
  style: style,
43351
43419
  children: t1
@@ -43359,14 +43427,138 @@ var MessageGroup = function(t0) {
43359
43427
  }
43360
43428
  return t2;
43361
43429
  };
43362
- MessageGroup.Root = Root2;
43430
+ MessageGroup.Root = Root3;
43363
43431
  MessageGroup.Name = Name;
43364
43432
  MessageGroup.AssistantAvatar = AssistantAvatar;
43365
43433
  MessageGroup.UserAvatar = UserAvatar;
43366
43434
  MessageGroup.Messages = Messages;
43367
43435
  MessageGroup.Content = Content5;
43436
+ // src/components/messages/MessageAttachments.tsx
43437
+ var import_react_compiler_runtime51 = require("react-compiler-runtime");
43438
+ var import_themes37 = require("@radix-ui/themes");
43439
+ var import_react_icons10 = require("@radix-ui/react-icons");
43440
+ var import_jsx_runtime53 = require("react/jsx-runtime");
43441
+ var MessageAttachments = function(t0) {
43442
+ var _message$attachments;
43443
+ var $ = (0, import_react_compiler_runtime51.c)(4);
43444
+ var message = t0.message;
43445
+ if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
43446
+ return null;
43447
+ }
43448
+ var t1;
43449
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43450
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons10.FileIcon, {});
43451
+ $[0] = t1;
43452
+ } else {
43453
+ t1 = $[0];
43454
+ }
43455
+ var t2 = message.attachments.length > 1 ? "s" : "";
43456
+ var t3;
43457
+ if ($[1] !== message.attachments.length || $[2] !== t2) {
43458
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes37.Flex, {
43459
+ align: "start",
43460
+ pb: "1",
43461
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes37.Badge, {
43462
+ color: "gray",
43463
+ variant: "surface",
43464
+ children: [
43465
+ t1,
43466
+ message.attachments.length,
43467
+ " file",
43468
+ t2
43469
+ ]
43470
+ })
43471
+ });
43472
+ $[1] = message.attachments.length;
43473
+ $[2] = t2;
43474
+ $[3] = t3;
43475
+ } else {
43476
+ t3 = $[3];
43477
+ }
43478
+ return t3;
43479
+ };
43480
+ // src/components/skeletons/StartingSkeleton/index.tsx
43481
+ var import_react_compiler_runtime53 = require("react-compiler-runtime");
43482
+ var import_react38 = require("react");
43483
+ var import_themes39 = require("@radix-ui/themes");
43484
+ // src/components/skeletons/StartingContentSkeleton/index.tsx
43485
+ var import_react_compiler_runtime52 = require("react-compiler-runtime");
43486
+ var import_themes38 = require("@radix-ui/themes");
43487
+ var import_jsx_runtime54 = require("react/jsx-runtime");
43488
+ var StartingContentSkeleton = function() {
43489
+ var $ = (0, import_react_compiler_runtime52.c)(1);
43490
+ var t0;
43491
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43492
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes38.Skeleton, {
43493
+ loading: true,
43494
+ mt: "1",
43495
+ height: "var(--space-4)",
43496
+ width: "var(--space-4)",
43497
+ style: {
43498
+ borderRadius: "var(--radius-6)",
43499
+ flexShrink: 0
43500
+ }
43501
+ });
43502
+ $[0] = t0;
43503
+ } else {
43504
+ t0 = $[0];
43505
+ }
43506
+ return t0;
43507
+ };
43508
+ // src/components/skeletons/StartingSkeleton/index.tsx
43509
+ var import_jsx_runtime55 = require("react/jsx-runtime");
43510
+ var StartingSkeleton = function(t0) {
43511
+ var $ = (0, import_react_compiler_runtime53.c)(7);
43512
+ var children = t0.children;
43513
+ var assistantNameContext = (0, import_react38.useContext)(AssistantNameContext);
43514
+ var t1;
43515
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43516
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MessageGroup.AssistantAvatar, {});
43517
+ $[0] = t1;
43518
+ } else {
43519
+ t1 = $[0];
43520
+ }
43521
+ var t2;
43522
+ if ($[1] !== assistantNameContext) {
43523
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MessageGroup.Name, {
43524
+ children: assistantNameContext
43525
+ });
43526
+ $[1] = assistantNameContext;
43527
+ $[2] = t2;
43528
+ } else {
43529
+ t2 = $[2];
43530
+ }
43531
+ var t3;
43532
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
43533
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(StartingContentSkeleton, {});
43534
+ $[3] = t3;
43535
+ } else {
43536
+ t3 = $[3];
43537
+ }
43538
+ var t4;
43539
+ if ($[4] !== children || $[5] !== t2) {
43540
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(MessageGroup.Root, {
43541
+ children: [
43542
+ t1,
43543
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes39.Box, {
43544
+ children: [
43545
+ t2,
43546
+ children,
43547
+ t3
43548
+ ]
43549
+ })
43550
+ ]
43551
+ });
43552
+ $[4] = children;
43553
+ $[5] = t2;
43554
+ $[6] = t4;
43555
+ } else {
43556
+ t4 = $[6];
43557
+ }
43558
+ return t4;
43559
+ };
43368
43560
  // src/contexts/components/ComponentsContext/index.tsx
43369
- var ComponentsContext = /* @__PURE__ */ (0, import_react38.createContext)({
43561
+ var ComponentsContext = /* @__PURE__ */ (0, import_react39.createContext)({
43370
43562
  components: {
43371
43563
  RunStep: RunStep,
43372
43564
  StartingToolCalls: StartingToolCalls2,
@@ -43376,22 +43568,25 @@ var ComponentsContext = /* @__PURE__ */ (0, import_react38.createContext)({
43376
43568
  FallbackToolCall: FallbackToolCall,
43377
43569
  TextContent: TextContent,
43378
43570
  ImageFileContent: ImageFileContent,
43379
- MessageGroup: MessageGroup
43571
+ MessageGroup: MessageGroup,
43572
+ MessageAttachments: MessageAttachments,
43573
+ StartingSkeleton: StartingSkeleton,
43574
+ StartingContentSkeleton: StartingContentSkeleton
43380
43575
  }
43381
43576
  });
43382
43577
  // src/components/runSteps/RunSteps/index.tsx
43383
- var import_jsx_runtime53 = require("react/jsx-runtime");
43578
+ var import_jsx_runtime56 = require("react/jsx-runtime");
43384
43579
  var RunSteps = function(t0) {
43385
- var $ = (0, import_react_compiler_runtime51.c)(7);
43580
+ var $ = (0, import_react_compiler_runtime54.c)(7);
43386
43581
  var runSteps = t0.runSteps;
43387
- var componentsContext = (0, import_react39.useContext)(ComponentsContext);
43582
+ var componentsContext = (0, import_react40.useContext)(ComponentsContext);
43388
43583
  var Component2 = componentsContext.components.RunStep;
43389
43584
  var t1;
43390
43585
  if ($[0] !== Component2 || $[1] !== runSteps) {
43391
43586
  var _t;
43392
43587
  if ($[3] !== Component2) {
43393
43588
  _t = function(runStep) {
43394
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Component2, {
43589
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Component2, {
43395
43590
  runStep: runStep
43396
43591
  }, runStep.id);
43397
43592
  };
@@ -43409,7 +43604,7 @@ var RunSteps = function(t0) {
43409
43604
  }
43410
43605
  var t2;
43411
43606
  if ($[5] !== t1) {
43412
- t2 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes37.Flex, {
43607
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes40.Flex, {
43413
43608
  direction: "column-reverse",
43414
43609
  children: t1
43415
43610
  });
@@ -43421,69 +43616,46 @@ var RunSteps = function(t0) {
43421
43616
  return t2;
43422
43617
  };
43423
43618
  // src/contexts/messages/MessageContext/index.ts
43424
- var import_react40 = require("react");
43425
- var MessageContext = /* @__PURE__ */ (0, import_react40.createContext)({
43619
+ var import_react41 = require("react");
43620
+ var MessageContext = /* @__PURE__ */ (0, import_react41.createContext)({
43426
43621
  message: null
43427
43622
  });
43428
43623
  // src/components/threads/Thread/Message/Provider.tsx
43429
43624
  var Provider = MessageContext.Provider;
43430
43625
  // src/components/threads/Thread/Message/Attachments/index.tsx
43431
- var import_react_compiler_runtime52 = require("react-compiler-runtime");
43432
- var import_themes38 = require("@radix-ui/themes");
43433
- var import_react_icons10 = require("@radix-ui/react-icons");
43434
- var import_jsx_runtime54 = require("react/jsx-runtime");
43626
+ var import_react_compiler_runtime55 = require("react-compiler-runtime");
43627
+ var import_jsx_runtime57 = require("react/jsx-runtime");
43435
43628
  var Attachments = function(t0) {
43436
- var _message$attachments;
43437
- var $ = (0, import_react_compiler_runtime52.c)(4);
43629
+ var $ = (0, import_react_compiler_runtime55.c)(3);
43438
43630
  var message = t0.message;
43439
- if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
43440
- return null;
43441
- }
43442
- var t1;
43443
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43444
- t1 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons10.FileIcon, {});
43445
- $[0] = t1;
43446
- } else {
43447
- t1 = $[0];
43448
- }
43449
- var t2 = message.attachments.length > 1 ? "s" : "";
43450
- var t3;
43451
- if ($[1] !== message.attachments.length || $[2] !== t2) {
43452
- t3 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes38.Flex, {
43453
- align: "start",
43454
- pb: "1",
43455
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes38.Badge, {
43456
- color: "gray",
43457
- variant: "surface",
43458
- children: [
43459
- t1,
43460
- message.attachments.length,
43461
- " file",
43462
- t2
43463
- ]
43464
- })
43631
+ var _useComponents = useComponents(), t1 = _useComponents.components;
43632
+ var MessageAttachments2 = t1.MessageAttachments;
43633
+ var t2;
43634
+ if ($[0] !== MessageAttachments2 || $[1] !== message) {
43635
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(MessageAttachments2, {
43636
+ message: message
43465
43637
  });
43466
- $[1] = message.attachments.length;
43638
+ $[0] = MessageAttachments2;
43639
+ $[1] = message;
43467
43640
  $[2] = t2;
43468
- $[3] = t3;
43469
43641
  } else {
43470
- t3 = $[3];
43642
+ t2 = $[2];
43471
43643
  }
43472
- return t3;
43644
+ return t2;
43473
43645
  };
43474
43646
  // src/components/messages/MessageContent/index.tsx
43475
- var import_react_compiler_runtime54 = require("react-compiler-runtime");
43647
+ var import_react_compiler_runtime57 = require("react-compiler-runtime");
43476
43648
  // src/components/messages/MessageContent/ContentPart/index.tsx
43477
- var import_react_compiler_runtime53 = require("react-compiler-runtime");
43478
- var import_jsx_runtime55 = require("react/jsx-runtime");
43649
+ var import_react_compiler_runtime56 = require("react-compiler-runtime");
43650
+ var import_jsx_runtime58 = require("react/jsx-runtime");
43479
43651
  var TextContent2 = function(t0) {
43480
- var $ = (0, import_react_compiler_runtime53.c)(3);
43652
+ var $ = (0, import_react_compiler_runtime56.c)(3);
43481
43653
  var content2 = t0.content;
43482
43654
  var _useComponents = useComponents(), t1 = _useComponents.components;
43483
43655
  var TextContent3 = t1.TextContent;
43484
43656
  var t2;
43485
43657
  if ($[0] !== TextContent3 || $[1] !== content2) {
43486
- t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TextContent3, {
43658
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TextContent3, {
43487
43659
  content: content2
43488
43660
  });
43489
43661
  $[0] = TextContent3;
@@ -43495,13 +43667,13 @@ var TextContent2 = function(t0) {
43495
43667
  return t2;
43496
43668
  };
43497
43669
  var ImageFileContent2 = function(t0) {
43498
- var $ = (0, import_react_compiler_runtime53.c)(3);
43670
+ var $ = (0, import_react_compiler_runtime56.c)(3);
43499
43671
  var content2 = t0.content;
43500
43672
  var _useComponents = useComponents(), t1 = _useComponents.components;
43501
43673
  var ImageFileContent3 = t1.ImageFileContent;
43502
43674
  var t2;
43503
43675
  if ($[0] !== ImageFileContent3 || $[1] !== content2) {
43504
- t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ImageFileContent3, {
43676
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ImageFileContent3, {
43505
43677
  content: content2
43506
43678
  });
43507
43679
  $[0] = ImageFileContent3;
@@ -43513,12 +43685,12 @@ var ImageFileContent2 = function(t0) {
43513
43685
  return t2;
43514
43686
  };
43515
43687
  var ContentPart = function(t0) {
43516
- var $ = (0, import_react_compiler_runtime53.c)(4);
43688
+ var $ = (0, import_react_compiler_runtime56.c)(4);
43517
43689
  var content2 = t0.content;
43518
43690
  if (content2.type === "text") {
43519
43691
  var t1;
43520
43692
  if ($[0] !== content2) {
43521
- t1 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TextContent2, {
43693
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TextContent2, {
43522
43694
  content: content2
43523
43695
  });
43524
43696
  $[0] = content2;
@@ -43531,7 +43703,7 @@ var ContentPart = function(t0) {
43531
43703
  if (content2.type === "image_file") {
43532
43704
  var _t;
43533
43705
  if ($[2] !== content2) {
43534
- _t = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ImageFileContent2, {
43706
+ _t = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ImageFileContent2, {
43535
43707
  content: content2
43536
43708
  });
43537
43709
  $[2] = content2;
@@ -43544,9 +43716,9 @@ var ContentPart = function(t0) {
43544
43716
  return null;
43545
43717
  };
43546
43718
  // src/components/messages/MessageContent/index.tsx
43547
- var import_jsx_runtime56 = require("react/jsx-runtime");
43719
+ var import_jsx_runtime59 = require("react/jsx-runtime");
43548
43720
  var MessageContent = function(t0) {
43549
- var $ = (0, import_react_compiler_runtime54.c)(4);
43721
+ var $ = (0, import_react_compiler_runtime57.c)(4);
43550
43722
  var message = t0.message;
43551
43723
  var t1;
43552
43724
  if ($[0] !== message.content) {
@@ -43558,7 +43730,7 @@ var MessageContent = function(t0) {
43558
43730
  }
43559
43731
  var t2;
43560
43732
  if ($[2] !== t1) {
43561
- t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, {
43733
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, {
43562
43734
  children: t1
43563
43735
  });
43564
43736
  $[2] = t1;
@@ -43569,14 +43741,14 @@ var MessageContent = function(t0) {
43569
43741
  return t2;
43570
43742
  };
43571
43743
  function _temp2(content2, index) {
43572
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ContentPart, {
43744
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ContentPart, {
43573
43745
  content: content2
43574
43746
  }, index);
43575
43747
  }
43576
43748
  // src/components/threads/Thread/Message/index.tsx
43577
- var import_jsx_runtime57 = require("react/jsx-runtime");
43749
+ var import_jsx_runtime60 = require("react/jsx-runtime");
43578
43750
  var Message = function(t0) {
43579
- var $ = (0, import_react_compiler_runtime55.c)(37);
43751
+ var $ = (0, import_react_compiler_runtime58.c)(37);
43580
43752
  var message = t0.message, className = t0.className, style = t0.style;
43581
43753
  var t1;
43582
43754
  bb0: {
@@ -43684,7 +43856,7 @@ var Message = function(t0) {
43684
43856
  }
43685
43857
  var t3;
43686
43858
  if ($[21] !== olderRunSteps_0) {
43687
- t3 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RunSteps, {
43859
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RunSteps, {
43688
43860
  runSteps: olderRunSteps_0
43689
43861
  });
43690
43862
  $[21] = olderRunSteps_0;
@@ -43703,13 +43875,13 @@ var Message = function(t0) {
43703
43875
  }
43704
43876
  var t5;
43705
43877
  if ($[24] !== message) {
43706
- t5 = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes39.Box, {
43878
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes41.Box, {
43707
43879
  style: t4,
43708
43880
  children: [
43709
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Attachments, {
43881
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Attachments, {
43710
43882
  message: message
43711
43883
  }),
43712
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(MessageContent, {
43884
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MessageContent, {
43713
43885
  message: message
43714
43886
  })
43715
43887
  ]
@@ -43721,7 +43893,7 @@ var Message = function(t0) {
43721
43893
  }
43722
43894
  var t6;
43723
43895
  if ($[26] !== laterRunSteps_0) {
43724
- t6 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RunSteps, {
43896
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RunSteps, {
43725
43897
  runSteps: laterRunSteps_0
43726
43898
  });
43727
43899
  $[26] = laterRunSteps_0;
@@ -43731,7 +43903,7 @@ var Message = function(t0) {
43731
43903
  }
43732
43904
  var t7;
43733
43905
  if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
43734
- t7 = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes39.Box, {
43906
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes41.Box, {
43735
43907
  className: className,
43736
43908
  style: style,
43737
43909
  children: [
@@ -43751,7 +43923,7 @@ var Message = function(t0) {
43751
43923
  }
43752
43924
  var t8;
43753
43925
  if ($[34] !== t2 || $[35] !== t7) {
43754
- t8 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Provider, {
43926
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Provider, {
43755
43927
  value: t2,
43756
43928
  children: t7
43757
43929
  });
@@ -43770,11 +43942,11 @@ function _temp22(runStep_1) {
43770
43942
  return runStep_1.step_details.type === "message_creation";
43771
43943
  }
43772
43944
  // src/components/threads/Thread/Messages/Content/index.tsx
43773
- var import_react_compiler_runtime58 = require("react-compiler-runtime");
43774
- var import_react44 = require("react");
43945
+ var import_react_compiler_runtime61 = require("react-compiler-runtime");
43946
+ var import_react45 = require("react");
43775
43947
  // src/hooks/messageGroups/useMessageGroups/index.ts
43776
- var import_react_compiler_runtime56 = require("react-compiler-runtime");
43777
- var import_react42 = require("react");
43948
+ var import_react_compiler_runtime59 = require("react-compiler-runtime");
43949
+ var import_react43 = require("react");
43778
43950
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
43779
43951
  var import_lodash6 = __toESM(require("lodash"), 1);
43780
43952
  var import_radash13 = require("radash");
@@ -43808,7 +43980,7 @@ var newGroup = function(_ref) {
43808
43980
  ]);
43809
43981
  };
43810
43982
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
43811
- function ownKeys25(e, r) {
43983
+ function ownKeys26(e, r) {
43812
43984
  var t = Object.keys(e);
43813
43985
  if (Object.getOwnPropertySymbols) {
43814
43986
  var o = Object.getOwnPropertySymbols(e);
@@ -43818,30 +43990,30 @@ function ownKeys25(e, r) {
43818
43990
  }
43819
43991
  return t;
43820
43992
  }
43821
- function _objectSpread25(e) {
43993
+ function _objectSpread26(e) {
43822
43994
  for(var r = 1; r < arguments.length; r++){
43823
43995
  var t = null != arguments[r] ? arguments[r] : {};
43824
- r % 2 ? ownKeys25(Object(t), true).forEach(function(r2) {
43825
- _defineProperty25(e, r2, t[r2]);
43826
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys25(Object(t)).forEach(function(r2) {
43996
+ r % 2 ? ownKeys26(Object(t), true).forEach(function(r2) {
43997
+ _defineProperty26(e, r2, t[r2]);
43998
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys26(Object(t)).forEach(function(r2) {
43827
43999
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
43828
44000
  });
43829
44001
  }
43830
44002
  return e;
43831
44003
  }
43832
- function _defineProperty25(e, r, t) {
43833
- return (r = _toPropertyKey25(r)) in e ? Object.defineProperty(e, r, {
44004
+ function _defineProperty26(e, r, t) {
44005
+ return (r = _toPropertyKey26(r)) in e ? Object.defineProperty(e, r, {
43834
44006
  value: t,
43835
44007
  enumerable: true,
43836
44008
  configurable: true,
43837
44009
  writable: true
43838
44010
  }) : e[r] = t, e;
43839
44011
  }
43840
- function _toPropertyKey25(t) {
43841
- var i = _toPrimitive25(t, "string");
44012
+ function _toPropertyKey26(t) {
44013
+ var i = _toPrimitive26(t, "string");
43842
44014
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
43843
44015
  }
43844
- function _toPrimitive25(t, r) {
44016
+ function _toPrimitive26(t, r) {
43845
44017
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
43846
44018
  var e = t[Symbol.toPrimitive];
43847
44019
  if (void 0 !== e) {
@@ -43868,7 +44040,7 @@ var messageGroups = function(_ref) {
43868
44040
  });
43869
44041
  }
43870
44042
  return _to_consumable_array(import_lodash6.default.dropRight(groups)).concat([
43871
- _objectSpread25(_objectSpread25({}, group), {}, {
44043
+ _objectSpread26(_objectSpread26({}, group), {}, {
43872
44044
  messages: _to_consumable_array(group.messages).concat([
43873
44045
  message
43874
44046
  ])
@@ -43878,7 +44050,7 @@ var messageGroups = function(_ref) {
43878
44050
  };
43879
44051
  // src/hooks/messageGroups/useMessageGroups/index.ts
43880
44052
  var useMessageGroups = function(t0) {
43881
- var $ = (0, import_react_compiler_runtime56.c)(4);
44053
+ var $ = (0, import_react_compiler_runtime59.c)(4);
43882
44054
  var messages2 = t0.messages;
43883
44055
  var t1;
43884
44056
  var t2;
@@ -43905,18 +44077,18 @@ var useMessageGroups = function(t0) {
43905
44077
  return t1;
43906
44078
  };
43907
44079
  // src/components/skeletons/MessagesSkeleton/index.tsx
43908
- var import_react_compiler_runtime57 = require("react-compiler-runtime");
43909
- var import_react43 = require("react");
43910
- var import_themes40 = require("@radix-ui/themes");
43911
- var import_jsx_runtime58 = require("react/jsx-runtime");
43912
- var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function MessagesSkeleton2(_props, ref) {
43913
- var $ = (0, import_react_compiler_runtime57.c)(7);
44080
+ var import_react_compiler_runtime60 = require("react-compiler-runtime");
44081
+ var import_react44 = require("react");
44082
+ var import_themes42 = require("@radix-ui/themes");
44083
+ var import_jsx_runtime61 = require("react/jsx-runtime");
44084
+ var MessagesSkeleton = /* @__PURE__ */ (0, import_react44.forwardRef)(function MessagesSkeleton2(_props, ref) {
44085
+ var $ = (0, import_react_compiler_runtime60.c)(7);
43914
44086
  var t0;
43915
44087
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43916
- t0 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
44088
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43917
44089
  loading: true,
43918
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Avatar, {
43919
- fallback: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Flex, {}),
44090
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Avatar, {
44091
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Flex, {}),
43920
44092
  size: "1"
43921
44093
  })
43922
44094
  });
@@ -43926,8 +44098,8 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43926
44098
  }
43927
44099
  var t1;
43928
44100
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
43929
- t1 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MessageGroup.Name, {
43930
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
44101
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MessageGroup.Name, {
44102
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43931
44103
  loading: true,
43932
44104
  style: {
43933
44105
  width: "128px"
@@ -43940,7 +44112,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43940
44112
  }
43941
44113
  var t2;
43942
44114
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
43943
- t2 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
44115
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43944
44116
  loading: true,
43945
44117
  style: {
43946
44118
  width: "256px"
@@ -43952,7 +44124,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43952
44124
  }
43953
44125
  var t3;
43954
44126
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
43955
- t3 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
44127
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43956
44128
  loading: true,
43957
44129
  style: {
43958
44130
  width: "256px",
@@ -43965,13 +44137,13 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43965
44137
  }
43966
44138
  var t4;
43967
44139
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
43968
- t4 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes40.Box, {
44140
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes42.Box, {
43969
44141
  pb: "3",
43970
44142
  children: [
43971
44143
  t1,
43972
44144
  t2,
43973
44145
  t3,
43974
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
44146
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43975
44147
  loading: true,
43976
44148
  style: {
43977
44149
  width: "256px",
@@ -43986,7 +44158,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43986
44158
  }
43987
44159
  var t5;
43988
44160
  if ($[5] !== ref) {
43989
- t5 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(MessageGroup.Root, {
44161
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(MessageGroup.Root, {
43990
44162
  ref: ref,
43991
44163
  children: [
43992
44164
  t0,
@@ -44001,9 +44173,9 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
44001
44173
  return t5;
44002
44174
  });
44003
44175
  // src/components/threads/Thread/Messages/Content/index.tsx
44004
- var import_jsx_runtime59 = require("react/jsx-runtime");
44176
+ var import_jsx_runtime62 = require("react/jsx-runtime");
44005
44177
  var Content6 = function() {
44006
- var $ = (0, import_react_compiler_runtime58.c)(14);
44178
+ var $ = (0, import_react_compiler_runtime61.c)(14);
44007
44179
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
44008
44180
  var addToast = useToasts().addToast;
44009
44181
  var t0;
@@ -44042,11 +44214,11 @@ var Content6 = function() {
44042
44214
  t2 = $[4];
44043
44215
  t3 = $[5];
44044
44216
  }
44045
- (0, import_react44.useEffect)(t2, t3);
44217
+ (0, import_react45.useEffect)(t2, t3);
44046
44218
  if (isLoading || isLoadingError) {
44047
44219
  var _t;
44048
44220
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
44049
- _t = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MessagesSkeleton, {});
44221
+ _t = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessagesSkeleton, {});
44050
44222
  $[6] = _t;
44051
44223
  } else {
44052
44224
  _t = $[6];
@@ -44058,7 +44230,7 @@ var Content6 = function() {
44058
44230
  var _t2;
44059
44231
  if ($[10] !== MessageGroup2) {
44060
44232
  _t2 = function(messageGroup) {
44061
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MessageGroup2, {
44233
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessageGroup2, {
44062
44234
  messageGroup: messageGroup
44063
44235
  }, messageGroup.id);
44064
44236
  };
@@ -44076,7 +44248,7 @@ var Content6 = function() {
44076
44248
  }
44077
44249
  var t5;
44078
44250
  if ($[12] !== t4) {
44079
- t5 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, {
44251
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_jsx_runtime62.Fragment, {
44080
44252
  children: t4
44081
44253
  });
44082
44254
  $[12] = t4;
@@ -44087,93 +44259,40 @@ var Content6 = function() {
44087
44259
  return t5;
44088
44260
  };
44089
44261
  // src/components/threads/Thread/Messages/Progress/index.tsx
44090
- var import_react_compiler_runtime61 = require("react-compiler-runtime");
44262
+ var import_react_compiler_runtime62 = require("react-compiler-runtime");
44091
44263
  var import_react46 = require("react");
44092
44264
  var import_themes43 = require("@radix-ui/themes");
44093
- // src/components/skeletons/StartingSkeleton/index.tsx
44094
- var import_react_compiler_runtime60 = require("react-compiler-runtime");
44095
- var import_react45 = require("react");
44096
- var import_themes42 = require("@radix-ui/themes");
44097
- // src/components/skeletons/StartingContentSkeleton/index.tsx
44098
- var import_react_compiler_runtime59 = require("react-compiler-runtime");
44099
- var import_themes41 = require("@radix-ui/themes");
44100
- var import_jsx_runtime60 = require("react/jsx-runtime");
44101
- var StartingContentSkeleton = function() {
44102
- var $ = (0, import_react_compiler_runtime59.c)(1);
44103
- var t0;
44104
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44105
- t0 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes41.Skeleton, {
44106
- loading: true,
44107
- mt: "1",
44108
- height: "var(--space-4)",
44109
- width: "var(--space-4)",
44110
- style: {
44111
- borderRadius: "var(--radius-6)",
44112
- flexShrink: 0
44113
- }
44114
- });
44115
- $[0] = t0;
44265
+ var import_jsx_runtime63 = require("react/jsx-runtime");
44266
+ var StartingSkeleton2 = function() {
44267
+ var $ = (0, import_react_compiler_runtime62.c)(2);
44268
+ var _useComponents = useComponents(), t0 = _useComponents.components;
44269
+ var StartingSkeleton3 = t0.StartingSkeleton;
44270
+ var t1;
44271
+ if ($[0] !== StartingSkeleton3) {
44272
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingSkeleton3, {});
44273
+ $[0] = StartingSkeleton3;
44274
+ $[1] = t1;
44116
44275
  } else {
44117
- t0 = $[0];
44276
+ t1 = $[1];
44118
44277
  }
44119
- return t0;
44278
+ return t1;
44120
44279
  };
44121
- // src/components/skeletons/StartingSkeleton/index.tsx
44122
- var import_jsx_runtime61 = require("react/jsx-runtime");
44123
- var StartingSkeleton = function(t0) {
44124
- var $ = (0, import_react_compiler_runtime60.c)(7);
44125
- var children = t0.children;
44126
- var assistantNameContext = (0, import_react45.useContext)(AssistantNameContext);
44280
+ var StartingContentSkeleton2 = function() {
44281
+ var $ = (0, import_react_compiler_runtime62.c)(2);
44282
+ var _useComponents = useComponents(), t0 = _useComponents.components;
44283
+ var StartingContentSkeleton3 = t0.StartingContentSkeleton;
44127
44284
  var t1;
44128
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44129
- t1 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MessageGroup.AssistantAvatar, {});
44130
- $[0] = t1;
44131
- } else {
44132
- t1 = $[0];
44133
- }
44134
- var t2;
44135
- if ($[1] !== assistantNameContext) {
44136
- t2 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MessageGroup.Name, {
44137
- children: assistantNameContext
44138
- });
44139
- $[1] = assistantNameContext;
44140
- $[2] = t2;
44141
- } else {
44142
- t2 = $[2];
44143
- }
44144
- var t3;
44145
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
44146
- t3 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(StartingContentSkeleton, {});
44147
- $[3] = t3;
44148
- } else {
44149
- t3 = $[3];
44150
- }
44151
- var t4;
44152
- if ($[4] !== children || $[5] !== t2) {
44153
- t4 = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(MessageGroup.Root, {
44154
- children: [
44155
- t1,
44156
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes42.Box, {
44157
- children: [
44158
- t2,
44159
- children,
44160
- t3
44161
- ]
44162
- })
44163
- ]
44164
- });
44165
- $[4] = children;
44166
- $[5] = t2;
44167
- $[6] = t4;
44285
+ if ($[0] !== StartingContentSkeleton3) {
44286
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingContentSkeleton3, {});
44287
+ $[0] = StartingContentSkeleton3;
44288
+ $[1] = t1;
44168
44289
  } else {
44169
- t4 = $[6];
44290
+ t1 = $[1];
44170
44291
  }
44171
- return t4;
44292
+ return t1;
44172
44293
  };
44173
- // src/components/threads/Thread/Messages/Progress/index.tsx
44174
- var import_jsx_runtime62 = require("react/jsx-runtime");
44175
44294
  var Progress = function() {
44176
- var $ = (0, import_react_compiler_runtime61.c)(3);
44295
+ var $ = (0, import_react_compiler_runtime62.c)(3);
44177
44296
  var latestMessage = useLatestMessage().latestMessage;
44178
44297
  var isMutatingMessage = useIsMutatingMessage();
44179
44298
  var t0;
@@ -44206,7 +44325,7 @@ var Progress = function() {
44206
44325
  if (isStartingSkeletonVisible) {
44207
44326
  var t1;
44208
44327
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44209
- t1 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(StartingSkeleton, {});
44328
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingSkeleton2, {});
44210
44329
  $[0] = t1;
44211
44330
  } else {
44212
44331
  t1 = $[0];
@@ -44216,22 +44335,18 @@ var Progress = function() {
44216
44335
  if (isMutatingMessage) {
44217
44336
  var _t;
44218
44337
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
44219
- _t = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes43.Flex, {
44220
- flexShrink: "0",
44221
- height: "24px",
44222
- width: "24px"
44223
- });
44338
+ _t = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MessageGroup.AssistantAvatar.Root, {});
44224
44339
  $[1] = _t;
44225
44340
  } else {
44226
44341
  _t = $[1];
44227
44342
  }
44228
44343
  var t2;
44229
44344
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44230
- t2 = /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(MessageGroup.Root, {
44345
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(MessageGroup.Root, {
44231
44346
  children: [
44232
44347
  _t,
44233
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes43.Box, {
44234
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(StartingContentSkeleton, {})
44348
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes43.Box, {
44349
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingContentSkeleton2, {})
44235
44350
  })
44236
44351
  ]
44237
44352
  });
@@ -44244,7 +44359,7 @@ var Progress = function() {
44244
44359
  return null;
44245
44360
  };
44246
44361
  // src/components/threads/Thread/Messages/Root/index.tsx
44247
- var import_react_compiler_runtime62 = require("react-compiler-runtime");
44362
+ var import_react_compiler_runtime63 = require("react-compiler-runtime");
44248
44363
  var import_themes44 = require("@radix-ui/themes");
44249
44364
  // src/hooks/misc/useInfiniteScroll/index.tsx
44250
44365
  var import_react48 = require("react");
@@ -44297,8 +44412,8 @@ var useInfiniteScroll = function(_ref) {
44297
44412
  };
44298
44413
  };
44299
44414
  // src/components/threads/Thread/Messages/Root/index.tsx
44300
- var import_jsx_runtime63 = require("react/jsx-runtime");
44301
- function ownKeys26(e, r) {
44415
+ var import_jsx_runtime64 = require("react/jsx-runtime");
44416
+ function ownKeys27(e, r) {
44302
44417
  var t = Object.keys(e);
44303
44418
  if (Object.getOwnPropertySymbols) {
44304
44419
  var o = Object.getOwnPropertySymbols(e);
@@ -44308,30 +44423,30 @@ function ownKeys26(e, r) {
44308
44423
  }
44309
44424
  return t;
44310
44425
  }
44311
- function _objectSpread26(e) {
44426
+ function _objectSpread27(e) {
44312
44427
  for(var r = 1; r < arguments.length; r++){
44313
44428
  var t = null != arguments[r] ? arguments[r] : {};
44314
- r % 2 ? ownKeys26(Object(t), true).forEach(function(r2) {
44315
- _defineProperty26(e, r2, t[r2]);
44316
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys26(Object(t)).forEach(function(r2) {
44429
+ r % 2 ? ownKeys27(Object(t), true).forEach(function(r2) {
44430
+ _defineProperty27(e, r2, t[r2]);
44431
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys27(Object(t)).forEach(function(r2) {
44317
44432
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44318
44433
  });
44319
44434
  }
44320
44435
  return e;
44321
44436
  }
44322
- function _defineProperty26(e, r, t) {
44323
- return (r = _toPropertyKey26(r)) in e ? Object.defineProperty(e, r, {
44437
+ function _defineProperty27(e, r, t) {
44438
+ return (r = _toPropertyKey27(r)) in e ? Object.defineProperty(e, r, {
44324
44439
  value: t,
44325
44440
  enumerable: true,
44326
44441
  configurable: true,
44327
44442
  writable: true
44328
44443
  }) : e[r] = t, e;
44329
44444
  }
44330
- function _toPropertyKey26(t) {
44331
- var i = _toPrimitive26(t, "string");
44445
+ function _toPropertyKey27(t) {
44446
+ var i = _toPrimitive27(t, "string");
44332
44447
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44333
44448
  }
44334
- function _toPrimitive26(t, r) {
44449
+ function _toPrimitive27(t, r) {
44335
44450
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44336
44451
  var e = t[Symbol.toPrimitive];
44337
44452
  if (void 0 !== e) {
@@ -44341,8 +44456,8 @@ function _toPrimitive26(t, r) {
44341
44456
  }
44342
44457
  return ("string" === r ? String : Number)(t);
44343
44458
  }
44344
- var Root4 = function(t0) {
44345
- var $ = (0, import_react_compiler_runtime62.c)(18);
44459
+ var Root5 = function(t0) {
44460
+ var $ = (0, import_react_compiler_runtime63.c)(18);
44346
44461
  var children = t0.children, style = t0.style, className = t0.className;
44347
44462
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
44348
44463
  var t1;
@@ -44370,7 +44485,7 @@ var Root4 = function(t0) {
44370
44485
  }
44371
44486
  var t3;
44372
44487
  if ($[6] !== t2) {
44373
- t3 = _objectSpread26({
44488
+ t3 = _objectSpread27({
44374
44489
  overflow: "auto"
44375
44490
  }, t2);
44376
44491
  $[6] = t2;
@@ -44380,7 +44495,7 @@ var Root4 = function(t0) {
44380
44495
  }
44381
44496
  var t4;
44382
44497
  if ($[8] !== hasNextPage || $[9] !== loaderRef) {
44383
- t4 = hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes44.Flex, {
44498
+ t4 = hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes44.Flex, {
44384
44499
  ref: loaderRef
44385
44500
  });
44386
44501
  $[8] = hasNextPage;
@@ -44391,7 +44506,7 @@ var Root4 = function(t0) {
44391
44506
  }
44392
44507
  var t5;
44393
44508
  if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
44394
- t5 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes44.Flex, {
44509
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes44.Flex, {
44395
44510
  flexShrink: "0",
44396
44511
  flexGrow: "1"
44397
44512
  });
@@ -44401,7 +44516,7 @@ var Root4 = function(t0) {
44401
44516
  }
44402
44517
  var t6;
44403
44518
  if ($[12] !== children || $[13] !== className || $[14] !== containerRef || $[15] !== t3 || $[16] !== t4) {
44404
- t6 = /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes44.Flex, {
44519
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes44.Flex, {
44405
44520
  ref: containerRef,
44406
44521
  direction: "column-reverse",
44407
44522
  flexGrow: "1",
@@ -44425,17 +44540,17 @@ var Root4 = function(t0) {
44425
44540
  return t6;
44426
44541
  };
44427
44542
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
44428
- var import_react_compiler_runtime63 = require("react-compiler-runtime");
44429
- var import_jsx_runtime64 = require("react/jsx-runtime");
44543
+ var import_react_compiler_runtime64 = require("react-compiler-runtime");
44544
+ var import_jsx_runtime65 = require("react/jsx-runtime");
44430
44545
  var NextPageSkeleton = function() {
44431
- var $ = (0, import_react_compiler_runtime63.c)(1);
44546
+ var $ = (0, import_react_compiler_runtime64.c)(1);
44432
44547
  var hasNextPage = useMessages().hasNextPage;
44433
44548
  if (!hasNextPage) {
44434
44549
  return null;
44435
44550
  }
44436
44551
  var t0;
44437
44552
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44438
- t0 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MessagesSkeleton, {});
44553
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MessagesSkeleton, {});
44439
44554
  $[0] = t0;
44440
44555
  } else {
44441
44556
  t0 = $[0];
@@ -44443,18 +44558,18 @@ var NextPageSkeleton = function() {
44443
44558
  return t0;
44444
44559
  };
44445
44560
  // src/components/threads/Thread/Messages/index.tsx
44446
- var import_jsx_runtime65 = require("react/jsx-runtime");
44561
+ var import_jsx_runtime66 = require("react/jsx-runtime");
44447
44562
  var Messages2 = function(t0) {
44448
- var $ = (0, import_react_compiler_runtime64.c)(9);
44563
+ var $ = (0, import_react_compiler_runtime65.c)(9);
44449
44564
  var children = t0.children, className = t0.className, style = t0.style;
44450
44565
  var t1;
44451
44566
  var t2;
44452
44567
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44453
- t1 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes45.Flex, {
44568
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes45.Flex, {
44454
44569
  flexShrink: "0",
44455
44570
  height: "var(--space-3)"
44456
44571
  });
44457
- t2 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Progress, {});
44572
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Progress, {});
44458
44573
  $[0] = t1;
44459
44574
  $[1] = t2;
44460
44575
  } else {
@@ -44465,9 +44580,9 @@ var Messages2 = function(t0) {
44465
44580
  var t4;
44466
44581
  var t5;
44467
44582
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44468
- t3 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Content6, {});
44469
- t4 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(NextPageSkeleton, {});
44470
- t5 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes45.Flex, {
44583
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Content6, {});
44584
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NextPageSkeleton, {});
44585
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes45.Flex, {
44471
44586
  flexShrink: "0",
44472
44587
  flexGrow: "1",
44473
44588
  minHeight: "var(--space-5)"
@@ -44482,7 +44597,7 @@ var Messages2 = function(t0) {
44482
44597
  }
44483
44598
  var t6;
44484
44599
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
44485
- t6 = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Root4, {
44600
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Root5, {
44486
44601
  style: style,
44487
44602
  className: className,
44488
44603
  children: [
@@ -44503,13 +44618,13 @@ var Messages2 = function(t0) {
44503
44618
  }
44504
44619
  return t6;
44505
44620
  };
44506
- Messages2.Root = Root4;
44621
+ Messages2.Root = Root5;
44507
44622
  Messages2.Message = Message;
44508
44623
  Messages2.NextPageSkeleton = NextPageSkeleton;
44509
44624
  // src/components/threads/Thread/MessageForm/index.tsx
44510
- var import_react_compiler_runtime70 = require("react-compiler-runtime");
44625
+ var import_react_compiler_runtime71 = require("react-compiler-runtime");
44511
44626
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
44512
- var import_react_compiler_runtime65 = require("react-compiler-runtime");
44627
+ var import_react_compiler_runtime66 = require("react-compiler-runtime");
44513
44628
  var import_react_icons11 = require("@radix-ui/react-icons");
44514
44629
  var import_themes46 = require("@radix-ui/themes");
44515
44630
  // src/hooks/messages/useMessageFormContext/index.ts
@@ -44529,8 +44644,8 @@ var useMessageFormContext = function() {
44529
44644
  return (0, import_react50.useContext)(MessageFormContext);
44530
44645
  };
44531
44646
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
44532
- var import_jsx_runtime66 = require("react/jsx-runtime");
44533
- function ownKeys27(e, r) {
44647
+ var import_jsx_runtime67 = require("react/jsx-runtime");
44648
+ function ownKeys28(e, r) {
44534
44649
  var t = Object.keys(e);
44535
44650
  if (Object.getOwnPropertySymbols) {
44536
44651
  var o = Object.getOwnPropertySymbols(e);
@@ -44540,30 +44655,30 @@ function ownKeys27(e, r) {
44540
44655
  }
44541
44656
  return t;
44542
44657
  }
44543
- function _objectSpread27(e) {
44658
+ function _objectSpread28(e) {
44544
44659
  for(var r = 1; r < arguments.length; r++){
44545
44660
  var t = null != arguments[r] ? arguments[r] : {};
44546
- r % 2 ? ownKeys27(Object(t), true).forEach(function(r2) {
44547
- _defineProperty27(e, r2, t[r2]);
44548
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys27(Object(t)).forEach(function(r2) {
44661
+ r % 2 ? ownKeys28(Object(t), true).forEach(function(r2) {
44662
+ _defineProperty28(e, r2, t[r2]);
44663
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys28(Object(t)).forEach(function(r2) {
44549
44664
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44550
44665
  });
44551
44666
  }
44552
44667
  return e;
44553
44668
  }
44554
- function _defineProperty27(e, r, t) {
44555
- return (r = _toPropertyKey27(r)) in e ? Object.defineProperty(e, r, {
44669
+ function _defineProperty28(e, r, t) {
44670
+ return (r = _toPropertyKey28(r)) in e ? Object.defineProperty(e, r, {
44556
44671
  value: t,
44557
44672
  enumerable: true,
44558
44673
  configurable: true,
44559
44674
  writable: true
44560
44675
  }) : e[r] = t, e;
44561
44676
  }
44562
- function _toPropertyKey27(t) {
44563
- var i = _toPrimitive27(t, "string");
44677
+ function _toPropertyKey28(t) {
44678
+ var i = _toPrimitive28(t, "string");
44564
44679
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44565
44680
  }
44566
- function _toPrimitive27(t, r) {
44681
+ function _toPrimitive28(t, r) {
44567
44682
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44568
44683
  var e = t[Symbol.toPrimitive];
44569
44684
  if (void 0 !== e) {
@@ -44573,12 +44688,12 @@ function _toPrimitive27(t, r) {
44573
44688
  }
44574
44689
  return ("string" === r ? String : Number)(t);
44575
44690
  }
44576
- var Root5 = function(t0) {
44577
- var $ = (0, import_react_compiler_runtime65.c)(4);
44691
+ var Root6 = function(t0) {
44692
+ var $ = (0, import_react_compiler_runtime66.c)(4);
44578
44693
  var children = t0.children, style = t0.style, className = t0.className;
44579
44694
  var t1;
44580
44695
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
44581
- t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes46.Flex, {
44696
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.Flex, {
44582
44697
  flexShrink: "0",
44583
44698
  align: "end",
44584
44699
  style: style,
@@ -44595,7 +44710,7 @@ var Root5 = function(t0) {
44595
44710
  return t1;
44596
44711
  };
44597
44712
  var Button3 = function(props) {
44598
- var $ = (0, import_react_compiler_runtime65.c)(10);
44713
+ var $ = (0, import_react_compiler_runtime66.c)(10);
44599
44714
  var superinterfaceContext = useSuperinterfaceContext();
44600
44715
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
44601
44716
  if (isLoading) {
@@ -44612,14 +44727,14 @@ var Button3 = function(props) {
44612
44727
  }
44613
44728
  var _t2;
44614
44729
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44615
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons11.StopIcon, {});
44730
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons11.StopIcon, {});
44616
44731
  $[2] = _t2;
44617
44732
  } else {
44618
44733
  _t2 = $[2];
44619
44734
  }
44620
44735
  var _t3;
44621
44736
  if ($[3] !== props || $[4] !== _t) {
44622
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44737
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread28(_objectSpread28({
44623
44738
  type: "button",
44624
44739
  onClick: _t
44625
44740
  }, props), {}, {
@@ -44636,14 +44751,14 @@ var Button3 = function(props) {
44636
44751
  var t0 = isDisabled || isFileLoading;
44637
44752
  var t1;
44638
44753
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
44639
- t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons11.ArrowUpIcon, {});
44754
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons11.ArrowUpIcon, {});
44640
44755
  $[6] = t1;
44641
44756
  } else {
44642
44757
  t1 = $[6];
44643
44758
  }
44644
44759
  var t2;
44645
44760
  if ($[7] !== props || $[8] !== t0) {
44646
- t2 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44761
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread28(_objectSpread28({
44647
44762
  type: "submit",
44648
44763
  disabled: t0
44649
44764
  }, props), {}, {
@@ -44658,17 +44773,17 @@ var Button3 = function(props) {
44658
44773
  return t2;
44659
44774
  };
44660
44775
  var Submit = function(props) {
44661
- var $ = (0, import_react_compiler_runtime65.c)(3);
44776
+ var $ = (0, import_react_compiler_runtime66.c)(3);
44662
44777
  var t0;
44663
44778
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44664
- t0 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button3, {});
44779
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button3, {});
44665
44780
  $[0] = t0;
44666
44781
  } else {
44667
44782
  t0 = $[0];
44668
44783
  }
44669
44784
  var t1;
44670
44785
  if ($[1] !== props) {
44671
- t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Root5, _objectSpread27(_objectSpread27({}, props), {}, {
44786
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root6, _objectSpread28(_objectSpread28({}, props), {}, {
44672
44787
  children: t0
44673
44788
  }));
44674
44789
  $[1] = props;
@@ -44678,7 +44793,7 @@ var Submit = function(props) {
44678
44793
  }
44679
44794
  return t1;
44680
44795
  };
44681
- Submit.Root = Root5;
44796
+ Submit.Root = Root6;
44682
44797
  Submit.Button = Button3;
44683
44798
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44684
44799
  var import_react_query6 = require("@tanstack/react-query");
@@ -44696,8 +44811,8 @@ var formOptions = {
44696
44811
  };
44697
44812
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44698
44813
  var import_radash14 = require("radash");
44699
- var import_jsx_runtime67 = require("react/jsx-runtime");
44700
- function ownKeys28(e, r) {
44814
+ var import_jsx_runtime68 = require("react/jsx-runtime");
44815
+ function ownKeys29(e, r) {
44701
44816
  var t = Object.keys(e);
44702
44817
  if (Object.getOwnPropertySymbols) {
44703
44818
  var o = Object.getOwnPropertySymbols(e);
@@ -44707,30 +44822,30 @@ function ownKeys28(e, r) {
44707
44822
  }
44708
44823
  return t;
44709
44824
  }
44710
- function _objectSpread28(e) {
44825
+ function _objectSpread29(e) {
44711
44826
  for(var r = 1; r < arguments.length; r++){
44712
44827
  var t = null != arguments[r] ? arguments[r] : {};
44713
- r % 2 ? ownKeys28(Object(t), true).forEach(function(r2) {
44714
- _defineProperty28(e, r2, t[r2]);
44715
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys28(Object(t)).forEach(function(r2) {
44828
+ r % 2 ? ownKeys29(Object(t), true).forEach(function(r2) {
44829
+ _defineProperty29(e, r2, t[r2]);
44830
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys29(Object(t)).forEach(function(r2) {
44716
44831
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44717
44832
  });
44718
44833
  }
44719
44834
  return e;
44720
44835
  }
44721
- function _defineProperty28(e, r, t) {
44722
- return (r = _toPropertyKey28(r)) in e ? Object.defineProperty(e, r, {
44836
+ function _defineProperty29(e, r, t) {
44837
+ return (r = _toPropertyKey29(r)) in e ? Object.defineProperty(e, r, {
44723
44838
  value: t,
44724
44839
  enumerable: true,
44725
44840
  configurable: true,
44726
44841
  writable: true
44727
44842
  }) : e[r] = t, e;
44728
44843
  }
44729
- function _toPropertyKey28(t) {
44730
- var i = _toPrimitive28(t, "string");
44844
+ function _toPropertyKey29(t) {
44845
+ var i = _toPrimitive29(t, "string");
44731
44846
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44732
44847
  }
44733
- function _toPrimitive28(t, r) {
44848
+ function _toPrimitive29(t, r) {
44734
44849
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44735
44850
  var e = t[Symbol.toPrimitive];
44736
44851
  if (void 0 !== e) {
@@ -44763,7 +44878,7 @@ function _asyncToGenerator6(n) {
44763
44878
  });
44764
44879
  };
44765
44880
  }
44766
- var Root6 = function(_ref) {
44881
+ var Root7 = function(_ref) {
44767
44882
  "use no memo";
44768
44883
  var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
44769
44884
  var _$_ref = _sliced_to_array((0, import_react51.useState)([]), 2), files = _$_ref[0], setFiles = _$_ref[1];
@@ -44836,7 +44951,7 @@ var Root6 = function(_ref) {
44836
44951
  });
44837
44952
  return [
44838
44953
  4,
44839
- createMessage(_objectSpread28({
44954
+ createMessage(_objectSpread29({
44840
44955
  // @ts-ignore-next-line
44841
44956
  content: data2.content
44842
44957
  }, attachments.length ? {
@@ -44856,7 +44971,7 @@ var Root6 = function(_ref) {
44856
44971
  };
44857
44972
  }();
44858
44973
  var content2 = watch("content");
44859
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(MessageFormContext.Provider, {
44974
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(MessageFormContext.Provider, {
44860
44975
  value: {
44861
44976
  isDisabled: isDisabled,
44862
44977
  isLoading: isLoading,
@@ -44865,13 +44980,13 @@ var Root6 = function(_ref) {
44865
44980
  isFileLoading: isFileLoading,
44866
44981
  content: content2
44867
44982
  },
44868
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_hook_form.FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
44869
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes47.Box, {
44983
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_hook_form.FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
44984
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes47.Box, {
44870
44985
  asChild: true,
44871
44986
  flexShrink: "0",
44872
44987
  style: style,
44873
44988
  className: className,
44874
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("form", {
44989
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("form", {
44875
44990
  onSubmit: handleSubmit(onSubmit),
44876
44991
  children: children
44877
44992
  })
@@ -44883,7 +44998,7 @@ var Root6 = function(_ref) {
44883
44998
  var import_react_hook_form3 = require("react-hook-form");
44884
44999
  var import_themes51 = require("@radix-ui/themes");
44885
45000
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44886
- var import_react_compiler_runtime67 = require("react-compiler-runtime");
45001
+ var import_react_compiler_runtime68 = require("react-compiler-runtime");
44887
45002
  var import_themes48 = require("@radix-ui/themes");
44888
45003
  var import_react_hook_form2 = require("react-hook-form");
44889
45004
  // src/hooks/misc/usePrevious.ts
@@ -44898,15 +45013,15 @@ var usePrevious = function(state) {
44898
45013
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44899
45014
  var import_react54 = require("react");
44900
45015
  // src/components/textareas/TextareaBase/index.tsx
44901
- var import_react_compiler_runtime66 = require("react-compiler-runtime");
45016
+ var import_react_compiler_runtime67 = require("react-compiler-runtime");
44902
45017
  var import_react53 = require("react");
44903
45018
  var import_react_textarea_autosize = __toESM(require("react-textarea-autosize"), 1);
44904
- var import_jsx_runtime68 = require("react/jsx-runtime");
45019
+ var import_jsx_runtime69 = require("react/jsx-runtime");
44905
45020
  var _excluded3 = [
44906
45021
  "style",
44907
45022
  "className"
44908
45023
  ];
44909
- function ownKeys29(e, r) {
45024
+ function ownKeys30(e, r) {
44910
45025
  var t = Object.keys(e);
44911
45026
  if (Object.getOwnPropertySymbols) {
44912
45027
  var o = Object.getOwnPropertySymbols(e);
@@ -44916,30 +45031,30 @@ function ownKeys29(e, r) {
44916
45031
  }
44917
45032
  return t;
44918
45033
  }
44919
- function _objectSpread29(e) {
45034
+ function _objectSpread30(e) {
44920
45035
  for(var r = 1; r < arguments.length; r++){
44921
45036
  var t = null != arguments[r] ? arguments[r] : {};
44922
- r % 2 ? ownKeys29(Object(t), true).forEach(function(r2) {
44923
- _defineProperty29(e, r2, t[r2]);
44924
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys29(Object(t)).forEach(function(r2) {
45037
+ r % 2 ? ownKeys30(Object(t), true).forEach(function(r2) {
45038
+ _defineProperty30(e, r2, t[r2]);
45039
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys30(Object(t)).forEach(function(r2) {
44925
45040
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44926
45041
  });
44927
45042
  }
44928
45043
  return e;
44929
45044
  }
44930
- function _defineProperty29(e, r, t) {
44931
- return (r = _toPropertyKey29(r)) in e ? Object.defineProperty(e, r, {
45045
+ function _defineProperty30(e, r, t) {
45046
+ return (r = _toPropertyKey30(r)) in e ? Object.defineProperty(e, r, {
44932
45047
  value: t,
44933
45048
  enumerable: true,
44934
45049
  configurable: true,
44935
45050
  writable: true
44936
45051
  }) : e[r] = t, e;
44937
45052
  }
44938
- function _toPropertyKey29(t) {
44939
- var i = _toPrimitive29(t, "string");
45053
+ function _toPropertyKey30(t) {
45054
+ var i = _toPrimitive30(t, "string");
44940
45055
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44941
45056
  }
44942
- function _toPrimitive29(t, r) {
45057
+ function _toPrimitive30(t, r) {
44943
45058
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44944
45059
  var e = t[Symbol.toPrimitive];
44945
45060
  if (void 0 !== e) {
@@ -44968,7 +45083,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
44968
45083
  return t;
44969
45084
  }
44970
45085
  var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function TextareaBase2(t0, ref) {
44971
- var $ = (0, import_react_compiler_runtime66.c)(14);
45086
+ var $ = (0, import_react_compiler_runtime67.c)(14);
44972
45087
  var className;
44973
45088
  var rest;
44974
45089
  var style;
@@ -44989,7 +45104,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
44989
45104
  }
44990
45105
  var t1;
44991
45106
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
44992
- t1 = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("style", {
45107
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("style", {
44993
45108
  children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
44994
45109
  });
44995
45110
  $[4] = t1;
@@ -45007,7 +45122,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45007
45122
  }
45008
45123
  var t4;
45009
45124
  if ($[7] !== t3) {
45010
- t4 = _objectSpread29({
45125
+ t4 = _objectSpread30({
45011
45126
  border: 0,
45012
45127
  outline: 0,
45013
45128
  boxSizing: "border-box",
@@ -45023,10 +45138,10 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45023
45138
  }
45024
45139
  var t5;
45025
45140
  if ($[9] !== ref || $[10] !== rest || $[11] !== t2 || $[12] !== t4) {
45026
- t5 = /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, {
45141
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, {
45027
45142
  children: [
45028
45143
  t1,
45029
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_textarea_autosize.default, _objectSpread29({
45144
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_textarea_autosize.default, _objectSpread30({
45030
45145
  ref: ref,
45031
45146
  className: t2,
45032
45147
  style: t4
@@ -45044,8 +45159,8 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45044
45159
  return t5;
45045
45160
  });
45046
45161
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
45047
- var import_jsx_runtime69 = require("react/jsx-runtime");
45048
- function ownKeys30(e, r) {
45162
+ var import_jsx_runtime70 = require("react/jsx-runtime");
45163
+ function ownKeys31(e, r) {
45049
45164
  var t = Object.keys(e);
45050
45165
  if (Object.getOwnPropertySymbols) {
45051
45166
  var o = Object.getOwnPropertySymbols(e);
@@ -45055,30 +45170,30 @@ function ownKeys30(e, r) {
45055
45170
  }
45056
45171
  return t;
45057
45172
  }
45058
- function _objectSpread30(e) {
45173
+ function _objectSpread31(e) {
45059
45174
  for(var r = 1; r < arguments.length; r++){
45060
45175
  var t = null != arguments[r] ? arguments[r] : {};
45061
- r % 2 ? ownKeys30(Object(t), true).forEach(function(r2) {
45062
- _defineProperty30(e, r2, t[r2]);
45063
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys30(Object(t)).forEach(function(r2) {
45176
+ r % 2 ? ownKeys31(Object(t), true).forEach(function(r2) {
45177
+ _defineProperty31(e, r2, t[r2]);
45178
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys31(Object(t)).forEach(function(r2) {
45064
45179
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45065
45180
  });
45066
45181
  }
45067
45182
  return e;
45068
45183
  }
45069
- function _defineProperty30(e, r, t) {
45070
- return (r = _toPropertyKey30(r)) in e ? Object.defineProperty(e, r, {
45184
+ function _defineProperty31(e, r, t) {
45185
+ return (r = _toPropertyKey31(r)) in e ? Object.defineProperty(e, r, {
45071
45186
  value: t,
45072
45187
  enumerable: true,
45073
45188
  configurable: true,
45074
45189
  writable: true
45075
45190
  }) : e[r] = t, e;
45076
45191
  }
45077
- function _toPropertyKey30(t) {
45078
- var i = _toPrimitive30(t, "string");
45192
+ function _toPropertyKey31(t) {
45193
+ var i = _toPrimitive31(t, "string");
45079
45194
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45080
45195
  }
45081
- function _toPrimitive30(t, r) {
45196
+ function _toPrimitive31(t, r) {
45082
45197
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45083
45198
  var e = t[Symbol.toPrimitive];
45084
45199
  if (void 0 !== e) {
@@ -45088,12 +45203,12 @@ function _toPrimitive30(t, r) {
45088
45203
  }
45089
45204
  return ("string" === r ? String : Number)(t);
45090
45205
  }
45091
- var Root7 = function(t0) {
45092
- var $ = (0, import_react_compiler_runtime67.c)(4);
45206
+ var Root8 = function(t0) {
45207
+ var $ = (0, import_react_compiler_runtime68.c)(4);
45093
45208
  var children = t0.children, style = t0.style, className = t0.className;
45094
45209
  var t1;
45095
45210
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
45096
- t1 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes48.Flex, {
45211
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes48.Flex, {
45097
45212
  flexGrow: "1",
45098
45213
  pt: "4px",
45099
45214
  style: style,
@@ -45134,7 +45249,7 @@ var Input = function(props) {
45134
45249
  isDisabledPrevious,
45135
45250
  textareaProps
45136
45251
  ]);
45137
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
45252
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TextareaBase, _objectSpread31(_objectSpread31(_objectSpread31({
45138
45253
  minRows: 1,
45139
45254
  placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
45140
45255
  disabled: isDisabled,
@@ -45154,17 +45269,17 @@ var Input = function(props) {
45154
45269
  }));
45155
45270
  };
45156
45271
  var Control = function(props) {
45157
- var $ = (0, import_react_compiler_runtime67.c)(3);
45272
+ var $ = (0, import_react_compiler_runtime68.c)(3);
45158
45273
  var t0;
45159
45274
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
45160
- t0 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Input, {});
45275
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Input, {});
45161
45276
  $[0] = t0;
45162
45277
  } else {
45163
45278
  t0 = $[0];
45164
45279
  }
45165
45280
  var t1;
45166
45281
  if ($[1] !== props) {
45167
- t1 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Root7, _objectSpread30(_objectSpread30({}, props), {}, {
45282
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Root8, _objectSpread31(_objectSpread31({}, props), {}, {
45168
45283
  children: t0
45169
45284
  }));
45170
45285
  $[1] = props;
@@ -45174,14 +45289,14 @@ var Control = function(props) {
45174
45289
  }
45175
45290
  return t1;
45176
45291
  };
45177
- Control.Root = Root7;
45292
+ Control.Root = Root8;
45178
45293
  Control.Input = Input;
45179
45294
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
45180
- var import_react_compiler_runtime68 = require("react-compiler-runtime");
45295
+ var import_react_compiler_runtime69 = require("react-compiler-runtime");
45181
45296
  var import_themes49 = require("@radix-ui/themes");
45182
45297
  var import_react_icons12 = require("@radix-ui/react-icons");
45183
- var import_jsx_runtime70 = require("react/jsx-runtime");
45184
- function ownKeys31(e, r) {
45298
+ var import_jsx_runtime71 = require("react/jsx-runtime");
45299
+ function ownKeys32(e, r) {
45185
45300
  var t = Object.keys(e);
45186
45301
  if (Object.getOwnPropertySymbols) {
45187
45302
  var o = Object.getOwnPropertySymbols(e);
@@ -45191,30 +45306,30 @@ function ownKeys31(e, r) {
45191
45306
  }
45192
45307
  return t;
45193
45308
  }
45194
- function _objectSpread31(e) {
45309
+ function _objectSpread32(e) {
45195
45310
  for(var r = 1; r < arguments.length; r++){
45196
45311
  var t = null != arguments[r] ? arguments[r] : {};
45197
- r % 2 ? ownKeys31(Object(t), true).forEach(function(r2) {
45198
- _defineProperty31(e, r2, t[r2]);
45199
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys31(Object(t)).forEach(function(r2) {
45312
+ r % 2 ? ownKeys32(Object(t), true).forEach(function(r2) {
45313
+ _defineProperty32(e, r2, t[r2]);
45314
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys32(Object(t)).forEach(function(r2) {
45200
45315
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45201
45316
  });
45202
45317
  }
45203
45318
  return e;
45204
45319
  }
45205
- function _defineProperty31(e, r, t) {
45206
- return (r = _toPropertyKey31(r)) in e ? Object.defineProperty(e, r, {
45320
+ function _defineProperty32(e, r, t) {
45321
+ return (r = _toPropertyKey32(r)) in e ? Object.defineProperty(e, r, {
45207
45322
  value: t,
45208
45323
  enumerable: true,
45209
45324
  configurable: true,
45210
45325
  writable: true
45211
45326
  }) : e[r] = t, e;
45212
45327
  }
45213
- function _toPropertyKey31(t) {
45214
- var i = _toPrimitive31(t, "string");
45328
+ function _toPropertyKey32(t) {
45329
+ var i = _toPrimitive32(t, "string");
45215
45330
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45216
45331
  }
45217
- function _toPrimitive31(t, r) {
45332
+ function _toPrimitive32(t, r) {
45218
45333
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45219
45334
  var e = t[Symbol.toPrimitive];
45220
45335
  if (void 0 !== e) {
@@ -45225,7 +45340,7 @@ function _toPrimitive31(t, r) {
45225
45340
  return ("string" === r ? String : Number)(t);
45226
45341
  }
45227
45342
  var Preview = function(props) {
45228
- var $ = (0, import_react_compiler_runtime68.c)(8);
45343
+ var $ = (0, import_react_compiler_runtime69.c)(8);
45229
45344
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
45230
45345
  if (!files.length) {
45231
45346
  return null;
@@ -45235,30 +45350,30 @@ var Preview = function(props) {
45235
45350
  var _t;
45236
45351
  if ($[3] !== setFiles) {
45237
45352
  _t = function(file) {
45238
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Card, {
45353
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Card, {
45239
45354
  variant: "ghost",
45240
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes49.Flex, {
45355
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes49.Flex, {
45241
45356
  align: "center",
45242
45357
  justify: "between",
45243
45358
  gap: "1",
45244
45359
  children: [
45245
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes49.Flex, {
45360
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes49.Flex, {
45246
45361
  align: "center",
45247
45362
  gap: "1",
45248
45363
  flexShrink: "1",
45249
45364
  minWidth: "0",
45250
45365
  maxWidth: "250px",
45251
45366
  children: [
45252
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Flex, {
45367
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, {
45253
45368
  flexShrink: "0",
45254
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Spinner, {
45369
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Spinner, {
45255
45370
  loading: isOptimistic({
45256
45371
  id: file.id
45257
45372
  }),
45258
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_icons12.FileIcon, {})
45373
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons12.FileIcon, {})
45259
45374
  })
45260
45375
  }),
45261
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Text, {
45376
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Text, {
45262
45377
  size: "2",
45263
45378
  truncate: true,
45264
45379
  wrap: "nowrap",
@@ -45266,9 +45381,9 @@ var Preview = function(props) {
45266
45381
  })
45267
45382
  ]
45268
45383
  }),
45269
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Flex, {
45384
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, {
45270
45385
  flexShrink: "0",
45271
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.IconButton, {
45386
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.IconButton, {
45272
45387
  onClick: function() {
45273
45388
  return setFiles(function(prev) {
45274
45389
  return prev.filter(function(prevFile) {
@@ -45279,7 +45394,7 @@ var Preview = function(props) {
45279
45394
  color: "gray",
45280
45395
  variant: "ghost",
45281
45396
  size: "1",
45282
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_icons12.Cross2Icon, {})
45397
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons12.Cross2Icon, {})
45283
45398
  })
45284
45399
  })
45285
45400
  ]
@@ -45300,7 +45415,7 @@ var Preview = function(props) {
45300
45415
  }
45301
45416
  var t1;
45302
45417
  if ($[5] !== props || $[6] !== t0) {
45303
- t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Flex, _objectSpread31(_objectSpread31({
45418
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, _objectSpread32(_objectSpread32({
45304
45419
  flexBasis: "100%",
45305
45420
  direction: "column",
45306
45421
  pb: "2",
@@ -45323,7 +45438,7 @@ var import_dayjs2 = __toESM(require("dayjs"), 1);
45323
45438
  var import_react_icons13 = require("@radix-ui/react-icons");
45324
45439
  var import_themes50 = require("@radix-ui/themes");
45325
45440
  // src/hooks/files/useCreateFile/index.ts
45326
- var import_react_compiler_runtime69 = require("react-compiler-runtime");
45441
+ var import_react_compiler_runtime70 = require("react-compiler-runtime");
45327
45442
  var import_react_query7 = require("@tanstack/react-query");
45328
45443
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
45329
45444
  var formData = function(variables) {
@@ -45334,7 +45449,7 @@ var formData = function(variables) {
45334
45449
  return data2;
45335
45450
  };
45336
45451
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/index.ts
45337
- function ownKeys32(e, r) {
45452
+ function ownKeys33(e, r) {
45338
45453
  var t = Object.keys(e);
45339
45454
  if (Object.getOwnPropertySymbols) {
45340
45455
  var o = Object.getOwnPropertySymbols(e);
@@ -45344,30 +45459,30 @@ function ownKeys32(e, r) {
45344
45459
  }
45345
45460
  return t;
45346
45461
  }
45347
- function _objectSpread32(e) {
45462
+ function _objectSpread33(e) {
45348
45463
  for(var r = 1; r < arguments.length; r++){
45349
45464
  var t = null != arguments[r] ? arguments[r] : {};
45350
- r % 2 ? ownKeys32(Object(t), true).forEach(function(r2) {
45351
- _defineProperty32(e, r2, t[r2]);
45352
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys32(Object(t)).forEach(function(r2) {
45465
+ r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
45466
+ _defineProperty33(e, r2, t[r2]);
45467
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
45353
45468
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45354
45469
  });
45355
45470
  }
45356
45471
  return e;
45357
45472
  }
45358
- function _defineProperty32(e, r, t) {
45359
- return (r = _toPropertyKey32(r)) in e ? Object.defineProperty(e, r, {
45473
+ function _defineProperty33(e, r, t) {
45474
+ return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
45360
45475
  value: t,
45361
45476
  enumerable: true,
45362
45477
  configurable: true,
45363
45478
  writable: true
45364
45479
  }) : e[r] = t, e;
45365
45480
  }
45366
- function _toPropertyKey32(t) {
45367
- var i = _toPrimitive32(t, "string");
45481
+ function _toPropertyKey33(t) {
45482
+ var i = _toPrimitive33(t, "string");
45368
45483
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45369
45484
  }
45370
- function _toPrimitive32(t, r) {
45485
+ function _toPrimitive33(t, r) {
45371
45486
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45372
45487
  var e = t[Symbol.toPrimitive];
45373
45488
  if (void 0 !== e) {
@@ -45387,7 +45502,7 @@ var body2 = function(_ref) {
45387
45502
  assistantId: variables.assistantId
45388
45503
  });
45389
45504
  if (!threadId) return formData(variables);
45390
- return formData(_objectSpread32(_objectSpread32({}, variables), {}, {
45505
+ return formData(_objectSpread33(_objectSpread33({}, variables), {}, {
45391
45506
  threadId: threadId
45392
45507
  }));
45393
45508
  };
@@ -45454,7 +45569,7 @@ var mutationFn2 = function(_ref) {
45454
45569
  }();
45455
45570
  };
45456
45571
  // src/hooks/files/useCreateFile/lib/mutationOptions/index.ts
45457
- function ownKeys33(e, r) {
45572
+ function ownKeys34(e, r) {
45458
45573
  var t = Object.keys(e);
45459
45574
  if (Object.getOwnPropertySymbols) {
45460
45575
  var o = Object.getOwnPropertySymbols(e);
@@ -45464,30 +45579,30 @@ function ownKeys33(e, r) {
45464
45579
  }
45465
45580
  return t;
45466
45581
  }
45467
- function _objectSpread33(e) {
45582
+ function _objectSpread34(e) {
45468
45583
  for(var r = 1; r < arguments.length; r++){
45469
45584
  var t = null != arguments[r] ? arguments[r] : {};
45470
- r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
45471
- _defineProperty33(e, r2, t[r2]);
45472
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
45585
+ r % 2 ? ownKeys34(Object(t), true).forEach(function(r2) {
45586
+ _defineProperty34(e, r2, t[r2]);
45587
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys34(Object(t)).forEach(function(r2) {
45473
45588
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45474
45589
  });
45475
45590
  }
45476
45591
  return e;
45477
45592
  }
45478
- function _defineProperty33(e, r, t) {
45479
- return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
45593
+ function _defineProperty34(e, r, t) {
45594
+ return (r = _toPropertyKey34(r)) in e ? Object.defineProperty(e, r, {
45480
45595
  value: t,
45481
45596
  enumerable: true,
45482
45597
  configurable: true,
45483
45598
  writable: true
45484
45599
  }) : e[r] = t, e;
45485
45600
  }
45486
- function _toPropertyKey33(t) {
45487
- var i = _toPrimitive33(t, "string");
45601
+ function _toPropertyKey34(t) {
45602
+ var i = _toPrimitive34(t, "string");
45488
45603
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45489
45604
  }
45490
- function _toPrimitive33(t, r) {
45605
+ function _toPrimitive34(t, r) {
45491
45606
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45492
45607
  var e = t[Symbol.toPrimitive];
45493
45608
  if (void 0 !== e) {
@@ -45503,7 +45618,7 @@ var mutationOptions2 = function(_ref) {
45503
45618
  "createFile",
45504
45619
  threadContext.variables
45505
45620
  ];
45506
- return _objectSpread33(_objectSpread33(_objectSpread33({
45621
+ return _objectSpread34(_objectSpread34(_objectSpread34({
45507
45622
  mutationFn: mutationFn2({
45508
45623
  queryClient: queryClient,
45509
45624
  superinterfaceContext: superinterfaceContext,
@@ -45515,7 +45630,7 @@ var mutationOptions2 = function(_ref) {
45515
45630
  });
45516
45631
  };
45517
45632
  // src/hooks/files/useCreateFile/index.ts
45518
- function ownKeys34(e, r) {
45633
+ function ownKeys35(e, r) {
45519
45634
  var t = Object.keys(e);
45520
45635
  if (Object.getOwnPropertySymbols) {
45521
45636
  var o = Object.getOwnPropertySymbols(e);
@@ -45525,30 +45640,30 @@ function ownKeys34(e, r) {
45525
45640
  }
45526
45641
  return t;
45527
45642
  }
45528
- function _objectSpread34(e) {
45643
+ function _objectSpread35(e) {
45529
45644
  for(var r = 1; r < arguments.length; r++){
45530
45645
  var t = null != arguments[r] ? arguments[r] : {};
45531
- r % 2 ? ownKeys34(Object(t), true).forEach(function(r2) {
45532
- _defineProperty34(e, r2, t[r2]);
45533
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys34(Object(t)).forEach(function(r2) {
45646
+ r % 2 ? ownKeys35(Object(t), true).forEach(function(r2) {
45647
+ _defineProperty35(e, r2, t[r2]);
45648
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys35(Object(t)).forEach(function(r2) {
45534
45649
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45535
45650
  });
45536
45651
  }
45537
45652
  return e;
45538
45653
  }
45539
- function _defineProperty34(e, r, t) {
45540
- return (r = _toPropertyKey34(r)) in e ? Object.defineProperty(e, r, {
45654
+ function _defineProperty35(e, r, t) {
45655
+ return (r = _toPropertyKey35(r)) in e ? Object.defineProperty(e, r, {
45541
45656
  value: t,
45542
45657
  enumerable: true,
45543
45658
  configurable: true,
45544
45659
  writable: true
45545
45660
  }) : e[r] = t, e;
45546
45661
  }
45547
- function _toPropertyKey34(t) {
45548
- var i = _toPrimitive34(t, "string");
45662
+ function _toPropertyKey35(t) {
45663
+ var i = _toPrimitive35(t, "string");
45549
45664
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45550
45665
  }
45551
- function _toPrimitive34(t, r) {
45666
+ function _toPrimitive35(t, r) {
45552
45667
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45553
45668
  var e = t[Symbol.toPrimitive];
45554
45669
  if (void 0 !== e) {
@@ -45559,7 +45674,7 @@ function _toPrimitive34(t, r) {
45559
45674
  return ("string" === r ? String : Number)(t);
45560
45675
  }
45561
45676
  var useCreateFile = function(t0) {
45562
- var $ = (0, import_react_compiler_runtime69.c)(15);
45677
+ var $ = (0, import_react_compiler_runtime70.c)(15);
45563
45678
  var t1;
45564
45679
  if ($[0] !== t0) {
45565
45680
  t1 = t0 === void 0 ? {
@@ -45610,7 +45725,7 @@ var useCreateFile = function(t0) {
45610
45725
  var args = t62;
45611
45726
  var _args = _to_array(args), firstArg = _args[0], restArgs = _args.slice(1);
45612
45727
  return (_props = props).mutateAsync.apply(_props, [
45613
- _objectSpread34(_objectSpread34({}, threadContext.variables), firstArg)
45728
+ _objectSpread35(_objectSpread35({}, threadContext.variables), firstArg)
45614
45729
  ].concat(_to_consumable_array(restArgs)));
45615
45730
  };
45616
45731
  $[9] = props;
@@ -45621,7 +45736,7 @@ var useCreateFile = function(t0) {
45621
45736
  }
45622
45737
  var t6;
45623
45738
  if ($[12] !== props || $[13] !== t5) {
45624
- t6 = _objectSpread34(_objectSpread34({}, props), {}, {
45739
+ t6 = _objectSpread35(_objectSpread35({}, props), {}, {
45625
45740
  createFile: t5
45626
45741
  });
45627
45742
  $[12] = props;
@@ -45635,8 +45750,8 @@ var useCreateFile = function(t0) {
45635
45750
  function _temp4() {}
45636
45751
  function _temp23() {}
45637
45752
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
45638
- var import_jsx_runtime71 = require("react/jsx-runtime");
45639
- function ownKeys35(e, r) {
45753
+ var import_jsx_runtime72 = require("react/jsx-runtime");
45754
+ function ownKeys36(e, r) {
45640
45755
  var t = Object.keys(e);
45641
45756
  if (Object.getOwnPropertySymbols) {
45642
45757
  var o = Object.getOwnPropertySymbols(e);
@@ -45646,30 +45761,30 @@ function ownKeys35(e, r) {
45646
45761
  }
45647
45762
  return t;
45648
45763
  }
45649
- function _objectSpread35(e) {
45764
+ function _objectSpread36(e) {
45650
45765
  for(var r = 1; r < arguments.length; r++){
45651
45766
  var t = null != arguments[r] ? arguments[r] : {};
45652
- r % 2 ? ownKeys35(Object(t), true).forEach(function(r2) {
45653
- _defineProperty35(e, r2, t[r2]);
45654
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys35(Object(t)).forEach(function(r2) {
45767
+ r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
45768
+ _defineProperty36(e, r2, t[r2]);
45769
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
45655
45770
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45656
45771
  });
45657
45772
  }
45658
45773
  return e;
45659
45774
  }
45660
- function _defineProperty35(e, r, t) {
45661
- return (r = _toPropertyKey35(r)) in e ? Object.defineProperty(e, r, {
45775
+ function _defineProperty36(e, r, t) {
45776
+ return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
45662
45777
  value: t,
45663
45778
  enumerable: true,
45664
45779
  configurable: true,
45665
45780
  writable: true
45666
45781
  }) : e[r] = t, e;
45667
45782
  }
45668
- function _toPropertyKey35(t) {
45669
- var i = _toPrimitive35(t, "string");
45783
+ function _toPropertyKey36(t) {
45784
+ var i = _toPrimitive36(t, "string");
45670
45785
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45671
45786
  }
45672
- function _toPrimitive35(t, r) {
45787
+ function _toPrimitive36(t, r) {
45673
45788
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45674
45789
  var e = t[Symbol.toPrimitive];
45675
45790
  if (void 0 !== e) {
@@ -45916,12 +46031,12 @@ var Control2 = function(props) {
45916
46031
  createFile,
45917
46032
  setFiles
45918
46033
  ]);
45919
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes50.Flex, _objectSpread35(_objectSpread35({
46034
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes50.Flex, _objectSpread36(_objectSpread36({
45920
46035
  pt: "2",
45921
46036
  pr: "2",
45922
46037
  flexGrow: "0"
45923
46038
  }, props), {}, {
45924
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes50.IconButton, {
46039
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes50.IconButton, {
45925
46040
  type: "button",
45926
46041
  variant: "ghost",
45927
46042
  color: "gray",
@@ -45931,8 +46046,8 @@ var Control2 = function(props) {
45931
46046
  overflow: "hidden"
45932
46047
  },
45933
46048
  children: [
45934
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons13.FilePlusIcon, {}),
45935
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("input", {
46049
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons13.FilePlusIcon, {}),
46050
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("input", {
45936
46051
  type: "file",
45937
46052
  multiple: true,
45938
46053
  accept: accept,
@@ -45957,8 +46072,8 @@ var Files = {
45957
46072
  Control: Control2
45958
46073
  };
45959
46074
  // src/components/threads/Thread/MessageForm/Field/index.tsx
45960
- var import_jsx_runtime72 = require("react/jsx-runtime");
45961
- function ownKeys36(e, r) {
46075
+ var import_jsx_runtime73 = require("react/jsx-runtime");
46076
+ function ownKeys37(e, r) {
45962
46077
  var t = Object.keys(e);
45963
46078
  if (Object.getOwnPropertySymbols) {
45964
46079
  var o = Object.getOwnPropertySymbols(e);
@@ -45968,30 +46083,30 @@ function ownKeys36(e, r) {
45968
46083
  }
45969
46084
  return t;
45970
46085
  }
45971
- function _objectSpread36(e) {
46086
+ function _objectSpread37(e) {
45972
46087
  for(var r = 1; r < arguments.length; r++){
45973
46088
  var t = null != arguments[r] ? arguments[r] : {};
45974
- r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
45975
- _defineProperty36(e, r2, t[r2]);
45976
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
46089
+ r % 2 ? ownKeys37(Object(t), true).forEach(function(r2) {
46090
+ _defineProperty37(e, r2, t[r2]);
46091
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys37(Object(t)).forEach(function(r2) {
45977
46092
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45978
46093
  });
45979
46094
  }
45980
46095
  return e;
45981
46096
  }
45982
- function _defineProperty36(e, r, t) {
45983
- return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
46097
+ function _defineProperty37(e, r, t) {
46098
+ return (r = _toPropertyKey37(r)) in e ? Object.defineProperty(e, r, {
45984
46099
  value: t,
45985
46100
  enumerable: true,
45986
46101
  configurable: true,
45987
46102
  writable: true
45988
46103
  }) : e[r] = t, e;
45989
46104
  }
45990
- function _toPropertyKey36(t) {
45991
- var i = _toPrimitive36(t, "string");
46105
+ function _toPropertyKey37(t) {
46106
+ var i = _toPrimitive37(t, "string");
45992
46107
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45993
46108
  }
45994
- function _toPrimitive36(t, r) {
46109
+ function _toPrimitive37(t, r) {
45995
46110
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45996
46111
  var e = t[Symbol.toPrimitive];
45997
46112
  if (void 0 !== e) {
@@ -46001,23 +46116,23 @@ function _toPrimitive36(t, r) {
46001
46116
  }
46002
46117
  return ("string" === r ? String : Number)(t);
46003
46118
  }
46004
- var Root8 = function(_ref) {
46119
+ var Root9 = function(_ref) {
46005
46120
  "use no memo";
46006
46121
  var children = _ref.children, className = _ref.className, style = _ref.style;
46007
46122
  var _$_ref = (0, import_react_hook_form3.useFormContext)(), errors = _$_ref.formState.errors;
46008
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Container, {
46123
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Container, {
46009
46124
  size: "2",
46010
46125
  flexGrow: "0",
46011
46126
  className: className,
46012
46127
  style: style,
46013
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Flex, {
46128
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Flex, {
46014
46129
  direction: "column",
46015
46130
  flexShrink: "0",
46016
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Flex, {
46131
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Flex, {
46017
46132
  direction: "column",
46018
46133
  flexShrink: "0",
46019
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Flex, {
46020
- style: _objectSpread36({
46134
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Flex, {
46135
+ style: _objectSpread37({
46021
46136
  borderRadius: "var(--radius-2)",
46022
46137
  borderWidth: "1px",
46023
46138
  borderStyle: "solid",
@@ -46035,13 +46150,13 @@ var Root8 = function(_ref) {
46035
46150
  });
46036
46151
  };
46037
46152
  var Field = {
46038
- Root: Root8,
46153
+ Root: Root9,
46039
46154
  Control: Control,
46040
46155
  Files: Files
46041
46156
  };
46042
46157
  // src/components/threads/Thread/MessageForm/index.tsx
46043
- var import_jsx_runtime73 = require("react/jsx-runtime");
46044
- function ownKeys37(e, r) {
46158
+ var import_jsx_runtime74 = require("react/jsx-runtime");
46159
+ function ownKeys38(e, r) {
46045
46160
  var t = Object.keys(e);
46046
46161
  if (Object.getOwnPropertySymbols) {
46047
46162
  var o = Object.getOwnPropertySymbols(e);
@@ -46051,30 +46166,30 @@ function ownKeys37(e, r) {
46051
46166
  }
46052
46167
  return t;
46053
46168
  }
46054
- function _objectSpread37(e) {
46169
+ function _objectSpread38(e) {
46055
46170
  for(var r = 1; r < arguments.length; r++){
46056
46171
  var t = null != arguments[r] ? arguments[r] : {};
46057
- r % 2 ? ownKeys37(Object(t), true).forEach(function(r2) {
46058
- _defineProperty37(e, r2, t[r2]);
46059
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys37(Object(t)).forEach(function(r2) {
46172
+ r % 2 ? ownKeys38(Object(t), true).forEach(function(r2) {
46173
+ _defineProperty38(e, r2, t[r2]);
46174
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys38(Object(t)).forEach(function(r2) {
46060
46175
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46061
46176
  });
46062
46177
  }
46063
46178
  return e;
46064
46179
  }
46065
- function _defineProperty37(e, r, t) {
46066
- return (r = _toPropertyKey37(r)) in e ? Object.defineProperty(e, r, {
46180
+ function _defineProperty38(e, r, t) {
46181
+ return (r = _toPropertyKey38(r)) in e ? Object.defineProperty(e, r, {
46067
46182
  value: t,
46068
46183
  enumerable: true,
46069
46184
  configurable: true,
46070
46185
  writable: true
46071
46186
  }) : e[r] = t, e;
46072
46187
  }
46073
- function _toPropertyKey37(t) {
46074
- var i = _toPrimitive37(t, "string");
46188
+ function _toPropertyKey38(t) {
46189
+ var i = _toPrimitive38(t, "string");
46075
46190
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46076
46191
  }
46077
- function _toPrimitive37(t, r) {
46192
+ function _toPrimitive38(t, r) {
46078
46193
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46079
46194
  var e = t[Symbol.toPrimitive];
46080
46195
  if (void 0 !== e) {
@@ -46085,13 +46200,13 @@ function _toPrimitive37(t, r) {
46085
46200
  return ("string" === r ? String : Number)(t);
46086
46201
  }
46087
46202
  var MessageForm = function(props) {
46088
- var $ = (0, import_react_compiler_runtime70.c)(3);
46203
+ var $ = (0, import_react_compiler_runtime71.c)(3);
46089
46204
  var t0;
46090
46205
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46091
- t0 = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Field.Root, {
46206
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Field.Root, {
46092
46207
  children: [
46093
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Field.Control, {}),
46094
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Submit, {})
46208
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Field.Control, {}),
46209
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Submit, {})
46095
46210
  ]
46096
46211
  });
46097
46212
  $[0] = t0;
@@ -46100,7 +46215,7 @@ var MessageForm = function(props) {
46100
46215
  }
46101
46216
  var t1;
46102
46217
  if ($[1] !== props) {
46103
- t1 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Root6, _objectSpread37(_objectSpread37({}, props), {}, {
46218
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Root7, _objectSpread38(_objectSpread38({}, props), {}, {
46104
46219
  children: t0
46105
46220
  }));
46106
46221
  $[1] = props;
@@ -46110,36 +46225,36 @@ var MessageForm = function(props) {
46110
46225
  }
46111
46226
  return t1;
46112
46227
  };
46113
- MessageForm.Root = Root6;
46228
+ MessageForm.Root = Root7;
46114
46229
  MessageForm.Field = Field;
46115
46230
  MessageForm.Submit = Submit;
46116
46231
  // src/components/threads/Thread/Root/index.tsx
46117
- var import_react_compiler_runtime73 = require("react-compiler-runtime");
46232
+ var import_react_compiler_runtime74 = require("react-compiler-runtime");
46118
46233
  var import_themes53 = require("@radix-ui/themes");
46119
46234
  // src/components/threads/Thread/Provider/index.tsx
46120
46235
  var Provider2 = SuperinterfaceProvider;
46121
46236
  // src/components/toasts/ToastsProvider/index.tsx
46122
- var import_react_compiler_runtime72 = require("react-compiler-runtime");
46237
+ var import_react_compiler_runtime73 = require("react-compiler-runtime");
46123
46238
  var import_react56 = require("react");
46124
46239
  var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
46125
46240
  // src/components/toasts/ToastsProvider/CustomToast.tsx
46126
- var import_react_compiler_runtime71 = require("react-compiler-runtime");
46241
+ var import_react_compiler_runtime72 = require("react-compiler-runtime");
46127
46242
  var Toast = __toESM(require("@radix-ui/react-toast"), 1);
46128
46243
  var import_themes52 = require("@radix-ui/themes");
46129
46244
  var import_react_icons14 = require("@radix-ui/react-icons");
46130
- var import_jsx_runtime74 = require("react/jsx-runtime");
46245
+ var import_jsx_runtime75 = require("react/jsx-runtime");
46131
46246
  var CustomToast = function(t0) {
46132
- var $ = (0, import_react_compiler_runtime71.c)(7);
46247
+ var $ = (0, import_react_compiler_runtime72.c)(7);
46133
46248
  var toast = t0.toast;
46134
46249
  var t1;
46135
46250
  if ($[0] !== toast.type) {
46136
- t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes52.Flex, {
46251
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes52.Flex, {
46137
46252
  pr: "2",
46138
46253
  height: "14px",
46139
46254
  align: "center",
46140
- children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_icons14.CheckCircledIcon, {
46255
+ children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_icons14.CheckCircledIcon, {
46141
46256
  color: "var(--accent-9)"
46142
- }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_icons14.CrossCircledIcon, {
46257
+ }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_icons14.CrossCircledIcon, {
46143
46258
  color: "var(--red-9)"
46144
46259
  })
46145
46260
  });
@@ -46150,7 +46265,7 @@ var CustomToast = function(t0) {
46150
46265
  }
46151
46266
  var t2;
46152
46267
  if ($[2] !== toast.message) {
46153
- t2 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes52.Text, {
46268
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes52.Text, {
46154
46269
  weight: "medium",
46155
46270
  size: "1",
46156
46271
  children: toast.message
@@ -46162,10 +46277,10 @@ var CustomToast = function(t0) {
46162
46277
  }
46163
46278
  var t3;
46164
46279
  if ($[4] !== t1 || $[5] !== t2) {
46165
- t3 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Toast.Root, {
46166
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes52.Card, {
46167
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Toast.Title, {
46168
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_themes52.Flex, {
46280
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Toast.Root, {
46281
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes52.Card, {
46282
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Toast.Title, {
46283
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_themes52.Flex, {
46169
46284
  children: [
46170
46285
  t1,
46171
46286
  t2
@@ -46183,9 +46298,9 @@ var CustomToast = function(t0) {
46183
46298
  return t3;
46184
46299
  };
46185
46300
  // src/components/toasts/ToastsProvider/index.tsx
46186
- var import_jsx_runtime75 = require("react/jsx-runtime");
46301
+ var import_jsx_runtime76 = require("react/jsx-runtime");
46187
46302
  var ToastsProvider = function(t0) {
46188
- var $ = (0, import_react_compiler_runtime72.c)(15);
46303
+ var $ = (0, import_react_compiler_runtime73.c)(15);
46189
46304
  var children = t0.children, t1 = t0.bottom;
46190
46305
  var bottom = t1 === void 0 ? 0 : t1;
46191
46306
  var t2;
@@ -46231,7 +46346,7 @@ var ToastsProvider = function(t0) {
46231
46346
  }
46232
46347
  var t6;
46233
46348
  if ($[6] !== bottom) {
46234
- t6 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Toast2.Viewport, {
46349
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Toast2.Viewport, {
46235
46350
  style: {
46236
46351
  position: "absolute",
46237
46352
  bottom: bottom,
@@ -46255,7 +46370,7 @@ var ToastsProvider = function(t0) {
46255
46370
  }
46256
46371
  var t7;
46257
46372
  if ($[8] !== children || $[9] !== t5 || $[10] !== t6) {
46258
- t7 = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Toast2.Provider, {
46373
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Toast2.Provider, {
46259
46374
  children: [
46260
46375
  children,
46261
46376
  t5,
@@ -46271,7 +46386,7 @@ var ToastsProvider = function(t0) {
46271
46386
  }
46272
46387
  var t8;
46273
46388
  if ($[12] !== t4 || $[13] !== t7) {
46274
- t8 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ToastsContext.Provider, {
46389
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ToastsContext.Provider, {
46275
46390
  value: t4,
46276
46391
  children: t7
46277
46392
  });
@@ -46284,18 +46399,18 @@ var ToastsProvider = function(t0) {
46284
46399
  return t8;
46285
46400
  };
46286
46401
  function _temp5(toast_0, index) {
46287
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CustomToast, {
46402
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(CustomToast, {
46288
46403
  toast: toast_0
46289
46404
  }, index);
46290
46405
  }
46291
46406
  // src/components/threads/Thread/Root/index.tsx
46292
- var import_jsx_runtime76 = require("react/jsx-runtime");
46407
+ var import_jsx_runtime77 = require("react/jsx-runtime");
46293
46408
  var _excluded4 = [
46294
46409
  "children",
46295
46410
  "style",
46296
46411
  "className"
46297
46412
  ];
46298
- function ownKeys38(e, r) {
46413
+ function ownKeys39(e, r) {
46299
46414
  var t = Object.keys(e);
46300
46415
  if (Object.getOwnPropertySymbols) {
46301
46416
  var o = Object.getOwnPropertySymbols(e);
@@ -46305,30 +46420,30 @@ function ownKeys38(e, r) {
46305
46420
  }
46306
46421
  return t;
46307
46422
  }
46308
- function _objectSpread38(e) {
46423
+ function _objectSpread39(e) {
46309
46424
  for(var r = 1; r < arguments.length; r++){
46310
46425
  var t = null != arguments[r] ? arguments[r] : {};
46311
- r % 2 ? ownKeys38(Object(t), true).forEach(function(r2) {
46312
- _defineProperty38(e, r2, t[r2]);
46313
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys38(Object(t)).forEach(function(r2) {
46426
+ r % 2 ? ownKeys39(Object(t), true).forEach(function(r2) {
46427
+ _defineProperty39(e, r2, t[r2]);
46428
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys39(Object(t)).forEach(function(r2) {
46314
46429
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46315
46430
  });
46316
46431
  }
46317
46432
  return e;
46318
46433
  }
46319
- function _defineProperty38(e, r, t) {
46320
- return (r = _toPropertyKey38(r)) in e ? Object.defineProperty(e, r, {
46434
+ function _defineProperty39(e, r, t) {
46435
+ return (r = _toPropertyKey39(r)) in e ? Object.defineProperty(e, r, {
46321
46436
  value: t,
46322
46437
  enumerable: true,
46323
46438
  configurable: true,
46324
46439
  writable: true
46325
46440
  }) : e[r] = t, e;
46326
46441
  }
46327
- function _toPropertyKey38(t) {
46328
- var i = _toPrimitive38(t, "string");
46442
+ function _toPropertyKey39(t) {
46443
+ var i = _toPrimitive39(t, "string");
46329
46444
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46330
46445
  }
46331
- function _toPrimitive38(t, r) {
46446
+ function _toPrimitive39(t, r) {
46332
46447
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46333
46448
  var e = t[Symbol.toPrimitive];
46334
46449
  if (void 0 !== e) {
@@ -46356,8 +46471,8 @@ function _objectWithoutPropertiesLoose4(r, e) {
46356
46471
  }
46357
46472
  return t;
46358
46473
  }
46359
- var Root10 = function(t0) {
46360
- var $ = (0, import_react_compiler_runtime73.c)(12);
46474
+ var Root11 = function(t0) {
46475
+ var $ = (0, import_react_compiler_runtime74.c)(12);
46361
46476
  var children;
46362
46477
  var className;
46363
46478
  var rest;
@@ -46381,7 +46496,7 @@ var Root10 = function(t0) {
46381
46496
  }
46382
46497
  var t1;
46383
46498
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
46384
- t1 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes53.Flex, {
46499
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes53.Flex, {
46385
46500
  direction: "column",
46386
46501
  flexGrow: "1",
46387
46502
  className: className,
@@ -46397,9 +46512,9 @@ var Root10 = function(t0) {
46397
46512
  }
46398
46513
  var t2;
46399
46514
  if ($[9] !== rest || $[10] !== t1) {
46400
- t2 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ToastsProvider, {
46515
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ToastsProvider, {
46401
46516
  bottom: "var(--space-9)",
46402
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
46517
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Provider2, _objectSpread39(_objectSpread39({}, rest), {}, {
46403
46518
  children: t1
46404
46519
  }))
46405
46520
  });
@@ -46412,8 +46527,8 @@ var Root10 = function(t0) {
46412
46527
  return t2;
46413
46528
  };
46414
46529
  // src/components/threads/Thread/index.tsx
46415
- var import_jsx_runtime77 = require("react/jsx-runtime");
46416
- function ownKeys39(e, r) {
46530
+ var import_jsx_runtime78 = require("react/jsx-runtime");
46531
+ function ownKeys40(e, r) {
46417
46532
  var t = Object.keys(e);
46418
46533
  if (Object.getOwnPropertySymbols) {
46419
46534
  var o = Object.getOwnPropertySymbols(e);
@@ -46423,30 +46538,30 @@ function ownKeys39(e, r) {
46423
46538
  }
46424
46539
  return t;
46425
46540
  }
46426
- function _objectSpread39(e) {
46541
+ function _objectSpread40(e) {
46427
46542
  for(var r = 1; r < arguments.length; r++){
46428
46543
  var t = null != arguments[r] ? arguments[r] : {};
46429
- r % 2 ? ownKeys39(Object(t), true).forEach(function(r2) {
46430
- _defineProperty39(e, r2, t[r2]);
46431
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys39(Object(t)).forEach(function(r2) {
46544
+ r % 2 ? ownKeys40(Object(t), true).forEach(function(r2) {
46545
+ _defineProperty40(e, r2, t[r2]);
46546
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys40(Object(t)).forEach(function(r2) {
46432
46547
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46433
46548
  });
46434
46549
  }
46435
46550
  return e;
46436
46551
  }
46437
- function _defineProperty39(e, r, t) {
46438
- return (r = _toPropertyKey39(r)) in e ? Object.defineProperty(e, r, {
46552
+ function _defineProperty40(e, r, t) {
46553
+ return (r = _toPropertyKey40(r)) in e ? Object.defineProperty(e, r, {
46439
46554
  value: t,
46440
46555
  enumerable: true,
46441
46556
  configurable: true,
46442
46557
  writable: true
46443
46558
  }) : e[r] = t, e;
46444
46559
  }
46445
- function _toPropertyKey39(t) {
46446
- var i = _toPrimitive39(t, "string");
46560
+ function _toPropertyKey40(t) {
46561
+ var i = _toPrimitive40(t, "string");
46447
46562
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46448
46563
  }
46449
- function _toPrimitive39(t, r) {
46564
+ function _toPrimitive40(t, r) {
46450
46565
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46451
46566
  var e = t[Symbol.toPrimitive];
46452
46567
  if (void 0 !== e) {
@@ -46457,12 +46572,12 @@ function _toPrimitive39(t, r) {
46457
46572
  return ("string" === r ? String : Number)(t);
46458
46573
  }
46459
46574
  var Thread = function(props) {
46460
- var $ = (0, import_react_compiler_runtime74.c)(4);
46575
+ var $ = (0, import_react_compiler_runtime75.c)(4);
46461
46576
  var t0;
46462
46577
  var t1;
46463
46578
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46464
- t0 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Messages2, {});
46465
- t1 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(MessageForm, {});
46579
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Messages2, {});
46580
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(MessageForm, {});
46466
46581
  $[0] = t0;
46467
46582
  $[1] = t1;
46468
46583
  } else {
@@ -46471,7 +46586,7 @@ var Thread = function(props) {
46471
46586
  }
46472
46587
  var t2;
46473
46588
  if ($[2] !== props) {
46474
- t2 = /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Root10, _objectSpread39(_objectSpread39({}, props), {}, {
46589
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Root11, _objectSpread40(_objectSpread40({}, props), {}, {
46475
46590
  children: [
46476
46591
  t0,
46477
46592
  t1
@@ -46484,7 +46599,7 @@ var Thread = function(props) {
46484
46599
  }
46485
46600
  return t2;
46486
46601
  };
46487
- Thread.Root = Root10;
46602
+ Thread.Root = Root11;
46488
46603
  Thread.Messages = Messages2;
46489
46604
  Thread.MessageForm = MessageForm;
46490
46605
  // src/hooks/messages/useMessageContext/index.ts
@@ -46493,7 +46608,7 @@ var useMessageContext = function() {
46493
46608
  return (0, import_react57.useContext)(MessageContext);
46494
46609
  };
46495
46610
  // src/hooks/assistants/useAssistant/index.ts
46496
- var import_react_compiler_runtime75 = require("react-compiler-runtime");
46611
+ var import_react_compiler_runtime76 = require("react-compiler-runtime");
46497
46612
  var import_react58 = require("react");
46498
46613
  var import_react_query9 = require("@tanstack/react-query");
46499
46614
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -46599,7 +46714,7 @@ var queryOptions2 = function(_ref) {
46599
46714
  });
46600
46715
  };
46601
46716
  // src/hooks/assistants/useAssistant/index.ts
46602
- function ownKeys40(e, r) {
46717
+ function ownKeys41(e, r) {
46603
46718
  var t = Object.keys(e);
46604
46719
  if (Object.getOwnPropertySymbols) {
46605
46720
  var o = Object.getOwnPropertySymbols(e);
@@ -46609,30 +46724,30 @@ function ownKeys40(e, r) {
46609
46724
  }
46610
46725
  return t;
46611
46726
  }
46612
- function _objectSpread40(e) {
46727
+ function _objectSpread41(e) {
46613
46728
  for(var r = 1; r < arguments.length; r++){
46614
46729
  var t = null != arguments[r] ? arguments[r] : {};
46615
- r % 2 ? ownKeys40(Object(t), true).forEach(function(r2) {
46616
- _defineProperty40(e, r2, t[r2]);
46617
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys40(Object(t)).forEach(function(r2) {
46730
+ r % 2 ? ownKeys41(Object(t), true).forEach(function(r2) {
46731
+ _defineProperty41(e, r2, t[r2]);
46732
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys41(Object(t)).forEach(function(r2) {
46618
46733
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46619
46734
  });
46620
46735
  }
46621
46736
  return e;
46622
46737
  }
46623
- function _defineProperty40(e, r, t) {
46624
- return (r = _toPropertyKey40(r)) in e ? Object.defineProperty(e, r, {
46738
+ function _defineProperty41(e, r, t) {
46739
+ return (r = _toPropertyKey41(r)) in e ? Object.defineProperty(e, r, {
46625
46740
  value: t,
46626
46741
  enumerable: true,
46627
46742
  configurable: true,
46628
46743
  writable: true
46629
46744
  }) : e[r] = t, e;
46630
46745
  }
46631
- function _toPropertyKey40(t) {
46632
- var i = _toPrimitive40(t, "string");
46746
+ function _toPropertyKey41(t) {
46747
+ var i = _toPrimitive41(t, "string");
46633
46748
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46634
46749
  }
46635
- function _toPrimitive40(t, r) {
46750
+ function _toPrimitive41(t, r) {
46636
46751
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46637
46752
  var e = t[Symbol.toPrimitive];
46638
46753
  if (void 0 !== e) {
@@ -46643,7 +46758,7 @@ function _toPrimitive40(t, r) {
46643
46758
  return ("string" === r ? String : Number)(t);
46644
46759
  }
46645
46760
  var useAssistant = function(t0) {
46646
- var $ = (0, import_react_compiler_runtime75.c)(6);
46761
+ var $ = (0, import_react_compiler_runtime76.c)(6);
46647
46762
  var assistantId = t0.assistantId;
46648
46763
  var superinterfaceContext = useSuperinterfaceContext();
46649
46764
  var t1;
@@ -46663,7 +46778,7 @@ var useAssistant = function(t0) {
46663
46778
  var t3 = props.data ? props.data.assistant : null;
46664
46779
  var t4;
46665
46780
  if ($[3] !== props || $[4] !== t3) {
46666
- t4 = _objectSpread40(_objectSpread40({}, props), {}, {
46781
+ t4 = _objectSpread41(_objectSpread41({}, props), {}, {
46667
46782
  assistant: t3
46668
46783
  });
46669
46784
  $[3] = props;
@@ -46676,11 +46791,11 @@ var useAssistant = function(t0) {
46676
46791
  return t2;
46677
46792
  };
46678
46793
  // src/components/threads/ThreadDialog/index.tsx
46679
- var import_react_compiler_runtime82 = require("react-compiler-runtime");
46794
+ var import_react_compiler_runtime83 = require("react-compiler-runtime");
46680
46795
  // src/components/threads/ThreadDialog/Root/index.tsx
46681
- var import_react_compiler_runtime77 = require("react-compiler-runtime");
46796
+ var import_react_compiler_runtime78 = require("react-compiler-runtime");
46682
46797
  // src/components/threads/ThreadDialog/Provider/index.tsx
46683
- var import_react_compiler_runtime76 = require("react-compiler-runtime");
46798
+ var import_react_compiler_runtime77 = require("react-compiler-runtime");
46684
46799
  var import_react61 = require("react");
46685
46800
  // src/contexts/threads/ThreadDialogContext/index.ts
46686
46801
  var import_react59 = require("react");
@@ -46694,9 +46809,9 @@ var useThreadDialogContext = function() {
46694
46809
  return (0, import_react60.useContext)(ThreadDialogContext);
46695
46810
  };
46696
46811
  // src/components/threads/ThreadDialog/Provider/index.tsx
46697
- var import_jsx_runtime78 = require("react/jsx-runtime");
46812
+ var import_jsx_runtime79 = require("react/jsx-runtime");
46698
46813
  var Provider4 = function(t0) {
46699
- var $ = (0, import_react_compiler_runtime76.c)(5);
46814
+ var $ = (0, import_react_compiler_runtime77.c)(5);
46700
46815
  var children = t0.children;
46701
46816
  var threadDialogContext = useThreadDialogContext();
46702
46817
  var _ref = _sliced_to_array((0, import_react61.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
@@ -46713,7 +46828,7 @@ var Provider4 = function(t0) {
46713
46828
  }
46714
46829
  var t2;
46715
46830
  if ($[2] !== children || $[3] !== t1) {
46716
- t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ThreadDialogContext.Provider, {
46831
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ThreadDialogContext.Provider, {
46717
46832
  value: t1,
46718
46833
  children: children
46719
46834
  });
@@ -46726,13 +46841,13 @@ var Provider4 = function(t0) {
46726
46841
  return t2;
46727
46842
  };
46728
46843
  // src/components/threads/ThreadDialog/Root/index.tsx
46729
- var import_jsx_runtime79 = require("react/jsx-runtime");
46730
- var Root11 = function(t0) {
46731
- var $ = (0, import_react_compiler_runtime77.c)(2);
46844
+ var import_jsx_runtime80 = require("react/jsx-runtime");
46845
+ var Root12 = function(t0) {
46846
+ var $ = (0, import_react_compiler_runtime78.c)(2);
46732
46847
  var children = t0.children;
46733
46848
  var t1;
46734
46849
  if ($[0] !== children) {
46735
- t1 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Provider4, {
46850
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Provider4, {
46736
46851
  children: children
46737
46852
  });
46738
46853
  $[0] = children;
@@ -46743,14 +46858,14 @@ var Root11 = function(t0) {
46743
46858
  return t1;
46744
46859
  };
46745
46860
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46746
- var import_react_compiler_runtime79 = require("react-compiler-runtime");
46861
+ var import_react_compiler_runtime80 = require("react-compiler-runtime");
46747
46862
  var import_themes55 = require("@radix-ui/themes");
46748
46863
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
46749
- var import_react_compiler_runtime78 = require("react-compiler-runtime");
46864
+ var import_react_compiler_runtime79 = require("react-compiler-runtime");
46750
46865
  var import_themes54 = require("@radix-ui/themes");
46751
46866
  var import_react_icons15 = require("@radix-ui/react-icons");
46752
- var import_jsx_runtime80 = require("react/jsx-runtime");
46753
- function ownKeys41(e, r) {
46867
+ var import_jsx_runtime81 = require("react/jsx-runtime");
46868
+ function ownKeys42(e, r) {
46754
46869
  var t = Object.keys(e);
46755
46870
  if (Object.getOwnPropertySymbols) {
46756
46871
  var o = Object.getOwnPropertySymbols(e);
@@ -46760,30 +46875,30 @@ function ownKeys41(e, r) {
46760
46875
  }
46761
46876
  return t;
46762
46877
  }
46763
- function _objectSpread41(e) {
46878
+ function _objectSpread42(e) {
46764
46879
  for(var r = 1; r < arguments.length; r++){
46765
46880
  var t = null != arguments[r] ? arguments[r] : {};
46766
- r % 2 ? ownKeys41(Object(t), true).forEach(function(r2) {
46767
- _defineProperty41(e, r2, t[r2]);
46768
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys41(Object(t)).forEach(function(r2) {
46881
+ r % 2 ? ownKeys42(Object(t), true).forEach(function(r2) {
46882
+ _defineProperty42(e, r2, t[r2]);
46883
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys42(Object(t)).forEach(function(r2) {
46769
46884
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46770
46885
  });
46771
46886
  }
46772
46887
  return e;
46773
46888
  }
46774
- function _defineProperty41(e, r, t) {
46775
- return (r = _toPropertyKey41(r)) in e ? Object.defineProperty(e, r, {
46889
+ function _defineProperty42(e, r, t) {
46890
+ return (r = _toPropertyKey42(r)) in e ? Object.defineProperty(e, r, {
46776
46891
  value: t,
46777
46892
  enumerable: true,
46778
46893
  configurable: true,
46779
46894
  writable: true
46780
46895
  }) : e[r] = t, e;
46781
46896
  }
46782
- function _toPropertyKey41(t) {
46783
- var i = _toPrimitive41(t, "string");
46897
+ function _toPropertyKey42(t) {
46898
+ var i = _toPrimitive42(t, "string");
46784
46899
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46785
46900
  }
46786
- function _toPrimitive41(t, r) {
46901
+ function _toPrimitive42(t, r) {
46787
46902
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46788
46903
  var e = t[Symbol.toPrimitive];
46789
46904
  if (void 0 !== e) {
@@ -46794,17 +46909,17 @@ function _toPrimitive41(t, r) {
46794
46909
  return ("string" === r ? String : Number)(t);
46795
46910
  }
46796
46911
  var Button4 = function(props) {
46797
- var $ = (0, import_react_compiler_runtime78.c)(3);
46912
+ var $ = (0, import_react_compiler_runtime79.c)(3);
46798
46913
  var t0;
46799
46914
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46800
- t0 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_icons15.ChatBubbleIcon, {});
46915
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_icons15.ChatBubbleIcon, {});
46801
46916
  $[0] = t0;
46802
46917
  } else {
46803
46918
  t0 = $[0];
46804
46919
  }
46805
46920
  var t1;
46806
46921
  if ($[1] !== props) {
46807
- t1 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes54.IconButton, _objectSpread41(_objectSpread41({
46922
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes54.IconButton, _objectSpread42(_objectSpread42({
46808
46923
  size: "4",
46809
46924
  radius: "full"
46810
46925
  }, props), {}, {
@@ -46818,8 +46933,8 @@ var Button4 = function(props) {
46818
46933
  return t1;
46819
46934
  };
46820
46935
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46821
- var import_jsx_runtime81 = require("react/jsx-runtime");
46822
- function ownKeys42(e, r) {
46936
+ var import_jsx_runtime82 = require("react/jsx-runtime");
46937
+ function ownKeys43(e, r) {
46823
46938
  var t = Object.keys(e);
46824
46939
  if (Object.getOwnPropertySymbols) {
46825
46940
  var o = Object.getOwnPropertySymbols(e);
@@ -46829,30 +46944,30 @@ function ownKeys42(e, r) {
46829
46944
  }
46830
46945
  return t;
46831
46946
  }
46832
- function _objectSpread42(e) {
46947
+ function _objectSpread43(e) {
46833
46948
  for(var r = 1; r < arguments.length; r++){
46834
46949
  var t = null != arguments[r] ? arguments[r] : {};
46835
- r % 2 ? ownKeys42(Object(t), true).forEach(function(r2) {
46836
- _defineProperty42(e, r2, t[r2]);
46837
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys42(Object(t)).forEach(function(r2) {
46950
+ r % 2 ? ownKeys43(Object(t), true).forEach(function(r2) {
46951
+ _defineProperty43(e, r2, t[r2]);
46952
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys43(Object(t)).forEach(function(r2) {
46838
46953
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46839
46954
  });
46840
46955
  }
46841
46956
  return e;
46842
46957
  }
46843
- function _defineProperty42(e, r, t) {
46844
- return (r = _toPropertyKey42(r)) in e ? Object.defineProperty(e, r, {
46958
+ function _defineProperty43(e, r, t) {
46959
+ return (r = _toPropertyKey43(r)) in e ? Object.defineProperty(e, r, {
46845
46960
  value: t,
46846
46961
  enumerable: true,
46847
46962
  configurable: true,
46848
46963
  writable: true
46849
46964
  }) : e[r] = t, e;
46850
46965
  }
46851
- function _toPropertyKey42(t) {
46852
- var i = _toPrimitive42(t, "string");
46966
+ function _toPropertyKey43(t) {
46967
+ var i = _toPrimitive43(t, "string");
46853
46968
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46854
46969
  }
46855
- function _toPrimitive42(t, r) {
46970
+ function _toPrimitive43(t, r) {
46856
46971
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46857
46972
  var e = t[Symbol.toPrimitive];
46858
46973
  if (void 0 !== e) {
@@ -46862,8 +46977,8 @@ function _toPrimitive42(t, r) {
46862
46977
  }
46863
46978
  return ("string" === r ? String : Number)(t);
46864
46979
  }
46865
- var Root12 = function(t0) {
46866
- var $ = (0, import_react_compiler_runtime79.c)(14);
46980
+ var Root13 = function(t0) {
46981
+ var $ = (0, import_react_compiler_runtime80.c)(14);
46867
46982
  var children = t0.children, style = t0.style, className = t0.className;
46868
46983
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
46869
46984
  var t1 = isOpen ? "none" : "flex";
@@ -46898,7 +47013,7 @@ var Root12 = function(t0) {
46898
47013
  }
46899
47014
  var t5;
46900
47015
  if ($[6] !== t4) {
46901
- t5 = _objectSpread42({
47016
+ t5 = _objectSpread43({
46902
47017
  zIndex: 9999999999
46903
47018
  }, t4);
46904
47019
  $[6] = t4;
@@ -46908,7 +47023,7 @@ var Root12 = function(t0) {
46908
47023
  }
46909
47024
  var t6;
46910
47025
  if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
46911
- t6 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes55.Flex, {
47026
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_themes55.Flex, {
46912
47027
  display: t2,
46913
47028
  onClick: t3,
46914
47029
  direction: "column",
@@ -46934,17 +47049,17 @@ var Root12 = function(t0) {
46934
47049
  return t6;
46935
47050
  };
46936
47051
  var Trigger = function(args) {
46937
- var $ = (0, import_react_compiler_runtime79.c)(3);
47052
+ var $ = (0, import_react_compiler_runtime80.c)(3);
46938
47053
  var t0;
46939
47054
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46940
- t0 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button4, {});
47055
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button4, {});
46941
47056
  $[0] = t0;
46942
47057
  } else {
46943
47058
  t0 = $[0];
46944
47059
  }
46945
47060
  var t1;
46946
47061
  if ($[1] !== args) {
46947
- t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Root12, _objectSpread42(_objectSpread42({}, args), {}, {
47062
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Root13, _objectSpread43(_objectSpread43({}, args), {}, {
46948
47063
  children: t0
46949
47064
  }));
46950
47065
  $[1] = args;
@@ -46954,21 +47069,21 @@ var Trigger = function(args) {
46954
47069
  }
46955
47070
  return t1;
46956
47071
  };
46957
- Trigger.Root = Root12;
47072
+ Trigger.Root = Root13;
46958
47073
  Trigger.Button = Button4;
46959
47074
  function _temp6(prev) {
46960
47075
  return !prev;
46961
47076
  }
46962
47077
  // src/components/threads/ThreadDialog/Content/index.tsx
46963
- var import_react_compiler_runtime81 = require("react-compiler-runtime");
47078
+ var import_react_compiler_runtime82 = require("react-compiler-runtime");
46964
47079
  var import_themes57 = require("@radix-ui/themes");
46965
47080
  // src/components/threads/ThreadDialog/Close/index.tsx
46966
- var import_react_compiler_runtime80 = require("react-compiler-runtime");
47081
+ var import_react_compiler_runtime81 = require("react-compiler-runtime");
46967
47082
  var import_react_icons16 = require("@radix-ui/react-icons");
46968
47083
  var import_themes56 = require("@radix-ui/themes");
46969
- var import_jsx_runtime82 = require("react/jsx-runtime");
47084
+ var import_jsx_runtime83 = require("react/jsx-runtime");
46970
47085
  var Close = function() {
46971
- var $ = (0, import_react_compiler_runtime80.c)(9);
47086
+ var $ = (0, import_react_compiler_runtime81.c)(9);
46972
47087
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
46973
47088
  var t0 = isOpen ? "flex" : "none";
46974
47089
  var t1;
@@ -47003,10 +47118,10 @@ var Close = function() {
47003
47118
  }
47004
47119
  var t4;
47005
47120
  if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
47006
- t4 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_themes56.IconButton, {
47121
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes56.IconButton, {
47007
47122
  size: "2",
47008
47123
  variant: "soft",
47009
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_icons16.Cross1Icon, {})
47124
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_icons16.Cross1Icon, {})
47010
47125
  });
47011
47126
  $[5] = t4;
47012
47127
  } else {
@@ -47014,7 +47129,7 @@ var Close = function() {
47014
47129
  }
47015
47130
  var t5;
47016
47131
  if ($[6] !== t1 || $[7] !== t2) {
47017
- t5 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_themes56.Flex, {
47132
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes56.Flex, {
47018
47133
  display: t1,
47019
47134
  onClick: t2,
47020
47135
  direction: "column",
@@ -47039,8 +47154,8 @@ function _temp7(prev) {
47039
47154
  return !prev;
47040
47155
  }
47041
47156
  // src/components/threads/ThreadDialog/Content/index.tsx
47042
- var import_jsx_runtime83 = require("react/jsx-runtime");
47043
- function ownKeys43(e, r) {
47157
+ var import_jsx_runtime84 = require("react/jsx-runtime");
47158
+ function ownKeys44(e, r) {
47044
47159
  var t = Object.keys(e);
47045
47160
  if (Object.getOwnPropertySymbols) {
47046
47161
  var o = Object.getOwnPropertySymbols(e);
@@ -47050,30 +47165,30 @@ function ownKeys43(e, r) {
47050
47165
  }
47051
47166
  return t;
47052
47167
  }
47053
- function _objectSpread43(e) {
47168
+ function _objectSpread44(e) {
47054
47169
  for(var r = 1; r < arguments.length; r++){
47055
47170
  var t = null != arguments[r] ? arguments[r] : {};
47056
- r % 2 ? ownKeys43(Object(t), true).forEach(function(r2) {
47057
- _defineProperty43(e, r2, t[r2]);
47058
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys43(Object(t)).forEach(function(r2) {
47171
+ r % 2 ? ownKeys44(Object(t), true).forEach(function(r2) {
47172
+ _defineProperty44(e, r2, t[r2]);
47173
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys44(Object(t)).forEach(function(r2) {
47059
47174
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
47060
47175
  });
47061
47176
  }
47062
47177
  return e;
47063
47178
  }
47064
- function _defineProperty43(e, r, t) {
47065
- return (r = _toPropertyKey43(r)) in e ? Object.defineProperty(e, r, {
47179
+ function _defineProperty44(e, r, t) {
47180
+ return (r = _toPropertyKey44(r)) in e ? Object.defineProperty(e, r, {
47066
47181
  value: t,
47067
47182
  enumerable: true,
47068
47183
  configurable: true,
47069
47184
  writable: true
47070
47185
  }) : e[r] = t, e;
47071
47186
  }
47072
- function _toPropertyKey43(t) {
47073
- var i = _toPrimitive43(t, "string");
47187
+ function _toPropertyKey44(t) {
47188
+ var i = _toPrimitive44(t, "string");
47074
47189
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
47075
47190
  }
47076
- function _toPrimitive43(t, r) {
47191
+ function _toPrimitive44(t, r) {
47077
47192
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
47078
47193
  var e = t[Symbol.toPrimitive];
47079
47194
  if (void 0 !== e) {
@@ -47083,8 +47198,8 @@ function _toPrimitive43(t, r) {
47083
47198
  }
47084
47199
  return ("string" === r ? String : Number)(t);
47085
47200
  }
47086
- var Root13 = function(t0) {
47087
- var $ = (0, import_react_compiler_runtime81.c)(19);
47201
+ var Root14 = function(t0) {
47202
+ var $ = (0, import_react_compiler_runtime82.c)(19);
47088
47203
  var children = t0.children, className = t0.className, style = t0.style;
47089
47204
  var isOpen = useThreadDialogContext().isOpen;
47090
47205
  if (!isOpen) {
@@ -47133,7 +47248,7 @@ var Root13 = function(t0) {
47133
47248
  }
47134
47249
  var t6;
47135
47250
  if ($[5] !== style) {
47136
- t6 = _objectSpread43({
47251
+ t6 = _objectSpread44({
47137
47252
  zIndex: 9999999999
47138
47253
  }, style);
47139
47254
  $[5] = style;
@@ -47171,7 +47286,7 @@ var Root13 = function(t0) {
47171
47286
  }
47172
47287
  var t10;
47173
47288
  if ($[10] !== children) {
47174
- t10 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes57.Inset, {
47289
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes57.Inset, {
47175
47290
  clip: "padding-box",
47176
47291
  side: "all",
47177
47292
  pb: "current",
@@ -47185,14 +47300,14 @@ var Root13 = function(t0) {
47185
47300
  }
47186
47301
  var t11;
47187
47302
  if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
47188
- t11 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Close, {});
47303
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Close, {});
47189
47304
  $[12] = t11;
47190
47305
  } else {
47191
47306
  t11 = $[12];
47192
47307
  }
47193
47308
  var t12;
47194
47309
  if ($[13] !== t10) {
47195
- t12 = /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_themes57.Card, {
47310
+ t12 = /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes57.Card, {
47196
47311
  mb: t7,
47197
47312
  style: t8,
47198
47313
  children: [
@@ -47207,7 +47322,7 @@ var Root13 = function(t0) {
47207
47322
  }
47208
47323
  var t13;
47209
47324
  if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
47210
- t13 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes57.Flex, {
47325
+ t13 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes57.Flex, {
47211
47326
  className: className,
47212
47327
  direction: "column",
47213
47328
  justify: "end",
@@ -47231,11 +47346,11 @@ var Root13 = function(t0) {
47231
47346
  return t13;
47232
47347
  };
47233
47348
  var Messages3 = function(t0) {
47234
- var $ = (0, import_react_compiler_runtime81.c)(5);
47349
+ var $ = (0, import_react_compiler_runtime82.c)(5);
47235
47350
  var className = t0.className, style = t0.style;
47236
47351
  var t1;
47237
47352
  if ($[0] !== style) {
47238
- t1 = _objectSpread43({
47353
+ t1 = _objectSpread44({
47239
47354
  paddingTop: "var(--space-5)",
47240
47355
  paddingRight: "var(--space-5)",
47241
47356
  paddingLeft: "var(--space-5)"
@@ -47247,7 +47362,7 @@ var Messages3 = function(t0) {
47247
47362
  }
47248
47363
  var t2;
47249
47364
  if ($[2] !== className || $[3] !== t1) {
47250
- t2 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Thread.Messages, {
47365
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Thread.Messages, {
47251
47366
  className: className,
47252
47367
  style: t1
47253
47368
  });
@@ -47260,11 +47375,11 @@ var Messages3 = function(t0) {
47260
47375
  return t2;
47261
47376
  };
47262
47377
  var FormContainer = function(t0) {
47263
- var $ = (0, import_react_compiler_runtime81.c)(4);
47378
+ var $ = (0, import_react_compiler_runtime82.c)(4);
47264
47379
  var children = t0.children, className = t0.className, style = t0.style;
47265
47380
  var t1;
47266
47381
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
47267
- t1 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes57.Flex, {
47382
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes57.Flex, {
47268
47383
  direction: "column",
47269
47384
  pl: "5",
47270
47385
  pr: "5",
@@ -47284,21 +47399,21 @@ var FormContainer = function(t0) {
47284
47399
  return t1;
47285
47400
  };
47286
47401
  var Content7 = function(props) {
47287
- var $ = (0, import_react_compiler_runtime81.c)(4);
47402
+ var $ = (0, import_react_compiler_runtime82.c)(4);
47288
47403
  var t0;
47289
47404
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47290
- t0 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Messages3, {});
47405
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Messages3, {});
47291
47406
  $[0] = t0;
47292
47407
  } else {
47293
47408
  t0 = $[0];
47294
47409
  }
47295
47410
  var t1;
47296
47411
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
47297
- t1 = /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(Thread.Root, {
47412
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Thread.Root, {
47298
47413
  children: [
47299
47414
  t0,
47300
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(FormContainer, {
47301
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Thread.MessageForm, {})
47415
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FormContainer, {
47416
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Thread.MessageForm, {})
47302
47417
  })
47303
47418
  ]
47304
47419
  });
@@ -47308,7 +47423,7 @@ var Content7 = function(props) {
47308
47423
  }
47309
47424
  var t2;
47310
47425
  if ($[2] !== props) {
47311
- t2 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Root13, _objectSpread43(_objectSpread43({}, props), {}, {
47426
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Root14, _objectSpread44(_objectSpread44({}, props), {}, {
47312
47427
  children: t1
47313
47428
  }));
47314
47429
  $[2] = props;
@@ -47318,19 +47433,19 @@ var Content7 = function(props) {
47318
47433
  }
47319
47434
  return t2;
47320
47435
  };
47321
- Content7.Root = Root13;
47436
+ Content7.Root = Root14;
47322
47437
  Content7.Messages = Messages3;
47323
47438
  Content7.FormContainer = FormContainer;
47324
47439
  // src/components/threads/ThreadDialog/index.tsx
47325
- var import_jsx_runtime84 = require("react/jsx-runtime");
47440
+ var import_jsx_runtime85 = require("react/jsx-runtime");
47326
47441
  var ThreadDialog = function() {
47327
- var $ = (0, import_react_compiler_runtime82.c)(1);
47442
+ var $ = (0, import_react_compiler_runtime83.c)(1);
47328
47443
  var t0;
47329
47444
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47330
- t0 = /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Root11, {
47445
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root12, {
47331
47446
  children: [
47332
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Content7, {}),
47333
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Trigger, {})
47447
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Content7, {}),
47448
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Trigger, {})
47334
47449
  ]
47335
47450
  });
47336
47451
  $[0] = t0;
@@ -47339,15 +47454,15 @@ var ThreadDialog = function() {
47339
47454
  }
47340
47455
  return t0;
47341
47456
  };
47342
- ThreadDialog.Root = Root11;
47457
+ ThreadDialog.Root = Root12;
47343
47458
  ThreadDialog.Trigger = Trigger;
47344
47459
  ThreadDialog.Content = Content7;
47345
47460
  // src/components/threads/AudioThreadDialog/index.tsx
47346
- var import_react_compiler_runtime97 = require("react-compiler-runtime");
47461
+ var import_react_compiler_runtime98 = require("react-compiler-runtime");
47347
47462
  // src/components/threads/AudioThread/index.tsx
47348
- var import_react_compiler_runtime96 = require("react-compiler-runtime");
47463
+ var import_react_compiler_runtime97 = require("react-compiler-runtime");
47349
47464
  // src/components/threads/AudioThread/Root/index.tsx
47350
- var import_react_compiler_runtime88 = require("react-compiler-runtime");
47465
+ var import_react_compiler_runtime89 = require("react-compiler-runtime");
47351
47466
  var import_themes58 = require("@radix-ui/themes");
47352
47467
  // src/contexts/threads/AudioThreadContext/index.ts
47353
47468
  var import_react62 = require("react");
@@ -47360,12 +47475,12 @@ var useAudioThreadContext = function() {
47360
47475
  return (0, import_react63.useContext)(AudioThreadContext);
47361
47476
  };
47362
47477
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
47363
- var import_react_compiler_runtime87 = require("react-compiler-runtime");
47478
+ var import_react_compiler_runtime88 = require("react-compiler-runtime");
47364
47479
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
47365
- var import_react_compiler_runtime86 = require("react-compiler-runtime");
47480
+ var import_react_compiler_runtime87 = require("react-compiler-runtime");
47366
47481
  var import_react68 = require("react");
47367
47482
  // src/hooks/misc/usePermission/index.ts
47368
- var import_react_compiler_runtime83 = require("react-compiler-runtime");
47483
+ var import_react_compiler_runtime84 = require("react-compiler-runtime");
47369
47484
  var import_react64 = require("react");
47370
47485
  // src/hooks/misc/usePermission/util.ts
47371
47486
  var noop = function() {};
@@ -47389,7 +47504,7 @@ function off(obj) {
47389
47504
  }
47390
47505
  // src/hooks/misc/usePermission/index.ts
47391
47506
  var usePermission = function(permissionDesc) {
47392
- var $ = (0, import_react_compiler_runtime83.c)(3);
47507
+ var $ = (0, import_react_compiler_runtime84.c)(3);
47393
47508
  var _ref = _sliced_to_array((0, import_react64.useState)(""), 2), state = _ref[0], setState = _ref[1];
47394
47509
  var t0;
47395
47510
  var t1;
@@ -47438,10 +47553,10 @@ var import_use_audio_capture = require("use-audio-capture");
47438
47553
  var import_react66 = require("react");
47439
47554
  var import_react_use_audio_player = require("react-use-audio-player");
47440
47555
  // src/hooks/misc/useInterval.ts
47441
- var import_react_compiler_runtime84 = require("react-compiler-runtime");
47556
+ var import_react_compiler_runtime85 = require("react-compiler-runtime");
47442
47557
  var import_react65 = require("react");
47443
47558
  var useInterval = function(callback, delay) {
47444
- var $ = (0, import_react_compiler_runtime84.c)(5);
47559
+ var $ = (0, import_react_compiler_runtime85.c)(5);
47445
47560
  var savedCallback = (0, import_react65.useRef)(_temp8);
47446
47561
  var t0;
47447
47562
  if ($[0] !== callback) {
@@ -47481,7 +47596,7 @@ var useInterval = function(callback, delay) {
47481
47596
  };
47482
47597
  function _temp8() {}
47483
47598
  // src/hooks/audioThreads/useRecorder/index.ts
47484
- function ownKeys44(e, r) {
47599
+ function ownKeys45(e, r) {
47485
47600
  var t = Object.keys(e);
47486
47601
  if (Object.getOwnPropertySymbols) {
47487
47602
  var o = Object.getOwnPropertySymbols(e);
@@ -47491,30 +47606,30 @@ function ownKeys44(e, r) {
47491
47606
  }
47492
47607
  return t;
47493
47608
  }
47494
- function _objectSpread44(e) {
47609
+ function _objectSpread45(e) {
47495
47610
  for(var r = 1; r < arguments.length; r++){
47496
47611
  var t = null != arguments[r] ? arguments[r] : {};
47497
- r % 2 ? ownKeys44(Object(t), true).forEach(function(r2) {
47498
- _defineProperty44(e, r2, t[r2]);
47499
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys44(Object(t)).forEach(function(r2) {
47612
+ r % 2 ? ownKeys45(Object(t), true).forEach(function(r2) {
47613
+ _defineProperty45(e, r2, t[r2]);
47614
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys45(Object(t)).forEach(function(r2) {
47500
47615
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
47501
47616
  });
47502
47617
  }
47503
47618
  return e;
47504
47619
  }
47505
- function _defineProperty44(e, r, t) {
47506
- return (r = _toPropertyKey44(r)) in e ? Object.defineProperty(e, r, {
47620
+ function _defineProperty45(e, r, t) {
47621
+ return (r = _toPropertyKey45(r)) in e ? Object.defineProperty(e, r, {
47507
47622
  value: t,
47508
47623
  enumerable: true,
47509
47624
  configurable: true,
47510
47625
  writable: true
47511
47626
  }) : e[r] = t, e;
47512
47627
  }
47513
- function _toPropertyKey44(t) {
47514
- var i = _toPrimitive44(t, "string");
47628
+ function _toPropertyKey45(t) {
47629
+ var i = _toPrimitive45(t, "string");
47515
47630
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
47516
47631
  }
47517
- function _toPrimitive44(t, r) {
47632
+ function _toPrimitive45(t, r) {
47518
47633
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
47519
47634
  var e = t[Symbol.toPrimitive];
47520
47635
  if (void 0 !== e) {
@@ -47688,13 +47803,13 @@ var useRecorder = function(_ref) {
47688
47803
  if (!silenceStart.isBefore((0, import_dayjs3.default)().subtract(1.5, "second"))) return;
47689
47804
  audioCaptureProps.stop();
47690
47805
  }, 300);
47691
- return _objectSpread44(_objectSpread44({}, audioCaptureProps), {}, {
47806
+ return _objectSpread45(_objectSpread45({}, audioCaptureProps), {}, {
47692
47807
  status: status,
47693
47808
  visualizationAnalyser: visualizationAnalyser
47694
47809
  });
47695
47810
  };
47696
47811
  // src/hooks/audioThreads/useMessageAudio/index.ts
47697
- var import_react_compiler_runtime85 = require("react-compiler-runtime");
47812
+ var import_react_compiler_runtime86 = require("react-compiler-runtime");
47698
47813
  var import_react67 = require("react");
47699
47814
  var import_compromise = __toESM(require("compromise"), 1);
47700
47815
  var import_howler = require("howler");
@@ -47721,7 +47836,7 @@ var unsupportedNames = [
47721
47836
  ];
47722
47837
  var isHtmlAudioSupported = !unsupportedNames.includes(((_detect = (0, import_detect_browser.detect)()) === null || _detect === void 0 ? void 0 : _detect.name) || "");
47723
47838
  // src/hooks/audioThreads/useMessageAudio/index.ts
47724
- function ownKeys45(e, r) {
47839
+ function ownKeys46(e, r) {
47725
47840
  var t = Object.keys(e);
47726
47841
  if (Object.getOwnPropertySymbols) {
47727
47842
  var o = Object.getOwnPropertySymbols(e);
@@ -47731,30 +47846,30 @@ function ownKeys45(e, r) {
47731
47846
  }
47732
47847
  return t;
47733
47848
  }
47734
- function _objectSpread45(e) {
47849
+ function _objectSpread46(e) {
47735
47850
  for(var r = 1; r < arguments.length; r++){
47736
47851
  var t = null != arguments[r] ? arguments[r] : {};
47737
- r % 2 ? ownKeys45(Object(t), true).forEach(function(r2) {
47738
- _defineProperty45(e, r2, t[r2]);
47739
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys45(Object(t)).forEach(function(r2) {
47852
+ r % 2 ? ownKeys46(Object(t), true).forEach(function(r2) {
47853
+ _defineProperty46(e, r2, t[r2]);
47854
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys46(Object(t)).forEach(function(r2) {
47740
47855
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
47741
47856
  });
47742
47857
  }
47743
47858
  return e;
47744
47859
  }
47745
- function _defineProperty45(e, r, t) {
47746
- return (r = _toPropertyKey45(r)) in e ? Object.defineProperty(e, r, {
47860
+ function _defineProperty46(e, r, t) {
47861
+ return (r = _toPropertyKey46(r)) in e ? Object.defineProperty(e, r, {
47747
47862
  value: t,
47748
47863
  enumerable: true,
47749
47864
  configurable: true,
47750
47865
  writable: true
47751
47866
  }) : e[r] = t, e;
47752
47867
  }
47753
- function _toPropertyKey45(t) {
47754
- var i = _toPrimitive45(t, "string");
47868
+ function _toPropertyKey46(t) {
47869
+ var i = _toPrimitive46(t, "string");
47755
47870
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
47756
47871
  }
47757
- function _toPrimitive45(t, r) {
47872
+ function _toPrimitive46(t, r) {
47758
47873
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
47759
47874
  var e = t[Symbol.toPrimitive];
47760
47875
  if (void 0 !== e) {
@@ -47777,7 +47892,7 @@ var getMessageSentences = function(_ref) {
47777
47892
  };
47778
47893
  var useMessageAudio = function(t0) {
47779
47894
  var _latestMessageProps$l;
47780
- var $ = (0, import_react_compiler_runtime85.c)(49);
47895
+ var $ = (0, import_react_compiler_runtime86.c)(49);
47781
47896
  var _onEnd = t0.onEnd, passedPlay = t0.play;
47782
47897
  var _ref = _sliced_to_array((0, import_react67.useState)(false), 2), isAudioPlayed = _ref[0], setIsAudioPlayed = _ref[1];
47783
47898
  var t1;
@@ -47884,7 +47999,7 @@ var useMessageAudio = function(t0) {
47884
47999
  if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext || $[16] !== unplayedMessageSentences) {
47885
48000
  t4 = function(t52) {
47886
48001
  var input_0 = t52.input, onPlay = t52.onPlay, onStop = t52.onStop, onEnd_0 = t52.onEnd;
47887
- var searchParams = new URLSearchParams(_objectSpread45({
48002
+ var searchParams = new URLSearchParams(_objectSpread46({
47888
48003
  input: input_0
47889
48004
  }, superinterfaceContext.variables));
47890
48005
  audioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(searchParams), {
@@ -47902,7 +48017,7 @@ var useMessageAudio = function(t0) {
47902
48017
  if (!isNextFullSentence) {
47903
48018
  return;
47904
48019
  }
47905
- var nextSearchParams = new URLSearchParams(_objectSpread45({
48020
+ var nextSearchParams = new URLSearchParams(_objectSpread46({
47906
48021
  input: nextUnplayedMessageSentence.sentence
47907
48022
  }, superinterfaceContext.variables));
47908
48023
  nextAudioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(nextSearchParams), {
@@ -48095,7 +48210,7 @@ var useMessageAudio = function(t0) {
48095
48210
  var isPending = t12;
48096
48211
  var t13;
48097
48212
  if ($[44] !== audioPlayer || $[45] !== isAudioPlayed || $[46] !== isPending || $[47] !== visualizationAnalyser) {
48098
- t13 = _objectSpread45(_objectSpread45({
48213
+ t13 = _objectSpread46(_objectSpread46({
48099
48214
  isPending: isPending,
48100
48215
  isAudioPlayed: isAudioPlayed
48101
48216
  }, audioPlayer), {}, {
@@ -48157,7 +48272,7 @@ function _asyncToGenerator11(n) {
48157
48272
  };
48158
48273
  }
48159
48274
  var useTtsAudioRuntime = function(t0) {
48160
- var $ = (0, import_react_compiler_runtime86.c)(30);
48275
+ var $ = (0, import_react_compiler_runtime87.c)(30);
48161
48276
  var play = t0.play;
48162
48277
  var addToast = useToasts().addToast;
48163
48278
  var queryClient = (0, import_react_query10.useQueryClient)();
@@ -48331,9 +48446,9 @@ function _temp24() {
48331
48446
  return _temp24.apply(this, arguments);
48332
48447
  }
48333
48448
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
48334
- var import_jsx_runtime85 = require("react/jsx-runtime");
48449
+ var import_jsx_runtime86 = require("react/jsx-runtime");
48335
48450
  var TtsAudioRuntimeProvider = function(t0) {
48336
- var $ = (0, import_react_compiler_runtime87.c)(7);
48451
+ var $ = (0, import_react_compiler_runtime88.c)(7);
48337
48452
  var children = t0.children, play = t0.play;
48338
48453
  var t1;
48339
48454
  if ($[0] !== play) {
@@ -48358,7 +48473,7 @@ var TtsAudioRuntimeProvider = function(t0) {
48358
48473
  }
48359
48474
  var t3;
48360
48475
  if ($[4] !== children || $[5] !== t2) {
48361
- t3 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(AudioThreadContext.Provider, {
48476
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AudioThreadContext.Provider, {
48362
48477
  value: t2,
48363
48478
  children: children
48364
48479
  });
@@ -48371,7 +48486,7 @@ var TtsAudioRuntimeProvider = function(t0) {
48371
48486
  return t3;
48372
48487
  };
48373
48488
  // src/components/threads/AudioThread/Root/index.tsx
48374
- var import_jsx_runtime86 = require("react/jsx-runtime");
48489
+ var import_jsx_runtime87 = require("react/jsx-runtime");
48375
48490
  var _excluded5 = [
48376
48491
  "children"
48377
48492
  ];
@@ -48381,7 +48496,7 @@ var _excluded22 = [
48381
48496
  "className",
48382
48497
  "style"
48383
48498
  ];
48384
- function ownKeys46(e, r) {
48499
+ function ownKeys47(e, r) {
48385
48500
  var t = Object.keys(e);
48386
48501
  if (Object.getOwnPropertySymbols) {
48387
48502
  var o = Object.getOwnPropertySymbols(e);
@@ -48391,30 +48506,30 @@ function ownKeys46(e, r) {
48391
48506
  }
48392
48507
  return t;
48393
48508
  }
48394
- function _objectSpread46(e) {
48509
+ function _objectSpread47(e) {
48395
48510
  for(var r = 1; r < arguments.length; r++){
48396
48511
  var t = null != arguments[r] ? arguments[r] : {};
48397
- r % 2 ? ownKeys46(Object(t), true).forEach(function(r2) {
48398
- _defineProperty46(e, r2, t[r2]);
48399
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys46(Object(t)).forEach(function(r2) {
48512
+ r % 2 ? ownKeys47(Object(t), true).forEach(function(r2) {
48513
+ _defineProperty47(e, r2, t[r2]);
48514
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys47(Object(t)).forEach(function(r2) {
48400
48515
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
48401
48516
  });
48402
48517
  }
48403
48518
  return e;
48404
48519
  }
48405
- function _defineProperty46(e, r, t) {
48406
- return (r = _toPropertyKey46(r)) in e ? Object.defineProperty(e, r, {
48520
+ function _defineProperty47(e, r, t) {
48521
+ return (r = _toPropertyKey47(r)) in e ? Object.defineProperty(e, r, {
48407
48522
  value: t,
48408
48523
  enumerable: true,
48409
48524
  configurable: true,
48410
48525
  writable: true
48411
48526
  }) : e[r] = t, e;
48412
48527
  }
48413
- function _toPropertyKey46(t) {
48414
- var i = _toPrimitive46(t, "string");
48528
+ function _toPropertyKey47(t) {
48529
+ var i = _toPrimitive47(t, "string");
48415
48530
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
48416
48531
  }
48417
- function _toPrimitive46(t, r) {
48532
+ function _toPrimitive47(t, r) {
48418
48533
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
48419
48534
  var e = t[Symbol.toPrimitive];
48420
48535
  if (void 0 !== e) {
@@ -48443,11 +48558,11 @@ function _objectWithoutPropertiesLoose5(r, e) {
48443
48558
  return t;
48444
48559
  }
48445
48560
  var Content8 = function(t0) {
48446
- var $ = (0, import_react_compiler_runtime88.c)(4);
48561
+ var $ = (0, import_react_compiler_runtime89.c)(4);
48447
48562
  var children = t0.children, className = t0.className, style = t0.style;
48448
48563
  var t1;
48449
48564
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
48450
- t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes58.Flex, {
48565
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes58.Flex, {
48451
48566
  direction: "column",
48452
48567
  flexGrow: "1",
48453
48568
  p: "9",
@@ -48465,7 +48580,7 @@ var Content8 = function(t0) {
48465
48580
  return t1;
48466
48581
  };
48467
48582
  var AudioRuntimeProvider = function(t0) {
48468
- var $ = (0, import_react_compiler_runtime88.c)(3);
48583
+ var $ = (0, import_react_compiler_runtime89.c)(3);
48469
48584
  var children = t0.children, play = t0.play;
48470
48585
  var audioThreadContext = useAudioThreadContext();
48471
48586
  if (audioThreadContext.audioRuntime) {
@@ -48473,7 +48588,7 @@ var AudioRuntimeProvider = function(t0) {
48473
48588
  }
48474
48589
  var t1;
48475
48590
  if ($[0] !== children || $[1] !== play) {
48476
- t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TtsAudioRuntimeProvider, {
48591
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(TtsAudioRuntimeProvider, {
48477
48592
  play: play,
48478
48593
  children: children
48479
48594
  });
@@ -48486,7 +48601,7 @@ var AudioRuntimeProvider = function(t0) {
48486
48601
  return t1;
48487
48602
  };
48488
48603
  var Provider5 = function(t0) {
48489
- var $ = (0, import_react_compiler_runtime88.c)(9);
48604
+ var $ = (0, import_react_compiler_runtime89.c)(9);
48490
48605
  var children;
48491
48606
  var rest;
48492
48607
  if ($[0] !== t0) {
@@ -48504,7 +48619,7 @@ var Provider5 = function(t0) {
48504
48619
  var audioThreadContext = useAudioThreadContext();
48505
48620
  var t1;
48506
48621
  if ($[3] !== audioThreadContext || $[4] !== rest) {
48507
- t1 = _objectSpread46(_objectSpread46({}, audioThreadContext), rest);
48622
+ t1 = _objectSpread47(_objectSpread47({}, audioThreadContext), rest);
48508
48623
  $[3] = audioThreadContext;
48509
48624
  $[4] = rest;
48510
48625
  $[5] = t1;
@@ -48513,7 +48628,7 @@ var Provider5 = function(t0) {
48513
48628
  }
48514
48629
  var t2;
48515
48630
  if ($[6] !== children || $[7] !== t1) {
48516
- t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AudioThreadContext.Provider, {
48631
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AudioThreadContext.Provider, {
48517
48632
  value: t1,
48518
48633
  children: children
48519
48634
  });
@@ -48525,8 +48640,8 @@ var Provider5 = function(t0) {
48525
48640
  }
48526
48641
  return t2;
48527
48642
  };
48528
- var Root14 = function(t0) {
48529
- var $ = (0, import_react_compiler_runtime88.c)(16);
48643
+ var Root15 = function(t0) {
48644
+ var $ = (0, import_react_compiler_runtime89.c)(16);
48530
48645
  var children;
48531
48646
  var className;
48532
48647
  var play;
@@ -48553,8 +48668,8 @@ var Root14 = function(t0) {
48553
48668
  }
48554
48669
  var t1;
48555
48670
  if ($[6] !== children || $[7] !== className || $[8] !== style) {
48556
- t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ToastsProvider, {
48557
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Content8, {
48671
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ToastsProvider, {
48672
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Content8, {
48558
48673
  className: className,
48559
48674
  style: style,
48560
48675
  children: children
@@ -48569,7 +48684,7 @@ var Root14 = function(t0) {
48569
48684
  }
48570
48685
  var t2;
48571
48686
  if ($[10] !== play || $[11] !== t1) {
48572
- t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AudioRuntimeProvider, {
48687
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AudioRuntimeProvider, {
48573
48688
  play: play,
48574
48689
  children: t1
48575
48690
  });
@@ -48581,7 +48696,7 @@ var Root14 = function(t0) {
48581
48696
  }
48582
48697
  var t3;
48583
48698
  if ($[13] !== rest || $[14] !== t2) {
48584
- t3 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
48699
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Provider5, _objectSpread47(_objectSpread47({}, rest), {}, {
48585
48700
  children: t2
48586
48701
  }));
48587
48702
  $[13] = rest;
@@ -48593,7 +48708,7 @@ var Root14 = function(t0) {
48593
48708
  return t3;
48594
48709
  };
48595
48710
  // src/components/threads/AudioThread/Visualization/index.tsx
48596
- var import_react_compiler_runtime90 = require("react-compiler-runtime");
48711
+ var import_react_compiler_runtime91 = require("react-compiler-runtime");
48597
48712
  var import_react71 = require("react");
48598
48713
  var import_lodash9 = __toESM(require("lodash"), 1);
48599
48714
  var import_themes60 = require("@radix-ui/themes");
@@ -48602,7 +48717,7 @@ var import_lodash8 = __toESM(require("lodash"), 1);
48602
48717
  var import_themes59 = require("@radix-ui/themes");
48603
48718
  var import_react69 = require("react");
48604
48719
  var import_radash17 = require("radash");
48605
- var import_jsx_runtime87 = require("react/jsx-runtime");
48720
+ var import_jsx_runtime88 = require("react/jsx-runtime");
48606
48721
  var barCount = 4;
48607
48722
  var BarsVisualizer = function(_ref) {
48608
48723
  var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
@@ -48633,7 +48748,7 @@ var BarsVisualizer = function(_ref) {
48633
48748
  draw,
48634
48749
  visualizationAnalyser
48635
48750
  ]);
48636
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes59.Grid, {
48751
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes59.Grid, {
48637
48752
  columns: "".concat(barCount),
48638
48753
  gap: "1",
48639
48754
  width: "auto",
@@ -48642,12 +48757,12 @@ var BarsVisualizer = function(_ref) {
48642
48757
  gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
48643
48758
  },
48644
48759
  children: barHeights.map(function(barHeight, index) {
48645
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes59.Flex, {
48760
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes59.Flex, {
48646
48761
  direction: "column",
48647
48762
  align: "center",
48648
48763
  justify: "center",
48649
48764
  height: height,
48650
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes59.Flex, {
48765
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes59.Flex, {
48651
48766
  minHeight: "50%",
48652
48767
  maxHeight: "100%",
48653
48768
  height: "".concat(barHeight + 20, "%"),
@@ -48662,10 +48777,10 @@ var BarsVisualizer = function(_ref) {
48662
48777
  });
48663
48778
  };
48664
48779
  // src/hooks/audioThreads/useStatus/index.ts
48665
- var import_react_compiler_runtime89 = require("react-compiler-runtime");
48780
+ var import_react_compiler_runtime90 = require("react-compiler-runtime");
48666
48781
  var import_react70 = require("react");
48667
48782
  var useStatus = function() {
48668
- var $ = (0, import_react_compiler_runtime89.c)(2);
48783
+ var $ = (0, import_react_compiler_runtime90.c)(2);
48669
48784
  var audioRuntime = useAudioThreadContext().audioRuntime;
48670
48785
  var t0;
48671
48786
  bb0: {
@@ -48713,7 +48828,7 @@ var useStatus = function() {
48713
48828
  return t1;
48714
48829
  };
48715
48830
  // src/components/threads/AudioThread/Visualization/index.tsx
48716
- var import_jsx_runtime88 = require("react/jsx-runtime");
48831
+ var import_jsx_runtime89 = require("react/jsx-runtime");
48717
48832
  var _excluded6 = [
48718
48833
  "children"
48719
48834
  ];
@@ -48726,7 +48841,7 @@ var _excluded32 = [
48726
48841
  "height",
48727
48842
  "width"
48728
48843
  ];
48729
- function ownKeys47(e, r) {
48844
+ function ownKeys48(e, r) {
48730
48845
  var t = Object.keys(e);
48731
48846
  if (Object.getOwnPropertySymbols) {
48732
48847
  var o = Object.getOwnPropertySymbols(e);
@@ -48736,30 +48851,30 @@ function ownKeys47(e, r) {
48736
48851
  }
48737
48852
  return t;
48738
48853
  }
48739
- function _objectSpread47(e) {
48854
+ function _objectSpread48(e) {
48740
48855
  for(var r = 1; r < arguments.length; r++){
48741
48856
  var t = null != arguments[r] ? arguments[r] : {};
48742
- r % 2 ? ownKeys47(Object(t), true).forEach(function(r2) {
48743
- _defineProperty47(e, r2, t[r2]);
48744
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys47(Object(t)).forEach(function(r2) {
48857
+ r % 2 ? ownKeys48(Object(t), true).forEach(function(r2) {
48858
+ _defineProperty48(e, r2, t[r2]);
48859
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys48(Object(t)).forEach(function(r2) {
48745
48860
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
48746
48861
  });
48747
48862
  }
48748
48863
  return e;
48749
48864
  }
48750
- function _defineProperty47(e, r, t) {
48751
- return (r = _toPropertyKey47(r)) in e ? Object.defineProperty(e, r, {
48865
+ function _defineProperty48(e, r, t) {
48866
+ return (r = _toPropertyKey48(r)) in e ? Object.defineProperty(e, r, {
48752
48867
  value: t,
48753
48868
  enumerable: true,
48754
48869
  configurable: true,
48755
48870
  writable: true
48756
48871
  }) : e[r] = t, e;
48757
48872
  }
48758
- function _toPropertyKey47(t) {
48759
- var i = _toPrimitive47(t, "string");
48873
+ function _toPropertyKey48(t) {
48874
+ var i = _toPrimitive48(t, "string");
48760
48875
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
48761
48876
  }
48762
- function _toPrimitive47(t, r) {
48877
+ function _toPrimitive48(t, r) {
48763
48878
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
48764
48879
  var e = t[Symbol.toPrimitive];
48765
48880
  if (void 0 !== e) {
@@ -48817,15 +48932,15 @@ var Provider6 = function(_ref) {
48817
48932
  draw,
48818
48933
  audioThreadContext
48819
48934
  ]);
48820
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AudioThreadVisualizationContext.Provider, {
48935
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AudioThreadVisualizationContext.Provider, {
48821
48936
  value: {
48822
48937
  scale: scale
48823
48938
  },
48824
48939
  children: children
48825
48940
  });
48826
48941
  };
48827
- var Root15 = function(t0) {
48828
- var $ = (0, import_react_compiler_runtime90.c)(6);
48942
+ var Root16 = function(t0) {
48943
+ var $ = (0, import_react_compiler_runtime91.c)(6);
48829
48944
  var children;
48830
48945
  var rest;
48831
48946
  if ($[0] !== t0) {
@@ -48842,8 +48957,8 @@ var Root15 = function(t0) {
48842
48957
  }
48843
48958
  var t1;
48844
48959
  if ($[3] !== children || $[4] !== rest) {
48845
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Provider6, {
48846
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
48960
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Provider6, {
48961
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread48(_objectSpread48({
48847
48962
  direction: "column",
48848
48963
  align: "center",
48849
48964
  justify: "center",
@@ -48862,7 +48977,7 @@ var Root15 = function(t0) {
48862
48977
  return t1;
48863
48978
  };
48864
48979
  var BarsVisualizer2 = function(t0) {
48865
- var $ = (0, import_react_compiler_runtime90.c)(10);
48980
+ var $ = (0, import_react_compiler_runtime91.c)(10);
48866
48981
  var rest;
48867
48982
  var t1;
48868
48983
  var t2;
@@ -48888,7 +49003,7 @@ var BarsVisualizer2 = function(t0) {
48888
49003
  var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
48889
49004
  var t4;
48890
49005
  if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
48891
- t4 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(BarsVisualizer, _objectSpread47({
49006
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer, _objectSpread48({
48892
49007
  visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
48893
49008
  backgroundColor: t3,
48894
49009
  height: height,
@@ -48906,7 +49021,7 @@ var BarsVisualizer2 = function(t0) {
48906
49021
  return t4;
48907
49022
  };
48908
49023
  var AssistantVisualizationRoot = function(t0) {
48909
- var $ = (0, import_react_compiler_runtime90.c)(17);
49024
+ var $ = (0, import_react_compiler_runtime91.c)(17);
48910
49025
  var children;
48911
49026
  var rest;
48912
49027
  var t1;
@@ -48944,7 +49059,7 @@ var AssistantVisualizationRoot = function(t0) {
48944
49059
  }
48945
49060
  var t5;
48946
49061
  if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
48947
- t5 = _objectSpread47({
49062
+ t5 = _objectSpread48({
48948
49063
  backgroundColor: t3,
48949
49064
  borderRadius: "9999px",
48950
49065
  scale: scale
@@ -48958,7 +49073,7 @@ var AssistantVisualizationRoot = function(t0) {
48958
49073
  }
48959
49074
  var t6;
48960
49075
  if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
48961
- t6 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
49076
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread48(_objectSpread48({
48962
49077
  align: "center",
48963
49078
  justify: "center",
48964
49079
  height: height,
@@ -48979,17 +49094,17 @@ var AssistantVisualizationRoot = function(t0) {
48979
49094
  return t6;
48980
49095
  };
48981
49096
  var AssistantVisualization = function(props) {
48982
- var $ = (0, import_react_compiler_runtime90.c)(3);
49097
+ var $ = (0, import_react_compiler_runtime91.c)(3);
48983
49098
  var t0;
48984
49099
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48985
- t0 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(BarsVisualizer2, {});
49100
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer2, {});
48986
49101
  $[0] = t0;
48987
49102
  } else {
48988
49103
  t0 = $[0];
48989
49104
  }
48990
49105
  var t1;
48991
49106
  if ($[1] !== props) {
48992
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
49107
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantVisualizationRoot, _objectSpread48(_objectSpread48({}, props), {}, {
48993
49108
  children: t0
48994
49109
  }));
48995
49110
  $[1] = props;
@@ -49002,18 +49117,18 @@ var AssistantVisualization = function(props) {
49002
49117
  AssistantVisualization.Root = AssistantVisualizationRoot;
49003
49118
  AssistantVisualization.BarsVisualizer = BarsVisualizer2;
49004
49119
  var AssistantInfo = function(props) {
49005
- var $ = (0, import_react_compiler_runtime90.c)(6);
49120
+ var $ = (0, import_react_compiler_runtime91.c)(6);
49006
49121
  var assistantNameContext = (0, import_react71.useContext)(AssistantNameContext);
49007
49122
  var t0;
49008
49123
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49009
- t0 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(MessageGroup.AssistantAvatar, {});
49124
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(MessageGroup.AssistantAvatar, {});
49010
49125
  $[0] = t0;
49011
49126
  } else {
49012
49127
  t0 = $[0];
49013
49128
  }
49014
49129
  var t1;
49015
49130
  if ($[1] !== assistantNameContext) {
49016
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(MessageGroup.Name, {
49131
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(MessageGroup.Name, {
49017
49132
  children: assistantNameContext
49018
49133
  });
49019
49134
  $[1] = assistantNameContext;
@@ -49023,7 +49138,7 @@ var AssistantInfo = function(props) {
49023
49138
  }
49024
49139
  var t2;
49025
49140
  if ($[3] !== props || $[4] !== t1) {
49026
- t2 = /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes60.Flex, _objectSpread47(_objectSpread47({
49141
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes60.Flex, _objectSpread48(_objectSpread48({
49027
49142
  ml: "-22.5px",
49028
49143
  gap: "3",
49029
49144
  pt: "5"
@@ -49042,12 +49157,12 @@ var AssistantInfo = function(props) {
49042
49157
  return t2;
49043
49158
  };
49044
49159
  var Visualization = function(props) {
49045
- var $ = (0, import_react_compiler_runtime90.c)(4);
49160
+ var $ = (0, import_react_compiler_runtime91.c)(4);
49046
49161
  var t0;
49047
49162
  var t1;
49048
49163
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49049
- t0 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AssistantVisualization, {});
49050
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AssistantInfo, {});
49164
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantVisualization, {});
49165
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantInfo, {});
49051
49166
  $[0] = t0;
49052
49167
  $[1] = t1;
49053
49168
  } else {
@@ -49056,7 +49171,7 @@ var Visualization = function(props) {
49056
49171
  }
49057
49172
  var t2;
49058
49173
  if ($[2] !== props) {
49059
- t2 = /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Root15, _objectSpread47(_objectSpread47({}, props), {}, {
49174
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Root16, _objectSpread48(_objectSpread48({}, props), {}, {
49060
49175
  children: [
49061
49176
  t0,
49062
49177
  t1
@@ -49069,16 +49184,16 @@ var Visualization = function(props) {
49069
49184
  }
49070
49185
  return t2;
49071
49186
  };
49072
- Visualization.Root = Root15;
49187
+ Visualization.Root = Root16;
49073
49188
  Visualization.Provider = Provider6;
49074
49189
  Visualization.AssistantVisualization = AssistantVisualization;
49075
49190
  Visualization.AssistantInfo = AssistantInfo;
49076
49191
  // src/components/threads/AudioThread/Status/index.tsx
49077
- var import_react_compiler_runtime92 = require("react-compiler-runtime");
49192
+ var import_react_compiler_runtime93 = require("react-compiler-runtime");
49078
49193
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
49079
- var import_react_compiler_runtime91 = require("react-compiler-runtime");
49194
+ var import_react_compiler_runtime92 = require("react-compiler-runtime");
49080
49195
  var import_themes61 = require("@radix-ui/themes");
49081
- var import_jsx_runtime89 = require("react/jsx-runtime");
49196
+ var import_jsx_runtime90 = require("react/jsx-runtime");
49082
49197
  var html = function(_ref) {
49083
49198
  var texts = _ref.texts;
49084
49199
  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) {
@@ -49086,11 +49201,11 @@ var html = function(_ref) {
49086
49201
  }).join(""), "\n }");
49087
49202
  };
49088
49203
  var StatusMessages = function(t0) {
49089
- var $ = (0, import_react_compiler_runtime91.c)(9);
49204
+ var $ = (0, import_react_compiler_runtime92.c)(9);
49090
49205
  var texts = t0.texts, className = t0.className, style = t0.style;
49091
49206
  var t1;
49092
49207
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49093
- t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes61.Text, {
49208
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes61.Text, {
49094
49209
  size: "2",
49095
49210
  weight: "regular",
49096
49211
  color: "gray",
@@ -49113,7 +49228,7 @@ var StatusMessages = function(t0) {
49113
49228
  }
49114
49229
  var t3;
49115
49230
  if ($[3] !== t2) {
49116
- t3 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("style", {
49231
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("style", {
49117
49232
  dangerouslySetInnerHTML: {
49118
49233
  __html: t2
49119
49234
  }
@@ -49125,7 +49240,7 @@ var StatusMessages = function(t0) {
49125
49240
  }
49126
49241
  var t4;
49127
49242
  if ($[5] !== className || $[6] !== style || $[7] !== t3) {
49128
- t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes61.Flex, {
49243
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_themes61.Flex, {
49129
49244
  justify: "center",
49130
49245
  pb: "5",
49131
49246
  className: className,
@@ -49145,8 +49260,8 @@ var StatusMessages = function(t0) {
49145
49260
  return t4;
49146
49261
  };
49147
49262
  // src/components/threads/AudioThread/Status/index.tsx
49148
- var import_jsx_runtime90 = require("react/jsx-runtime");
49149
- function ownKeys48(e, r) {
49263
+ var import_jsx_runtime91 = require("react/jsx-runtime");
49264
+ function ownKeys49(e, r) {
49150
49265
  var t = Object.keys(e);
49151
49266
  if (Object.getOwnPropertySymbols) {
49152
49267
  var o = Object.getOwnPropertySymbols(e);
@@ -49156,30 +49271,30 @@ function ownKeys48(e, r) {
49156
49271
  }
49157
49272
  return t;
49158
49273
  }
49159
- function _objectSpread48(e) {
49274
+ function _objectSpread49(e) {
49160
49275
  for(var r = 1; r < arguments.length; r++){
49161
49276
  var t = null != arguments[r] ? arguments[r] : {};
49162
- r % 2 ? ownKeys48(Object(t), true).forEach(function(r2) {
49163
- _defineProperty48(e, r2, t[r2]);
49164
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys48(Object(t)).forEach(function(r2) {
49277
+ r % 2 ? ownKeys49(Object(t), true).forEach(function(r2) {
49278
+ _defineProperty49(e, r2, t[r2]);
49279
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys49(Object(t)).forEach(function(r2) {
49165
49280
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49166
49281
  });
49167
49282
  }
49168
49283
  return e;
49169
49284
  }
49170
- function _defineProperty48(e, r, t) {
49171
- return (r = _toPropertyKey48(r)) in e ? Object.defineProperty(e, r, {
49285
+ function _defineProperty49(e, r, t) {
49286
+ return (r = _toPropertyKey49(r)) in e ? Object.defineProperty(e, r, {
49172
49287
  value: t,
49173
49288
  enumerable: true,
49174
49289
  configurable: true,
49175
49290
  writable: true
49176
49291
  }) : e[r] = t, e;
49177
49292
  }
49178
- function _toPropertyKey48(t) {
49179
- var i = _toPrimitive48(t, "string");
49293
+ function _toPropertyKey49(t) {
49294
+ var i = _toPrimitive49(t, "string");
49180
49295
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49181
49296
  }
49182
- function _toPrimitive48(t, r) {
49297
+ function _toPrimitive49(t, r) {
49183
49298
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49184
49299
  var e = t[Symbol.toPrimitive];
49185
49300
  if (void 0 !== e) {
@@ -49190,7 +49305,7 @@ function _toPrimitive48(t, r) {
49190
49305
  return ("string" === r ? String : Number)(t);
49191
49306
  }
49192
49307
  var Status = function(props) {
49193
- var $ = (0, import_react_compiler_runtime92.c)(12);
49308
+ var $ = (0, import_react_compiler_runtime93.c)(12);
49194
49309
  var status = useStatus().status;
49195
49310
  if (status === "recording") {
49196
49311
  var _t;
@@ -49207,7 +49322,7 @@ var Status = function(props) {
49207
49322
  }
49208
49323
  var _t2;
49209
49324
  if ($[1] !== props) {
49210
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49325
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49211
49326
  texts: _t
49212
49327
  }, props));
49213
49328
  $[1] = props;
@@ -49233,7 +49348,7 @@ var Status = function(props) {
49233
49348
  }
49234
49349
  var _t4;
49235
49350
  if ($[4] !== props) {
49236
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49351
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49237
49352
  texts: _t3
49238
49353
  }, props));
49239
49354
  $[4] = props;
@@ -49255,7 +49370,7 @@ var Status = function(props) {
49255
49370
  }
49256
49371
  var _t6;
49257
49372
  if ($[7] !== props) {
49258
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49373
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49259
49374
  texts: _t5
49260
49375
  }, props));
49261
49376
  $[7] = props;
@@ -49276,7 +49391,7 @@ var Status = function(props) {
49276
49391
  }
49277
49392
  var t1;
49278
49393
  if ($[10] !== props) {
49279
- t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49394
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49280
49395
  texts: t0
49281
49396
  }, props));
49282
49397
  $[10] = props;
@@ -49287,12 +49402,12 @@ var Status = function(props) {
49287
49402
  return t1;
49288
49403
  };
49289
49404
  // src/components/threads/AudioThread/Form/index.tsx
49290
- var import_react_compiler_runtime95 = require("react-compiler-runtime");
49405
+ var import_react_compiler_runtime96 = require("react-compiler-runtime");
49291
49406
  var import_themes63 = require("@radix-ui/themes");
49292
49407
  // src/components/threads/AudioThread/Form/MicIcon.tsx
49293
- var import_react_compiler_runtime93 = require("react-compiler-runtime");
49294
- var import_jsx_runtime91 = require("react/jsx-runtime");
49295
- function ownKeys49(e, r) {
49408
+ var import_react_compiler_runtime94 = require("react-compiler-runtime");
49409
+ var import_jsx_runtime92 = require("react/jsx-runtime");
49410
+ function ownKeys50(e, r) {
49296
49411
  var t = Object.keys(e);
49297
49412
  if (Object.getOwnPropertySymbols) {
49298
49413
  var o = Object.getOwnPropertySymbols(e);
@@ -49302,30 +49417,30 @@ function ownKeys49(e, r) {
49302
49417
  }
49303
49418
  return t;
49304
49419
  }
49305
- function _objectSpread49(e) {
49420
+ function _objectSpread50(e) {
49306
49421
  for(var r = 1; r < arguments.length; r++){
49307
49422
  var t = null != arguments[r] ? arguments[r] : {};
49308
- r % 2 ? ownKeys49(Object(t), true).forEach(function(r2) {
49309
- _defineProperty49(e, r2, t[r2]);
49310
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys49(Object(t)).forEach(function(r2) {
49423
+ r % 2 ? ownKeys50(Object(t), true).forEach(function(r2) {
49424
+ _defineProperty50(e, r2, t[r2]);
49425
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys50(Object(t)).forEach(function(r2) {
49311
49426
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49312
49427
  });
49313
49428
  }
49314
49429
  return e;
49315
49430
  }
49316
- function _defineProperty49(e, r, t) {
49317
- return (r = _toPropertyKey49(r)) in e ? Object.defineProperty(e, r, {
49431
+ function _defineProperty50(e, r, t) {
49432
+ return (r = _toPropertyKey50(r)) in e ? Object.defineProperty(e, r, {
49318
49433
  value: t,
49319
49434
  enumerable: true,
49320
49435
  configurable: true,
49321
49436
  writable: true
49322
49437
  }) : e[r] = t, e;
49323
49438
  }
49324
- function _toPropertyKey49(t) {
49325
- var i = _toPrimitive49(t, "string");
49439
+ function _toPropertyKey50(t) {
49440
+ var i = _toPrimitive50(t, "string");
49326
49441
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49327
49442
  }
49328
- function _toPrimitive49(t, r) {
49443
+ function _toPrimitive50(t, r) {
49329
49444
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49330
49445
  var e = t[Symbol.toPrimitive];
49331
49446
  if (void 0 !== e) {
@@ -49336,10 +49451,10 @@ function _toPrimitive49(t, r) {
49336
49451
  return ("string" === r ? String : Number)(t);
49337
49452
  }
49338
49453
  var MicIcon = function(props) {
49339
- var $ = (0, import_react_compiler_runtime93.c)(3);
49454
+ var $ = (0, import_react_compiler_runtime94.c)(3);
49340
49455
  var t0;
49341
49456
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49342
- t0 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", {
49457
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", {
49343
49458
  stroke: "none",
49344
49459
  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"
49345
49460
  });
@@ -49349,7 +49464,7 @@ var MicIcon = function(props) {
49349
49464
  }
49350
49465
  var t1;
49351
49466
  if ($[1] !== props) {
49352
- t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", _objectSpread49(_objectSpread49({
49467
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", _objectSpread50(_objectSpread50({
49353
49468
  xmlns: "http://www.w3.org/2000/svg",
49354
49469
  fill: "currentColor",
49355
49470
  stroke: "currentColor",
@@ -49368,29 +49483,29 @@ var MicIcon = function(props) {
49368
49483
  return t1;
49369
49484
  };
49370
49485
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
49371
- var import_react_compiler_runtime94 = require("react-compiler-runtime");
49486
+ var import_react_compiler_runtime95 = require("react-compiler-runtime");
49372
49487
  var import_themes62 = require("@radix-ui/themes");
49373
49488
  var import_react_icons17 = require("@radix-ui/react-icons");
49374
- var import_jsx_runtime92 = require("react/jsx-runtime");
49489
+ var import_jsx_runtime93 = require("react/jsx-runtime");
49375
49490
  var ActionButton = function() {
49376
- var $ = (0, import_react_compiler_runtime94.c)(27);
49491
+ var $ = (0, import_react_compiler_runtime95.c)(27);
49377
49492
  var status = useStatus().status;
49378
49493
  var audioThreadContext = useAudioThreadContext();
49379
49494
  var superinterfaceContext = useSuperinterfaceContext();
49380
49495
  if (status === "recording") {
49381
49496
  var _t;
49382
49497
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49383
- _t = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.PauseIcon, {});
49498
+ _t = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.PauseIcon, {});
49384
49499
  $[0] = _t;
49385
49500
  } else {
49386
49501
  _t = $[0];
49387
49502
  }
49388
49503
  var t1;
49389
49504
  if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
49390
- t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.Flex, {
49505
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.Flex, {
49391
49506
  mr: "3",
49392
49507
  ml: "-7",
49393
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49508
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49394
49509
  onClick: audioThreadContext.audioRuntime.user.pause,
49395
49510
  color: "gray",
49396
49511
  variant: "soft",
@@ -49405,14 +49520,14 @@ var ActionButton = function() {
49405
49520
  }
49406
49521
  var t2;
49407
49522
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
49408
- t2 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.ArrowUpIcon, {});
49523
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.ArrowUpIcon, {});
49409
49524
  $[3] = t2;
49410
49525
  } else {
49411
49526
  t2 = $[3];
49412
49527
  }
49413
49528
  var t3;
49414
49529
  if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
49415
- t3 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49530
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49416
49531
  onClick: audioThreadContext.audioRuntime.user.stop,
49417
49532
  highContrast: true,
49418
49533
  variant: "soft",
@@ -49426,7 +49541,7 @@ var ActionButton = function() {
49426
49541
  }
49427
49542
  var t4;
49428
49543
  if ($[6] !== t1 || $[7] !== t3) {
49429
- t4 = /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_themes62.Flex, {
49544
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes62.Flex, {
49430
49545
  align: "center",
49431
49546
  children: [
49432
49547
  t1,
@@ -49444,14 +49559,14 @@ var ActionButton = function() {
49444
49559
  if (status === "recorderPaused") {
49445
49560
  var _t2;
49446
49561
  if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
49447
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.ResumeIcon, {});
49562
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.ResumeIcon, {});
49448
49563
  $[9] = _t2;
49449
49564
  } else {
49450
49565
  _t2 = $[9];
49451
49566
  }
49452
49567
  var _t3;
49453
49568
  if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
49454
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49569
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49455
49570
  onClick: audioThreadContext.audioRuntime.user.resume,
49456
49571
  color: "red",
49457
49572
  size: "4",
@@ -49467,7 +49582,7 @@ var ActionButton = function() {
49467
49582
  if (status === "idle") {
49468
49583
  var _t4;
49469
49584
  if ($[12] !== audioThreadContext.audioRuntime.user) {
49470
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49585
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49471
49586
  onClick: function() {
49472
49587
  return audioThreadContext.audioRuntime.user.start();
49473
49588
  },
@@ -49499,14 +49614,14 @@ var ActionButton = function() {
49499
49614
  }
49500
49615
  var _t6;
49501
49616
  if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
49502
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.StopIcon, {});
49617
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.StopIcon, {});
49503
49618
  $[18] = _t6;
49504
49619
  } else {
49505
49620
  _t6 = $[18];
49506
49621
  }
49507
49622
  var _t7;
49508
49623
  if ($[19] !== _t5) {
49509
- _t7 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49624
+ _t7 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49510
49625
  onClick: _t5,
49511
49626
  size: "4",
49512
49627
  color: "gray",
@@ -49533,14 +49648,14 @@ var ActionButton = function() {
49533
49648
  }
49534
49649
  var _t9;
49535
49650
  if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
49536
- _t9 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.ResumeIcon, {});
49651
+ _t9 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.ResumeIcon, {});
49537
49652
  $[23] = _t9;
49538
49653
  } else {
49539
49654
  _t9 = $[23];
49540
49655
  }
49541
49656
  var _t10;
49542
49657
  if ($[24] !== _t8) {
49543
- _t10 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49658
+ _t10 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49544
49659
  onClick: _t8,
49545
49660
  size: "4",
49546
49661
  children: _t9
@@ -49554,7 +49669,7 @@ var ActionButton = function() {
49554
49669
  }
49555
49670
  var t0;
49556
49671
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
49557
- t0 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49672
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49558
49673
  size: "4",
49559
49674
  variant: "soft",
49560
49675
  disabled: true
@@ -49566,8 +49681,8 @@ var ActionButton = function() {
49566
49681
  return t0;
49567
49682
  };
49568
49683
  // src/components/threads/AudioThread/Form/index.tsx
49569
- var import_jsx_runtime93 = require("react/jsx-runtime");
49570
- function ownKeys50(e, r) {
49684
+ var import_jsx_runtime94 = require("react/jsx-runtime");
49685
+ function ownKeys51(e, r) {
49571
49686
  var t = Object.keys(e);
49572
49687
  if (Object.getOwnPropertySymbols) {
49573
49688
  var o = Object.getOwnPropertySymbols(e);
@@ -49577,30 +49692,30 @@ function ownKeys50(e, r) {
49577
49692
  }
49578
49693
  return t;
49579
49694
  }
49580
- function _objectSpread50(e) {
49695
+ function _objectSpread51(e) {
49581
49696
  for(var r = 1; r < arguments.length; r++){
49582
49697
  var t = null != arguments[r] ? arguments[r] : {};
49583
- r % 2 ? ownKeys50(Object(t), true).forEach(function(r2) {
49584
- _defineProperty50(e, r2, t[r2]);
49585
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys50(Object(t)).forEach(function(r2) {
49698
+ r % 2 ? ownKeys51(Object(t), true).forEach(function(r2) {
49699
+ _defineProperty51(e, r2, t[r2]);
49700
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys51(Object(t)).forEach(function(r2) {
49586
49701
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49587
49702
  });
49588
49703
  }
49589
49704
  return e;
49590
49705
  }
49591
- function _defineProperty50(e, r, t) {
49592
- return (r = _toPropertyKey50(r)) in e ? Object.defineProperty(e, r, {
49706
+ function _defineProperty51(e, r, t) {
49707
+ return (r = _toPropertyKey51(r)) in e ? Object.defineProperty(e, r, {
49593
49708
  value: t,
49594
49709
  enumerable: true,
49595
49710
  configurable: true,
49596
49711
  writable: true
49597
49712
  }) : e[r] = t, e;
49598
49713
  }
49599
- function _toPropertyKey50(t) {
49600
- var i = _toPrimitive50(t, "string");
49714
+ function _toPropertyKey51(t) {
49715
+ var i = _toPrimitive51(t, "string");
49601
49716
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49602
49717
  }
49603
- function _toPrimitive50(t, r) {
49718
+ function _toPrimitive51(t, r) {
49604
49719
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49605
49720
  var e = t[Symbol.toPrimitive];
49606
49721
  if (void 0 !== e) {
@@ -49611,17 +49726,17 @@ function _toPrimitive50(t, r) {
49611
49726
  return ("string" === r ? String : Number)(t);
49612
49727
  }
49613
49728
  var Form = function(props) {
49614
- var $ = (0, import_react_compiler_runtime95.c)(17);
49729
+ var $ = (0, import_react_compiler_runtime96.c)(17);
49615
49730
  var status = useStatus().status;
49616
49731
  var audioThreadContext = useAudioThreadContext();
49617
49732
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
49618
49733
  var t1;
49619
49734
  if ($[0] !== t0) {
49620
- t1 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes63.Flex, {
49735
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes63.Flex, {
49621
49736
  ml: "-22.5px",
49622
49737
  mr: "2",
49623
49738
  align: "center",
49624
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(MicIcon, {
49739
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(MicIcon, {
49625
49740
  style: {
49626
49741
  color: t0
49627
49742
  }
@@ -49647,7 +49762,7 @@ var Form = function(props) {
49647
49762
  var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
49648
49763
  var t5;
49649
49764
  if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
49650
- t5 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(BarsVisualizer, {
49765
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(BarsVisualizer, {
49651
49766
  visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
49652
49767
  backgroundColor: t4,
49653
49768
  height: "20px",
@@ -49661,7 +49776,7 @@ var Form = function(props) {
49661
49776
  }
49662
49777
  var t6;
49663
49778
  if ($[7] !== t3 || $[8] !== t5) {
49664
- t6 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes63.Flex, {
49779
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes63.Flex, {
49665
49780
  px: "2",
49666
49781
  py: "1",
49667
49782
  style: t3,
@@ -49675,7 +49790,7 @@ var Form = function(props) {
49675
49790
  }
49676
49791
  var t7;
49677
49792
  if ($[10] !== t1 || $[11] !== t6) {
49678
- t7 = /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes63.Flex, {
49793
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes63.Flex, {
49679
49794
  pb: "3",
49680
49795
  align: "center",
49681
49796
  children: [
@@ -49691,14 +49806,14 @@ var Form = function(props) {
49691
49806
  }
49692
49807
  var t8;
49693
49808
  if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
49694
- t8 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ActionButton, {});
49809
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ActionButton, {});
49695
49810
  $[13] = t8;
49696
49811
  } else {
49697
49812
  t8 = $[13];
49698
49813
  }
49699
49814
  var t9;
49700
49815
  if ($[14] !== props || $[15] !== t7) {
49701
- t9 = /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes63.Flex, _objectSpread50(_objectSpread50({
49816
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes63.Flex, _objectSpread51(_objectSpread51({
49702
49817
  direction: "column",
49703
49818
  align: "center"
49704
49819
  }, props), {}, {
@@ -49716,8 +49831,8 @@ var Form = function(props) {
49716
49831
  return t9;
49717
49832
  };
49718
49833
  // src/components/threads/AudioThread/index.tsx
49719
- var import_jsx_runtime94 = require("react/jsx-runtime");
49720
- function ownKeys51(e, r) {
49834
+ var import_jsx_runtime95 = require("react/jsx-runtime");
49835
+ function ownKeys52(e, r) {
49721
49836
  var t = Object.keys(e);
49722
49837
  if (Object.getOwnPropertySymbols) {
49723
49838
  var o = Object.getOwnPropertySymbols(e);
@@ -49727,30 +49842,30 @@ function ownKeys51(e, r) {
49727
49842
  }
49728
49843
  return t;
49729
49844
  }
49730
- function _objectSpread51(e) {
49845
+ function _objectSpread52(e) {
49731
49846
  for(var r = 1; r < arguments.length; r++){
49732
49847
  var t = null != arguments[r] ? arguments[r] : {};
49733
- r % 2 ? ownKeys51(Object(t), true).forEach(function(r2) {
49734
- _defineProperty51(e, r2, t[r2]);
49735
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys51(Object(t)).forEach(function(r2) {
49848
+ r % 2 ? ownKeys52(Object(t), true).forEach(function(r2) {
49849
+ _defineProperty52(e, r2, t[r2]);
49850
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys52(Object(t)).forEach(function(r2) {
49736
49851
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49737
49852
  });
49738
49853
  }
49739
49854
  return e;
49740
49855
  }
49741
- function _defineProperty51(e, r, t) {
49742
- return (r = _toPropertyKey51(r)) in e ? Object.defineProperty(e, r, {
49856
+ function _defineProperty52(e, r, t) {
49857
+ return (r = _toPropertyKey52(r)) in e ? Object.defineProperty(e, r, {
49743
49858
  value: t,
49744
49859
  enumerable: true,
49745
49860
  configurable: true,
49746
49861
  writable: true
49747
49862
  }) : e[r] = t, e;
49748
49863
  }
49749
- function _toPropertyKey51(t) {
49750
- var i = _toPrimitive51(t, "string");
49864
+ function _toPropertyKey52(t) {
49865
+ var i = _toPrimitive52(t, "string");
49751
49866
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49752
49867
  }
49753
- function _toPrimitive51(t, r) {
49868
+ function _toPrimitive52(t, r) {
49754
49869
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49755
49870
  var e = t[Symbol.toPrimitive];
49756
49871
  if (void 0 !== e) {
@@ -49761,14 +49876,14 @@ function _toPrimitive51(t, r) {
49761
49876
  return ("string" === r ? String : Number)(t);
49762
49877
  }
49763
49878
  var AudioThread = function(props) {
49764
- var $ = (0, import_react_compiler_runtime96.c)(5);
49879
+ var $ = (0, import_react_compiler_runtime97.c)(5);
49765
49880
  var t0;
49766
49881
  var t1;
49767
49882
  var t2;
49768
49883
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49769
- t0 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Visualization, {});
49770
- t1 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Status, {});
49771
- t2 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Form, {});
49884
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Visualization, {});
49885
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Status, {});
49886
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Form, {});
49772
49887
  $[0] = t0;
49773
49888
  $[1] = t1;
49774
49889
  $[2] = t2;
@@ -49779,7 +49894,7 @@ var AudioThread = function(props) {
49779
49894
  }
49780
49895
  var t3;
49781
49896
  if ($[3] !== props) {
49782
- t3 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Root14, _objectSpread51(_objectSpread51({}, props), {}, {
49897
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root15, _objectSpread52(_objectSpread52({}, props), {}, {
49783
49898
  children: [
49784
49899
  t0,
49785
49900
  t1,
@@ -49793,13 +49908,13 @@ var AudioThread = function(props) {
49793
49908
  }
49794
49909
  return t3;
49795
49910
  };
49796
- AudioThread.Root = Root14;
49911
+ AudioThread.Root = Root15;
49797
49912
  AudioThread.Visualization = Visualization;
49798
49913
  AudioThread.Status = Status;
49799
49914
  AudioThread.Form = Form;
49800
49915
  // src/components/threads/AudioThreadDialog/index.tsx
49801
- var import_jsx_runtime95 = require("react/jsx-runtime");
49802
- function ownKeys52(e, r) {
49916
+ var import_jsx_runtime96 = require("react/jsx-runtime");
49917
+ function ownKeys53(e, r) {
49803
49918
  var t = Object.keys(e);
49804
49919
  if (Object.getOwnPropertySymbols) {
49805
49920
  var o = Object.getOwnPropertySymbols(e);
@@ -49809,30 +49924,30 @@ function ownKeys52(e, r) {
49809
49924
  }
49810
49925
  return t;
49811
49926
  }
49812
- function _objectSpread52(e) {
49927
+ function _objectSpread53(e) {
49813
49928
  for(var r = 1; r < arguments.length; r++){
49814
49929
  var t = null != arguments[r] ? arguments[r] : {};
49815
- r % 2 ? ownKeys52(Object(t), true).forEach(function(r2) {
49816
- _defineProperty52(e, r2, t[r2]);
49817
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys52(Object(t)).forEach(function(r2) {
49930
+ r % 2 ? ownKeys53(Object(t), true).forEach(function(r2) {
49931
+ _defineProperty53(e, r2, t[r2]);
49932
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys53(Object(t)).forEach(function(r2) {
49818
49933
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49819
49934
  });
49820
49935
  }
49821
49936
  return e;
49822
49937
  }
49823
- function _defineProperty52(e, r, t) {
49824
- return (r = _toPropertyKey52(r)) in e ? Object.defineProperty(e, r, {
49938
+ function _defineProperty53(e, r, t) {
49939
+ return (r = _toPropertyKey53(r)) in e ? Object.defineProperty(e, r, {
49825
49940
  value: t,
49826
49941
  enumerable: true,
49827
49942
  configurable: true,
49828
49943
  writable: true
49829
49944
  }) : e[r] = t, e;
49830
49945
  }
49831
- function _toPropertyKey52(t) {
49832
- var i = _toPrimitive52(t, "string");
49946
+ function _toPropertyKey53(t) {
49947
+ var i = _toPrimitive53(t, "string");
49833
49948
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49834
49949
  }
49835
- function _toPrimitive52(t, r) {
49950
+ function _toPrimitive53(t, r) {
49836
49951
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49837
49952
  var e = t[Symbol.toPrimitive];
49838
49953
  if (void 0 !== e) {
@@ -49843,14 +49958,14 @@ function _toPrimitive52(t, r) {
49843
49958
  return ("string" === r ? String : Number)(t);
49844
49959
  }
49845
49960
  var AudioThreadDialog = function(props) {
49846
- var $ = (0, import_react_compiler_runtime97.c)(4);
49961
+ var $ = (0, import_react_compiler_runtime98.c)(4);
49847
49962
  var t0;
49848
49963
  var t1;
49849
49964
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49850
- t0 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Content7.Root, {
49851
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(AudioThread, {})
49965
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Content7.Root, {
49966
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AudioThread, {})
49852
49967
  });
49853
- t1 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Trigger, {});
49968
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Trigger, {});
49854
49969
  $[0] = t0;
49855
49970
  $[1] = t1;
49856
49971
  } else {
@@ -49859,7 +49974,7 @@ var AudioThreadDialog = function(props) {
49859
49974
  }
49860
49975
  var t2;
49861
49976
  if ($[2] !== props) {
49862
- t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root11, _objectSpread52(_objectSpread52({}, props), {}, {
49977
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Root12, _objectSpread53(_objectSpread53({}, props), {}, {
49863
49978
  children: [
49864
49979
  t0,
49865
49980
  t1
@@ -49872,7 +49987,7 @@ var AudioThreadDialog = function(props) {
49872
49987
  }
49873
49988
  return t2;
49874
49989
  };
49875
- AudioThreadDialog.Root = Root11;
49990
+ AudioThreadDialog.Root = Root12;
49876
49991
  AudioThreadDialog.Trigger = Trigger;
49877
49992
  AudioThreadDialog.Content = Content7;
49878
49993
  // src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
@@ -50365,10 +50480,10 @@ var useWebrtcAudioRuntime = function() {
50365
50480
  ]);
50366
50481
  };
50367
50482
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
50368
- var import_react_compiler_runtime98 = require("react-compiler-runtime");
50369
- var import_jsx_runtime96 = require("react/jsx-runtime");
50483
+ var import_react_compiler_runtime99 = require("react-compiler-runtime");
50484
+ var import_jsx_runtime97 = require("react/jsx-runtime");
50370
50485
  var WebrtcAudioRuntimeProvider = function(t0) {
50371
- var $ = (0, import_react_compiler_runtime98.c)(5);
50486
+ var $ = (0, import_react_compiler_runtime99.c)(5);
50372
50487
  var children = t0.children;
50373
50488
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
50374
50489
  var t1;
@@ -50383,7 +50498,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
50383
50498
  }
50384
50499
  var t2;
50385
50500
  if ($[2] !== children || $[3] !== t1) {
50386
- t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AudioThreadContext.Provider, {
50501
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(AudioThreadContext.Provider, {
50387
50502
  value: t1,
50388
50503
  children: children
50389
50504
  });
@@ -50396,9 +50511,9 @@ var WebrtcAudioRuntimeProvider = function(t0) {
50396
50511
  return t2;
50397
50512
  };
50398
50513
  // src/components/markdown/MarkdownProvider/index.tsx
50399
- var import_react_compiler_runtime99 = require("react-compiler-runtime");
50514
+ var import_react_compiler_runtime100 = require("react-compiler-runtime");
50400
50515
  var import_react73 = require("react");
50401
- var import_jsx_runtime97 = require("react/jsx-runtime");
50516
+ var import_jsx_runtime98 = require("react/jsx-runtime");
50402
50517
  var _excluded7 = [
50403
50518
  "children"
50404
50519
  ];
@@ -50421,7 +50536,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
50421
50536
  return t;
50422
50537
  }
50423
50538
  var MarkdownProvider = function(t0) {
50424
- var $ = (0, import_react_compiler_runtime99.c)(9);
50539
+ var $ = (0, import_react_compiler_runtime100.c)(9);
50425
50540
  var children;
50426
50541
  var rest;
50427
50542
  if ($[0] !== t0) {
@@ -50451,7 +50566,7 @@ var MarkdownProvider = function(t0) {
50451
50566
  var value = t1;
50452
50567
  var t3;
50453
50568
  if ($[6] !== children || $[7] !== value) {
50454
- t3 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(MarkdownContext.Provider, {
50569
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(MarkdownContext.Provider, {
50455
50570
  value: value,
50456
50571
  children: children
50457
50572
  });
@@ -50464,18 +50579,18 @@ var MarkdownProvider = function(t0) {
50464
50579
  return t3;
50465
50580
  };
50466
50581
  // src/components/annotations/SourceAnnotation/index.tsx
50467
- var import_react_compiler_runtime102 = require("react-compiler-runtime");
50582
+ var import_react_compiler_runtime103 = require("react-compiler-runtime");
50468
50583
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50469
- var import_react_compiler_runtime101 = require("react-compiler-runtime");
50584
+ var import_react_compiler_runtime102 = require("react-compiler-runtime");
50470
50585
  var import_react74 = require("react");
50471
50586
  var import_react_icons18 = require("@radix-ui/react-icons");
50472
50587
  var import_themes65 = require("@radix-ui/themes");
50473
50588
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
50474
- var import_react_compiler_runtime100 = require("react-compiler-runtime");
50589
+ var import_react_compiler_runtime101 = require("react-compiler-runtime");
50475
50590
  var import_themes64 = require("@radix-ui/themes");
50476
- var import_jsx_runtime98 = require("react/jsx-runtime");
50591
+ var import_jsx_runtime99 = require("react/jsx-runtime");
50477
50592
  var Content9 = function(t0) {
50478
- var $ = (0, import_react_compiler_runtime100.c)(5);
50593
+ var $ = (0, import_react_compiler_runtime101.c)(5);
50479
50594
  var fileId = t0.fileId;
50480
50595
  var superinterfaceContext = useSuperinterfaceContext();
50481
50596
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -50512,18 +50627,18 @@ var Content9 = function(t0) {
50512
50627
  }
50513
50628
  var t5;
50514
50629
  if ($[3] !== t3) {
50515
- t5 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Flex, {
50630
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Flex, {
50516
50631
  direction: "column",
50517
50632
  flexGrow: "1",
50518
50633
  gap: "3",
50519
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Card, {
50634
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Card, {
50520
50635
  style: t1,
50521
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Inset, {
50636
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Inset, {
50522
50637
  clip: "padding-box",
50523
50638
  style: t2,
50524
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Flex, {
50639
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Flex, {
50525
50640
  flexGrow: "1",
50526
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("embed", {
50641
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("embed", {
50527
50642
  src: t3,
50528
50643
  style: t4
50529
50644
  })
@@ -50539,9 +50654,9 @@ var Content9 = function(t0) {
50539
50654
  return t5;
50540
50655
  };
50541
50656
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50542
- var import_jsx_runtime99 = require("react/jsx-runtime");
50657
+ var import_jsx_runtime100 = require("react/jsx-runtime");
50543
50658
  var FileCitation = function(t0) {
50544
- var $ = (0, import_react_compiler_runtime101.c)(18);
50659
+ var $ = (0, import_react_compiler_runtime102.c)(18);
50545
50660
  var annotation = t0.annotation;
50546
50661
  var _ref = _sliced_to_array((0, import_react74.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
50547
50662
  var t1;
@@ -50556,14 +50671,14 @@ var FileCitation = function(t0) {
50556
50671
  }
50557
50672
  var t2;
50558
50673
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
50559
- t2 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons18.QuoteIcon, {});
50674
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_icons18.QuoteIcon, {});
50560
50675
  $[2] = t2;
50561
50676
  } else {
50562
50677
  t2 = $[2];
50563
50678
  }
50564
50679
  var t3;
50565
50680
  if ($[3] !== t1) {
50566
- t3 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.IconButton, {
50681
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.IconButton, {
50567
50682
  variant: "soft",
50568
50683
  color: "gray",
50569
50684
  size: "1",
@@ -50599,9 +50714,9 @@ var FileCitation = function(t0) {
50599
50714
  }
50600
50715
  var t7;
50601
50716
  if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
50602
- t7 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.VisuallyHidden, {
50717
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.VisuallyHidden, {
50603
50718
  asChild: true,
50604
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.Dialog.Title, {
50719
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Dialog.Title, {
50605
50720
  children: "Source"
50606
50721
  })
50607
50722
  });
@@ -50611,7 +50726,7 @@ var FileCitation = function(t0) {
50611
50726
  }
50612
50727
  var t8;
50613
50728
  if ($[8] !== activeFileId) {
50614
- t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Content9, {
50729
+ t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Content9, {
50615
50730
  fileId: activeFileId
50616
50731
  });
50617
50732
  $[8] = activeFileId;
@@ -50621,7 +50736,7 @@ var FileCitation = function(t0) {
50621
50736
  }
50622
50737
  var t9;
50623
50738
  if ($[10] !== t8) {
50624
- t9 = /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes65.Dialog.Content, {
50739
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes65.Dialog.Content, {
50625
50740
  width: "1000px",
50626
50741
  height: "90vh",
50627
50742
  maxWidth: "calc(100vw - 2 * var(--space-4))",
@@ -50639,7 +50754,7 @@ var FileCitation = function(t0) {
50639
50754
  }
50640
50755
  var t10;
50641
50756
  if ($[12] !== t4 || $[13] !== t9) {
50642
- t10 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.Dialog.Root, {
50757
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Dialog.Root, {
50643
50758
  open: t4,
50644
50759
  onOpenChange: t5,
50645
50760
  children: t9
@@ -50652,7 +50767,7 @@ var FileCitation = function(t0) {
50652
50767
  }
50653
50768
  var t11;
50654
50769
  if ($[15] !== t10 || $[16] !== t3) {
50655
- t11 = /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, {
50770
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, {
50656
50771
  children: [
50657
50772
  t3,
50658
50773
  t10
@@ -50667,7 +50782,7 @@ var FileCitation = function(t0) {
50667
50782
  return t11;
50668
50783
  };
50669
50784
  // src/components/annotations/SourceAnnotation/index.tsx
50670
- var import_jsx_runtime100 = require("react/jsx-runtime");
50785
+ var import_jsx_runtime101 = require("react/jsx-runtime");
50671
50786
  var _excluded8 = [
50672
50787
  "children"
50673
50788
  ];
@@ -50690,7 +50805,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
50690
50805
  return t;
50691
50806
  }
50692
50807
  var SourceAnnotation = function(t0) {
50693
- var $ = (0, import_react_compiler_runtime102.c)(10);
50808
+ var $ = (0, import_react_compiler_runtime103.c)(10);
50694
50809
  var children;
50695
50810
  var rest;
50696
50811
  if ($[0] !== t0) {
@@ -50718,7 +50833,7 @@ var SourceAnnotation = function(t0) {
50718
50833
  if (annotation.type === "file_citation") {
50719
50834
  var t2;
50720
50835
  if ($[5] !== annotation) {
50721
- t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(FileCitation, {
50836
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(FileCitation, {
50722
50837
  annotation: annotation
50723
50838
  });
50724
50839
  $[5] = annotation;
@@ -50731,7 +50846,7 @@ var SourceAnnotation = function(t0) {
50731
50846
  if (annotation.type === "file_path") {
50732
50847
  var _t2;
50733
50848
  if ($[7] !== annotation || $[8] !== children) {
50734
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(FilePathAnnotation, {
50849
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(FilePathAnnotation, {
50735
50850
  annotation: annotation,
50736
50851
  children: children
50737
50852
  });
@@ -50747,7 +50862,7 @@ var SourceAnnotation = function(t0) {
50747
50862
  return null;
50748
50863
  };
50749
50864
  // src/components/avatars/Avatar.tsx
50750
- var import_react_compiler_runtime105 = require("react-compiler-runtime");
50865
+ var import_react_compiler_runtime106 = require("react-compiler-runtime");
50751
50866
  // src/lib/enums/index.ts
50752
50867
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
50753
50868
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -50772,7 +50887,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
50772
50887
  // src/components/avatars/Avatar.tsx
50773
50888
  var import_themes68 = require("@radix-ui/themes");
50774
50889
  // src/components/imageAvatars/ImageAvatar/index.tsx
50775
- var import_react_compiler_runtime103 = require("react-compiler-runtime");
50890
+ var import_react_compiler_runtime104 = require("react-compiler-runtime");
50776
50891
  var import_themes66 = require("@radix-ui/themes");
50777
50892
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
50778
50893
  var width = function(_ref) {
@@ -50824,9 +50939,9 @@ var optimizedSrc = function(_ref) {
50824
50939
  }));
50825
50940
  };
50826
50941
  // src/components/imageAvatars/ImageAvatar/index.tsx
50827
- var import_jsx_runtime101 = require("react/jsx-runtime");
50942
+ var import_jsx_runtime102 = require("react/jsx-runtime");
50828
50943
  var ImageAvatar = function(t0) {
50829
- var $ = (0, import_react_compiler_runtime103.c)(9);
50944
+ var $ = (0, import_react_compiler_runtime104.c)(9);
50830
50945
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
50831
50946
  var superinterfaceContext = useSuperinterfaceContext();
50832
50947
  var t1;
@@ -50845,7 +50960,7 @@ var ImageAvatar = function(t0) {
50845
50960
  }
50846
50961
  var t2;
50847
50962
  if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
50848
- t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes66.Avatar, {
50963
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes66.Avatar, {
50849
50964
  className: className,
50850
50965
  style: style,
50851
50966
  fallback: "",
@@ -50863,7 +50978,7 @@ var ImageAvatar = function(t0) {
50863
50978
  return t2;
50864
50979
  };
50865
50980
  // src/components/iconAvatars/IconAvatar.tsx
50866
- var import_react_compiler_runtime104 = require("react-compiler-runtime");
50981
+ var import_react_compiler_runtime105 = require("react-compiler-runtime");
50867
50982
  var import_react75 = require("react");
50868
50983
  var import_themes67 = require("@radix-ui/themes");
50869
50984
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -50871,16 +50986,16 @@ var import_react_icons19 = require("@radix-ui/react-icons");
50871
50986
  var _obj;
50872
50987
  var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, import_react_icons19.BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, import_react_icons19.RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, import_react_icons19.MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, import_react_icons19.CubeIcon), _define_property(_obj, IconAvatarName.TARGET, import_react_icons19.TargetIcon), _define_property(_obj, IconAvatarName.DISC, import_react_icons19.DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, import_react_icons19.GlobeIcon), _define_property(_obj, IconAvatarName.STAR, import_react_icons19.StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, import_react_icons19.LightningBoltIcon), _define_property(_obj, IconAvatarName.FACE, import_react_icons19.FaceIcon), _define_property(_obj, IconAvatarName.PERSON, import_react_icons19.PersonIcon), _define_property(_obj, IconAvatarName.HEART, import_react_icons19.HeartIcon), _obj);
50873
50988
  // src/components/iconAvatars/IconAvatar.tsx
50874
- var import_jsx_runtime102 = require("react/jsx-runtime");
50989
+ var import_jsx_runtime103 = require("react/jsx-runtime");
50875
50990
  var IconAvatar = function(t0) {
50876
- var $ = (0, import_react_compiler_runtime104.c)(7);
50991
+ var $ = (0, import_react_compiler_runtime105.c)(7);
50877
50992
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
50878
50993
  var t1;
50879
50994
  t1 = iconAvatarComponents[iconAvatar.name];
50880
50995
  var Component2 = t1;
50881
50996
  var t2;
50882
50997
  if ($[0] !== Component2) {
50883
- t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Component2, {}) : "";
50998
+ t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Component2, {}) : "";
50884
50999
  $[0] = Component2;
50885
51000
  $[1] = t2;
50886
51001
  } else {
@@ -50888,7 +51003,7 @@ var IconAvatar = function(t0) {
50888
51003
  }
50889
51004
  var t3;
50890
51005
  if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
50891
- t3 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes67.Avatar, {
51006
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes67.Avatar, {
50892
51007
  className: className,
50893
51008
  style: style,
50894
51009
  size: size,
@@ -50905,16 +51020,16 @@ var IconAvatar = function(t0) {
50905
51020
  return t3;
50906
51021
  };
50907
51022
  // src/components/avatars/Avatar.tsx
50908
- var import_jsx_runtime103 = require("react/jsx-runtime");
51023
+ var import_jsx_runtime104 = require("react/jsx-runtime");
50909
51024
  var Avatar6 = function(t0) {
50910
- var $ = (0, import_react_compiler_runtime105.c)(14);
51025
+ var $ = (0, import_react_compiler_runtime106.c)(14);
50911
51026
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
50912
51027
  var size = t1 === void 0 ? "1" : t1;
50913
51028
  if (avatar) {
50914
51029
  if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
50915
51030
  var _t;
50916
51031
  if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
50917
- _t = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ImageAvatar, {
51032
+ _t = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ImageAvatar, {
50918
51033
  imageAvatar: avatar.imageAvatar,
50919
51034
  size: size,
50920
51035
  className: className,
@@ -50933,7 +51048,7 @@ var Avatar6 = function(t0) {
50933
51048
  if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
50934
51049
  var _t2;
50935
51050
  if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
50936
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(IconAvatar, {
51051
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(IconAvatar, {
50937
51052
  iconAvatar: avatar.iconAvatar,
50938
51053
  size: size,
50939
51054
  className: className,
@@ -50952,7 +51067,7 @@ var Avatar6 = function(t0) {
50952
51067
  }
50953
51068
  var t2;
50954
51069
  if ($[10] !== className || $[11] !== size || $[12] !== style) {
50955
- t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes68.Avatar, {
51070
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes68.Avatar, {
50956
51071
  fallback: "",
50957
51072
  size: size,
50958
51073
  className: className,
@@ -50968,9 +51083,9 @@ var Avatar6 = function(t0) {
50968
51083
  return t2;
50969
51084
  };
50970
51085
  // src/components/components/ComponentsProvider.tsx
50971
- var import_react_compiler_runtime106 = require("react-compiler-runtime");
51086
+ var import_react_compiler_runtime107 = require("react-compiler-runtime");
50972
51087
  var import_react76 = require("react");
50973
- var import_jsx_runtime104 = require("react/jsx-runtime");
51088
+ var import_jsx_runtime105 = require("react/jsx-runtime");
50974
51089
  var _excluded9 = [
50975
51090
  "children"
50976
51091
  ];
@@ -50993,7 +51108,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
50993
51108
  return t;
50994
51109
  }
50995
51110
  var ComponentsProvider = function(t0) {
50996
- var $ = (0, import_react_compiler_runtime106.c)(9);
51111
+ var $ = (0, import_react_compiler_runtime107.c)(9);
50997
51112
  var children;
50998
51113
  var rest;
50999
51114
  if ($[0] !== t0) {
@@ -51023,7 +51138,7 @@ var ComponentsProvider = function(t0) {
51023
51138
  var value = t1;
51024
51139
  var t3;
51025
51140
  if ($[6] !== children || $[7] !== value) {
51026
- t3 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ComponentsContext.Provider, {
51141
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ComponentsContext.Provider, {
51027
51142
  value: value,
51028
51143
  children: children
51029
51144
  });
@@ -51036,11 +51151,11 @@ var ComponentsProvider = function(t0) {
51036
51151
  return t3;
51037
51152
  };
51038
51153
  // src/components/assistants/AssistantProvider/index.tsx
51039
- var import_react_compiler_runtime107 = require("react-compiler-runtime");
51040
- var import_jsx_runtime105 = require("react/jsx-runtime");
51154
+ var import_react_compiler_runtime108 = require("react-compiler-runtime");
51155
+ var import_jsx_runtime106 = require("react/jsx-runtime");
51041
51156
  var AssistantProvider = function(t0) {
51042
51157
  var _assistant$name;
51043
- var $ = (0, import_react_compiler_runtime107.c)(10);
51158
+ var $ = (0, import_react_compiler_runtime108.c)(10);
51044
51159
  var children = t0.children;
51045
51160
  var superinterfaceContext = useSuperinterfaceContext();
51046
51161
  var t1;
@@ -51058,7 +51173,7 @@ var AssistantProvider = function(t0) {
51058
51173
  var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
51059
51174
  var t4;
51060
51175
  if ($[2] !== t3) {
51061
- t4 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Avatar6, {
51176
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Avatar6, {
51062
51177
  avatar: t3
51063
51178
  });
51064
51179
  $[2] = t3;
@@ -51068,7 +51183,7 @@ var AssistantProvider = function(t0) {
51068
51183
  }
51069
51184
  var t5;
51070
51185
  if ($[4] !== children || $[5] !== t4) {
51071
- t5 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(AssistantAvatarContext.Provider, {
51186
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(AssistantAvatarContext.Provider, {
51072
51187
  value: t4,
51073
51188
  children: children
51074
51189
  });
@@ -51080,7 +51195,7 @@ var AssistantProvider = function(t0) {
51080
51195
  }
51081
51196
  var t6;
51082
51197
  if ($[7] !== t2 || $[8] !== t5) {
51083
- t6 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(AssistantNameContext.Provider, {
51198
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(AssistantNameContext.Provider, {
51084
51199
  value: t2,
51085
51200
  children: t5
51086
51201
  });