@superinterface/react 3.14.5 → 3.16.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
@@ -349,6 +349,9 @@ __export(src_exports, {
349
349
  MarkdownProvider: function() {
350
350
  return MarkdownProvider;
351
351
  },
352
+ MessageContent: function() {
353
+ return MessageContent;
354
+ },
352
355
  RunStep: function() {
353
356
  return RunStep;
354
357
  },
@@ -388,6 +391,9 @@ __export(src_exports, {
388
391
  useComponents: function() {
389
392
  return useComponents;
390
393
  },
394
+ useCreateFile: function() {
395
+ return useCreateFile;
396
+ },
391
397
  useCreateMessage: function() {
392
398
  return useCreateMessage;
393
399
  },
@@ -1291,9 +1297,9 @@ var Attachments = function(t0) {
1291
1297
  }
1292
1298
  return t3;
1293
1299
  };
1294
- // src/components/threads/Thread/Message/ContentPart/index.tsx
1300
+ // src/components/messages/MessageContent/ContentPart/index.tsx
1295
1301
  var import_react_compiler_runtime24 = require("react-compiler-runtime");
1296
- // src/components/threads/Thread/Message/ContentPart/TextContent.tsx
1302
+ // src/components/messages/MessageContent/ContentPart/TextContent.tsx
1297
1303
  var import_react_compiler_runtime22 = require("react-compiler-runtime");
1298
1304
  var import_react28 = __toESM(require("react"), 1);
1299
1305
  var import_themes32 = require("@radix-ui/themes");
@@ -4796,7 +4802,7 @@ function hasArrayChanged() {
4796
4802
  return !Object.is(item, b[index]);
4797
4803
  });
4798
4804
  }
4799
- // src/components/threads/Thread/Message/ContentPart/TextContent.tsx
4805
+ // src/components/messages/MessageContent/ContentPart/TextContent.tsx
4800
4806
  var import_jsx_runtime44 = require("react/jsx-runtime");
4801
4807
  function ownKeys24(e, r) {
4802
4808
  var t = Object.keys(e);
@@ -5027,7 +5033,7 @@ var TextContent = function(t0) {
5027
5033
  }
5028
5034
  return t7;
5029
5035
  };
5030
- // src/components/threads/Thread/Message/ContentPart/ImageFileContent.tsx
5036
+ // src/components/messages/MessageContent/ContentPart/ImageFileContent.tsx
5031
5037
  var import_react_compiler_runtime23 = require("react-compiler-runtime");
5032
5038
  var import_jsx_runtime45 = require("react/jsx-runtime");
5033
5039
  var ImageFileContent = function(t0) {
@@ -5049,7 +5055,7 @@ var ImageFileContent = function(t0) {
5049
5055
  }
5050
5056
  return t2;
5051
5057
  };
5052
- // src/components/threads/Thread/Message/ContentPart/index.tsx
5058
+ // src/components/messages/MessageContent/ContentPart/index.tsx
5053
5059
  var import_jsx_runtime46 = require("react/jsx-runtime");
5054
5060
  var ContentPart = function(t0) {
5055
5061
  var $ = (0, import_react_compiler_runtime24.c)(4);
@@ -5082,10 +5088,22 @@ var ContentPart = function(t0) {
5082
5088
  }
5083
5089
  return null;
5084
5090
  };
5085
- // src/components/threads/Thread/Message/index.tsx
5091
+ // src/components/messages/MessageContent/index.tsx
5086
5092
  var import_jsx_runtime47 = require("react/jsx-runtime");
5093
+ var MessageContent = function(_ref) {
5094
+ var message = _ref.message;
5095
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, {
5096
+ children: message.content.map(function(content, index) {
5097
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ContentPart, {
5098
+ content: content
5099
+ }, index);
5100
+ })
5101
+ });
5102
+ };
5103
+ // src/components/threads/Thread/Message/index.tsx
5104
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5087
5105
  var Message = function(t0) {
5088
- var $ = (0, import_react_compiler_runtime25.c)(51);
5106
+ var $ = (0, import_react_compiler_runtime25.c)(50);
5089
5107
  var message = t0.message, className = t0.className, style = t0.style;
5090
5108
  var t1;
5091
5109
  bb0: {
@@ -5215,7 +5233,7 @@ var Message = function(t0) {
5215
5233
  }
5216
5234
  var t4;
5217
5235
  if ($[23] !== olderRunSteps_0) {
5218
- t4 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RunSteps, {
5236
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RunSteps, {
5219
5237
  runSteps: olderRunSteps_0
5220
5238
  });
5221
5239
  $[23] = olderRunSteps_0;
@@ -5224,72 +5242,70 @@ var Message = function(t0) {
5224
5242
  t4 = $[24];
5225
5243
  }
5226
5244
  var t5;
5245
+ var t6;
5227
5246
  if ($[25] !== message) {
5228
- t5 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Attachments, {
5247
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Attachments, {
5248
+ message: message
5249
+ });
5250
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MessageContent, {
5229
5251
  message: message
5230
5252
  });
5231
5253
  $[25] = message;
5232
5254
  $[26] = t5;
5255
+ $[27] = t6;
5233
5256
  } else {
5234
5257
  t5 = $[26];
5235
- }
5236
- var t6;
5237
- if ($[27] !== message.content) {
5238
- t6 = message.content.map(_temp4);
5239
- $[27] = message.content;
5240
- $[28] = t6;
5241
- } else {
5242
- t6 = $[28];
5258
+ t6 = $[27];
5243
5259
  }
5244
5260
  var t7;
5245
- if ($[29] !== isInProgress || $[30] !== laterRunSteps_0) {
5246
- t7 = isInProgress && (0, import_radash11.isEmpty)(laterRunSteps_0) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(StartingContentSkeleton, {});
5247
- $[29] = isInProgress;
5248
- $[30] = laterRunSteps_0;
5249
- $[31] = t7;
5261
+ if ($[28] !== isInProgress || $[29] !== laterRunSteps_0) {
5262
+ t7 = isInProgress && (0, import_radash11.isEmpty)(laterRunSteps_0) && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(StartingContentSkeleton, {});
5263
+ $[28] = isInProgress;
5264
+ $[29] = laterRunSteps_0;
5265
+ $[30] = t7;
5250
5266
  } else {
5251
- t7 = $[31];
5267
+ t7 = $[30];
5252
5268
  }
5253
5269
  var t8;
5254
- if ($[32] !== t5 || $[33] !== t6 || $[34] !== t7) {
5255
- t8 = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes33.Box, {
5270
+ if ($[31] !== t5 || $[32] !== t6 || $[33] !== t7) {
5271
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes33.Box, {
5256
5272
  children: [
5257
5273
  t5,
5258
5274
  t6,
5259
5275
  t7
5260
5276
  ]
5261
5277
  });
5262
- $[32] = t5;
5263
- $[33] = t6;
5264
- $[34] = t7;
5265
- $[35] = t8;
5278
+ $[31] = t5;
5279
+ $[32] = t6;
5280
+ $[33] = t7;
5281
+ $[34] = t8;
5266
5282
  } else {
5267
- t8 = $[35];
5283
+ t8 = $[34];
5268
5284
  }
5269
5285
  var t9;
5270
- if ($[36] !== laterRunSteps_0) {
5271
- t9 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RunSteps, {
5286
+ if ($[35] !== laterRunSteps_0) {
5287
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RunSteps, {
5272
5288
  runSteps: laterRunSteps_0
5273
5289
  });
5274
- $[36] = laterRunSteps_0;
5275
- $[37] = t9;
5290
+ $[35] = laterRunSteps_0;
5291
+ $[36] = t9;
5276
5292
  } else {
5277
- t9 = $[37];
5293
+ t9 = $[36];
5278
5294
  }
5279
5295
  var t10;
5280
- if ($[38] !== isInProgress || $[39] !== laterRunSteps_0) {
5281
- t10 = isInProgress && !(0, import_radash11.isEmpty)(laterRunSteps_0) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes33.Box, {
5282
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(StartingContentSkeleton, {})
5296
+ if ($[37] !== isInProgress || $[38] !== laterRunSteps_0) {
5297
+ t10 = isInProgress && !(0, import_radash11.isEmpty)(laterRunSteps_0) && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes33.Box, {
5298
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(StartingContentSkeleton, {})
5283
5299
  });
5284
- $[38] = isInProgress;
5285
- $[39] = laterRunSteps_0;
5286
- $[40] = t10;
5300
+ $[37] = isInProgress;
5301
+ $[38] = laterRunSteps_0;
5302
+ $[39] = t10;
5287
5303
  } else {
5288
- t10 = $[40];
5304
+ t10 = $[39];
5289
5305
  }
5290
5306
  var t11;
5291
- if ($[41] !== className || $[42] !== style || $[43] !== t10 || $[44] !== t4 || $[45] !== t8 || $[46] !== t9) {
5292
- t11 = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes33.Box, {
5307
+ if ($[40] !== className || $[41] !== style || $[42] !== t10 || $[43] !== t4 || $[44] !== t8 || $[45] !== t9) {
5308
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes33.Box, {
5293
5309
  className: className,
5294
5310
  style: style,
5295
5311
  children: [
@@ -5299,27 +5315,27 @@ var Message = function(t0) {
5299
5315
  t10
5300
5316
  ]
5301
5317
  });
5302
- $[41] = className;
5303
- $[42] = style;
5304
- $[43] = t10;
5305
- $[44] = t4;
5306
- $[45] = t8;
5307
- $[46] = t9;
5308
- $[47] = t11;
5318
+ $[40] = className;
5319
+ $[41] = style;
5320
+ $[42] = t10;
5321
+ $[43] = t4;
5322
+ $[44] = t8;
5323
+ $[45] = t9;
5324
+ $[46] = t11;
5309
5325
  } else {
5310
- t11 = $[47];
5326
+ t11 = $[46];
5311
5327
  }
5312
5328
  var t12;
5313
- if ($[48] !== t11 || $[49] !== t3) {
5314
- t12 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Provider, {
5329
+ if ($[47] !== t11 || $[48] !== t3) {
5330
+ t12 = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Provider, {
5315
5331
  value: t3,
5316
5332
  children: t11
5317
5333
  });
5318
- $[48] = t11;
5319
- $[49] = t3;
5320
- $[50] = t12;
5334
+ $[47] = t11;
5335
+ $[48] = t3;
5336
+ $[49] = t12;
5321
5337
  } else {
5322
- t12 = $[50];
5338
+ t12 = $[49];
5323
5339
  }
5324
5340
  return t12;
5325
5341
  };
@@ -5332,11 +5348,6 @@ function _temp2(runStep_1) {
5332
5348
  function _temp3(rs) {
5333
5349
  return rs.status === "in_progress";
5334
5350
  }
5335
- function _temp4(content, index) {
5336
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ContentPart, {
5337
- content: content
5338
- }, index);
5339
- }
5340
5351
  // src/components/threads/Thread/Messages/Content/index.tsx
5341
5352
  var import_react_compiler_runtime32 = require("react-compiler-runtime");
5342
5353
  var import_react40 = require("react");
@@ -5480,13 +5491,13 @@ var import_themes36 = require("@radix-ui/themes");
5480
5491
  var import_react_compiler_runtime27 = require("react-compiler-runtime");
5481
5492
  var import_react32 = require("react");
5482
5493
  var import_themes34 = require("@radix-ui/themes");
5483
- var import_jsx_runtime48 = require("react/jsx-runtime");
5494
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5484
5495
  var MessageGroupBase = /* @__PURE__ */ (0, import_react32.forwardRef)(function MessageGroupBase2(t0, ref) {
5485
5496
  var $ = (0, import_react_compiler_runtime27.c)(5);
5486
5497
  var children = t0.children;
5487
5498
  var t1;
5488
5499
  if ($[0] !== children) {
5489
- t1 = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes34.Flex, {
5500
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes34.Flex, {
5490
5501
  flexShrink: "0",
5491
5502
  gap: "3",
5492
5503
  children: children
@@ -5498,7 +5509,7 @@ var MessageGroupBase = /* @__PURE__ */ (0, import_react32.forwardRef)(function M
5498
5509
  }
5499
5510
  var t2;
5500
5511
  if ($[2] !== ref || $[3] !== t1) {
5501
- t2 = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes34.Container, {
5512
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes34.Container, {
5502
5513
  ref: ref,
5503
5514
  size: "2",
5504
5515
  flexGrow: "0",
@@ -5514,13 +5525,13 @@ var MessageGroupBase = /* @__PURE__ */ (0, import_react32.forwardRef)(function M
5514
5525
  });
5515
5526
  // src/components/messageGroups/MessageGroupBase/Name.tsx
5516
5527
  var import_themes35 = require("@radix-ui/themes");
5517
- var import_jsx_runtime49 = require("react/jsx-runtime");
5528
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5518
5529
  var Name = function(_ref) {
5519
5530
  var children = _ref.children;
5520
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes35.Flex, {
5531
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes35.Flex, {
5521
5532
  align: "center",
5522
5533
  height: "var(--space-5)",
5523
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes35.Text, {
5534
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes35.Text, {
5524
5535
  size: "2",
5525
5536
  weight: "bold",
5526
5537
  children: children
@@ -5528,15 +5539,15 @@ var Name = function(_ref) {
5528
5539
  });
5529
5540
  };
5530
5541
  // src/components/skeletons/MessagesSkeleton/index.tsx
5531
- var import_jsx_runtime50 = require("react/jsx-runtime");
5542
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5532
5543
  var MessagesSkeleton = /* @__PURE__ */ (0, import_react33.forwardRef)(function MessagesSkeleton2(_props, ref) {
5533
5544
  var $ = (0, import_react_compiler_runtime28.c)(7);
5534
5545
  var t0;
5535
5546
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
5536
- t0 = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes36.Skeleton, {
5547
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes36.Skeleton, {
5537
5548
  loading: true,
5538
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes36.Avatar, {
5539
- fallback: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes36.Flex, {}),
5549
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes36.Avatar, {
5550
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes36.Flex, {}),
5540
5551
  size: "1"
5541
5552
  })
5542
5553
  });
@@ -5546,8 +5557,8 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react33.forwardRef)(function M
5546
5557
  }
5547
5558
  var t1;
5548
5559
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
5549
- t1 = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Name, {
5550
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes36.Skeleton, {
5560
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Name, {
5561
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes36.Skeleton, {
5551
5562
  loading: true,
5552
5563
  style: {
5553
5564
  width: "128px"
@@ -5560,7 +5571,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react33.forwardRef)(function M
5560
5571
  }
5561
5572
  var t2;
5562
5573
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
5563
- t2 = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes36.Skeleton, {
5574
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes36.Skeleton, {
5564
5575
  loading: true,
5565
5576
  style: {
5566
5577
  width: "256px"
@@ -5572,7 +5583,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react33.forwardRef)(function M
5572
5583
  }
5573
5584
  var t3;
5574
5585
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
5575
- t3 = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes36.Skeleton, {
5586
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes36.Skeleton, {
5576
5587
  loading: true,
5577
5588
  style: {
5578
5589
  width: "256px",
@@ -5585,13 +5596,13 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react33.forwardRef)(function M
5585
5596
  }
5586
5597
  var t4;
5587
5598
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
5588
- t4 = /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes36.Box, {
5599
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes36.Box, {
5589
5600
  pb: "3",
5590
5601
  children: [
5591
5602
  t1,
5592
5603
  t2,
5593
5604
  t3,
5594
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes36.Skeleton, {
5605
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes36.Skeleton, {
5595
5606
  loading: true,
5596
5607
  style: {
5597
5608
  width: "256px",
@@ -5606,7 +5617,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react33.forwardRef)(function M
5606
5617
  }
5607
5618
  var t5;
5608
5619
  if ($[5] !== ref) {
5609
- t5 = /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(MessageGroupBase, {
5620
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(MessageGroupBase, {
5610
5621
  ref: ref,
5611
5622
  children: [
5612
5623
  t0,
@@ -5632,13 +5643,13 @@ var import_themes38 = require("@radix-ui/themes");
5632
5643
  var import_react34 = require("react");
5633
5644
  var import_themes37 = require("@radix-ui/themes");
5634
5645
  var import_react_icons9 = require("@radix-ui/react-icons");
5635
- var import_jsx_runtime51 = require("react/jsx-runtime");
5636
- var AssistantAvatarContext = /* @__PURE__ */ (0, import_react34.createContext)(/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes37.Avatar, {
5637
- fallback: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons9.LightningBoltIcon, {}),
5646
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5647
+ var AssistantAvatarContext = /* @__PURE__ */ (0, import_react34.createContext)(/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes37.Avatar, {
5648
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_icons9.LightningBoltIcon, {}),
5638
5649
  size: "1"
5639
5650
  }));
5640
5651
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
5641
- var import_jsx_runtime52 = require("react/jsx-runtime");
5652
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5642
5653
  var AssistantAvatar = function() {
5643
5654
  var $ = (0, import_react_compiler_runtime29.c)(3);
5644
5655
  var AssistantAvatarContextValue = (0, import_react35.useContext)(AssistantAvatarContext);
@@ -5654,7 +5665,7 @@ var AssistantAvatar = function() {
5654
5665
  }
5655
5666
  var t1;
5656
5667
  if ($[1] !== AssistantAvatarContextValue) {
5657
- t1 = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes38.Flex, {
5668
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes38.Flex, {
5658
5669
  flexShrink: "0",
5659
5670
  height: "24px",
5660
5671
  width: "24px",
@@ -5679,13 +5690,13 @@ var import_themes40 = require("@radix-ui/themes");
5679
5690
  var import_react37 = require("react");
5680
5691
  var import_themes39 = require("@radix-ui/themes");
5681
5692
  var import_react_icons10 = require("@radix-ui/react-icons");
5682
- var import_jsx_runtime53 = require("react/jsx-runtime");
5683
- var UserAvatarContext = /* @__PURE__ */ (0, import_react37.createContext)(/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes39.Avatar, {
5684
- fallback: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons10.PersonIcon, {}),
5693
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5694
+ var UserAvatarContext = /* @__PURE__ */ (0, import_react37.createContext)(/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes39.Avatar, {
5695
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons10.PersonIcon, {}),
5685
5696
  size: "1"
5686
5697
  }));
5687
5698
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
5688
- var import_jsx_runtime54 = require("react/jsx-runtime");
5699
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5689
5700
  var UserAvatar = function() {
5690
5701
  var $ = (0, import_react_compiler_runtime30.c)(3);
5691
5702
  var UserAvatarContextValue = (0, import_react38.useContext)(UserAvatarContext);
@@ -5701,7 +5712,7 @@ var UserAvatar = function() {
5701
5712
  }
5702
5713
  var t1;
5703
5714
  if ($[1] !== UserAvatarContextValue) {
5704
- t1 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes40.Flex, {
5715
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes40.Flex, {
5705
5716
  flexShrink: "0",
5706
5717
  height: "24px",
5707
5718
  width: "24px",
@@ -5717,27 +5728,27 @@ var UserAvatar = function() {
5717
5728
  };
5718
5729
  // src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
5719
5730
  var import_themes41 = require("@radix-ui/themes");
5720
- var import_jsx_runtime55 = require("react/jsx-runtime");
5731
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5721
5732
  var Content5 = function(_ref) {
5722
5733
  var messageGroup = _ref.messageGroup;
5723
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes41.Flex, {
5734
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes41.Flex, {
5724
5735
  direction: "column-reverse",
5725
5736
  children: messageGroup.messages.map(function(message) {
5726
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Message, {
5737
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Message, {
5727
5738
  message: message
5728
5739
  }, message.id);
5729
5740
  })
5730
5741
  });
5731
5742
  };
5732
5743
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
5733
- var import_jsx_runtime56 = require("react/jsx-runtime");
5744
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5734
5745
  var MessageGroup = function(t0) {
5735
5746
  var $ = (0, import_react_compiler_runtime31.c)(12);
5736
5747
  var messageGroup = t0.messageGroup;
5737
5748
  var assistantNameContext = (0, import_react39.useContext)(AssistantNameContext);
5738
5749
  var t1;
5739
5750
  if ($[0] !== messageGroup.role) {
5740
- t1 = messageGroup.role === "user" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(UserAvatar, {}) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(AssistantAvatar, {});
5751
+ t1 = messageGroup.role === "user" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(UserAvatar, {}) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AssistantAvatar, {});
5741
5752
  $[0] = messageGroup.role;
5742
5753
  $[1] = t1;
5743
5754
  } else {
@@ -5746,7 +5757,7 @@ var MessageGroup = function(t0) {
5746
5757
  var t2 = messageGroup.role === "user" ? "You" : assistantNameContext;
5747
5758
  var t3;
5748
5759
  if ($[2] !== t2) {
5749
- t3 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Name, {
5760
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Name, {
5750
5761
  children: t2
5751
5762
  });
5752
5763
  $[2] = t2;
@@ -5756,7 +5767,7 @@ var MessageGroup = function(t0) {
5756
5767
  }
5757
5768
  var t4;
5758
5769
  if ($[4] !== messageGroup) {
5759
- t4 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Content5, {
5770
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Content5, {
5760
5771
  messageGroup: messageGroup
5761
5772
  });
5762
5773
  $[4] = messageGroup;
@@ -5766,7 +5777,7 @@ var MessageGroup = function(t0) {
5766
5777
  }
5767
5778
  var t5;
5768
5779
  if ($[6] !== t3 || $[7] !== t4) {
5769
- t5 = /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes42.Box, {
5780
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes42.Box, {
5770
5781
  flexGrow: "1",
5771
5782
  children: [
5772
5783
  t3,
@@ -5781,7 +5792,7 @@ var MessageGroup = function(t0) {
5781
5792
  }
5782
5793
  var t6;
5783
5794
  if ($[9] !== t1 || $[10] !== t5) {
5784
- t6 = /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(MessageGroupBase, {
5795
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(MessageGroupBase, {
5785
5796
  children: [
5786
5797
  t1,
5787
5798
  t5
@@ -5796,7 +5807,7 @@ var MessageGroup = function(t0) {
5796
5807
  return t6;
5797
5808
  };
5798
5809
  // src/components/threads/Thread/Messages/Content/index.tsx
5799
- var import_jsx_runtime57 = require("react/jsx-runtime");
5810
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5800
5811
  var Content6 = function() {
5801
5812
  var $ = (0, import_react_compiler_runtime32.c)(11);
5802
5813
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
@@ -5839,7 +5850,7 @@ var Content6 = function() {
5839
5850
  if (isLoading || isLoadingError) {
5840
5851
  var _t;
5841
5852
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
5842
- _t = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(MessagesSkeleton, {});
5853
+ _t = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MessagesSkeleton, {});
5843
5854
  $[6] = _t;
5844
5855
  } else {
5845
5856
  _t = $[6];
@@ -5848,7 +5859,7 @@ var Content6 = function() {
5848
5859
  }
5849
5860
  var t3;
5850
5861
  if ($[7] !== messageGroups2) {
5851
- t3 = messageGroups2.map(_temp5);
5862
+ t3 = messageGroups2.map(_temp4);
5852
5863
  $[7] = messageGroups2;
5853
5864
  $[8] = t3;
5854
5865
  } else {
@@ -5856,7 +5867,7 @@ var Content6 = function() {
5856
5867
  }
5857
5868
  var t4;
5858
5869
  if ($[9] !== t3) {
5859
- t4 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, {
5870
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, {
5860
5871
  children: t3
5861
5872
  });
5862
5873
  $[9] = t3;
@@ -5866,8 +5877,8 @@ var Content6 = function() {
5866
5877
  }
5867
5878
  return t4;
5868
5879
  };
5869
- function _temp5(messageGroup) {
5870
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(MessageGroup, {
5880
+ function _temp4(messageGroup) {
5881
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MessageGroup, {
5871
5882
  messageGroup: messageGroup
5872
5883
  }, messageGroup.id);
5873
5884
  }
@@ -5878,21 +5889,21 @@ var import_react42 = require("react");
5878
5889
  var import_react_compiler_runtime33 = require("react-compiler-runtime");
5879
5890
  var import_react41 = require("react");
5880
5891
  var import_themes43 = require("@radix-ui/themes");
5881
- var import_jsx_runtime58 = require("react/jsx-runtime");
5892
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5882
5893
  var StartingSkeleton = function(t0) {
5883
5894
  var $ = (0, import_react_compiler_runtime33.c)(7);
5884
5895
  var children = t0.children;
5885
5896
  var assistantNameContext = (0, import_react41.useContext)(AssistantNameContext);
5886
5897
  var t1;
5887
5898
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
5888
- t1 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(AssistantAvatar, {});
5899
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(AssistantAvatar, {});
5889
5900
  $[0] = t1;
5890
5901
  } else {
5891
5902
  t1 = $[0];
5892
5903
  }
5893
5904
  var t2;
5894
5905
  if ($[1] !== assistantNameContext) {
5895
- t2 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Name, {
5906
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Name, {
5896
5907
  children: assistantNameContext
5897
5908
  });
5898
5909
  $[1] = assistantNameContext;
@@ -5902,17 +5913,17 @@ var StartingSkeleton = function(t0) {
5902
5913
  }
5903
5914
  var t3;
5904
5915
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
5905
- t3 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(StartingContentSkeleton, {});
5916
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StartingContentSkeleton, {});
5906
5917
  $[3] = t3;
5907
5918
  } else {
5908
5919
  t3 = $[3];
5909
5920
  }
5910
5921
  var t4;
5911
5922
  if ($[4] !== children || $[5] !== t2) {
5912
- t4 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(MessageGroupBase, {
5923
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(MessageGroupBase, {
5913
5924
  children: [
5914
5925
  t1,
5915
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes43.Box, {
5926
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes43.Box, {
5916
5927
  children: [
5917
5928
  t2,
5918
5929
  children,
@@ -5930,7 +5941,7 @@ var StartingSkeleton = function(t0) {
5930
5941
  return t4;
5931
5942
  };
5932
5943
  // src/components/threads/Thread/Messages/Progress/index.tsx
5933
- var import_jsx_runtime59 = require("react/jsx-runtime");
5944
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5934
5945
  var Progress = function() {
5935
5946
  var $ = (0, import_react_compiler_runtime34.c)(1);
5936
5947
  var latestMessage = useLatestMessage().latestMessage;
@@ -5967,7 +5978,7 @@ var Progress = function() {
5967
5978
  }
5968
5979
  var t1;
5969
5980
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
5970
- t1 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(StartingSkeleton, {});
5981
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StartingSkeleton, {});
5971
5982
  $[0] = t1;
5972
5983
  } else {
5973
5984
  t1 = $[0];
@@ -6028,7 +6039,7 @@ var useInfiniteScroll = function(_ref) {
6028
6039
  };
6029
6040
  };
6030
6041
  // src/components/threads/Thread/Messages/Root/index.tsx
6031
- var import_jsx_runtime60 = require("react/jsx-runtime");
6042
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6032
6043
  function ownKeys26(e, r) {
6033
6044
  var t = Object.keys(e);
6034
6045
  if (Object.getOwnPropertySymbols) {
@@ -6111,7 +6122,7 @@ var Root2 = function(t0) {
6111
6122
  }
6112
6123
  var t4;
6113
6124
  if ($[8] !== hasNextPage || $[9] !== loaderRef) {
6114
- t4 = hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes44.Flex, {
6125
+ t4 = hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes44.Flex, {
6115
6126
  ref: loaderRef
6116
6127
  });
6117
6128
  $[8] = hasNextPage;
@@ -6122,7 +6133,7 @@ var Root2 = function(t0) {
6122
6133
  }
6123
6134
  var t5;
6124
6135
  if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
6125
- t5 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes44.Flex, {
6136
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes44.Flex, {
6126
6137
  flexShrink: "0",
6127
6138
  flexGrow: "1"
6128
6139
  });
@@ -6132,7 +6143,7 @@ var Root2 = function(t0) {
6132
6143
  }
6133
6144
  var t6;
6134
6145
  if ($[12] !== children || $[13] !== className || $[14] !== containerRef || $[15] !== t3 || $[16] !== t4) {
6135
- t6 = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes44.Flex, {
6146
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes44.Flex, {
6136
6147
  ref: containerRef,
6137
6148
  direction: "column-reverse",
6138
6149
  flexGrow: "1",
@@ -6157,7 +6168,7 @@ var Root2 = function(t0) {
6157
6168
  };
6158
6169
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
6159
6170
  var import_react_compiler_runtime36 = require("react-compiler-runtime");
6160
- var import_jsx_runtime61 = require("react/jsx-runtime");
6171
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6161
6172
  var NextPageSkeleton = function() {
6162
6173
  var $ = (0, import_react_compiler_runtime36.c)(1);
6163
6174
  var hasNextPage = useMessages().hasNextPage;
@@ -6166,7 +6177,7 @@ var NextPageSkeleton = function() {
6166
6177
  }
6167
6178
  var t0;
6168
6179
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
6169
- t0 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MessagesSkeleton, {});
6180
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessagesSkeleton, {});
6170
6181
  $[0] = t0;
6171
6182
  } else {
6172
6183
  t0 = $[0];
@@ -6174,22 +6185,22 @@ var NextPageSkeleton = function() {
6174
6185
  return t0;
6175
6186
  };
6176
6187
  // src/components/threads/Thread/Messages/index.tsx
6177
- var import_jsx_runtime62 = require("react/jsx-runtime");
6188
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6178
6189
  var Messages = function(_ref) {
6179
6190
  var children = _ref.children, className = _ref.className, style = _ref.style;
6180
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Root2, {
6191
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Root2, {
6181
6192
  style: style,
6182
6193
  className: className,
6183
6194
  children: [
6184
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.Flex, {
6195
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes45.Flex, {
6185
6196
  flexShrink: "0",
6186
6197
  height: "var(--space-3)"
6187
6198
  }),
6188
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Progress, {}),
6199
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Progress, {}),
6189
6200
  children,
6190
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Content6, {}),
6191
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(NextPageSkeleton, {}),
6192
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes45.Flex, {
6201
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Content6, {}),
6202
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(NextPageSkeleton, {}),
6203
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes45.Flex, {
6193
6204
  flexShrink: "0",
6194
6205
  flexGrow: "1",
6195
6206
  minHeight: "var(--space-5)"
@@ -6221,7 +6232,7 @@ var useMessageFormContext = function() {
6221
6232
  return (0, import_react46.useContext)(MessageFormContext);
6222
6233
  };
6223
6234
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
6224
- var import_jsx_runtime63 = require("react/jsx-runtime");
6235
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6225
6236
  function ownKeys27(e, r) {
6226
6237
  var t = Object.keys(e);
6227
6238
  if (Object.getOwnPropertySymbols) {
@@ -6267,7 +6278,7 @@ function _toPrimitive27(t, r) {
6267
6278
  }
6268
6279
  var Root3 = function(_ref) {
6269
6280
  var children = _ref.children, style = _ref.style, className = _ref.className;
6270
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.Flex, {
6281
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes46.Flex, {
6271
6282
  flexShrink: "0",
6272
6283
  align: "end",
6273
6284
  style: style,
@@ -6293,14 +6304,14 @@ var Button3 = function(props) {
6293
6304
  }
6294
6305
  var _t2;
6295
6306
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
6296
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_icons11.StopIcon, {});
6307
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons11.StopIcon, {});
6297
6308
  $[2] = _t2;
6298
6309
  } else {
6299
6310
  _t2 = $[2];
6300
6311
  }
6301
6312
  var _t3;
6302
6313
  if ($[3] !== props || $[4] !== _t) {
6303
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
6314
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
6304
6315
  type: "button",
6305
6316
  onClick: _t
6306
6317
  }, props), {}, {
@@ -6317,14 +6328,14 @@ var Button3 = function(props) {
6317
6328
  var t0 = isDisabled || isFileLoading;
6318
6329
  var t1;
6319
6330
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
6320
- t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_icons11.ArrowUpIcon, {});
6331
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons11.ArrowUpIcon, {});
6321
6332
  $[6] = t1;
6322
6333
  } else {
6323
6334
  t1 = $[6];
6324
6335
  }
6325
6336
  var t2;
6326
6337
  if ($[7] !== props || $[8] !== t0) {
6327
- t2 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
6338
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
6328
6339
  type: "submit",
6329
6340
  disabled: t0
6330
6341
  }, props), {}, {
@@ -6339,8 +6350,8 @@ var Button3 = function(props) {
6339
6350
  return t2;
6340
6351
  };
6341
6352
  var Submit = function(props) {
6342
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Root3, _objectSpread27(_objectSpread27({}, props), {}, {
6343
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button3, {})
6353
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Root3, _objectSpread27(_objectSpread27({}, props), {}, {
6354
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button3, {})
6344
6355
  }));
6345
6356
  };
6346
6357
  Submit.Root = Root3;
@@ -6361,7 +6372,7 @@ var formOptions = {
6361
6372
  };
6362
6373
  // src/components/threads/Thread/MessageForm/Root/index.tsx
6363
6374
  var import_radash14 = require("radash");
6364
- var import_jsx_runtime64 = require("react/jsx-runtime");
6375
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6365
6376
  function ownKeys28(e, r) {
6366
6377
  var t = Object.keys(e);
6367
6378
  if (Object.getOwnPropertySymbols) {
@@ -6521,7 +6532,7 @@ var Root4 = function(_ref) {
6521
6532
  };
6522
6533
  }();
6523
6534
  var content = watch("content");
6524
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MessageFormContext.Provider, {
6535
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MessageFormContext.Provider, {
6525
6536
  value: {
6526
6537
  isDisabled: isDisabled,
6527
6538
  isLoading: isLoading,
@@ -6530,13 +6541,13 @@ var Root4 = function(_ref) {
6530
6541
  isFileLoading: isFileLoading,
6531
6542
  content: content
6532
6543
  },
6533
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_hook_form.FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
6534
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes47.Box, {
6544
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_hook_form.FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
6545
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes47.Box, {
6535
6546
  asChild: true,
6536
6547
  flexShrink: "0",
6537
6548
  style: style,
6538
6549
  className: className,
6539
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("form", {
6550
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("form", {
6540
6551
  onSubmit: handleSubmit(onSubmit),
6541
6552
  children: children
6542
6553
  })
@@ -6565,7 +6576,7 @@ var import_react50 = require("react");
6565
6576
  var import_react_compiler_runtime38 = require("react-compiler-runtime");
6566
6577
  var import_react49 = require("react");
6567
6578
  var import_react_textarea_autosize = __toESM(require("react-textarea-autosize"), 1);
6568
- var import_jsx_runtime65 = require("react/jsx-runtime");
6579
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6569
6580
  var _excluded3 = [
6570
6581
  "style",
6571
6582
  "className"
@@ -6654,7 +6665,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react49.forwardRef)(function Texta
6654
6665
  }
6655
6666
  var t1;
6656
6667
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
6657
- t1 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("style", {
6668
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("style", {
6658
6669
  children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
6659
6670
  });
6660
6671
  $[4] = t1;
@@ -6689,10 +6700,10 @@ var TextareaBase = /* @__PURE__ */ (0, import_react49.forwardRef)(function Texta
6689
6700
  }
6690
6701
  var t5;
6691
6702
  if ($[9] !== ref || $[10] !== rest || $[11] !== t2 || $[12] !== t4) {
6692
- t5 = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, {
6703
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, {
6693
6704
  children: [
6694
6705
  t1,
6695
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_textarea_autosize.default, _objectSpread29({
6706
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_textarea_autosize.default, _objectSpread29({
6696
6707
  ref: ref,
6697
6708
  className: t2,
6698
6709
  style: t4
@@ -6710,7 +6721,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react49.forwardRef)(function Texta
6710
6721
  return t5;
6711
6722
  });
6712
6723
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
6713
- var import_jsx_runtime66 = require("react/jsx-runtime");
6724
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6714
6725
  function ownKeys30(e, r) {
6715
6726
  var t = Object.keys(e);
6716
6727
  if (Object.getOwnPropertySymbols) {
@@ -6756,7 +6767,7 @@ function _toPrimitive30(t, r) {
6756
6767
  }
6757
6768
  var Root5 = function(_ref) {
6758
6769
  var children = _ref.children, style = _ref.style, className = _ref.className;
6759
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes48.Flex, {
6770
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes48.Flex, {
6760
6771
  flexGrow: "1",
6761
6772
  pt: "4px",
6762
6773
  style: style,
@@ -6789,7 +6800,7 @@ var Input = function(props) {
6789
6800
  isDisabledPrevious,
6790
6801
  textareaProps
6791
6802
  ]);
6792
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
6803
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
6793
6804
  minRows: 1,
6794
6805
  placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
6795
6806
  disabled: isDisabled,
@@ -6809,8 +6820,8 @@ var Input = function(props) {
6809
6820
  }));
6810
6821
  };
6811
6822
  var Control = function(props) {
6812
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
6813
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Input, {})
6823
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
6824
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Input, {})
6814
6825
  }));
6815
6826
  };
6816
6827
  Control.Root = Root5;
@@ -6819,7 +6830,7 @@ Control.Input = Input;
6819
6830
  var import_react_compiler_runtime39 = require("react-compiler-runtime");
6820
6831
  var import_themes49 = require("@radix-ui/themes");
6821
6832
  var import_react_icons12 = require("@radix-ui/react-icons");
6822
- var import_jsx_runtime67 = require("react/jsx-runtime");
6833
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6823
6834
  function ownKeys31(e, r) {
6824
6835
  var t = Object.keys(e);
6825
6836
  if (Object.getOwnPropertySymbols) {
@@ -6874,30 +6885,30 @@ var Preview = function(props) {
6874
6885
  var _t;
6875
6886
  if ($[3] !== setFiles) {
6876
6887
  _t = function(file) {
6877
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Card, {
6888
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes49.Card, {
6878
6889
  variant: "ghost",
6879
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_themes49.Flex, {
6890
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes49.Flex, {
6880
6891
  align: "center",
6881
6892
  justify: "between",
6882
6893
  gap: "1",
6883
6894
  children: [
6884
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_themes49.Flex, {
6895
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes49.Flex, {
6885
6896
  align: "center",
6886
6897
  gap: "1",
6887
6898
  flexShrink: "1",
6888
6899
  minWidth: "0",
6889
6900
  maxWidth: "250px",
6890
6901
  children: [
6891
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Flex, {
6902
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes49.Flex, {
6892
6903
  flexShrink: "0",
6893
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Spinner, {
6904
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes49.Spinner, {
6894
6905
  loading: isOptimistic({
6895
6906
  id: file.id
6896
6907
  }),
6897
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons12.FileIcon, {})
6908
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_icons12.FileIcon, {})
6898
6909
  })
6899
6910
  }),
6900
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Text, {
6911
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes49.Text, {
6901
6912
  size: "2",
6902
6913
  truncate: true,
6903
6914
  wrap: "nowrap",
@@ -6905,9 +6916,9 @@ var Preview = function(props) {
6905
6916
  })
6906
6917
  ]
6907
6918
  }),
6908
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Flex, {
6919
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes49.Flex, {
6909
6920
  flexShrink: "0",
6910
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.IconButton, {
6921
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes49.IconButton, {
6911
6922
  onClick: function() {
6912
6923
  return setFiles(function(prev) {
6913
6924
  return prev.filter(function(prevFile) {
@@ -6918,7 +6929,7 @@ var Preview = function(props) {
6918
6929
  color: "gray",
6919
6930
  variant: "ghost",
6920
6931
  size: "1",
6921
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons12.Cross2Icon, {})
6932
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_icons12.Cross2Icon, {})
6922
6933
  })
6923
6934
  })
6924
6935
  ]
@@ -6939,7 +6950,7 @@ var Preview = function(props) {
6939
6950
  }
6940
6951
  var t1;
6941
6952
  if ($[5] !== props || $[6] !== t0) {
6942
- t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Flex, _objectSpread31(_objectSpread31({
6953
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes49.Flex, _objectSpread31(_objectSpread31({
6943
6954
  flexBasis: "100%",
6944
6955
  direction: "column",
6945
6956
  pb: "2",
@@ -7202,7 +7213,7 @@ var useCreateFile = function(t0) {
7202
7213
  var t1;
7203
7214
  if ($[0] !== t0) {
7204
7215
  t1 = t0 === void 0 ? {
7205
- onError: _temp6
7216
+ onError: _temp5
7206
7217
  } : t0;
7207
7218
  $[0] = t0;
7208
7219
  $[1] = t1;
@@ -7271,10 +7282,10 @@ var useCreateFile = function(t0) {
7271
7282
  }
7272
7283
  return t6;
7273
7284
  };
7274
- function _temp6() {}
7285
+ function _temp5() {}
7275
7286
  function _temp22() {}
7276
7287
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
7277
- var import_jsx_runtime68 = require("react/jsx-runtime");
7288
+ var import_jsx_runtime69 = require("react/jsx-runtime");
7278
7289
  function ownKeys35(e, r) {
7279
7290
  var t = Object.keys(e);
7280
7291
  if (Object.getOwnPropertySymbols) {
@@ -7555,12 +7566,12 @@ var Control2 = function(props) {
7555
7566
  createFile,
7556
7567
  setFiles
7557
7568
  ]);
7558
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes50.Flex, _objectSpread35(_objectSpread35({
7569
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes50.Flex, _objectSpread35(_objectSpread35({
7559
7570
  pt: "2",
7560
7571
  pr: "2",
7561
7572
  flexGrow: "0"
7562
7573
  }, props), {}, {
7563
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes50.IconButton, {
7574
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_themes50.IconButton, {
7564
7575
  type: "button",
7565
7576
  variant: "ghost",
7566
7577
  color: "gray",
@@ -7570,8 +7581,8 @@ var Control2 = function(props) {
7570
7581
  overflow: "hidden"
7571
7582
  },
7572
7583
  children: [
7573
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_icons13.FilePlusIcon, {}),
7574
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("input", {
7584
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_icons13.FilePlusIcon, {}),
7585
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("input", {
7575
7586
  type: "file",
7576
7587
  multiple: true,
7577
7588
  accept: accept,
@@ -7596,7 +7607,7 @@ var Files = {
7596
7607
  Control: Control2
7597
7608
  };
7598
7609
  // src/components/threads/Thread/MessageForm/Field/index.tsx
7599
- var import_jsx_runtime69 = require("react/jsx-runtime");
7610
+ var import_jsx_runtime70 = require("react/jsx-runtime");
7600
7611
  function ownKeys36(e, r) {
7601
7612
  var t = Object.keys(e);
7602
7613
  if (Object.getOwnPropertySymbols) {
@@ -7644,18 +7655,18 @@ var Root6 = function(_ref) {
7644
7655
  "use no memo";
7645
7656
  var children = _ref.children, className = _ref.className, style = _ref.style;
7646
7657
  var _$_ref = (0, import_react_hook_form3.useFormContext)(), errors = _$_ref.formState.errors;
7647
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes51.Container, {
7658
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes51.Container, {
7648
7659
  size: "2",
7649
7660
  flexGrow: "0",
7650
7661
  className: className,
7651
7662
  style: style,
7652
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes51.Flex, {
7663
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes51.Flex, {
7653
7664
  direction: "column",
7654
7665
  flexShrink: "0",
7655
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes51.Flex, {
7666
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes51.Flex, {
7656
7667
  direction: "column",
7657
7668
  flexShrink: "0",
7658
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes51.Flex, {
7669
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes51.Flex, {
7659
7670
  style: _objectSpread36({
7660
7671
  borderRadius: "var(--radius-2)",
7661
7672
  borderWidth: "1px",
@@ -7679,7 +7690,7 @@ var Field = {
7679
7690
  Files: Files
7680
7691
  };
7681
7692
  // src/components/threads/Thread/MessageForm/index.tsx
7682
- var import_jsx_runtime70 = require("react/jsx-runtime");
7693
+ var import_jsx_runtime71 = require("react/jsx-runtime");
7683
7694
  function ownKeys37(e, r) {
7684
7695
  var t = Object.keys(e);
7685
7696
  if (Object.getOwnPropertySymbols) {
@@ -7724,11 +7735,11 @@ function _toPrimitive37(t, r) {
7724
7735
  return ("string" === r ? String : Number)(t);
7725
7736
  }
7726
7737
  var MessageForm = function(props) {
7727
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
7728
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Field.Root, {
7738
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
7739
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(Field.Root, {
7729
7740
  children: [
7730
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Field.Control, {}),
7731
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Submit, {})
7741
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Field.Control, {}),
7742
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Submit, {})
7732
7743
  ]
7733
7744
  })
7734
7745
  }));
@@ -7748,25 +7759,25 @@ var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
7748
7759
  var Toast = __toESM(require("@radix-ui/react-toast"), 1);
7749
7760
  var import_themes52 = require("@radix-ui/themes");
7750
7761
  var import_react_icons14 = require("@radix-ui/react-icons");
7751
- var import_jsx_runtime71 = require("react/jsx-runtime");
7762
+ var import_jsx_runtime72 = require("react/jsx-runtime");
7752
7763
  var CustomToast = function(_ref) {
7753
7764
  var toast = _ref.toast;
7754
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Toast.Root, {
7755
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes52.Card, {
7756
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Toast.Title, {
7757
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes52.Flex, {
7765
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Toast.Root, {
7766
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes52.Card, {
7767
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Toast.Title, {
7768
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes52.Flex, {
7758
7769
  children: [
7759
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes52.Flex, {
7770
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes52.Flex, {
7760
7771
  pr: "2",
7761
7772
  height: "14px",
7762
7773
  align: "center",
7763
- children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons14.CheckCircledIcon, {
7774
+ children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons14.CheckCircledIcon, {
7764
7775
  color: "var(--accent-9)"
7765
- }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons14.CrossCircledIcon, {
7776
+ }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons14.CrossCircledIcon, {
7766
7777
  color: "var(--red-9)"
7767
7778
  })
7768
7779
  }),
7769
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes52.Text, {
7780
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes52.Text, {
7770
7781
  weight: "medium",
7771
7782
  size: "1",
7772
7783
  children: toast.message
@@ -7778,7 +7789,7 @@ var CustomToast = function(_ref) {
7778
7789
  });
7779
7790
  };
7780
7791
  // src/components/toasts/ToastsProvider/index.tsx
7781
- var import_jsx_runtime72 = require("react/jsx-runtime");
7792
+ var import_jsx_runtime73 = require("react/jsx-runtime");
7782
7793
  var ToastsProvider = function(t0) {
7783
7794
  var $ = (0, import_react_compiler_runtime41.c)(15);
7784
7795
  var children = t0.children, t1 = t0.bottom;
@@ -7818,7 +7829,7 @@ var ToastsProvider = function(t0) {
7818
7829
  }
7819
7830
  var t5;
7820
7831
  if ($[4] !== toasts) {
7821
- t5 = Array.from(toasts).map(_temp7);
7832
+ t5 = Array.from(toasts).map(_temp6);
7822
7833
  $[4] = toasts;
7823
7834
  $[5] = t5;
7824
7835
  } else {
@@ -7826,7 +7837,7 @@ var ToastsProvider = function(t0) {
7826
7837
  }
7827
7838
  var t6;
7828
7839
  if ($[6] !== bottom) {
7829
- t6 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Toast2.Viewport, {
7840
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Toast2.Viewport, {
7830
7841
  style: {
7831
7842
  position: "absolute",
7832
7843
  bottom: bottom,
@@ -7850,7 +7861,7 @@ var ToastsProvider = function(t0) {
7850
7861
  }
7851
7862
  var t7;
7852
7863
  if ($[8] !== children || $[9] !== t5 || $[10] !== t6) {
7853
- t7 = /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(Toast2.Provider, {
7864
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Toast2.Provider, {
7854
7865
  children: [
7855
7866
  children,
7856
7867
  t5,
@@ -7866,7 +7877,7 @@ var ToastsProvider = function(t0) {
7866
7877
  }
7867
7878
  var t8;
7868
7879
  if ($[12] !== t4 || $[13] !== t7) {
7869
- t8 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ToastsContext.Provider, {
7880
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ToastsContext.Provider, {
7870
7881
  value: t4,
7871
7882
  children: t7
7872
7883
  });
@@ -7878,13 +7889,13 @@ var ToastsProvider = function(t0) {
7878
7889
  }
7879
7890
  return t8;
7880
7891
  };
7881
- function _temp7(toast_0, index) {
7882
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(CustomToast, {
7892
+ function _temp6(toast_0, index) {
7893
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(CustomToast, {
7883
7894
  toast: toast_0
7884
7895
  }, index);
7885
7896
  }
7886
7897
  // src/components/threads/Thread/Root/index.tsx
7887
- var import_jsx_runtime73 = require("react/jsx-runtime");
7898
+ var import_jsx_runtime74 = require("react/jsx-runtime");
7888
7899
  var _excluded4 = [
7889
7900
  "children",
7890
7901
  "style",
@@ -7953,10 +7964,10 @@ function _objectWithoutPropertiesLoose4(r, e) {
7953
7964
  }
7954
7965
  var Root8 = function(_ref) {
7955
7966
  var children = _ref.children, style = _ref.style, className = _ref.className, rest = _objectWithoutProperties4(_ref, _excluded4);
7956
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ToastsProvider, {
7967
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ToastsProvider, {
7957
7968
  bottom: "var(--space-9)",
7958
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
7959
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes53.Flex, {
7969
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
7970
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes53.Flex, {
7960
7971
  direction: "column",
7961
7972
  flexGrow: "1",
7962
7973
  className: className,
@@ -7967,7 +7978,7 @@ var Root8 = function(_ref) {
7967
7978
  });
7968
7979
  };
7969
7980
  // src/components/threads/Thread/index.tsx
7970
- var import_jsx_runtime74 = require("react/jsx-runtime");
7981
+ var import_jsx_runtime75 = require("react/jsx-runtime");
7971
7982
  function ownKeys39(e, r) {
7972
7983
  var t = Object.keys(e);
7973
7984
  if (Object.getOwnPropertySymbols) {
@@ -8012,10 +8023,10 @@ function _toPrimitive39(t, r) {
8012
8023
  return ("string" === r ? String : Number)(t);
8013
8024
  }
8014
8025
  var Thread = function(props) {
8015
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
8026
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
8016
8027
  children: [
8017
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Messages, {}),
8018
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(MessageForm, {})
8028
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Messages, {}),
8029
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(MessageForm, {})
8019
8030
  ]
8020
8031
  }));
8021
8032
  };
@@ -8225,7 +8236,7 @@ var useThreadDialogContext = function() {
8225
8236
  return (0, import_react56.useContext)(ThreadDialogContext);
8226
8237
  };
8227
8238
  // src/components/threads/ThreadDialog/Provider/index.tsx
8228
- var import_jsx_runtime75 = require("react/jsx-runtime");
8239
+ var import_jsx_runtime76 = require("react/jsx-runtime");
8229
8240
  var Provider4 = function(t0) {
8230
8241
  var $ = (0, import_react_compiler_runtime43.c)(5);
8231
8242
  var children = t0.children;
@@ -8244,7 +8255,7 @@ var Provider4 = function(t0) {
8244
8255
  }
8245
8256
  var t2;
8246
8257
  if ($[2] !== children || $[3] !== t1) {
8247
- t2 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ThreadDialogContext.Provider, {
8258
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ThreadDialogContext.Provider, {
8248
8259
  value: t1,
8249
8260
  children: children
8250
8261
  });
@@ -8257,10 +8268,10 @@ var Provider4 = function(t0) {
8257
8268
  return t2;
8258
8269
  };
8259
8270
  // src/components/threads/ThreadDialog/Root/index.tsx
8260
- var import_jsx_runtime76 = require("react/jsx-runtime");
8271
+ var import_jsx_runtime77 = require("react/jsx-runtime");
8261
8272
  var Root9 = function(_ref) {
8262
8273
  var children = _ref.children;
8263
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Provider4, {
8274
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Provider4, {
8264
8275
  children: children
8265
8276
  });
8266
8277
  };
@@ -8270,7 +8281,7 @@ var import_themes55 = require("@radix-ui/themes");
8270
8281
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
8271
8282
  var import_themes54 = require("@radix-ui/themes");
8272
8283
  var import_react_icons15 = require("@radix-ui/react-icons");
8273
- var import_jsx_runtime77 = require("react/jsx-runtime");
8284
+ var import_jsx_runtime78 = require("react/jsx-runtime");
8274
8285
  function ownKeys41(e, r) {
8275
8286
  var t = Object.keys(e);
8276
8287
  if (Object.getOwnPropertySymbols) {
@@ -8315,15 +8326,15 @@ function _toPrimitive41(t, r) {
8315
8326
  return ("string" === r ? String : Number)(t);
8316
8327
  }
8317
8328
  var Button4 = function(props) {
8318
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes54.IconButton, _objectSpread41(_objectSpread41({
8329
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_themes54.IconButton, _objectSpread41(_objectSpread41({
8319
8330
  size: "4",
8320
8331
  radius: "full"
8321
8332
  }, props), {}, {
8322
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_icons15.ChatBubbleIcon, {})
8333
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_icons15.ChatBubbleIcon, {})
8323
8334
  }));
8324
8335
  };
8325
8336
  // src/components/threads/ThreadDialog/Trigger/index.tsx
8326
- var import_jsx_runtime78 = require("react/jsx-runtime");
8337
+ var import_jsx_runtime79 = require("react/jsx-runtime");
8327
8338
  function ownKeys42(e, r) {
8328
8339
  var t = Object.keys(e);
8329
8340
  if (Object.getOwnPropertySymbols) {
@@ -8386,7 +8397,7 @@ var Root10 = function(t0) {
8386
8397
  var t3;
8387
8398
  if ($[2] !== setIsOpen) {
8388
8399
  t3 = function() {
8389
- return setIsOpen(_temp8);
8400
+ return setIsOpen(_temp7);
8390
8401
  };
8391
8402
  $[2] = setIsOpen;
8392
8403
  $[3] = t3;
@@ -8413,7 +8424,7 @@ var Root10 = function(t0) {
8413
8424
  }
8414
8425
  var t6;
8415
8426
  if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
8416
- t6 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_themes55.Flex, {
8427
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes55.Flex, {
8417
8428
  display: t2,
8418
8429
  onClick: t3,
8419
8430
  direction: "column",
@@ -8439,13 +8450,13 @@ var Root10 = function(t0) {
8439
8450
  return t6;
8440
8451
  };
8441
8452
  var Trigger = function(args) {
8442
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Root10, _objectSpread42(_objectSpread42({}, args), {}, {
8443
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Button4, {})
8453
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Root10, _objectSpread42(_objectSpread42({}, args), {}, {
8454
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button4, {})
8444
8455
  }));
8445
8456
  };
8446
8457
  Trigger.Root = Root10;
8447
8458
  Trigger.Button = Button4;
8448
- function _temp8(prev) {
8459
+ function _temp7(prev) {
8449
8460
  return !prev;
8450
8461
  }
8451
8462
  // src/components/threads/ThreadDialog/Content/index.tsx
@@ -8455,7 +8466,7 @@ var import_themes57 = require("@radix-ui/themes");
8455
8466
  var import_react_compiler_runtime45 = require("react-compiler-runtime");
8456
8467
  var import_react_icons16 = require("@radix-ui/react-icons");
8457
8468
  var import_themes56 = require("@radix-ui/themes");
8458
- var import_jsx_runtime79 = require("react/jsx-runtime");
8469
+ var import_jsx_runtime80 = require("react/jsx-runtime");
8459
8470
  var Close = function() {
8460
8471
  var $ = (0, import_react_compiler_runtime45.c)(9);
8461
8472
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
@@ -8474,7 +8485,7 @@ var Close = function() {
8474
8485
  var t2;
8475
8486
  if ($[2] !== setIsOpen) {
8476
8487
  t2 = function() {
8477
- return setIsOpen(_temp9);
8488
+ return setIsOpen(_temp8);
8478
8489
  };
8479
8490
  $[2] = setIsOpen;
8480
8491
  $[3] = t2;
@@ -8492,10 +8503,10 @@ var Close = function() {
8492
8503
  }
8493
8504
  var t4;
8494
8505
  if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
8495
- t4 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes56.IconButton, {
8506
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes56.IconButton, {
8496
8507
  size: "2",
8497
8508
  variant: "soft",
8498
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_icons16.Cross1Icon, {})
8509
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_icons16.Cross1Icon, {})
8499
8510
  });
8500
8511
  $[5] = t4;
8501
8512
  } else {
@@ -8503,7 +8514,7 @@ var Close = function() {
8503
8514
  }
8504
8515
  var t5;
8505
8516
  if ($[6] !== t1 || $[7] !== t2) {
8506
- t5 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes56.Flex, {
8517
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes56.Flex, {
8507
8518
  display: t1,
8508
8519
  onClick: t2,
8509
8520
  direction: "column",
@@ -8524,11 +8535,11 @@ var Close = function() {
8524
8535
  }
8525
8536
  return t5;
8526
8537
  };
8527
- function _temp9(prev) {
8538
+ function _temp8(prev) {
8528
8539
  return !prev;
8529
8540
  }
8530
8541
  // src/components/threads/ThreadDialog/Content/index.tsx
8531
- var import_jsx_runtime80 = require("react/jsx-runtime");
8542
+ var import_jsx_runtime81 = require("react/jsx-runtime");
8532
8543
  function ownKeys43(e, r) {
8533
8544
  var t = Object.keys(e);
8534
8545
  if (Object.getOwnPropertySymbols) {
@@ -8660,7 +8671,7 @@ var Root11 = function(t0) {
8660
8671
  }
8661
8672
  var t10;
8662
8673
  if ($[10] !== children) {
8663
- t10 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes57.Inset, {
8674
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes57.Inset, {
8664
8675
  clip: "padding-box",
8665
8676
  side: "all",
8666
8677
  pb: "current",
@@ -8674,14 +8685,14 @@ var Root11 = function(t0) {
8674
8685
  }
8675
8686
  var t11;
8676
8687
  if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
8677
- t11 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Close, {});
8688
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Close, {});
8678
8689
  $[12] = t11;
8679
8690
  } else {
8680
8691
  t11 = $[12];
8681
8692
  }
8682
8693
  var t12;
8683
8694
  if ($[13] !== t10) {
8684
- t12 = /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_themes57.Card, {
8695
+ t12 = /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_themes57.Card, {
8685
8696
  mb: t7,
8686
8697
  style: t8,
8687
8698
  children: [
@@ -8696,7 +8707,7 @@ var Root11 = function(t0) {
8696
8707
  }
8697
8708
  var t13;
8698
8709
  if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
8699
- t13 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes57.Flex, {
8710
+ t13 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes57.Flex, {
8700
8711
  className: className,
8701
8712
  direction: "column",
8702
8713
  justify: "end",
@@ -8721,7 +8732,7 @@ var Root11 = function(t0) {
8721
8732
  };
8722
8733
  var Messages2 = function(_ref) {
8723
8734
  var className = _ref.className, style = _ref.style;
8724
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Thread.Messages, {
8735
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Thread.Messages, {
8725
8736
  className: className,
8726
8737
  style: _objectSpread43({
8727
8738
  paddingTop: "var(--space-5)",
@@ -8732,7 +8743,7 @@ var Messages2 = function(_ref) {
8732
8743
  };
8733
8744
  var FormContainer = function(_ref2) {
8734
8745
  var children = _ref2.children, className = _ref2.className, style = _ref2.style;
8735
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes57.Flex, {
8746
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes57.Flex, {
8736
8747
  direction: "column",
8737
8748
  pl: "5",
8738
8749
  pr: "5",
@@ -8744,12 +8755,12 @@ var FormContainer = function(_ref2) {
8744
8755
  });
8745
8756
  };
8746
8757
  var Content7 = function(props) {
8747
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
8748
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(Thread.Root, {
8758
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
8759
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Thread.Root, {
8749
8760
  children: [
8750
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Messages2, {}),
8751
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(FormContainer, {
8752
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Thread.MessageForm, {})
8761
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Messages2, {}),
8762
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(FormContainer, {
8763
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Thread.MessageForm, {})
8753
8764
  })
8754
8765
  ]
8755
8766
  })
@@ -8759,12 +8770,12 @@ Content7.Root = Root11;
8759
8770
  Content7.Messages = Messages2;
8760
8771
  Content7.FormContainer = FormContainer;
8761
8772
  // src/components/threads/ThreadDialog/index.tsx
8762
- var import_jsx_runtime81 = require("react/jsx-runtime");
8773
+ var import_jsx_runtime82 = require("react/jsx-runtime");
8763
8774
  var ThreadDialog = function() {
8764
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Root9, {
8775
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Root9, {
8765
8776
  children: [
8766
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Content7, {}),
8767
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Trigger, {})
8777
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Content7, {}),
8778
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Trigger, {})
8768
8779
  ]
8769
8780
  });
8770
8781
  };
@@ -8867,7 +8878,7 @@ var import_react_compiler_runtime48 = require("react-compiler-runtime");
8867
8878
  var import_react61 = require("react");
8868
8879
  var useInterval = function(callback, delay) {
8869
8880
  var $ = (0, import_react_compiler_runtime48.c)(5);
8870
- var savedCallback = (0, import_react61.useRef)(_temp10);
8881
+ var savedCallback = (0, import_react61.useRef)(_temp9);
8871
8882
  var t0;
8872
8883
  if ($[0] !== callback) {
8873
8884
  t0 = function() {
@@ -8904,7 +8915,7 @@ var useInterval = function(callback, delay) {
8904
8915
  }
8905
8916
  (0, import_react61.useEffect)(t1, t2);
8906
8917
  };
8907
- function _temp10() {}
8918
+ function _temp9() {}
8908
8919
  // src/hooks/audioThreads/useRecorder/index.ts
8909
8920
  function ownKeys44(e, r) {
8910
8921
  var t = Object.keys(e);
@@ -9453,7 +9464,7 @@ var useMessageAudio = function(t0) {
9453
9464
  } else {
9454
9465
  t8 = $[37];
9455
9466
  }
9456
- (0, import_react63.useEffect)(_temp11, t8);
9467
+ (0, import_react63.useEffect)(_temp10, t8);
9457
9468
  var _ref4 = _sliced_to_array((0, import_react63.useState)(null), 2), audioEngine = _ref4[0], setAudioEngine = _ref4[1];
9458
9469
  var isAudioEngineInited = (0, import_react63.useRef)(false);
9459
9470
  var t9;
@@ -9537,7 +9548,7 @@ var useMessageAudio = function(t0) {
9537
9548
  }
9538
9549
  return t13;
9539
9550
  };
9540
- function _temp11() {
9551
+ function _temp10() {
9541
9552
  if (isHtmlAudioSupported) {
9542
9553
  var _Howler$_howls$;
9543
9554
  if (!(import_howler.Howler !== null && import_howler.Howler !== void 0 && (_Howler$_howls$ = import_howler.Howler._howls[0]) !== null && _Howler$_howls$ !== void 0 && (_Howler$_howls$ = _Howler$_howls$._sounds[0]) !== null && _Howler$_howls$ !== void 0 && _Howler$_howls$._node)) {
@@ -9612,7 +9623,7 @@ var useTtsAudioRuntime = function(t0) {
9612
9623
  if ($[1] !== createMessageProps) {
9613
9624
  t2 = {
9614
9625
  isStopOnSilence: true,
9615
- onStart: _temp12,
9626
+ onStart: _temp11,
9616
9627
  onStop: function() {
9617
9628
  var _onStop = _asyncToGenerator11(function(_event, chunks) {
9618
9629
  var blob, audioContent;
@@ -9755,7 +9766,7 @@ var useTtsAudioRuntime = function(t0) {
9755
9766
  t5 = t14;
9756
9767
  return t5;
9757
9768
  };
9758
- function _temp12() {
9769
+ function _temp11() {
9759
9770
  return _temp23.apply(this, arguments);
9760
9771
  }
9761
9772
  function _temp23() {
@@ -9769,7 +9780,7 @@ function _temp23() {
9769
9780
  return _temp23.apply(this, arguments);
9770
9781
  }
9771
9782
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
9772
- var import_jsx_runtime82 = require("react/jsx-runtime");
9783
+ var import_jsx_runtime83 = require("react/jsx-runtime");
9773
9784
  var TtsAudioRuntimeProvider = function(t0) {
9774
9785
  var $ = (0, import_react_compiler_runtime51.c)(7);
9775
9786
  var children = t0.children, play = t0.play;
@@ -9796,7 +9807,7 @@ var TtsAudioRuntimeProvider = function(t0) {
9796
9807
  }
9797
9808
  var t3;
9798
9809
  if ($[4] !== children || $[5] !== t2) {
9799
- t3 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(AudioThreadContext.Provider, {
9810
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(AudioThreadContext.Provider, {
9800
9811
  value: t2,
9801
9812
  children: children
9802
9813
  });
@@ -9809,7 +9820,7 @@ var TtsAudioRuntimeProvider = function(t0) {
9809
9820
  return t3;
9810
9821
  };
9811
9822
  // src/components/threads/AudioThread/Root/index.tsx
9812
- var import_jsx_runtime83 = require("react/jsx-runtime");
9823
+ var import_jsx_runtime84 = require("react/jsx-runtime");
9813
9824
  var _excluded5 = [
9814
9825
  "children"
9815
9826
  ];
@@ -9882,7 +9893,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
9882
9893
  }
9883
9894
  var Content8 = function(_ref) {
9884
9895
  var children = _ref.children, className = _ref.className, style = _ref.style;
9885
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes58.Flex, {
9896
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes58.Flex, {
9886
9897
  direction: "column",
9887
9898
  flexGrow: "1",
9888
9899
  p: "9",
@@ -9900,7 +9911,7 @@ var AudioRuntimeProvider = function(t0) {
9900
9911
  }
9901
9912
  var t1;
9902
9913
  if ($[0] !== children || $[1] !== play) {
9903
- t1 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TtsAudioRuntimeProvider, {
9914
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(TtsAudioRuntimeProvider, {
9904
9915
  play: play,
9905
9916
  children: children
9906
9917
  });
@@ -9940,7 +9951,7 @@ var Provider5 = function(t0) {
9940
9951
  }
9941
9952
  var t2;
9942
9953
  if ($[6] !== children || $[7] !== t1) {
9943
- t2 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(AudioThreadContext.Provider, {
9954
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(AudioThreadContext.Provider, {
9944
9955
  value: t1,
9945
9956
  children: children
9946
9957
  });
@@ -9954,11 +9965,11 @@ var Provider5 = function(t0) {
9954
9965
  };
9955
9966
  var Root12 = function(_ref2) {
9956
9967
  var children = _ref2.children, play = _ref2.play, className = _ref2.className, style = _ref2.style, rest = _objectWithoutProperties5(_ref2, _excluded22);
9957
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
9958
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(AudioRuntimeProvider, {
9968
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
9969
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(AudioRuntimeProvider, {
9959
9970
  play: play,
9960
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ToastsProvider, {
9961
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Content8, {
9971
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ToastsProvider, {
9972
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Content8, {
9962
9973
  className: className,
9963
9974
  style: style,
9964
9975
  children: children
@@ -9976,7 +9987,7 @@ var import_lodash8 = __toESM(require("lodash"), 1);
9976
9987
  var import_themes59 = require("@radix-ui/themes");
9977
9988
  var import_react65 = require("react");
9978
9989
  var import_radash17 = require("radash");
9979
- var import_jsx_runtime84 = require("react/jsx-runtime");
9990
+ var import_jsx_runtime85 = require("react/jsx-runtime");
9980
9991
  var barCount = 4;
9981
9992
  var BarsVisualizer = function(_ref) {
9982
9993
  var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
@@ -10007,7 +10018,7 @@ var BarsVisualizer = function(_ref) {
10007
10018
  draw,
10008
10019
  visualizationAnalyser
10009
10020
  ]);
10010
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes59.Grid, {
10021
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes59.Grid, {
10011
10022
  columns: "".concat(barCount),
10012
10023
  gap: "1",
10013
10024
  width: "auto",
@@ -10016,12 +10027,12 @@ var BarsVisualizer = function(_ref) {
10016
10027
  gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
10017
10028
  },
10018
10029
  children: barHeights.map(function(barHeight, index) {
10019
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes59.Flex, {
10030
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes59.Flex, {
10020
10031
  direction: "column",
10021
10032
  align: "center",
10022
10033
  justify: "center",
10023
10034
  height: height,
10024
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes59.Flex, {
10035
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes59.Flex, {
10025
10036
  minHeight: "50%",
10026
10037
  maxHeight: "100%",
10027
10038
  height: "".concat(barHeight + 20, "%"),
@@ -10087,7 +10098,7 @@ var useStatus = function() {
10087
10098
  return t1;
10088
10099
  };
10089
10100
  // src/components/threads/AudioThread/Visualization/index.tsx
10090
- var import_jsx_runtime85 = require("react/jsx-runtime");
10101
+ var import_jsx_runtime86 = require("react/jsx-runtime");
10091
10102
  function ownKeys47(e, r) {
10092
10103
  var t = Object.keys(e);
10093
10104
  if (Object.getOwnPropertySymbols) {
@@ -10159,7 +10170,7 @@ var Visualization = function(props) {
10159
10170
  draw,
10160
10171
  audioThreadContext
10161
10172
  ]);
10162
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes60.Flex, _objectSpread47(_objectSpread47({
10173
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes60.Flex, _objectSpread47(_objectSpread47({
10163
10174
  direction: "column",
10164
10175
  align: "center",
10165
10176
  justify: "center",
@@ -10167,7 +10178,7 @@ var Visualization = function(props) {
10167
10178
  flexGrow: "1"
10168
10179
  }, props), {}, {
10169
10180
  children: [
10170
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes60.Flex, {
10181
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes60.Flex, {
10171
10182
  align: "center",
10172
10183
  justify: "center",
10173
10184
  height: "200px",
@@ -10177,20 +10188,20 @@ var Visualization = function(props) {
10177
10188
  borderRadius: "9999px",
10178
10189
  scale: scale
10179
10190
  },
10180
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(BarsVisualizer, {
10191
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(BarsVisualizer, {
10181
10192
  visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
10182
10193
  backgroundColor: status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
10183
10194
  height: "40px",
10184
10195
  barWidth: "24px"
10185
10196
  })
10186
10197
  }),
10187
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes60.Flex, {
10198
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes60.Flex, {
10188
10199
  ml: "-22.5px",
10189
10200
  gap: "3",
10190
10201
  pt: "5",
10191
10202
  children: [
10192
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(AssistantAvatar, {}),
10193
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Name, {
10203
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AssistantAvatar, {}),
10204
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Name, {
10194
10205
  children: assistantNameContext
10195
10206
  })
10196
10207
  ]
@@ -10202,7 +10213,7 @@ var Visualization = function(props) {
10202
10213
  var import_react_compiler_runtime54 = require("react-compiler-runtime");
10203
10214
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
10204
10215
  var import_themes61 = require("@radix-ui/themes");
10205
- var import_jsx_runtime86 = require("react/jsx-runtime");
10216
+ var import_jsx_runtime87 = require("react/jsx-runtime");
10206
10217
  var html = function(_ref) {
10207
10218
  var texts = _ref.texts;
10208
10219
  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) {
@@ -10211,19 +10222,19 @@ var html = function(_ref) {
10211
10222
  };
10212
10223
  var StatusMessages = function(_ref2) {
10213
10224
  var texts = _ref2.texts, className = _ref2.className, style = _ref2.style;
10214
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes61.Flex, {
10225
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_themes61.Flex, {
10215
10226
  justify: "center",
10216
10227
  pb: "5",
10217
10228
  className: className,
10218
10229
  style: style,
10219
10230
  children: [
10220
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes61.Text, {
10231
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes61.Text, {
10221
10232
  size: "2",
10222
10233
  weight: "regular",
10223
10234
  color: "gray",
10224
10235
  className: "status-messages-texts"
10225
10236
  }),
10226
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("style", {
10237
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("style", {
10227
10238
  dangerouslySetInnerHTML: {
10228
10239
  __html: html({
10229
10240
  texts: texts
@@ -10234,7 +10245,7 @@ var StatusMessages = function(_ref2) {
10234
10245
  });
10235
10246
  };
10236
10247
  // src/components/threads/AudioThread/Status/index.tsx
10237
- var import_jsx_runtime87 = require("react/jsx-runtime");
10248
+ var import_jsx_runtime88 = require("react/jsx-runtime");
10238
10249
  function ownKeys48(e, r) {
10239
10250
  var t = Object.keys(e);
10240
10251
  if (Object.getOwnPropertySymbols) {
@@ -10296,7 +10307,7 @@ var Status = function(props) {
10296
10307
  }
10297
10308
  var _t2;
10298
10309
  if ($[1] !== props) {
10299
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(StatusMessages, _objectSpread48({
10310
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(StatusMessages, _objectSpread48({
10300
10311
  texts: _t
10301
10312
  }, props));
10302
10313
  $[1] = props;
@@ -10322,7 +10333,7 @@ var Status = function(props) {
10322
10333
  }
10323
10334
  var _t4;
10324
10335
  if ($[4] !== props) {
10325
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(StatusMessages, _objectSpread48({
10336
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(StatusMessages, _objectSpread48({
10326
10337
  texts: _t3
10327
10338
  }, props));
10328
10339
  $[4] = props;
@@ -10344,7 +10355,7 @@ var Status = function(props) {
10344
10355
  }
10345
10356
  var _t6;
10346
10357
  if ($[7] !== props) {
10347
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(StatusMessages, _objectSpread48({
10358
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(StatusMessages, _objectSpread48({
10348
10359
  texts: _t5
10349
10360
  }, props));
10350
10361
  $[7] = props;
@@ -10365,7 +10376,7 @@ var Status = function(props) {
10365
10376
  }
10366
10377
  var t1;
10367
10378
  if ($[10] !== props) {
10368
- t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(StatusMessages, _objectSpread48({
10379
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(StatusMessages, _objectSpread48({
10369
10380
  texts: t0
10370
10381
  }, props));
10371
10382
  $[10] = props;
@@ -10379,7 +10390,7 @@ var Status = function(props) {
10379
10390
  var import_react_compiler_runtime56 = require("react-compiler-runtime");
10380
10391
  var import_themes63 = require("@radix-ui/themes");
10381
10392
  // src/components/threads/AudioThread/Form/MicIcon.tsx
10382
- var import_jsx_runtime88 = require("react/jsx-runtime");
10393
+ var import_jsx_runtime89 = require("react/jsx-runtime");
10383
10394
  function ownKeys49(e, r) {
10384
10395
  var t = Object.keys(e);
10385
10396
  if (Object.getOwnPropertySymbols) {
@@ -10424,7 +10435,7 @@ function _toPrimitive49(t, r) {
10424
10435
  return ("string" === r ? String : Number)(t);
10425
10436
  }
10426
10437
  var MicIcon = function(props) {
10427
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("svg", _objectSpread49(_objectSpread49({
10438
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("svg", _objectSpread49(_objectSpread49({
10428
10439
  xmlns: "http://www.w3.org/2000/svg",
10429
10440
  fill: "currentColor",
10430
10441
  stroke: "currentColor",
@@ -10433,7 +10444,7 @@ var MicIcon = function(props) {
10433
10444
  height: "15",
10434
10445
  width: "15"
10435
10446
  }, props), {}, {
10436
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("path", {
10447
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", {
10437
10448
  stroke: "none",
10438
10449
  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"
10439
10450
  })
@@ -10443,7 +10454,7 @@ var MicIcon = function(props) {
10443
10454
  var import_react_compiler_runtime55 = require("react-compiler-runtime");
10444
10455
  var import_themes62 = require("@radix-ui/themes");
10445
10456
  var import_react_icons17 = require("@radix-ui/react-icons");
10446
- var import_jsx_runtime89 = require("react/jsx-runtime");
10457
+ var import_jsx_runtime90 = require("react/jsx-runtime");
10447
10458
  var ActionButton = function() {
10448
10459
  var $ = (0, import_react_compiler_runtime55.c)(27);
10449
10460
  var status = useStatus().status;
@@ -10452,17 +10463,17 @@ var ActionButton = function() {
10452
10463
  if (status === "recording") {
10453
10464
  var _t;
10454
10465
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
10455
- _t = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_icons17.PauseIcon, {});
10466
+ _t = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_icons17.PauseIcon, {});
10456
10467
  $[0] = _t;
10457
10468
  } else {
10458
10469
  _t = $[0];
10459
10470
  }
10460
10471
  var t1;
10461
10472
  if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
10462
- t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.Flex, {
10473
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.Flex, {
10463
10474
  mr: "3",
10464
10475
  ml: "-7",
10465
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.IconButton, {
10476
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.IconButton, {
10466
10477
  onClick: audioThreadContext.audioRuntime.user.pause,
10467
10478
  color: "gray",
10468
10479
  variant: "soft",
@@ -10477,14 +10488,14 @@ var ActionButton = function() {
10477
10488
  }
10478
10489
  var t2;
10479
10490
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
10480
- t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_icons17.ArrowUpIcon, {});
10491
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_icons17.ArrowUpIcon, {});
10481
10492
  $[3] = t2;
10482
10493
  } else {
10483
10494
  t2 = $[3];
10484
10495
  }
10485
10496
  var t3;
10486
10497
  if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
10487
- t3 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.IconButton, {
10498
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.IconButton, {
10488
10499
  onClick: audioThreadContext.audioRuntime.user.stop,
10489
10500
  highContrast: true,
10490
10501
  variant: "soft",
@@ -10498,7 +10509,7 @@ var ActionButton = function() {
10498
10509
  }
10499
10510
  var t4;
10500
10511
  if ($[6] !== t1 || $[7] !== t3) {
10501
- t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes62.Flex, {
10512
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_themes62.Flex, {
10502
10513
  align: "center",
10503
10514
  children: [
10504
10515
  t1,
@@ -10516,14 +10527,14 @@ var ActionButton = function() {
10516
10527
  if (status === "recorderPaused") {
10517
10528
  var _t2;
10518
10529
  if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
10519
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_icons17.ResumeIcon, {});
10530
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_icons17.ResumeIcon, {});
10520
10531
  $[9] = _t2;
10521
10532
  } else {
10522
10533
  _t2 = $[9];
10523
10534
  }
10524
10535
  var _t3;
10525
10536
  if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
10526
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.IconButton, {
10537
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.IconButton, {
10527
10538
  onClick: audioThreadContext.audioRuntime.user.resume,
10528
10539
  color: "red",
10529
10540
  size: "4",
@@ -10539,7 +10550,7 @@ var ActionButton = function() {
10539
10550
  if (status === "idle") {
10540
10551
  var _t4;
10541
10552
  if ($[12] !== audioThreadContext.audioRuntime.user) {
10542
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.IconButton, {
10553
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.IconButton, {
10543
10554
  onClick: function() {
10544
10555
  return audioThreadContext.audioRuntime.user.start();
10545
10556
  },
@@ -10571,14 +10582,14 @@ var ActionButton = function() {
10571
10582
  }
10572
10583
  var _t6;
10573
10584
  if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
10574
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_icons17.StopIcon, {});
10585
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_icons17.StopIcon, {});
10575
10586
  $[18] = _t6;
10576
10587
  } else {
10577
10588
  _t6 = $[18];
10578
10589
  }
10579
10590
  var _t7;
10580
10591
  if ($[19] !== _t5) {
10581
- _t7 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.IconButton, {
10592
+ _t7 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.IconButton, {
10582
10593
  onClick: _t5,
10583
10594
  size: "4",
10584
10595
  color: "gray",
@@ -10605,14 +10616,14 @@ var ActionButton = function() {
10605
10616
  }
10606
10617
  var _t9;
10607
10618
  if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
10608
- _t9 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_icons17.ResumeIcon, {});
10619
+ _t9 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_icons17.ResumeIcon, {});
10609
10620
  $[23] = _t9;
10610
10621
  } else {
10611
10622
  _t9 = $[23];
10612
10623
  }
10613
10624
  var _t10;
10614
10625
  if ($[24] !== _t8) {
10615
- _t10 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.IconButton, {
10626
+ _t10 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.IconButton, {
10616
10627
  onClick: _t8,
10617
10628
  size: "4",
10618
10629
  children: _t9
@@ -10626,7 +10637,7 @@ var ActionButton = function() {
10626
10637
  }
10627
10638
  var t0;
10628
10639
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
10629
- t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes62.IconButton, {
10640
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes62.IconButton, {
10630
10641
  size: "4",
10631
10642
  variant: "soft",
10632
10643
  disabled: true
@@ -10638,7 +10649,7 @@ var ActionButton = function() {
10638
10649
  return t0;
10639
10650
  };
10640
10651
  // src/components/threads/AudioThread/Form/index.tsx
10641
- var import_jsx_runtime90 = require("react/jsx-runtime");
10652
+ var import_jsx_runtime91 = require("react/jsx-runtime");
10642
10653
  function ownKeys50(e, r) {
10643
10654
  var t = Object.keys(e);
10644
10655
  if (Object.getOwnPropertySymbols) {
@@ -10689,11 +10700,11 @@ var Form = function(props) {
10689
10700
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
10690
10701
  var t1;
10691
10702
  if ($[0] !== t0) {
10692
- t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes63.Flex, {
10703
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes63.Flex, {
10693
10704
  ml: "-22.5px",
10694
10705
  mr: "2",
10695
10706
  align: "center",
10696
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(MicIcon, {
10707
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(MicIcon, {
10697
10708
  style: {
10698
10709
  color: t0
10699
10710
  }
@@ -10719,7 +10730,7 @@ var Form = function(props) {
10719
10730
  var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
10720
10731
  var t5;
10721
10732
  if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
10722
- t5 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(BarsVisualizer, {
10733
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(BarsVisualizer, {
10723
10734
  visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
10724
10735
  backgroundColor: t4,
10725
10736
  height: "20px",
@@ -10733,7 +10744,7 @@ var Form = function(props) {
10733
10744
  }
10734
10745
  var t6;
10735
10746
  if ($[7] !== t3 || $[8] !== t5) {
10736
- t6 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes63.Flex, {
10747
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes63.Flex, {
10737
10748
  px: "2",
10738
10749
  py: "1",
10739
10750
  style: t3,
@@ -10747,7 +10758,7 @@ var Form = function(props) {
10747
10758
  }
10748
10759
  var t7;
10749
10760
  if ($[10] !== t1 || $[11] !== t6) {
10750
- t7 = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_themes63.Flex, {
10761
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes63.Flex, {
10751
10762
  pb: "3",
10752
10763
  align: "center",
10753
10764
  children: [
@@ -10763,14 +10774,14 @@ var Form = function(props) {
10763
10774
  }
10764
10775
  var t8;
10765
10776
  if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
10766
- t8 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ActionButton, {});
10777
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ActionButton, {});
10767
10778
  $[13] = t8;
10768
10779
  } else {
10769
10780
  t8 = $[13];
10770
10781
  }
10771
10782
  var t9;
10772
10783
  if ($[14] !== props || $[15] !== t7) {
10773
- t9 = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_themes63.Flex, _objectSpread50(_objectSpread50({
10784
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes63.Flex, _objectSpread50(_objectSpread50({
10774
10785
  direction: "column",
10775
10786
  align: "center"
10776
10787
  }, props), {}, {
@@ -10788,7 +10799,7 @@ var Form = function(props) {
10788
10799
  return t9;
10789
10800
  };
10790
10801
  // src/components/threads/AudioThread/index.tsx
10791
- var import_jsx_runtime91 = require("react/jsx-runtime");
10802
+ var import_jsx_runtime92 = require("react/jsx-runtime");
10792
10803
  function ownKeys51(e, r) {
10793
10804
  var t = Object.keys(e);
10794
10805
  if (Object.getOwnPropertySymbols) {
@@ -10833,11 +10844,11 @@ function _toPrimitive51(t, r) {
10833
10844
  return ("string" === r ? String : Number)(t);
10834
10845
  }
10835
10846
  var AudioThread = function(props) {
10836
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
10847
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
10837
10848
  children: [
10838
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Visualization, {}),
10839
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Status, {}),
10840
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Form, {})
10849
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Visualization, {}),
10850
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Status, {}),
10851
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Form, {})
10841
10852
  ]
10842
10853
  }));
10843
10854
  };
@@ -10846,7 +10857,7 @@ AudioThread.Visualization = Visualization;
10846
10857
  AudioThread.Status = Status;
10847
10858
  AudioThread.Form = Form;
10848
10859
  // src/components/threads/AudioThreadDialog/index.tsx
10849
- var import_jsx_runtime92 = require("react/jsx-runtime");
10860
+ var import_jsx_runtime93 = require("react/jsx-runtime");
10850
10861
  function ownKeys52(e, r) {
10851
10862
  var t = Object.keys(e);
10852
10863
  if (Object.getOwnPropertySymbols) {
@@ -10891,12 +10902,12 @@ function _toPrimitive52(t, r) {
10891
10902
  return ("string" === r ? String : Number)(t);
10892
10903
  }
10893
10904
  var AudioThreadDialog = function(props) {
10894
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
10905
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
10895
10906
  children: [
10896
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Content7.Root, {
10897
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(AudioThread, {})
10907
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Content7.Root, {
10908
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(AudioThread, {})
10898
10909
  }),
10899
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Trigger, {})
10910
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Trigger, {})
10900
10911
  ]
10901
10912
  }));
10902
10913
  };
@@ -11373,7 +11384,7 @@ var useWebrtcAudioRuntime = function() {
11373
11384
  };
11374
11385
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
11375
11386
  var import_react_compiler_runtime57 = require("react-compiler-runtime");
11376
- var import_jsx_runtime93 = require("react/jsx-runtime");
11387
+ var import_jsx_runtime94 = require("react/jsx-runtime");
11377
11388
  var WebrtcAudioRuntimeProvider = function(t0) {
11378
11389
  var $ = (0, import_react_compiler_runtime57.c)(5);
11379
11390
  var children = t0.children;
@@ -11390,7 +11401,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
11390
11401
  }
11391
11402
  var t2;
11392
11403
  if ($[2] !== children || $[3] !== t1) {
11393
- t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(AudioThreadContext.Provider, {
11404
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(AudioThreadContext.Provider, {
11394
11405
  value: t1,
11395
11406
  children: children
11396
11407
  });
@@ -11405,7 +11416,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
11405
11416
  // src/components/markdown/MarkdownProvider/index.tsx
11406
11417
  var import_react_compiler_runtime58 = require("react-compiler-runtime");
11407
11418
  var import_react69 = require("react");
11408
- var import_jsx_runtime94 = require("react/jsx-runtime");
11419
+ var import_jsx_runtime95 = require("react/jsx-runtime");
11409
11420
  var _excluded6 = [
11410
11421
  "children"
11411
11422
  ];
@@ -11458,7 +11469,7 @@ var MarkdownProvider = function(t0) {
11458
11469
  var value = t1;
11459
11470
  var t3;
11460
11471
  if ($[6] !== children || $[7] !== value) {
11461
- t3 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(MarkdownContext.Provider, {
11472
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(MarkdownContext.Provider, {
11462
11473
  value: value,
11463
11474
  children: children
11464
11475
  });
@@ -11480,7 +11491,7 @@ var import_themes65 = require("@radix-ui/themes");
11480
11491
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
11481
11492
  var import_react_compiler_runtime59 = require("react-compiler-runtime");
11482
11493
  var import_themes64 = require("@radix-ui/themes");
11483
- var import_jsx_runtime95 = require("react/jsx-runtime");
11494
+ var import_jsx_runtime96 = require("react/jsx-runtime");
11484
11495
  var Content9 = function(t0) {
11485
11496
  var $ = (0, import_react_compiler_runtime59.c)(5);
11486
11497
  var fileId = t0.fileId;
@@ -11519,18 +11530,18 @@ var Content9 = function(t0) {
11519
11530
  }
11520
11531
  var t5;
11521
11532
  if ($[3] !== t3) {
11522
- t5 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes64.Flex, {
11533
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes64.Flex, {
11523
11534
  direction: "column",
11524
11535
  flexGrow: "1",
11525
11536
  gap: "3",
11526
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes64.Card, {
11537
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes64.Card, {
11527
11538
  style: t1,
11528
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes64.Inset, {
11539
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes64.Inset, {
11529
11540
  clip: "padding-box",
11530
11541
  style: t2,
11531
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes64.Flex, {
11542
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes64.Flex, {
11532
11543
  flexGrow: "1",
11533
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("embed", {
11544
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("embed", {
11534
11545
  src: t3,
11535
11546
  style: t4
11536
11547
  })
@@ -11546,7 +11557,7 @@ var Content9 = function(t0) {
11546
11557
  return t5;
11547
11558
  };
11548
11559
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
11549
- var import_jsx_runtime96 = require("react/jsx-runtime");
11560
+ var import_jsx_runtime97 = require("react/jsx-runtime");
11550
11561
  var FileCitation = function(t0) {
11551
11562
  var $ = (0, import_react_compiler_runtime60.c)(18);
11552
11563
  var annotation = t0.annotation;
@@ -11563,14 +11574,14 @@ var FileCitation = function(t0) {
11563
11574
  }
11564
11575
  var t2;
11565
11576
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
11566
- t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_icons18.QuoteIcon, {});
11577
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react_icons18.QuoteIcon, {});
11567
11578
  $[2] = t2;
11568
11579
  } else {
11569
11580
  t2 = $[2];
11570
11581
  }
11571
11582
  var t3;
11572
11583
  if ($[3] !== t1) {
11573
- t3 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes65.IconButton, {
11584
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes65.IconButton, {
11574
11585
  variant: "soft",
11575
11586
  color: "gray",
11576
11587
  size: "1",
@@ -11606,9 +11617,9 @@ var FileCitation = function(t0) {
11606
11617
  }
11607
11618
  var t7;
11608
11619
  if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
11609
- t7 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes65.VisuallyHidden, {
11620
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes65.VisuallyHidden, {
11610
11621
  asChild: true,
11611
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes65.Dialog.Title, {
11622
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes65.Dialog.Title, {
11612
11623
  children: "Source"
11613
11624
  })
11614
11625
  });
@@ -11618,7 +11629,7 @@ var FileCitation = function(t0) {
11618
11629
  }
11619
11630
  var t8;
11620
11631
  if ($[8] !== activeFileId) {
11621
- t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Content9, {
11632
+ t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Content9, {
11622
11633
  fileId: activeFileId
11623
11634
  });
11624
11635
  $[8] = activeFileId;
@@ -11628,7 +11639,7 @@ var FileCitation = function(t0) {
11628
11639
  }
11629
11640
  var t9;
11630
11641
  if ($[10] !== t8) {
11631
- t9 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes65.Dialog.Content, {
11642
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes65.Dialog.Content, {
11632
11643
  width: "1000px",
11633
11644
  height: "90vh",
11634
11645
  maxWidth: "calc(100vw - 2 * var(--space-4))",
@@ -11646,7 +11657,7 @@ var FileCitation = function(t0) {
11646
11657
  }
11647
11658
  var t10;
11648
11659
  if ($[12] !== t4 || $[13] !== t9) {
11649
- t10 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes65.Dialog.Root, {
11660
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes65.Dialog.Root, {
11650
11661
  open: t4,
11651
11662
  onOpenChange: t5,
11652
11663
  children: t9
@@ -11659,7 +11670,7 @@ var FileCitation = function(t0) {
11659
11670
  }
11660
11671
  var t11;
11661
11672
  if ($[15] !== t10 || $[16] !== t3) {
11662
- t11 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, {
11673
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, {
11663
11674
  children: [
11664
11675
  t3,
11665
11676
  t10
@@ -11674,7 +11685,7 @@ var FileCitation = function(t0) {
11674
11685
  return t11;
11675
11686
  };
11676
11687
  // src/components/annotations/SourceAnnotation/index.tsx
11677
- var import_jsx_runtime97 = require("react/jsx-runtime");
11688
+ var import_jsx_runtime98 = require("react/jsx-runtime");
11678
11689
  var _excluded7 = [
11679
11690
  "children"
11680
11691
  ];
@@ -11725,7 +11736,7 @@ var SourceAnnotation = function(t0) {
11725
11736
  if (annotation.type === "file_citation") {
11726
11737
  var t2;
11727
11738
  if ($[5] !== annotation) {
11728
- t2 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(FileCitation, {
11739
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(FileCitation, {
11729
11740
  annotation: annotation
11730
11741
  });
11731
11742
  $[5] = annotation;
@@ -11738,7 +11749,7 @@ var SourceAnnotation = function(t0) {
11738
11749
  if (annotation.type === "file_path") {
11739
11750
  var _t2;
11740
11751
  if ($[7] !== annotation || $[8] !== children) {
11741
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(FilePathAnnotation, {
11752
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(FilePathAnnotation, {
11742
11753
  annotation: annotation,
11743
11754
  children: children
11744
11755
  });
@@ -11831,7 +11842,7 @@ var optimizedSrc = function(_ref) {
11831
11842
  }));
11832
11843
  };
11833
11844
  // src/components/imageAvatars/ImageAvatar/index.tsx
11834
- var import_jsx_runtime98 = require("react/jsx-runtime");
11845
+ var import_jsx_runtime99 = require("react/jsx-runtime");
11835
11846
  var ImageAvatar = function(t0) {
11836
11847
  var $ = (0, import_react_compiler_runtime62.c)(9);
11837
11848
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
@@ -11852,7 +11863,7 @@ var ImageAvatar = function(t0) {
11852
11863
  }
11853
11864
  var t2;
11854
11865
  if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
11855
- t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes66.Avatar, {
11866
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes66.Avatar, {
11856
11867
  className: className,
11857
11868
  style: style,
11858
11869
  fallback: "",
@@ -11878,7 +11889,7 @@ var import_react_icons19 = require("@radix-ui/react-icons");
11878
11889
  var _obj;
11879
11890
  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);
11880
11891
  // src/components/iconAvatars/IconAvatar.tsx
11881
- var import_jsx_runtime99 = require("react/jsx-runtime");
11892
+ var import_jsx_runtime100 = require("react/jsx-runtime");
11882
11893
  var IconAvatar = function(t0) {
11883
11894
  var $ = (0, import_react_compiler_runtime63.c)(7);
11884
11895
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
@@ -11887,7 +11898,7 @@ var IconAvatar = function(t0) {
11887
11898
  var Component2 = t1;
11888
11899
  var t2;
11889
11900
  if ($[0] !== Component2) {
11890
- t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Component2, {}) : "";
11901
+ t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Component2, {}) : "";
11891
11902
  $[0] = Component2;
11892
11903
  $[1] = t2;
11893
11904
  } else {
@@ -11895,7 +11906,7 @@ var IconAvatar = function(t0) {
11895
11906
  }
11896
11907
  var t3;
11897
11908
  if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
11898
- t3 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes67.Avatar, {
11909
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes67.Avatar, {
11899
11910
  className: className,
11900
11911
  style: style,
11901
11912
  size: size,
@@ -11912,7 +11923,7 @@ var IconAvatar = function(t0) {
11912
11923
  return t3;
11913
11924
  };
11914
11925
  // src/components/avatars/Avatar.tsx
11915
- var import_jsx_runtime100 = require("react/jsx-runtime");
11926
+ var import_jsx_runtime101 = require("react/jsx-runtime");
11916
11927
  var Avatar6 = function(t0) {
11917
11928
  var $ = (0, import_react_compiler_runtime64.c)(14);
11918
11929
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
@@ -11921,7 +11932,7 @@ var Avatar6 = function(t0) {
11921
11932
  if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
11922
11933
  var _t;
11923
11934
  if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
11924
- _t = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ImageAvatar, {
11935
+ _t = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ImageAvatar, {
11925
11936
  imageAvatar: avatar.imageAvatar,
11926
11937
  size: size,
11927
11938
  className: className,
@@ -11940,7 +11951,7 @@ var Avatar6 = function(t0) {
11940
11951
  if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
11941
11952
  var _t2;
11942
11953
  if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
11943
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(IconAvatar, {
11954
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(IconAvatar, {
11944
11955
  iconAvatar: avatar.iconAvatar,
11945
11956
  size: size,
11946
11957
  className: className,
@@ -11959,7 +11970,7 @@ var Avatar6 = function(t0) {
11959
11970
  }
11960
11971
  var t2;
11961
11972
  if ($[10] !== className || $[11] !== size || $[12] !== style) {
11962
- t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes68.Avatar, {
11973
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes68.Avatar, {
11963
11974
  fallback: "",
11964
11975
  size: size,
11965
11976
  className: className,
@@ -11983,7 +11994,7 @@ var useComponents = function() {
11983
11994
  return (0, import_react72.useContext)(ComponentsContext);
11984
11995
  };
11985
11996
  // src/components/components/ComponentsProvider.tsx
11986
- var import_jsx_runtime101 = require("react/jsx-runtime");
11997
+ var import_jsx_runtime102 = require("react/jsx-runtime");
11987
11998
  var _excluded8 = [
11988
11999
  "children"
11989
12000
  ];
@@ -12036,7 +12047,7 @@ var ComponentsProvider = function(t0) {
12036
12047
  var value = t1;
12037
12048
  var t3;
12038
12049
  if ($[6] !== children || $[7] !== value) {
12039
- t3 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ComponentsContext.Provider, {
12050
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(ComponentsContext.Provider, {
12040
12051
  value: value,
12041
12052
  children: children
12042
12053
  });
@@ -12050,7 +12061,7 @@ var ComponentsProvider = function(t0) {
12050
12061
  };
12051
12062
  // src/components/assistants/AssistantProvider/index.tsx
12052
12063
  var import_react_compiler_runtime66 = require("react-compiler-runtime");
12053
- var import_jsx_runtime102 = require("react/jsx-runtime");
12064
+ var import_jsx_runtime103 = require("react/jsx-runtime");
12054
12065
  var AssistantProvider = function(t0) {
12055
12066
  var _assistant$name;
12056
12067
  var $ = (0, import_react_compiler_runtime66.c)(10);
@@ -12071,7 +12082,7 @@ var AssistantProvider = function(t0) {
12071
12082
  var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
12072
12083
  var t4;
12073
12084
  if ($[2] !== t3) {
12074
- t4 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Avatar6, {
12085
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Avatar6, {
12075
12086
  avatar: t3
12076
12087
  });
12077
12088
  $[2] = t3;
@@ -12081,7 +12092,7 @@ var AssistantProvider = function(t0) {
12081
12092
  }
12082
12093
  var t5;
12083
12094
  if ($[4] !== children || $[5] !== t4) {
12084
- t5 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(AssistantAvatarContext.Provider, {
12095
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(AssistantAvatarContext.Provider, {
12085
12096
  value: t4,
12086
12097
  children: children
12087
12098
  });
@@ -12093,7 +12104,7 @@ var AssistantProvider = function(t0) {
12093
12104
  }
12094
12105
  var t6;
12095
12106
  if ($[7] !== t2 || $[8] !== t5) {
12096
- t6 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(AssistantNameContext.Provider, {
12107
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(AssistantNameContext.Provider, {
12097
12108
  value: t2,
12098
12109
  children: t5
12099
12110
  });
@@ -12118,6 +12129,7 @@ var AssistantProvider = function(t0) {
12118
12129
  FunctionComponentsContext: FunctionComponentsContext,
12119
12130
  MarkdownContext: MarkdownContext,
12120
12131
  MarkdownProvider: MarkdownProvider,
12132
+ MessageContent: MessageContent,
12121
12133
  RunStep: RunStep,
12122
12134
  SourceAnnotation: SourceAnnotation,
12123
12135
  Suggestions: Suggestions,
@@ -12131,6 +12143,7 @@ var AssistantProvider = function(t0) {
12131
12143
  useAssistant: useAssistant,
12132
12144
  useAudioThreadContext: useAudioThreadContext,
12133
12145
  useComponents: useComponents,
12146
+ useCreateFile: useCreateFile,
12134
12147
  useCreateMessage: useCreateMessage,
12135
12148
  useIsMutatingMessage: useIsMutatingMessage,
12136
12149
  useLatestMessage: useLatestMessage,