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