@superinterface/react 3.24.1 → 3.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -8304,7 +8304,7 @@ var require_lib = __commonJS({
8304
8304
  key: "parseMaybeAssign",
8305
8305
  value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
8306
8306
  var _this = this;
8307
- var _jsx106;
8307
+ var _jsx107;
8308
8308
  var state = null;
8309
8309
  var jsx2;
8310
8310
  if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
@@ -8319,7 +8319,7 @@ var require_lib = __commonJS({
8319
8319
  context.pop();
8320
8320
  }
8321
8321
  }
8322
- if ((_jsx106 = jsx2) != null && _jsx106.error || this.match(47)) {
8322
+ if ((_jsx107 = jsx2) != null && _jsx107.error || this.match(47)) {
8323
8323
  var _jsx210, _jsx310;
8324
8324
  state = state || this.state.clone();
8325
8325
  var typeParameters;
@@ -13185,7 +13185,7 @@ var require_lib = __commonJS({
13185
13185
  key: "parseMaybeAssign",
13186
13186
  value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
13187
13187
  var _this = this;
13188
- var _jsx106, _jsx210, _typeCast, _jsx310, _typeCast2;
13188
+ var _jsx107, _jsx210, _typeCast, _jsx310, _typeCast2;
13189
13189
  var state;
13190
13190
  var jsx2;
13191
13191
  var typeCast;
@@ -13201,7 +13201,7 @@ var require_lib = __commonJS({
13201
13201
  context.pop();
13202
13202
  }
13203
13203
  }
13204
- if (!((_jsx106 = jsx2) != null && _jsx106.error) && !this.match(47)) {
13204
+ if (!((_jsx107 = jsx2) != null && _jsx107.error) && !this.match(47)) {
13205
13205
  return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
13206
13206
  }
13207
13207
  if (!state || state === this.state) state = this.state.clone();
@@ -37945,17 +37945,17 @@ var SuperinterfaceProvider = function(_ref) {
37945
37945
  });
37946
37946
  };
37947
37947
  // src/components/threads/Thread/index.tsx
37948
- var import_react_compiler_runtime74 = require("react-compiler-runtime");
37948
+ var import_react_compiler_runtime75 = require("react-compiler-runtime");
37949
37949
  // src/components/threads/Thread/Messages/index.tsx
37950
- var import_react_compiler_runtime64 = require("react-compiler-runtime");
37950
+ var import_react_compiler_runtime65 = require("react-compiler-runtime");
37951
37951
  var import_themes45 = require("@radix-ui/themes");
37952
37952
  // src/components/threads/Thread/Message/index.tsx
37953
- var import_react_compiler_runtime55 = require("react-compiler-runtime");
37953
+ var import_react_compiler_runtime56 = require("react-compiler-runtime");
37954
37954
  var import_react41 = require("react");
37955
37955
  var import_themes39 = require("@radix-ui/themes");
37956
37956
  // src/components/runSteps/RunSteps/index.tsx
37957
- var import_react_compiler_runtime51 = require("react-compiler-runtime");
37958
- var import_themes37 = require("@radix-ui/themes");
37957
+ var import_react_compiler_runtime52 = require("react-compiler-runtime");
37958
+ var import_themes38 = require("@radix-ui/themes");
37959
37959
  var import_react39 = require("react");
37960
37960
  // src/contexts/components/ComponentsContext/index.tsx
37961
37961
  var import_react38 = require("react");
@@ -43365,6 +43365,50 @@ MessageGroup.AssistantAvatar = AssistantAvatar;
43365
43365
  MessageGroup.UserAvatar = UserAvatar;
43366
43366
  MessageGroup.Messages = Messages;
43367
43367
  MessageGroup.Content = Content5;
43368
+ // src/components/messages/MessageAttachments.tsx
43369
+ var import_react_compiler_runtime51 = require("react-compiler-runtime");
43370
+ var import_themes37 = require("@radix-ui/themes");
43371
+ var import_react_icons10 = require("@radix-ui/react-icons");
43372
+ var import_jsx_runtime53 = require("react/jsx-runtime");
43373
+ var MessageAttachments = function(t0) {
43374
+ var _message$attachments;
43375
+ var $ = (0, import_react_compiler_runtime51.c)(4);
43376
+ var message = t0.message;
43377
+ if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
43378
+ return null;
43379
+ }
43380
+ var t1;
43381
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43382
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons10.FileIcon, {});
43383
+ $[0] = t1;
43384
+ } else {
43385
+ t1 = $[0];
43386
+ }
43387
+ var t2 = message.attachments.length > 1 ? "s" : "";
43388
+ var t3;
43389
+ if ($[1] !== message.attachments.length || $[2] !== t2) {
43390
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes37.Flex, {
43391
+ align: "start",
43392
+ pb: "1",
43393
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes37.Badge, {
43394
+ color: "gray",
43395
+ variant: "surface",
43396
+ children: [
43397
+ t1,
43398
+ message.attachments.length,
43399
+ " file",
43400
+ t2
43401
+ ]
43402
+ })
43403
+ });
43404
+ $[1] = message.attachments.length;
43405
+ $[2] = t2;
43406
+ $[3] = t3;
43407
+ } else {
43408
+ t3 = $[3];
43409
+ }
43410
+ return t3;
43411
+ };
43368
43412
  // src/contexts/components/ComponentsContext/index.tsx
43369
43413
  var ComponentsContext = /* @__PURE__ */ (0, import_react38.createContext)({
43370
43414
  components: {
@@ -43376,13 +43420,14 @@ var ComponentsContext = /* @__PURE__ */ (0, import_react38.createContext)({
43376
43420
  FallbackToolCall: FallbackToolCall,
43377
43421
  TextContent: TextContent,
43378
43422
  ImageFileContent: ImageFileContent,
43379
- MessageGroup: MessageGroup
43423
+ MessageGroup: MessageGroup,
43424
+ MessageAttachments: MessageAttachments
43380
43425
  }
43381
43426
  });
43382
43427
  // src/components/runSteps/RunSteps/index.tsx
43383
- var import_jsx_runtime53 = require("react/jsx-runtime");
43428
+ var import_jsx_runtime54 = require("react/jsx-runtime");
43384
43429
  var RunSteps = function(t0) {
43385
- var $ = (0, import_react_compiler_runtime51.c)(7);
43430
+ var $ = (0, import_react_compiler_runtime52.c)(7);
43386
43431
  var runSteps = t0.runSteps;
43387
43432
  var componentsContext = (0, import_react39.useContext)(ComponentsContext);
43388
43433
  var Component2 = componentsContext.components.RunStep;
@@ -43391,7 +43436,7 @@ var RunSteps = function(t0) {
43391
43436
  var _t;
43392
43437
  if ($[3] !== Component2) {
43393
43438
  _t = function(runStep) {
43394
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Component2, {
43439
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Component2, {
43395
43440
  runStep: runStep
43396
43441
  }, runStep.id);
43397
43442
  };
@@ -43409,7 +43454,7 @@ var RunSteps = function(t0) {
43409
43454
  }
43410
43455
  var t2;
43411
43456
  if ($[5] !== t1) {
43412
- t2 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes37.Flex, {
43457
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes38.Flex, {
43413
43458
  direction: "column-reverse",
43414
43459
  children: t1
43415
43460
  });
@@ -43428,62 +43473,39 @@ var MessageContext = /* @__PURE__ */ (0, import_react40.createContext)({
43428
43473
  // src/components/threads/Thread/Message/Provider.tsx
43429
43474
  var Provider = MessageContext.Provider;
43430
43475
  // src/components/threads/Thread/Message/Attachments/index.tsx
43431
- var import_react_compiler_runtime52 = require("react-compiler-runtime");
43432
- var import_themes38 = require("@radix-ui/themes");
43433
- var import_react_icons10 = require("@radix-ui/react-icons");
43434
- var import_jsx_runtime54 = require("react/jsx-runtime");
43476
+ var import_react_compiler_runtime53 = require("react-compiler-runtime");
43477
+ var import_jsx_runtime55 = require("react/jsx-runtime");
43435
43478
  var Attachments = function(t0) {
43436
- var _message$attachments;
43437
- var $ = (0, import_react_compiler_runtime52.c)(4);
43479
+ var $ = (0, import_react_compiler_runtime53.c)(3);
43438
43480
  var message = t0.message;
43439
- if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
43440
- return null;
43441
- }
43442
- var t1;
43443
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43444
- t1 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons10.FileIcon, {});
43445
- $[0] = t1;
43446
- } else {
43447
- t1 = $[0];
43448
- }
43449
- var t2 = message.attachments.length > 1 ? "s" : "";
43450
- var t3;
43451
- if ($[1] !== message.attachments.length || $[2] !== t2) {
43452
- t3 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes38.Flex, {
43453
- align: "start",
43454
- pb: "1",
43455
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes38.Badge, {
43456
- color: "gray",
43457
- variant: "surface",
43458
- children: [
43459
- t1,
43460
- message.attachments.length,
43461
- " file",
43462
- t2
43463
- ]
43464
- })
43481
+ var _useComponents = useComponents(), t1 = _useComponents.components;
43482
+ var MessageAttachments2 = t1.MessageAttachments;
43483
+ var t2;
43484
+ if ($[0] !== MessageAttachments2 || $[1] !== message) {
43485
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MessageAttachments2, {
43486
+ message: message
43465
43487
  });
43466
- $[1] = message.attachments.length;
43488
+ $[0] = MessageAttachments2;
43489
+ $[1] = message;
43467
43490
  $[2] = t2;
43468
- $[3] = t3;
43469
43491
  } else {
43470
- t3 = $[3];
43492
+ t2 = $[2];
43471
43493
  }
43472
- return t3;
43494
+ return t2;
43473
43495
  };
43474
43496
  // src/components/messages/MessageContent/index.tsx
43475
- var import_react_compiler_runtime54 = require("react-compiler-runtime");
43497
+ var import_react_compiler_runtime55 = require("react-compiler-runtime");
43476
43498
  // src/components/messages/MessageContent/ContentPart/index.tsx
43477
- var import_react_compiler_runtime53 = require("react-compiler-runtime");
43478
- var import_jsx_runtime55 = require("react/jsx-runtime");
43499
+ var import_react_compiler_runtime54 = require("react-compiler-runtime");
43500
+ var import_jsx_runtime56 = require("react/jsx-runtime");
43479
43501
  var TextContent2 = function(t0) {
43480
- var $ = (0, import_react_compiler_runtime53.c)(3);
43502
+ var $ = (0, import_react_compiler_runtime54.c)(3);
43481
43503
  var content2 = t0.content;
43482
43504
  var _useComponents = useComponents(), t1 = _useComponents.components;
43483
43505
  var TextContent3 = t1.TextContent;
43484
43506
  var t2;
43485
43507
  if ($[0] !== TextContent3 || $[1] !== content2) {
43486
- t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TextContent3, {
43508
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TextContent3, {
43487
43509
  content: content2
43488
43510
  });
43489
43511
  $[0] = TextContent3;
@@ -43495,13 +43517,13 @@ var TextContent2 = function(t0) {
43495
43517
  return t2;
43496
43518
  };
43497
43519
  var ImageFileContent2 = function(t0) {
43498
- var $ = (0, import_react_compiler_runtime53.c)(3);
43520
+ var $ = (0, import_react_compiler_runtime54.c)(3);
43499
43521
  var content2 = t0.content;
43500
43522
  var _useComponents = useComponents(), t1 = _useComponents.components;
43501
43523
  var ImageFileContent3 = t1.ImageFileContent;
43502
43524
  var t2;
43503
43525
  if ($[0] !== ImageFileContent3 || $[1] !== content2) {
43504
- t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ImageFileContent3, {
43526
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ImageFileContent3, {
43505
43527
  content: content2
43506
43528
  });
43507
43529
  $[0] = ImageFileContent3;
@@ -43513,12 +43535,12 @@ var ImageFileContent2 = function(t0) {
43513
43535
  return t2;
43514
43536
  };
43515
43537
  var ContentPart = function(t0) {
43516
- var $ = (0, import_react_compiler_runtime53.c)(4);
43538
+ var $ = (0, import_react_compiler_runtime54.c)(4);
43517
43539
  var content2 = t0.content;
43518
43540
  if (content2.type === "text") {
43519
43541
  var t1;
43520
43542
  if ($[0] !== content2) {
43521
- t1 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TextContent2, {
43543
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TextContent2, {
43522
43544
  content: content2
43523
43545
  });
43524
43546
  $[0] = content2;
@@ -43531,7 +43553,7 @@ var ContentPart = function(t0) {
43531
43553
  if (content2.type === "image_file") {
43532
43554
  var _t;
43533
43555
  if ($[2] !== content2) {
43534
- _t = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ImageFileContent2, {
43556
+ _t = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ImageFileContent2, {
43535
43557
  content: content2
43536
43558
  });
43537
43559
  $[2] = content2;
@@ -43544,9 +43566,9 @@ var ContentPart = function(t0) {
43544
43566
  return null;
43545
43567
  };
43546
43568
  // src/components/messages/MessageContent/index.tsx
43547
- var import_jsx_runtime56 = require("react/jsx-runtime");
43569
+ var import_jsx_runtime57 = require("react/jsx-runtime");
43548
43570
  var MessageContent = function(t0) {
43549
- var $ = (0, import_react_compiler_runtime54.c)(4);
43571
+ var $ = (0, import_react_compiler_runtime55.c)(4);
43550
43572
  var message = t0.message;
43551
43573
  var t1;
43552
43574
  if ($[0] !== message.content) {
@@ -43558,7 +43580,7 @@ var MessageContent = function(t0) {
43558
43580
  }
43559
43581
  var t2;
43560
43582
  if ($[2] !== t1) {
43561
- t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, {
43583
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, {
43562
43584
  children: t1
43563
43585
  });
43564
43586
  $[2] = t1;
@@ -43569,14 +43591,14 @@ var MessageContent = function(t0) {
43569
43591
  return t2;
43570
43592
  };
43571
43593
  function _temp2(content2, index) {
43572
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ContentPart, {
43594
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ContentPart, {
43573
43595
  content: content2
43574
43596
  }, index);
43575
43597
  }
43576
43598
  // src/components/threads/Thread/Message/index.tsx
43577
- var import_jsx_runtime57 = require("react/jsx-runtime");
43599
+ var import_jsx_runtime58 = require("react/jsx-runtime");
43578
43600
  var Message = function(t0) {
43579
- var $ = (0, import_react_compiler_runtime55.c)(37);
43601
+ var $ = (0, import_react_compiler_runtime56.c)(37);
43580
43602
  var message = t0.message, className = t0.className, style = t0.style;
43581
43603
  var t1;
43582
43604
  bb0: {
@@ -43684,7 +43706,7 @@ var Message = function(t0) {
43684
43706
  }
43685
43707
  var t3;
43686
43708
  if ($[21] !== olderRunSteps_0) {
43687
- t3 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RunSteps, {
43709
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(RunSteps, {
43688
43710
  runSteps: olderRunSteps_0
43689
43711
  });
43690
43712
  $[21] = olderRunSteps_0;
@@ -43703,13 +43725,13 @@ var Message = function(t0) {
43703
43725
  }
43704
43726
  var t5;
43705
43727
  if ($[24] !== message) {
43706
- t5 = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes39.Box, {
43728
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes39.Box, {
43707
43729
  style: t4,
43708
43730
  children: [
43709
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Attachments, {
43731
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Attachments, {
43710
43732
  message: message
43711
43733
  }),
43712
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(MessageContent, {
43734
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MessageContent, {
43713
43735
  message: message
43714
43736
  })
43715
43737
  ]
@@ -43721,7 +43743,7 @@ var Message = function(t0) {
43721
43743
  }
43722
43744
  var t6;
43723
43745
  if ($[26] !== laterRunSteps_0) {
43724
- t6 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RunSteps, {
43746
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(RunSteps, {
43725
43747
  runSteps: laterRunSteps_0
43726
43748
  });
43727
43749
  $[26] = laterRunSteps_0;
@@ -43731,7 +43753,7 @@ var Message = function(t0) {
43731
43753
  }
43732
43754
  var t7;
43733
43755
  if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
43734
- t7 = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes39.Box, {
43756
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes39.Box, {
43735
43757
  className: className,
43736
43758
  style: style,
43737
43759
  children: [
@@ -43751,7 +43773,7 @@ var Message = function(t0) {
43751
43773
  }
43752
43774
  var t8;
43753
43775
  if ($[34] !== t2 || $[35] !== t7) {
43754
- t8 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Provider, {
43776
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Provider, {
43755
43777
  value: t2,
43756
43778
  children: t7
43757
43779
  });
@@ -43770,10 +43792,10 @@ function _temp22(runStep_1) {
43770
43792
  return runStep_1.step_details.type === "message_creation";
43771
43793
  }
43772
43794
  // src/components/threads/Thread/Messages/Content/index.tsx
43773
- var import_react_compiler_runtime58 = require("react-compiler-runtime");
43795
+ var import_react_compiler_runtime59 = require("react-compiler-runtime");
43774
43796
  var import_react44 = require("react");
43775
43797
  // src/hooks/messageGroups/useMessageGroups/index.ts
43776
- var import_react_compiler_runtime56 = require("react-compiler-runtime");
43798
+ var import_react_compiler_runtime57 = require("react-compiler-runtime");
43777
43799
  var import_react42 = require("react");
43778
43800
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
43779
43801
  var import_lodash6 = __toESM(require("lodash"), 1);
@@ -43878,7 +43900,7 @@ var messageGroups = function(_ref) {
43878
43900
  };
43879
43901
  // src/hooks/messageGroups/useMessageGroups/index.ts
43880
43902
  var useMessageGroups = function(t0) {
43881
- var $ = (0, import_react_compiler_runtime56.c)(4);
43903
+ var $ = (0, import_react_compiler_runtime57.c)(4);
43882
43904
  var messages2 = t0.messages;
43883
43905
  var t1;
43884
43906
  var t2;
@@ -43905,18 +43927,18 @@ var useMessageGroups = function(t0) {
43905
43927
  return t1;
43906
43928
  };
43907
43929
  // src/components/skeletons/MessagesSkeleton/index.tsx
43908
- var import_react_compiler_runtime57 = require("react-compiler-runtime");
43930
+ var import_react_compiler_runtime58 = require("react-compiler-runtime");
43909
43931
  var import_react43 = require("react");
43910
43932
  var import_themes40 = require("@radix-ui/themes");
43911
- var import_jsx_runtime58 = require("react/jsx-runtime");
43933
+ var import_jsx_runtime59 = require("react/jsx-runtime");
43912
43934
  var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function MessagesSkeleton2(_props, ref) {
43913
- var $ = (0, import_react_compiler_runtime57.c)(7);
43935
+ var $ = (0, import_react_compiler_runtime58.c)(7);
43914
43936
  var t0;
43915
43937
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43916
- t0 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
43938
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
43917
43939
  loading: true,
43918
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Avatar, {
43919
- fallback: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Flex, {}),
43940
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Avatar, {
43941
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Flex, {}),
43920
43942
  size: "1"
43921
43943
  })
43922
43944
  });
@@ -43926,8 +43948,8 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43926
43948
  }
43927
43949
  var t1;
43928
43950
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
43929
- t1 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MessageGroup.Name, {
43930
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
43951
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MessageGroup.Name, {
43952
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
43931
43953
  loading: true,
43932
43954
  style: {
43933
43955
  width: "128px"
@@ -43940,7 +43962,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43940
43962
  }
43941
43963
  var t2;
43942
43964
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
43943
- t2 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
43965
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
43944
43966
  loading: true,
43945
43967
  style: {
43946
43968
  width: "256px"
@@ -43952,7 +43974,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43952
43974
  }
43953
43975
  var t3;
43954
43976
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
43955
- t3 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
43977
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
43956
43978
  loading: true,
43957
43979
  style: {
43958
43980
  width: "256px",
@@ -43965,13 +43987,13 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43965
43987
  }
43966
43988
  var t4;
43967
43989
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
43968
- t4 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes40.Box, {
43990
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes40.Box, {
43969
43991
  pb: "3",
43970
43992
  children: [
43971
43993
  t1,
43972
43994
  t2,
43973
43995
  t3,
43974
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes40.Skeleton, {
43996
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
43975
43997
  loading: true,
43976
43998
  style: {
43977
43999
  width: "256px",
@@ -43986,7 +44008,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43986
44008
  }
43987
44009
  var t5;
43988
44010
  if ($[5] !== ref) {
43989
- t5 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(MessageGroup.Root, {
44011
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(MessageGroup.Root, {
43990
44012
  ref: ref,
43991
44013
  children: [
43992
44014
  t0,
@@ -44001,9 +44023,9 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
44001
44023
  return t5;
44002
44024
  });
44003
44025
  // src/components/threads/Thread/Messages/Content/index.tsx
44004
- var import_jsx_runtime59 = require("react/jsx-runtime");
44026
+ var import_jsx_runtime60 = require("react/jsx-runtime");
44005
44027
  var Content6 = function() {
44006
- var $ = (0, import_react_compiler_runtime58.c)(14);
44028
+ var $ = (0, import_react_compiler_runtime59.c)(14);
44007
44029
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
44008
44030
  var addToast = useToasts().addToast;
44009
44031
  var t0;
@@ -44046,7 +44068,7 @@ var Content6 = function() {
44046
44068
  if (isLoading || isLoadingError) {
44047
44069
  var _t;
44048
44070
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
44049
- _t = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MessagesSkeleton, {});
44071
+ _t = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MessagesSkeleton, {});
44050
44072
  $[6] = _t;
44051
44073
  } else {
44052
44074
  _t = $[6];
@@ -44058,7 +44080,7 @@ var Content6 = function() {
44058
44080
  var _t2;
44059
44081
  if ($[10] !== MessageGroup2) {
44060
44082
  _t2 = function(messageGroup) {
44061
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MessageGroup2, {
44083
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MessageGroup2, {
44062
44084
  messageGroup: messageGroup
44063
44085
  }, messageGroup.id);
44064
44086
  };
@@ -44076,7 +44098,7 @@ var Content6 = function() {
44076
44098
  }
44077
44099
  var t5;
44078
44100
  if ($[12] !== t4) {
44079
- t5 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, {
44101
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, {
44080
44102
  children: t4
44081
44103
  });
44082
44104
  $[12] = t4;
@@ -44087,22 +44109,22 @@ var Content6 = function() {
44087
44109
  return t5;
44088
44110
  };
44089
44111
  // src/components/threads/Thread/Messages/Progress/index.tsx
44090
- var import_react_compiler_runtime61 = require("react-compiler-runtime");
44112
+ var import_react_compiler_runtime62 = require("react-compiler-runtime");
44091
44113
  var import_react46 = require("react");
44092
44114
  var import_themes43 = require("@radix-ui/themes");
44093
44115
  // src/components/skeletons/StartingSkeleton/index.tsx
44094
- var import_react_compiler_runtime60 = require("react-compiler-runtime");
44116
+ var import_react_compiler_runtime61 = require("react-compiler-runtime");
44095
44117
  var import_react45 = require("react");
44096
44118
  var import_themes42 = require("@radix-ui/themes");
44097
44119
  // src/components/skeletons/StartingContentSkeleton/index.tsx
44098
- var import_react_compiler_runtime59 = require("react-compiler-runtime");
44120
+ var import_react_compiler_runtime60 = require("react-compiler-runtime");
44099
44121
  var import_themes41 = require("@radix-ui/themes");
44100
- var import_jsx_runtime60 = require("react/jsx-runtime");
44122
+ var import_jsx_runtime61 = require("react/jsx-runtime");
44101
44123
  var StartingContentSkeleton = function() {
44102
- var $ = (0, import_react_compiler_runtime59.c)(1);
44124
+ var $ = (0, import_react_compiler_runtime60.c)(1);
44103
44125
  var t0;
44104
44126
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44105
- t0 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes41.Skeleton, {
44127
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes41.Skeleton, {
44106
44128
  loading: true,
44107
44129
  mt: "1",
44108
44130
  height: "var(--space-4)",
@@ -44119,21 +44141,21 @@ var StartingContentSkeleton = function() {
44119
44141
  return t0;
44120
44142
  };
44121
44143
  // src/components/skeletons/StartingSkeleton/index.tsx
44122
- var import_jsx_runtime61 = require("react/jsx-runtime");
44144
+ var import_jsx_runtime62 = require("react/jsx-runtime");
44123
44145
  var StartingSkeleton = function(t0) {
44124
- var $ = (0, import_react_compiler_runtime60.c)(7);
44146
+ var $ = (0, import_react_compiler_runtime61.c)(7);
44125
44147
  var children = t0.children;
44126
44148
  var assistantNameContext = (0, import_react45.useContext)(AssistantNameContext);
44127
44149
  var t1;
44128
44150
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44129
- t1 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MessageGroup.AssistantAvatar, {});
44151
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessageGroup.AssistantAvatar, {});
44130
44152
  $[0] = t1;
44131
44153
  } else {
44132
44154
  t1 = $[0];
44133
44155
  }
44134
44156
  var t2;
44135
44157
  if ($[1] !== assistantNameContext) {
44136
- t2 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MessageGroup.Name, {
44158
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessageGroup.Name, {
44137
44159
  children: assistantNameContext
44138
44160
  });
44139
44161
  $[1] = assistantNameContext;
@@ -44143,17 +44165,17 @@ var StartingSkeleton = function(t0) {
44143
44165
  }
44144
44166
  var t3;
44145
44167
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
44146
- t3 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(StartingContentSkeleton, {});
44168
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(StartingContentSkeleton, {});
44147
44169
  $[3] = t3;
44148
44170
  } else {
44149
44171
  t3 = $[3];
44150
44172
  }
44151
44173
  var t4;
44152
44174
  if ($[4] !== children || $[5] !== t2) {
44153
- t4 = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(MessageGroup.Root, {
44175
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(MessageGroup.Root, {
44154
44176
  children: [
44155
44177
  t1,
44156
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes42.Box, {
44178
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes42.Box, {
44157
44179
  children: [
44158
44180
  t2,
44159
44181
  children,
@@ -44171,9 +44193,9 @@ var StartingSkeleton = function(t0) {
44171
44193
  return t4;
44172
44194
  };
44173
44195
  // src/components/threads/Thread/Messages/Progress/index.tsx
44174
- var import_jsx_runtime62 = require("react/jsx-runtime");
44196
+ var import_jsx_runtime63 = require("react/jsx-runtime");
44175
44197
  var Progress = function() {
44176
- var $ = (0, import_react_compiler_runtime61.c)(3);
44198
+ var $ = (0, import_react_compiler_runtime62.c)(3);
44177
44199
  var latestMessage = useLatestMessage().latestMessage;
44178
44200
  var isMutatingMessage = useIsMutatingMessage();
44179
44201
  var t0;
@@ -44206,7 +44228,7 @@ var Progress = function() {
44206
44228
  if (isStartingSkeletonVisible) {
44207
44229
  var t1;
44208
44230
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44209
- t1 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(StartingSkeleton, {});
44231
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingSkeleton, {});
44210
44232
  $[0] = t1;
44211
44233
  } else {
44212
44234
  t1 = $[0];
@@ -44216,7 +44238,7 @@ var Progress = function() {
44216
44238
  if (isMutatingMessage) {
44217
44239
  var _t;
44218
44240
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
44219
- _t = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes43.Flex, {
44241
+ _t = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes43.Flex, {
44220
44242
  flexShrink: "0",
44221
44243
  height: "24px",
44222
44244
  width: "24px"
@@ -44227,11 +44249,11 @@ var Progress = function() {
44227
44249
  }
44228
44250
  var t2;
44229
44251
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44230
- t2 = /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(MessageGroup.Root, {
44252
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(MessageGroup.Root, {
44231
44253
  children: [
44232
44254
  _t,
44233
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes43.Box, {
44234
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(StartingContentSkeleton, {})
44255
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes43.Box, {
44256
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingContentSkeleton, {})
44235
44257
  })
44236
44258
  ]
44237
44259
  });
@@ -44244,7 +44266,7 @@ var Progress = function() {
44244
44266
  return null;
44245
44267
  };
44246
44268
  // src/components/threads/Thread/Messages/Root/index.tsx
44247
- var import_react_compiler_runtime62 = require("react-compiler-runtime");
44269
+ var import_react_compiler_runtime63 = require("react-compiler-runtime");
44248
44270
  var import_themes44 = require("@radix-ui/themes");
44249
44271
  // src/hooks/misc/useInfiniteScroll/index.tsx
44250
44272
  var import_react48 = require("react");
@@ -44297,7 +44319,7 @@ var useInfiniteScroll = function(_ref) {
44297
44319
  };
44298
44320
  };
44299
44321
  // src/components/threads/Thread/Messages/Root/index.tsx
44300
- var import_jsx_runtime63 = require("react/jsx-runtime");
44322
+ var import_jsx_runtime64 = require("react/jsx-runtime");
44301
44323
  function ownKeys26(e, r) {
44302
44324
  var t = Object.keys(e);
44303
44325
  if (Object.getOwnPropertySymbols) {
@@ -44342,7 +44364,7 @@ function _toPrimitive26(t, r) {
44342
44364
  return ("string" === r ? String : Number)(t);
44343
44365
  }
44344
44366
  var Root4 = function(t0) {
44345
- var $ = (0, import_react_compiler_runtime62.c)(18);
44367
+ var $ = (0, import_react_compiler_runtime63.c)(18);
44346
44368
  var children = t0.children, style = t0.style, className = t0.className;
44347
44369
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
44348
44370
  var t1;
@@ -44380,7 +44402,7 @@ var Root4 = function(t0) {
44380
44402
  }
44381
44403
  var t4;
44382
44404
  if ($[8] !== hasNextPage || $[9] !== loaderRef) {
44383
- t4 = hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes44.Flex, {
44405
+ t4 = hasNextPage && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes44.Flex, {
44384
44406
  ref: loaderRef
44385
44407
  });
44386
44408
  $[8] = hasNextPage;
@@ -44391,7 +44413,7 @@ var Root4 = function(t0) {
44391
44413
  }
44392
44414
  var t5;
44393
44415
  if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
44394
- t5 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes44.Flex, {
44416
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes44.Flex, {
44395
44417
  flexShrink: "0",
44396
44418
  flexGrow: "1"
44397
44419
  });
@@ -44401,7 +44423,7 @@ var Root4 = function(t0) {
44401
44423
  }
44402
44424
  var t6;
44403
44425
  if ($[12] !== children || $[13] !== className || $[14] !== containerRef || $[15] !== t3 || $[16] !== t4) {
44404
- t6 = /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes44.Flex, {
44426
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes44.Flex, {
44405
44427
  ref: containerRef,
44406
44428
  direction: "column-reverse",
44407
44429
  flexGrow: "1",
@@ -44425,17 +44447,17 @@ var Root4 = function(t0) {
44425
44447
  return t6;
44426
44448
  };
44427
44449
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
44428
- var import_react_compiler_runtime63 = require("react-compiler-runtime");
44429
- var import_jsx_runtime64 = require("react/jsx-runtime");
44450
+ var import_react_compiler_runtime64 = require("react-compiler-runtime");
44451
+ var import_jsx_runtime65 = require("react/jsx-runtime");
44430
44452
  var NextPageSkeleton = function() {
44431
- var $ = (0, import_react_compiler_runtime63.c)(1);
44453
+ var $ = (0, import_react_compiler_runtime64.c)(1);
44432
44454
  var hasNextPage = useMessages().hasNextPage;
44433
44455
  if (!hasNextPage) {
44434
44456
  return null;
44435
44457
  }
44436
44458
  var t0;
44437
44459
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44438
- t0 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MessagesSkeleton, {});
44460
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MessagesSkeleton, {});
44439
44461
  $[0] = t0;
44440
44462
  } else {
44441
44463
  t0 = $[0];
@@ -44443,18 +44465,18 @@ var NextPageSkeleton = function() {
44443
44465
  return t0;
44444
44466
  };
44445
44467
  // src/components/threads/Thread/Messages/index.tsx
44446
- var import_jsx_runtime65 = require("react/jsx-runtime");
44468
+ var import_jsx_runtime66 = require("react/jsx-runtime");
44447
44469
  var Messages2 = function(t0) {
44448
- var $ = (0, import_react_compiler_runtime64.c)(9);
44470
+ var $ = (0, import_react_compiler_runtime65.c)(9);
44449
44471
  var children = t0.children, className = t0.className, style = t0.style;
44450
44472
  var t1;
44451
44473
  var t2;
44452
44474
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44453
- t1 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes45.Flex, {
44475
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes45.Flex, {
44454
44476
  flexShrink: "0",
44455
44477
  height: "var(--space-3)"
44456
44478
  });
44457
- t2 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Progress, {});
44479
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Progress, {});
44458
44480
  $[0] = t1;
44459
44481
  $[1] = t2;
44460
44482
  } else {
@@ -44465,9 +44487,9 @@ var Messages2 = function(t0) {
44465
44487
  var t4;
44466
44488
  var t5;
44467
44489
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44468
- t3 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Content6, {});
44469
- t4 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(NextPageSkeleton, {});
44470
- t5 = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_themes45.Flex, {
44490
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Content6, {});
44491
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NextPageSkeleton, {});
44492
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes45.Flex, {
44471
44493
  flexShrink: "0",
44472
44494
  flexGrow: "1",
44473
44495
  minHeight: "var(--space-5)"
@@ -44482,7 +44504,7 @@ var Messages2 = function(t0) {
44482
44504
  }
44483
44505
  var t6;
44484
44506
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
44485
- t6 = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Root4, {
44507
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Root4, {
44486
44508
  style: style,
44487
44509
  className: className,
44488
44510
  children: [
@@ -44507,9 +44529,9 @@ Messages2.Root = Root4;
44507
44529
  Messages2.Message = Message;
44508
44530
  Messages2.NextPageSkeleton = NextPageSkeleton;
44509
44531
  // src/components/threads/Thread/MessageForm/index.tsx
44510
- var import_react_compiler_runtime70 = require("react-compiler-runtime");
44532
+ var import_react_compiler_runtime71 = require("react-compiler-runtime");
44511
44533
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
44512
- var import_react_compiler_runtime65 = require("react-compiler-runtime");
44534
+ var import_react_compiler_runtime66 = require("react-compiler-runtime");
44513
44535
  var import_react_icons11 = require("@radix-ui/react-icons");
44514
44536
  var import_themes46 = require("@radix-ui/themes");
44515
44537
  // src/hooks/messages/useMessageFormContext/index.ts
@@ -44529,7 +44551,7 @@ var useMessageFormContext = function() {
44529
44551
  return (0, import_react50.useContext)(MessageFormContext);
44530
44552
  };
44531
44553
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
44532
- var import_jsx_runtime66 = require("react/jsx-runtime");
44554
+ var import_jsx_runtime67 = require("react/jsx-runtime");
44533
44555
  function ownKeys27(e, r) {
44534
44556
  var t = Object.keys(e);
44535
44557
  if (Object.getOwnPropertySymbols) {
@@ -44574,11 +44596,11 @@ function _toPrimitive27(t, r) {
44574
44596
  return ("string" === r ? String : Number)(t);
44575
44597
  }
44576
44598
  var Root5 = function(t0) {
44577
- var $ = (0, import_react_compiler_runtime65.c)(4);
44599
+ var $ = (0, import_react_compiler_runtime66.c)(4);
44578
44600
  var children = t0.children, style = t0.style, className = t0.className;
44579
44601
  var t1;
44580
44602
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
44581
- t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes46.Flex, {
44603
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.Flex, {
44582
44604
  flexShrink: "0",
44583
44605
  align: "end",
44584
44606
  style: style,
@@ -44595,7 +44617,7 @@ var Root5 = function(t0) {
44595
44617
  return t1;
44596
44618
  };
44597
44619
  var Button3 = function(props) {
44598
- var $ = (0, import_react_compiler_runtime65.c)(10);
44620
+ var $ = (0, import_react_compiler_runtime66.c)(10);
44599
44621
  var superinterfaceContext = useSuperinterfaceContext();
44600
44622
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
44601
44623
  if (isLoading) {
@@ -44612,14 +44634,14 @@ var Button3 = function(props) {
44612
44634
  }
44613
44635
  var _t2;
44614
44636
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44615
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons11.StopIcon, {});
44637
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons11.StopIcon, {});
44616
44638
  $[2] = _t2;
44617
44639
  } else {
44618
44640
  _t2 = $[2];
44619
44641
  }
44620
44642
  var _t3;
44621
44643
  if ($[3] !== props || $[4] !== _t) {
44622
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44644
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44623
44645
  type: "button",
44624
44646
  onClick: _t
44625
44647
  }, props), {}, {
@@ -44636,14 +44658,14 @@ var Button3 = function(props) {
44636
44658
  var t0 = isDisabled || isFileLoading;
44637
44659
  var t1;
44638
44660
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
44639
- t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons11.ArrowUpIcon, {});
44661
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons11.ArrowUpIcon, {});
44640
44662
  $[6] = t1;
44641
44663
  } else {
44642
44664
  t1 = $[6];
44643
44665
  }
44644
44666
  var t2;
44645
44667
  if ($[7] !== props || $[8] !== t0) {
44646
- t2 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44668
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44647
44669
  type: "submit",
44648
44670
  disabled: t0
44649
44671
  }, props), {}, {
@@ -44658,17 +44680,17 @@ var Button3 = function(props) {
44658
44680
  return t2;
44659
44681
  };
44660
44682
  var Submit = function(props) {
44661
- var $ = (0, import_react_compiler_runtime65.c)(3);
44683
+ var $ = (0, import_react_compiler_runtime66.c)(3);
44662
44684
  var t0;
44663
44685
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44664
- t0 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button3, {});
44686
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button3, {});
44665
44687
  $[0] = t0;
44666
44688
  } else {
44667
44689
  t0 = $[0];
44668
44690
  }
44669
44691
  var t1;
44670
44692
  if ($[1] !== props) {
44671
- t1 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Root5, _objectSpread27(_objectSpread27({}, props), {}, {
44693
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root5, _objectSpread27(_objectSpread27({}, props), {}, {
44672
44694
  children: t0
44673
44695
  }));
44674
44696
  $[1] = props;
@@ -44696,7 +44718,7 @@ var formOptions = {
44696
44718
  };
44697
44719
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44698
44720
  var import_radash14 = require("radash");
44699
- var import_jsx_runtime67 = require("react/jsx-runtime");
44721
+ var import_jsx_runtime68 = require("react/jsx-runtime");
44700
44722
  function ownKeys28(e, r) {
44701
44723
  var t = Object.keys(e);
44702
44724
  if (Object.getOwnPropertySymbols) {
@@ -44856,7 +44878,7 @@ var Root6 = function(_ref) {
44856
44878
  };
44857
44879
  }();
44858
44880
  var content2 = watch("content");
44859
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(MessageFormContext.Provider, {
44881
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(MessageFormContext.Provider, {
44860
44882
  value: {
44861
44883
  isDisabled: isDisabled,
44862
44884
  isLoading: isLoading,
@@ -44865,13 +44887,13 @@ var Root6 = function(_ref) {
44865
44887
  isFileLoading: isFileLoading,
44866
44888
  content: content2
44867
44889
  },
44868
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_hook_form.FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
44869
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes47.Box, {
44890
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_hook_form.FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
44891
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes47.Box, {
44870
44892
  asChild: true,
44871
44893
  flexShrink: "0",
44872
44894
  style: style,
44873
44895
  className: className,
44874
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("form", {
44896
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("form", {
44875
44897
  onSubmit: handleSubmit(onSubmit),
44876
44898
  children: children
44877
44899
  })
@@ -44883,7 +44905,7 @@ var Root6 = function(_ref) {
44883
44905
  var import_react_hook_form3 = require("react-hook-form");
44884
44906
  var import_themes51 = require("@radix-ui/themes");
44885
44907
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44886
- var import_react_compiler_runtime67 = require("react-compiler-runtime");
44908
+ var import_react_compiler_runtime68 = require("react-compiler-runtime");
44887
44909
  var import_themes48 = require("@radix-ui/themes");
44888
44910
  var import_react_hook_form2 = require("react-hook-form");
44889
44911
  // src/hooks/misc/usePrevious.ts
@@ -44898,10 +44920,10 @@ var usePrevious = function(state) {
44898
44920
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44899
44921
  var import_react54 = require("react");
44900
44922
  // src/components/textareas/TextareaBase/index.tsx
44901
- var import_react_compiler_runtime66 = require("react-compiler-runtime");
44923
+ var import_react_compiler_runtime67 = require("react-compiler-runtime");
44902
44924
  var import_react53 = require("react");
44903
44925
  var import_react_textarea_autosize = __toESM(require("react-textarea-autosize"), 1);
44904
- var import_jsx_runtime68 = require("react/jsx-runtime");
44926
+ var import_jsx_runtime69 = require("react/jsx-runtime");
44905
44927
  var _excluded3 = [
44906
44928
  "style",
44907
44929
  "className"
@@ -44968,7 +44990,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
44968
44990
  return t;
44969
44991
  }
44970
44992
  var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function TextareaBase2(t0, ref) {
44971
- var $ = (0, import_react_compiler_runtime66.c)(14);
44993
+ var $ = (0, import_react_compiler_runtime67.c)(14);
44972
44994
  var className;
44973
44995
  var rest;
44974
44996
  var style;
@@ -44989,7 +45011,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
44989
45011
  }
44990
45012
  var t1;
44991
45013
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
44992
- t1 = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("style", {
45014
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("style", {
44993
45015
  children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
44994
45016
  });
44995
45017
  $[4] = t1;
@@ -45023,10 +45045,10 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45023
45045
  }
45024
45046
  var t5;
45025
45047
  if ($[9] !== ref || $[10] !== rest || $[11] !== t2 || $[12] !== t4) {
45026
- t5 = /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, {
45048
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, {
45027
45049
  children: [
45028
45050
  t1,
45029
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_textarea_autosize.default, _objectSpread29({
45051
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_textarea_autosize.default, _objectSpread29({
45030
45052
  ref: ref,
45031
45053
  className: t2,
45032
45054
  style: t4
@@ -45044,7 +45066,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45044
45066
  return t5;
45045
45067
  });
45046
45068
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
45047
- var import_jsx_runtime69 = require("react/jsx-runtime");
45069
+ var import_jsx_runtime70 = require("react/jsx-runtime");
45048
45070
  function ownKeys30(e, r) {
45049
45071
  var t = Object.keys(e);
45050
45072
  if (Object.getOwnPropertySymbols) {
@@ -45089,11 +45111,11 @@ function _toPrimitive30(t, r) {
45089
45111
  return ("string" === r ? String : Number)(t);
45090
45112
  }
45091
45113
  var Root7 = function(t0) {
45092
- var $ = (0, import_react_compiler_runtime67.c)(4);
45114
+ var $ = (0, import_react_compiler_runtime68.c)(4);
45093
45115
  var children = t0.children, style = t0.style, className = t0.className;
45094
45116
  var t1;
45095
45117
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
45096
- t1 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes48.Flex, {
45118
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes48.Flex, {
45097
45119
  flexGrow: "1",
45098
45120
  pt: "4px",
45099
45121
  style: style,
@@ -45134,7 +45156,7 @@ var Input = function(props) {
45134
45156
  isDisabledPrevious,
45135
45157
  textareaProps
45136
45158
  ]);
45137
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
45159
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
45138
45160
  minRows: 1,
45139
45161
  placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
45140
45162
  disabled: isDisabled,
@@ -45154,17 +45176,17 @@ var Input = function(props) {
45154
45176
  }));
45155
45177
  };
45156
45178
  var Control = function(props) {
45157
- var $ = (0, import_react_compiler_runtime67.c)(3);
45179
+ var $ = (0, import_react_compiler_runtime68.c)(3);
45158
45180
  var t0;
45159
45181
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
45160
- t0 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Input, {});
45182
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Input, {});
45161
45183
  $[0] = t0;
45162
45184
  } else {
45163
45185
  t0 = $[0];
45164
45186
  }
45165
45187
  var t1;
45166
45188
  if ($[1] !== props) {
45167
- t1 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Root7, _objectSpread30(_objectSpread30({}, props), {}, {
45189
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Root7, _objectSpread30(_objectSpread30({}, props), {}, {
45168
45190
  children: t0
45169
45191
  }));
45170
45192
  $[1] = props;
@@ -45177,10 +45199,10 @@ var Control = function(props) {
45177
45199
  Control.Root = Root7;
45178
45200
  Control.Input = Input;
45179
45201
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
45180
- var import_react_compiler_runtime68 = require("react-compiler-runtime");
45202
+ var import_react_compiler_runtime69 = require("react-compiler-runtime");
45181
45203
  var import_themes49 = require("@radix-ui/themes");
45182
45204
  var import_react_icons12 = require("@radix-ui/react-icons");
45183
- var import_jsx_runtime70 = require("react/jsx-runtime");
45205
+ var import_jsx_runtime71 = require("react/jsx-runtime");
45184
45206
  function ownKeys31(e, r) {
45185
45207
  var t = Object.keys(e);
45186
45208
  if (Object.getOwnPropertySymbols) {
@@ -45225,7 +45247,7 @@ function _toPrimitive31(t, r) {
45225
45247
  return ("string" === r ? String : Number)(t);
45226
45248
  }
45227
45249
  var Preview = function(props) {
45228
- var $ = (0, import_react_compiler_runtime68.c)(8);
45250
+ var $ = (0, import_react_compiler_runtime69.c)(8);
45229
45251
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
45230
45252
  if (!files.length) {
45231
45253
  return null;
@@ -45235,30 +45257,30 @@ var Preview = function(props) {
45235
45257
  var _t;
45236
45258
  if ($[3] !== setFiles) {
45237
45259
  _t = function(file) {
45238
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Card, {
45260
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Card, {
45239
45261
  variant: "ghost",
45240
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes49.Flex, {
45262
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes49.Flex, {
45241
45263
  align: "center",
45242
45264
  justify: "between",
45243
45265
  gap: "1",
45244
45266
  children: [
45245
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes49.Flex, {
45267
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes49.Flex, {
45246
45268
  align: "center",
45247
45269
  gap: "1",
45248
45270
  flexShrink: "1",
45249
45271
  minWidth: "0",
45250
45272
  maxWidth: "250px",
45251
45273
  children: [
45252
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Flex, {
45274
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, {
45253
45275
  flexShrink: "0",
45254
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Spinner, {
45276
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Spinner, {
45255
45277
  loading: isOptimistic({
45256
45278
  id: file.id
45257
45279
  }),
45258
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_icons12.FileIcon, {})
45280
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons12.FileIcon, {})
45259
45281
  })
45260
45282
  }),
45261
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Text, {
45283
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Text, {
45262
45284
  size: "2",
45263
45285
  truncate: true,
45264
45286
  wrap: "nowrap",
@@ -45266,9 +45288,9 @@ var Preview = function(props) {
45266
45288
  })
45267
45289
  ]
45268
45290
  }),
45269
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Flex, {
45291
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, {
45270
45292
  flexShrink: "0",
45271
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.IconButton, {
45293
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.IconButton, {
45272
45294
  onClick: function() {
45273
45295
  return setFiles(function(prev) {
45274
45296
  return prev.filter(function(prevFile) {
@@ -45279,7 +45301,7 @@ var Preview = function(props) {
45279
45301
  color: "gray",
45280
45302
  variant: "ghost",
45281
45303
  size: "1",
45282
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_icons12.Cross2Icon, {})
45304
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons12.Cross2Icon, {})
45283
45305
  })
45284
45306
  })
45285
45307
  ]
@@ -45300,7 +45322,7 @@ var Preview = function(props) {
45300
45322
  }
45301
45323
  var t1;
45302
45324
  if ($[5] !== props || $[6] !== t0) {
45303
- t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes49.Flex, _objectSpread31(_objectSpread31({
45325
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, _objectSpread31(_objectSpread31({
45304
45326
  flexBasis: "100%",
45305
45327
  direction: "column",
45306
45328
  pb: "2",
@@ -45323,7 +45345,7 @@ var import_dayjs2 = __toESM(require("dayjs"), 1);
45323
45345
  var import_react_icons13 = require("@radix-ui/react-icons");
45324
45346
  var import_themes50 = require("@radix-ui/themes");
45325
45347
  // src/hooks/files/useCreateFile/index.ts
45326
- var import_react_compiler_runtime69 = require("react-compiler-runtime");
45348
+ var import_react_compiler_runtime70 = require("react-compiler-runtime");
45327
45349
  var import_react_query7 = require("@tanstack/react-query");
45328
45350
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
45329
45351
  var formData = function(variables) {
@@ -45559,7 +45581,7 @@ function _toPrimitive34(t, r) {
45559
45581
  return ("string" === r ? String : Number)(t);
45560
45582
  }
45561
45583
  var useCreateFile = function(t0) {
45562
- var $ = (0, import_react_compiler_runtime69.c)(15);
45584
+ var $ = (0, import_react_compiler_runtime70.c)(15);
45563
45585
  var t1;
45564
45586
  if ($[0] !== t0) {
45565
45587
  t1 = t0 === void 0 ? {
@@ -45635,7 +45657,7 @@ var useCreateFile = function(t0) {
45635
45657
  function _temp4() {}
45636
45658
  function _temp23() {}
45637
45659
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
45638
- var import_jsx_runtime71 = require("react/jsx-runtime");
45660
+ var import_jsx_runtime72 = require("react/jsx-runtime");
45639
45661
  function ownKeys35(e, r) {
45640
45662
  var t = Object.keys(e);
45641
45663
  if (Object.getOwnPropertySymbols) {
@@ -45916,12 +45938,12 @@ var Control2 = function(props) {
45916
45938
  createFile,
45917
45939
  setFiles
45918
45940
  ]);
45919
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes50.Flex, _objectSpread35(_objectSpread35({
45941
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes50.Flex, _objectSpread35(_objectSpread35({
45920
45942
  pt: "2",
45921
45943
  pr: "2",
45922
45944
  flexGrow: "0"
45923
45945
  }, props), {}, {
45924
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes50.IconButton, {
45946
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes50.IconButton, {
45925
45947
  type: "button",
45926
45948
  variant: "ghost",
45927
45949
  color: "gray",
@@ -45931,8 +45953,8 @@ var Control2 = function(props) {
45931
45953
  overflow: "hidden"
45932
45954
  },
45933
45955
  children: [
45934
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_icons13.FilePlusIcon, {}),
45935
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("input", {
45956
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons13.FilePlusIcon, {}),
45957
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("input", {
45936
45958
  type: "file",
45937
45959
  multiple: true,
45938
45960
  accept: accept,
@@ -45957,7 +45979,7 @@ var Files = {
45957
45979
  Control: Control2
45958
45980
  };
45959
45981
  // src/components/threads/Thread/MessageForm/Field/index.tsx
45960
- var import_jsx_runtime72 = require("react/jsx-runtime");
45982
+ var import_jsx_runtime73 = require("react/jsx-runtime");
45961
45983
  function ownKeys36(e, r) {
45962
45984
  var t = Object.keys(e);
45963
45985
  if (Object.getOwnPropertySymbols) {
@@ -46005,18 +46027,18 @@ var Root8 = function(_ref) {
46005
46027
  "use no memo";
46006
46028
  var children = _ref.children, className = _ref.className, style = _ref.style;
46007
46029
  var _$_ref = (0, import_react_hook_form3.useFormContext)(), errors = _$_ref.formState.errors;
46008
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Container, {
46030
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Container, {
46009
46031
  size: "2",
46010
46032
  flexGrow: "0",
46011
46033
  className: className,
46012
46034
  style: style,
46013
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Flex, {
46035
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Flex, {
46014
46036
  direction: "column",
46015
46037
  flexShrink: "0",
46016
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Flex, {
46038
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Flex, {
46017
46039
  direction: "column",
46018
46040
  flexShrink: "0",
46019
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes51.Flex, {
46041
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Flex, {
46020
46042
  style: _objectSpread36({
46021
46043
  borderRadius: "var(--radius-2)",
46022
46044
  borderWidth: "1px",
@@ -46040,7 +46062,7 @@ var Field = {
46040
46062
  Files: Files
46041
46063
  };
46042
46064
  // src/components/threads/Thread/MessageForm/index.tsx
46043
- var import_jsx_runtime73 = require("react/jsx-runtime");
46065
+ var import_jsx_runtime74 = require("react/jsx-runtime");
46044
46066
  function ownKeys37(e, r) {
46045
46067
  var t = Object.keys(e);
46046
46068
  if (Object.getOwnPropertySymbols) {
@@ -46085,13 +46107,13 @@ function _toPrimitive37(t, r) {
46085
46107
  return ("string" === r ? String : Number)(t);
46086
46108
  }
46087
46109
  var MessageForm = function(props) {
46088
- var $ = (0, import_react_compiler_runtime70.c)(3);
46110
+ var $ = (0, import_react_compiler_runtime71.c)(3);
46089
46111
  var t0;
46090
46112
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46091
- t0 = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Field.Root, {
46113
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Field.Root, {
46092
46114
  children: [
46093
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Field.Control, {}),
46094
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Submit, {})
46115
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Field.Control, {}),
46116
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Submit, {})
46095
46117
  ]
46096
46118
  });
46097
46119
  $[0] = t0;
@@ -46100,7 +46122,7 @@ var MessageForm = function(props) {
46100
46122
  }
46101
46123
  var t1;
46102
46124
  if ($[1] !== props) {
46103
- t1 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Root6, _objectSpread37(_objectSpread37({}, props), {}, {
46125
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Root6, _objectSpread37(_objectSpread37({}, props), {}, {
46104
46126
  children: t0
46105
46127
  }));
46106
46128
  $[1] = props;
@@ -46114,32 +46136,32 @@ MessageForm.Root = Root6;
46114
46136
  MessageForm.Field = Field;
46115
46137
  MessageForm.Submit = Submit;
46116
46138
  // src/components/threads/Thread/Root/index.tsx
46117
- var import_react_compiler_runtime73 = require("react-compiler-runtime");
46139
+ var import_react_compiler_runtime74 = require("react-compiler-runtime");
46118
46140
  var import_themes53 = require("@radix-ui/themes");
46119
46141
  // src/components/threads/Thread/Provider/index.tsx
46120
46142
  var Provider2 = SuperinterfaceProvider;
46121
46143
  // src/components/toasts/ToastsProvider/index.tsx
46122
- var import_react_compiler_runtime72 = require("react-compiler-runtime");
46144
+ var import_react_compiler_runtime73 = require("react-compiler-runtime");
46123
46145
  var import_react56 = require("react");
46124
46146
  var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
46125
46147
  // src/components/toasts/ToastsProvider/CustomToast.tsx
46126
- var import_react_compiler_runtime71 = require("react-compiler-runtime");
46148
+ var import_react_compiler_runtime72 = require("react-compiler-runtime");
46127
46149
  var Toast = __toESM(require("@radix-ui/react-toast"), 1);
46128
46150
  var import_themes52 = require("@radix-ui/themes");
46129
46151
  var import_react_icons14 = require("@radix-ui/react-icons");
46130
- var import_jsx_runtime74 = require("react/jsx-runtime");
46152
+ var import_jsx_runtime75 = require("react/jsx-runtime");
46131
46153
  var CustomToast = function(t0) {
46132
- var $ = (0, import_react_compiler_runtime71.c)(7);
46154
+ var $ = (0, import_react_compiler_runtime72.c)(7);
46133
46155
  var toast = t0.toast;
46134
46156
  var t1;
46135
46157
  if ($[0] !== toast.type) {
46136
- t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes52.Flex, {
46158
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes52.Flex, {
46137
46159
  pr: "2",
46138
46160
  height: "14px",
46139
46161
  align: "center",
46140
- children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_icons14.CheckCircledIcon, {
46162
+ children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_icons14.CheckCircledIcon, {
46141
46163
  color: "var(--accent-9)"
46142
- }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_icons14.CrossCircledIcon, {
46164
+ }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_icons14.CrossCircledIcon, {
46143
46165
  color: "var(--red-9)"
46144
46166
  })
46145
46167
  });
@@ -46150,7 +46172,7 @@ var CustomToast = function(t0) {
46150
46172
  }
46151
46173
  var t2;
46152
46174
  if ($[2] !== toast.message) {
46153
- t2 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes52.Text, {
46175
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes52.Text, {
46154
46176
  weight: "medium",
46155
46177
  size: "1",
46156
46178
  children: toast.message
@@ -46162,10 +46184,10 @@ var CustomToast = function(t0) {
46162
46184
  }
46163
46185
  var t3;
46164
46186
  if ($[4] !== t1 || $[5] !== t2) {
46165
- t3 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Toast.Root, {
46166
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes52.Card, {
46167
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Toast.Title, {
46168
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_themes52.Flex, {
46187
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Toast.Root, {
46188
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes52.Card, {
46189
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Toast.Title, {
46190
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_themes52.Flex, {
46169
46191
  children: [
46170
46192
  t1,
46171
46193
  t2
@@ -46183,9 +46205,9 @@ var CustomToast = function(t0) {
46183
46205
  return t3;
46184
46206
  };
46185
46207
  // src/components/toasts/ToastsProvider/index.tsx
46186
- var import_jsx_runtime75 = require("react/jsx-runtime");
46208
+ var import_jsx_runtime76 = require("react/jsx-runtime");
46187
46209
  var ToastsProvider = function(t0) {
46188
- var $ = (0, import_react_compiler_runtime72.c)(15);
46210
+ var $ = (0, import_react_compiler_runtime73.c)(15);
46189
46211
  var children = t0.children, t1 = t0.bottom;
46190
46212
  var bottom = t1 === void 0 ? 0 : t1;
46191
46213
  var t2;
@@ -46231,7 +46253,7 @@ var ToastsProvider = function(t0) {
46231
46253
  }
46232
46254
  var t6;
46233
46255
  if ($[6] !== bottom) {
46234
- t6 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Toast2.Viewport, {
46256
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Toast2.Viewport, {
46235
46257
  style: {
46236
46258
  position: "absolute",
46237
46259
  bottom: bottom,
@@ -46255,7 +46277,7 @@ var ToastsProvider = function(t0) {
46255
46277
  }
46256
46278
  var t7;
46257
46279
  if ($[8] !== children || $[9] !== t5 || $[10] !== t6) {
46258
- t7 = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Toast2.Provider, {
46280
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Toast2.Provider, {
46259
46281
  children: [
46260
46282
  children,
46261
46283
  t5,
@@ -46271,7 +46293,7 @@ var ToastsProvider = function(t0) {
46271
46293
  }
46272
46294
  var t8;
46273
46295
  if ($[12] !== t4 || $[13] !== t7) {
46274
- t8 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ToastsContext.Provider, {
46296
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ToastsContext.Provider, {
46275
46297
  value: t4,
46276
46298
  children: t7
46277
46299
  });
@@ -46284,12 +46306,12 @@ var ToastsProvider = function(t0) {
46284
46306
  return t8;
46285
46307
  };
46286
46308
  function _temp5(toast_0, index) {
46287
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CustomToast, {
46309
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(CustomToast, {
46288
46310
  toast: toast_0
46289
46311
  }, index);
46290
46312
  }
46291
46313
  // src/components/threads/Thread/Root/index.tsx
46292
- var import_jsx_runtime76 = require("react/jsx-runtime");
46314
+ var import_jsx_runtime77 = require("react/jsx-runtime");
46293
46315
  var _excluded4 = [
46294
46316
  "children",
46295
46317
  "style",
@@ -46357,7 +46379,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
46357
46379
  return t;
46358
46380
  }
46359
46381
  var Root10 = function(t0) {
46360
- var $ = (0, import_react_compiler_runtime73.c)(12);
46382
+ var $ = (0, import_react_compiler_runtime74.c)(12);
46361
46383
  var children;
46362
46384
  var className;
46363
46385
  var rest;
@@ -46381,7 +46403,7 @@ var Root10 = function(t0) {
46381
46403
  }
46382
46404
  var t1;
46383
46405
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
46384
- t1 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes53.Flex, {
46406
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes53.Flex, {
46385
46407
  direction: "column",
46386
46408
  flexGrow: "1",
46387
46409
  className: className,
@@ -46397,9 +46419,9 @@ var Root10 = function(t0) {
46397
46419
  }
46398
46420
  var t2;
46399
46421
  if ($[9] !== rest || $[10] !== t1) {
46400
- t2 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ToastsProvider, {
46422
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ToastsProvider, {
46401
46423
  bottom: "var(--space-9)",
46402
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
46424
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
46403
46425
  children: t1
46404
46426
  }))
46405
46427
  });
@@ -46412,7 +46434,7 @@ var Root10 = function(t0) {
46412
46434
  return t2;
46413
46435
  };
46414
46436
  // src/components/threads/Thread/index.tsx
46415
- var import_jsx_runtime77 = require("react/jsx-runtime");
46437
+ var import_jsx_runtime78 = require("react/jsx-runtime");
46416
46438
  function ownKeys39(e, r) {
46417
46439
  var t = Object.keys(e);
46418
46440
  if (Object.getOwnPropertySymbols) {
@@ -46457,12 +46479,12 @@ function _toPrimitive39(t, r) {
46457
46479
  return ("string" === r ? String : Number)(t);
46458
46480
  }
46459
46481
  var Thread = function(props) {
46460
- var $ = (0, import_react_compiler_runtime74.c)(4);
46482
+ var $ = (0, import_react_compiler_runtime75.c)(4);
46461
46483
  var t0;
46462
46484
  var t1;
46463
46485
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46464
- t0 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Messages2, {});
46465
- t1 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(MessageForm, {});
46486
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Messages2, {});
46487
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(MessageForm, {});
46466
46488
  $[0] = t0;
46467
46489
  $[1] = t1;
46468
46490
  } else {
@@ -46471,7 +46493,7 @@ var Thread = function(props) {
46471
46493
  }
46472
46494
  var t2;
46473
46495
  if ($[2] !== props) {
46474
- t2 = /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Root10, _objectSpread39(_objectSpread39({}, props), {}, {
46496
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Root10, _objectSpread39(_objectSpread39({}, props), {}, {
46475
46497
  children: [
46476
46498
  t0,
46477
46499
  t1
@@ -46493,7 +46515,7 @@ var useMessageContext = function() {
46493
46515
  return (0, import_react57.useContext)(MessageContext);
46494
46516
  };
46495
46517
  // src/hooks/assistants/useAssistant/index.ts
46496
- var import_react_compiler_runtime75 = require("react-compiler-runtime");
46518
+ var import_react_compiler_runtime76 = require("react-compiler-runtime");
46497
46519
  var import_react58 = require("react");
46498
46520
  var import_react_query9 = require("@tanstack/react-query");
46499
46521
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -46643,7 +46665,7 @@ function _toPrimitive40(t, r) {
46643
46665
  return ("string" === r ? String : Number)(t);
46644
46666
  }
46645
46667
  var useAssistant = function(t0) {
46646
- var $ = (0, import_react_compiler_runtime75.c)(6);
46668
+ var $ = (0, import_react_compiler_runtime76.c)(6);
46647
46669
  var assistantId = t0.assistantId;
46648
46670
  var superinterfaceContext = useSuperinterfaceContext();
46649
46671
  var t1;
@@ -46676,11 +46698,11 @@ var useAssistant = function(t0) {
46676
46698
  return t2;
46677
46699
  };
46678
46700
  // src/components/threads/ThreadDialog/index.tsx
46679
- var import_react_compiler_runtime82 = require("react-compiler-runtime");
46701
+ var import_react_compiler_runtime83 = require("react-compiler-runtime");
46680
46702
  // src/components/threads/ThreadDialog/Root/index.tsx
46681
- var import_react_compiler_runtime77 = require("react-compiler-runtime");
46703
+ var import_react_compiler_runtime78 = require("react-compiler-runtime");
46682
46704
  // src/components/threads/ThreadDialog/Provider/index.tsx
46683
- var import_react_compiler_runtime76 = require("react-compiler-runtime");
46705
+ var import_react_compiler_runtime77 = require("react-compiler-runtime");
46684
46706
  var import_react61 = require("react");
46685
46707
  // src/contexts/threads/ThreadDialogContext/index.ts
46686
46708
  var import_react59 = require("react");
@@ -46694,9 +46716,9 @@ var useThreadDialogContext = function() {
46694
46716
  return (0, import_react60.useContext)(ThreadDialogContext);
46695
46717
  };
46696
46718
  // src/components/threads/ThreadDialog/Provider/index.tsx
46697
- var import_jsx_runtime78 = require("react/jsx-runtime");
46719
+ var import_jsx_runtime79 = require("react/jsx-runtime");
46698
46720
  var Provider4 = function(t0) {
46699
- var $ = (0, import_react_compiler_runtime76.c)(5);
46721
+ var $ = (0, import_react_compiler_runtime77.c)(5);
46700
46722
  var children = t0.children;
46701
46723
  var threadDialogContext = useThreadDialogContext();
46702
46724
  var _ref = _sliced_to_array((0, import_react61.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
@@ -46713,7 +46735,7 @@ var Provider4 = function(t0) {
46713
46735
  }
46714
46736
  var t2;
46715
46737
  if ($[2] !== children || $[3] !== t1) {
46716
- t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ThreadDialogContext.Provider, {
46738
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ThreadDialogContext.Provider, {
46717
46739
  value: t1,
46718
46740
  children: children
46719
46741
  });
@@ -46726,13 +46748,13 @@ var Provider4 = function(t0) {
46726
46748
  return t2;
46727
46749
  };
46728
46750
  // src/components/threads/ThreadDialog/Root/index.tsx
46729
- var import_jsx_runtime79 = require("react/jsx-runtime");
46751
+ var import_jsx_runtime80 = require("react/jsx-runtime");
46730
46752
  var Root11 = function(t0) {
46731
- var $ = (0, import_react_compiler_runtime77.c)(2);
46753
+ var $ = (0, import_react_compiler_runtime78.c)(2);
46732
46754
  var children = t0.children;
46733
46755
  var t1;
46734
46756
  if ($[0] !== children) {
46735
- t1 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Provider4, {
46757
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Provider4, {
46736
46758
  children: children
46737
46759
  });
46738
46760
  $[0] = children;
@@ -46743,13 +46765,13 @@ var Root11 = function(t0) {
46743
46765
  return t1;
46744
46766
  };
46745
46767
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46746
- var import_react_compiler_runtime79 = require("react-compiler-runtime");
46768
+ var import_react_compiler_runtime80 = require("react-compiler-runtime");
46747
46769
  var import_themes55 = require("@radix-ui/themes");
46748
46770
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
46749
- var import_react_compiler_runtime78 = require("react-compiler-runtime");
46771
+ var import_react_compiler_runtime79 = require("react-compiler-runtime");
46750
46772
  var import_themes54 = require("@radix-ui/themes");
46751
46773
  var import_react_icons15 = require("@radix-ui/react-icons");
46752
- var import_jsx_runtime80 = require("react/jsx-runtime");
46774
+ var import_jsx_runtime81 = require("react/jsx-runtime");
46753
46775
  function ownKeys41(e, r) {
46754
46776
  var t = Object.keys(e);
46755
46777
  if (Object.getOwnPropertySymbols) {
@@ -46794,17 +46816,17 @@ function _toPrimitive41(t, r) {
46794
46816
  return ("string" === r ? String : Number)(t);
46795
46817
  }
46796
46818
  var Button4 = function(props) {
46797
- var $ = (0, import_react_compiler_runtime78.c)(3);
46819
+ var $ = (0, import_react_compiler_runtime79.c)(3);
46798
46820
  var t0;
46799
46821
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46800
- t0 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_icons15.ChatBubbleIcon, {});
46822
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_icons15.ChatBubbleIcon, {});
46801
46823
  $[0] = t0;
46802
46824
  } else {
46803
46825
  t0 = $[0];
46804
46826
  }
46805
46827
  var t1;
46806
46828
  if ($[1] !== props) {
46807
- t1 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_themes54.IconButton, _objectSpread41(_objectSpread41({
46829
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes54.IconButton, _objectSpread41(_objectSpread41({
46808
46830
  size: "4",
46809
46831
  radius: "full"
46810
46832
  }, props), {}, {
@@ -46818,7 +46840,7 @@ var Button4 = function(props) {
46818
46840
  return t1;
46819
46841
  };
46820
46842
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46821
- var import_jsx_runtime81 = require("react/jsx-runtime");
46843
+ var import_jsx_runtime82 = require("react/jsx-runtime");
46822
46844
  function ownKeys42(e, r) {
46823
46845
  var t = Object.keys(e);
46824
46846
  if (Object.getOwnPropertySymbols) {
@@ -46863,7 +46885,7 @@ function _toPrimitive42(t, r) {
46863
46885
  return ("string" === r ? String : Number)(t);
46864
46886
  }
46865
46887
  var Root12 = function(t0) {
46866
- var $ = (0, import_react_compiler_runtime79.c)(14);
46888
+ var $ = (0, import_react_compiler_runtime80.c)(14);
46867
46889
  var children = t0.children, style = t0.style, className = t0.className;
46868
46890
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
46869
46891
  var t1 = isOpen ? "none" : "flex";
@@ -46908,7 +46930,7 @@ var Root12 = function(t0) {
46908
46930
  }
46909
46931
  var t6;
46910
46932
  if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
46911
- t6 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes55.Flex, {
46933
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_themes55.Flex, {
46912
46934
  display: t2,
46913
46935
  onClick: t3,
46914
46936
  direction: "column",
@@ -46934,17 +46956,17 @@ var Root12 = function(t0) {
46934
46956
  return t6;
46935
46957
  };
46936
46958
  var Trigger = function(args) {
46937
- var $ = (0, import_react_compiler_runtime79.c)(3);
46959
+ var $ = (0, import_react_compiler_runtime80.c)(3);
46938
46960
  var t0;
46939
46961
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46940
- t0 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button4, {});
46962
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button4, {});
46941
46963
  $[0] = t0;
46942
46964
  } else {
46943
46965
  t0 = $[0];
46944
46966
  }
46945
46967
  var t1;
46946
46968
  if ($[1] !== args) {
46947
- t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Root12, _objectSpread42(_objectSpread42({}, args), {}, {
46969
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Root12, _objectSpread42(_objectSpread42({}, args), {}, {
46948
46970
  children: t0
46949
46971
  }));
46950
46972
  $[1] = args;
@@ -46960,15 +46982,15 @@ function _temp6(prev) {
46960
46982
  return !prev;
46961
46983
  }
46962
46984
  // src/components/threads/ThreadDialog/Content/index.tsx
46963
- var import_react_compiler_runtime81 = require("react-compiler-runtime");
46985
+ var import_react_compiler_runtime82 = require("react-compiler-runtime");
46964
46986
  var import_themes57 = require("@radix-ui/themes");
46965
46987
  // src/components/threads/ThreadDialog/Close/index.tsx
46966
- var import_react_compiler_runtime80 = require("react-compiler-runtime");
46988
+ var import_react_compiler_runtime81 = require("react-compiler-runtime");
46967
46989
  var import_react_icons16 = require("@radix-ui/react-icons");
46968
46990
  var import_themes56 = require("@radix-ui/themes");
46969
- var import_jsx_runtime82 = require("react/jsx-runtime");
46991
+ var import_jsx_runtime83 = require("react/jsx-runtime");
46970
46992
  var Close = function() {
46971
- var $ = (0, import_react_compiler_runtime80.c)(9);
46993
+ var $ = (0, import_react_compiler_runtime81.c)(9);
46972
46994
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
46973
46995
  var t0 = isOpen ? "flex" : "none";
46974
46996
  var t1;
@@ -47003,10 +47025,10 @@ var Close = function() {
47003
47025
  }
47004
47026
  var t4;
47005
47027
  if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
47006
- t4 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_themes56.IconButton, {
47028
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes56.IconButton, {
47007
47029
  size: "2",
47008
47030
  variant: "soft",
47009
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_icons16.Cross1Icon, {})
47031
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_icons16.Cross1Icon, {})
47010
47032
  });
47011
47033
  $[5] = t4;
47012
47034
  } else {
@@ -47014,7 +47036,7 @@ var Close = function() {
47014
47036
  }
47015
47037
  var t5;
47016
47038
  if ($[6] !== t1 || $[7] !== t2) {
47017
- t5 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_themes56.Flex, {
47039
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes56.Flex, {
47018
47040
  display: t1,
47019
47041
  onClick: t2,
47020
47042
  direction: "column",
@@ -47039,7 +47061,7 @@ function _temp7(prev) {
47039
47061
  return !prev;
47040
47062
  }
47041
47063
  // src/components/threads/ThreadDialog/Content/index.tsx
47042
- var import_jsx_runtime83 = require("react/jsx-runtime");
47064
+ var import_jsx_runtime84 = require("react/jsx-runtime");
47043
47065
  function ownKeys43(e, r) {
47044
47066
  var t = Object.keys(e);
47045
47067
  if (Object.getOwnPropertySymbols) {
@@ -47084,7 +47106,7 @@ function _toPrimitive43(t, r) {
47084
47106
  return ("string" === r ? String : Number)(t);
47085
47107
  }
47086
47108
  var Root13 = function(t0) {
47087
- var $ = (0, import_react_compiler_runtime81.c)(19);
47109
+ var $ = (0, import_react_compiler_runtime82.c)(19);
47088
47110
  var children = t0.children, className = t0.className, style = t0.style;
47089
47111
  var isOpen = useThreadDialogContext().isOpen;
47090
47112
  if (!isOpen) {
@@ -47171,7 +47193,7 @@ var Root13 = function(t0) {
47171
47193
  }
47172
47194
  var t10;
47173
47195
  if ($[10] !== children) {
47174
- t10 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes57.Inset, {
47196
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes57.Inset, {
47175
47197
  clip: "padding-box",
47176
47198
  side: "all",
47177
47199
  pb: "current",
@@ -47185,14 +47207,14 @@ var Root13 = function(t0) {
47185
47207
  }
47186
47208
  var t11;
47187
47209
  if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
47188
- t11 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Close, {});
47210
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Close, {});
47189
47211
  $[12] = t11;
47190
47212
  } else {
47191
47213
  t11 = $[12];
47192
47214
  }
47193
47215
  var t12;
47194
47216
  if ($[13] !== t10) {
47195
- t12 = /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_themes57.Card, {
47217
+ t12 = /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes57.Card, {
47196
47218
  mb: t7,
47197
47219
  style: t8,
47198
47220
  children: [
@@ -47207,7 +47229,7 @@ var Root13 = function(t0) {
47207
47229
  }
47208
47230
  var t13;
47209
47231
  if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
47210
- t13 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes57.Flex, {
47232
+ t13 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes57.Flex, {
47211
47233
  className: className,
47212
47234
  direction: "column",
47213
47235
  justify: "end",
@@ -47231,7 +47253,7 @@ var Root13 = function(t0) {
47231
47253
  return t13;
47232
47254
  };
47233
47255
  var Messages3 = function(t0) {
47234
- var $ = (0, import_react_compiler_runtime81.c)(5);
47256
+ var $ = (0, import_react_compiler_runtime82.c)(5);
47235
47257
  var className = t0.className, style = t0.style;
47236
47258
  var t1;
47237
47259
  if ($[0] !== style) {
@@ -47247,7 +47269,7 @@ var Messages3 = function(t0) {
47247
47269
  }
47248
47270
  var t2;
47249
47271
  if ($[2] !== className || $[3] !== t1) {
47250
- t2 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Thread.Messages, {
47272
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Thread.Messages, {
47251
47273
  className: className,
47252
47274
  style: t1
47253
47275
  });
@@ -47260,11 +47282,11 @@ var Messages3 = function(t0) {
47260
47282
  return t2;
47261
47283
  };
47262
47284
  var FormContainer = function(t0) {
47263
- var $ = (0, import_react_compiler_runtime81.c)(4);
47285
+ var $ = (0, import_react_compiler_runtime82.c)(4);
47264
47286
  var children = t0.children, className = t0.className, style = t0.style;
47265
47287
  var t1;
47266
47288
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
47267
- t1 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes57.Flex, {
47289
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes57.Flex, {
47268
47290
  direction: "column",
47269
47291
  pl: "5",
47270
47292
  pr: "5",
@@ -47284,21 +47306,21 @@ var FormContainer = function(t0) {
47284
47306
  return t1;
47285
47307
  };
47286
47308
  var Content7 = function(props) {
47287
- var $ = (0, import_react_compiler_runtime81.c)(4);
47309
+ var $ = (0, import_react_compiler_runtime82.c)(4);
47288
47310
  var t0;
47289
47311
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47290
- t0 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Messages3, {});
47312
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Messages3, {});
47291
47313
  $[0] = t0;
47292
47314
  } else {
47293
47315
  t0 = $[0];
47294
47316
  }
47295
47317
  var t1;
47296
47318
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
47297
- t1 = /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(Thread.Root, {
47319
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Thread.Root, {
47298
47320
  children: [
47299
47321
  t0,
47300
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(FormContainer, {
47301
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Thread.MessageForm, {})
47322
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FormContainer, {
47323
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Thread.MessageForm, {})
47302
47324
  })
47303
47325
  ]
47304
47326
  });
@@ -47308,7 +47330,7 @@ var Content7 = function(props) {
47308
47330
  }
47309
47331
  var t2;
47310
47332
  if ($[2] !== props) {
47311
- t2 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Root13, _objectSpread43(_objectSpread43({}, props), {}, {
47333
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Root13, _objectSpread43(_objectSpread43({}, props), {}, {
47312
47334
  children: t1
47313
47335
  }));
47314
47336
  $[2] = props;
@@ -47322,15 +47344,15 @@ Content7.Root = Root13;
47322
47344
  Content7.Messages = Messages3;
47323
47345
  Content7.FormContainer = FormContainer;
47324
47346
  // src/components/threads/ThreadDialog/index.tsx
47325
- var import_jsx_runtime84 = require("react/jsx-runtime");
47347
+ var import_jsx_runtime85 = require("react/jsx-runtime");
47326
47348
  var ThreadDialog = function() {
47327
- var $ = (0, import_react_compiler_runtime82.c)(1);
47349
+ var $ = (0, import_react_compiler_runtime83.c)(1);
47328
47350
  var t0;
47329
47351
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47330
- t0 = /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Root11, {
47352
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root11, {
47331
47353
  children: [
47332
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Content7, {}),
47333
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Trigger, {})
47354
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Content7, {}),
47355
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Trigger, {})
47334
47356
  ]
47335
47357
  });
47336
47358
  $[0] = t0;
@@ -47343,11 +47365,11 @@ ThreadDialog.Root = Root11;
47343
47365
  ThreadDialog.Trigger = Trigger;
47344
47366
  ThreadDialog.Content = Content7;
47345
47367
  // src/components/threads/AudioThreadDialog/index.tsx
47346
- var import_react_compiler_runtime97 = require("react-compiler-runtime");
47368
+ var import_react_compiler_runtime98 = require("react-compiler-runtime");
47347
47369
  // src/components/threads/AudioThread/index.tsx
47348
- var import_react_compiler_runtime96 = require("react-compiler-runtime");
47370
+ var import_react_compiler_runtime97 = require("react-compiler-runtime");
47349
47371
  // src/components/threads/AudioThread/Root/index.tsx
47350
- var import_react_compiler_runtime88 = require("react-compiler-runtime");
47372
+ var import_react_compiler_runtime89 = require("react-compiler-runtime");
47351
47373
  var import_themes58 = require("@radix-ui/themes");
47352
47374
  // src/contexts/threads/AudioThreadContext/index.ts
47353
47375
  var import_react62 = require("react");
@@ -47360,12 +47382,12 @@ var useAudioThreadContext = function() {
47360
47382
  return (0, import_react63.useContext)(AudioThreadContext);
47361
47383
  };
47362
47384
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
47363
- var import_react_compiler_runtime87 = require("react-compiler-runtime");
47385
+ var import_react_compiler_runtime88 = require("react-compiler-runtime");
47364
47386
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
47365
- var import_react_compiler_runtime86 = require("react-compiler-runtime");
47387
+ var import_react_compiler_runtime87 = require("react-compiler-runtime");
47366
47388
  var import_react68 = require("react");
47367
47389
  // src/hooks/misc/usePermission/index.ts
47368
- var import_react_compiler_runtime83 = require("react-compiler-runtime");
47390
+ var import_react_compiler_runtime84 = require("react-compiler-runtime");
47369
47391
  var import_react64 = require("react");
47370
47392
  // src/hooks/misc/usePermission/util.ts
47371
47393
  var noop = function() {};
@@ -47389,7 +47411,7 @@ function off(obj) {
47389
47411
  }
47390
47412
  // src/hooks/misc/usePermission/index.ts
47391
47413
  var usePermission = function(permissionDesc) {
47392
- var $ = (0, import_react_compiler_runtime83.c)(3);
47414
+ var $ = (0, import_react_compiler_runtime84.c)(3);
47393
47415
  var _ref = _sliced_to_array((0, import_react64.useState)(""), 2), state = _ref[0], setState = _ref[1];
47394
47416
  var t0;
47395
47417
  var t1;
@@ -47438,10 +47460,10 @@ var import_use_audio_capture = require("use-audio-capture");
47438
47460
  var import_react66 = require("react");
47439
47461
  var import_react_use_audio_player = require("react-use-audio-player");
47440
47462
  // src/hooks/misc/useInterval.ts
47441
- var import_react_compiler_runtime84 = require("react-compiler-runtime");
47463
+ var import_react_compiler_runtime85 = require("react-compiler-runtime");
47442
47464
  var import_react65 = require("react");
47443
47465
  var useInterval = function(callback, delay) {
47444
- var $ = (0, import_react_compiler_runtime84.c)(5);
47466
+ var $ = (0, import_react_compiler_runtime85.c)(5);
47445
47467
  var savedCallback = (0, import_react65.useRef)(_temp8);
47446
47468
  var t0;
47447
47469
  if ($[0] !== callback) {
@@ -47694,7 +47716,7 @@ var useRecorder = function(_ref) {
47694
47716
  });
47695
47717
  };
47696
47718
  // src/hooks/audioThreads/useMessageAudio/index.ts
47697
- var import_react_compiler_runtime85 = require("react-compiler-runtime");
47719
+ var import_react_compiler_runtime86 = require("react-compiler-runtime");
47698
47720
  var import_react67 = require("react");
47699
47721
  var import_compromise = __toESM(require("compromise"), 1);
47700
47722
  var import_howler = require("howler");
@@ -47777,7 +47799,7 @@ var getMessageSentences = function(_ref) {
47777
47799
  };
47778
47800
  var useMessageAudio = function(t0) {
47779
47801
  var _latestMessageProps$l;
47780
- var $ = (0, import_react_compiler_runtime85.c)(49);
47802
+ var $ = (0, import_react_compiler_runtime86.c)(49);
47781
47803
  var _onEnd = t0.onEnd, passedPlay = t0.play;
47782
47804
  var _ref = _sliced_to_array((0, import_react67.useState)(false), 2), isAudioPlayed = _ref[0], setIsAudioPlayed = _ref[1];
47783
47805
  var t1;
@@ -48157,7 +48179,7 @@ function _asyncToGenerator11(n) {
48157
48179
  };
48158
48180
  }
48159
48181
  var useTtsAudioRuntime = function(t0) {
48160
- var $ = (0, import_react_compiler_runtime86.c)(30);
48182
+ var $ = (0, import_react_compiler_runtime87.c)(30);
48161
48183
  var play = t0.play;
48162
48184
  var addToast = useToasts().addToast;
48163
48185
  var queryClient = (0, import_react_query10.useQueryClient)();
@@ -48331,9 +48353,9 @@ function _temp24() {
48331
48353
  return _temp24.apply(this, arguments);
48332
48354
  }
48333
48355
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
48334
- var import_jsx_runtime85 = require("react/jsx-runtime");
48356
+ var import_jsx_runtime86 = require("react/jsx-runtime");
48335
48357
  var TtsAudioRuntimeProvider = function(t0) {
48336
- var $ = (0, import_react_compiler_runtime87.c)(7);
48358
+ var $ = (0, import_react_compiler_runtime88.c)(7);
48337
48359
  var children = t0.children, play = t0.play;
48338
48360
  var t1;
48339
48361
  if ($[0] !== play) {
@@ -48358,7 +48380,7 @@ var TtsAudioRuntimeProvider = function(t0) {
48358
48380
  }
48359
48381
  var t3;
48360
48382
  if ($[4] !== children || $[5] !== t2) {
48361
- t3 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(AudioThreadContext.Provider, {
48383
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AudioThreadContext.Provider, {
48362
48384
  value: t2,
48363
48385
  children: children
48364
48386
  });
@@ -48371,7 +48393,7 @@ var TtsAudioRuntimeProvider = function(t0) {
48371
48393
  return t3;
48372
48394
  };
48373
48395
  // src/components/threads/AudioThread/Root/index.tsx
48374
- var import_jsx_runtime86 = require("react/jsx-runtime");
48396
+ var import_jsx_runtime87 = require("react/jsx-runtime");
48375
48397
  var _excluded5 = [
48376
48398
  "children"
48377
48399
  ];
@@ -48443,11 +48465,11 @@ function _objectWithoutPropertiesLoose5(r, e) {
48443
48465
  return t;
48444
48466
  }
48445
48467
  var Content8 = function(t0) {
48446
- var $ = (0, import_react_compiler_runtime88.c)(4);
48468
+ var $ = (0, import_react_compiler_runtime89.c)(4);
48447
48469
  var children = t0.children, className = t0.className, style = t0.style;
48448
48470
  var t1;
48449
48471
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
48450
- t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes58.Flex, {
48472
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes58.Flex, {
48451
48473
  direction: "column",
48452
48474
  flexGrow: "1",
48453
48475
  p: "9",
@@ -48465,7 +48487,7 @@ var Content8 = function(t0) {
48465
48487
  return t1;
48466
48488
  };
48467
48489
  var AudioRuntimeProvider = function(t0) {
48468
- var $ = (0, import_react_compiler_runtime88.c)(3);
48490
+ var $ = (0, import_react_compiler_runtime89.c)(3);
48469
48491
  var children = t0.children, play = t0.play;
48470
48492
  var audioThreadContext = useAudioThreadContext();
48471
48493
  if (audioThreadContext.audioRuntime) {
@@ -48473,7 +48495,7 @@ var AudioRuntimeProvider = function(t0) {
48473
48495
  }
48474
48496
  var t1;
48475
48497
  if ($[0] !== children || $[1] !== play) {
48476
- t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TtsAudioRuntimeProvider, {
48498
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(TtsAudioRuntimeProvider, {
48477
48499
  play: play,
48478
48500
  children: children
48479
48501
  });
@@ -48486,7 +48508,7 @@ var AudioRuntimeProvider = function(t0) {
48486
48508
  return t1;
48487
48509
  };
48488
48510
  var Provider5 = function(t0) {
48489
- var $ = (0, import_react_compiler_runtime88.c)(9);
48511
+ var $ = (0, import_react_compiler_runtime89.c)(9);
48490
48512
  var children;
48491
48513
  var rest;
48492
48514
  if ($[0] !== t0) {
@@ -48513,7 +48535,7 @@ var Provider5 = function(t0) {
48513
48535
  }
48514
48536
  var t2;
48515
48537
  if ($[6] !== children || $[7] !== t1) {
48516
- t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AudioThreadContext.Provider, {
48538
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AudioThreadContext.Provider, {
48517
48539
  value: t1,
48518
48540
  children: children
48519
48541
  });
@@ -48526,7 +48548,7 @@ var Provider5 = function(t0) {
48526
48548
  return t2;
48527
48549
  };
48528
48550
  var Root14 = function(t0) {
48529
- var $ = (0, import_react_compiler_runtime88.c)(16);
48551
+ var $ = (0, import_react_compiler_runtime89.c)(16);
48530
48552
  var children;
48531
48553
  var className;
48532
48554
  var play;
@@ -48553,8 +48575,8 @@ var Root14 = function(t0) {
48553
48575
  }
48554
48576
  var t1;
48555
48577
  if ($[6] !== children || $[7] !== className || $[8] !== style) {
48556
- t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ToastsProvider, {
48557
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Content8, {
48578
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ToastsProvider, {
48579
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Content8, {
48558
48580
  className: className,
48559
48581
  style: style,
48560
48582
  children: children
@@ -48569,7 +48591,7 @@ var Root14 = function(t0) {
48569
48591
  }
48570
48592
  var t2;
48571
48593
  if ($[10] !== play || $[11] !== t1) {
48572
- t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AudioRuntimeProvider, {
48594
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AudioRuntimeProvider, {
48573
48595
  play: play,
48574
48596
  children: t1
48575
48597
  });
@@ -48581,7 +48603,7 @@ var Root14 = function(t0) {
48581
48603
  }
48582
48604
  var t3;
48583
48605
  if ($[13] !== rest || $[14] !== t2) {
48584
- t3 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
48606
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
48585
48607
  children: t2
48586
48608
  }));
48587
48609
  $[13] = rest;
@@ -48593,7 +48615,7 @@ var Root14 = function(t0) {
48593
48615
  return t3;
48594
48616
  };
48595
48617
  // src/components/threads/AudioThread/Visualization/index.tsx
48596
- var import_react_compiler_runtime90 = require("react-compiler-runtime");
48618
+ var import_react_compiler_runtime91 = require("react-compiler-runtime");
48597
48619
  var import_react71 = require("react");
48598
48620
  var import_lodash9 = __toESM(require("lodash"), 1);
48599
48621
  var import_themes60 = require("@radix-ui/themes");
@@ -48602,7 +48624,7 @@ var import_lodash8 = __toESM(require("lodash"), 1);
48602
48624
  var import_themes59 = require("@radix-ui/themes");
48603
48625
  var import_react69 = require("react");
48604
48626
  var import_radash17 = require("radash");
48605
- var import_jsx_runtime87 = require("react/jsx-runtime");
48627
+ var import_jsx_runtime88 = require("react/jsx-runtime");
48606
48628
  var barCount = 4;
48607
48629
  var BarsVisualizer = function(_ref) {
48608
48630
  var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
@@ -48633,7 +48655,7 @@ var BarsVisualizer = function(_ref) {
48633
48655
  draw,
48634
48656
  visualizationAnalyser
48635
48657
  ]);
48636
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes59.Grid, {
48658
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes59.Grid, {
48637
48659
  columns: "".concat(barCount),
48638
48660
  gap: "1",
48639
48661
  width: "auto",
@@ -48642,12 +48664,12 @@ var BarsVisualizer = function(_ref) {
48642
48664
  gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
48643
48665
  },
48644
48666
  children: barHeights.map(function(barHeight, index) {
48645
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes59.Flex, {
48667
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes59.Flex, {
48646
48668
  direction: "column",
48647
48669
  align: "center",
48648
48670
  justify: "center",
48649
48671
  height: height,
48650
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes59.Flex, {
48672
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes59.Flex, {
48651
48673
  minHeight: "50%",
48652
48674
  maxHeight: "100%",
48653
48675
  height: "".concat(barHeight + 20, "%"),
@@ -48662,10 +48684,10 @@ var BarsVisualizer = function(_ref) {
48662
48684
  });
48663
48685
  };
48664
48686
  // src/hooks/audioThreads/useStatus/index.ts
48665
- var import_react_compiler_runtime89 = require("react-compiler-runtime");
48687
+ var import_react_compiler_runtime90 = require("react-compiler-runtime");
48666
48688
  var import_react70 = require("react");
48667
48689
  var useStatus = function() {
48668
- var $ = (0, import_react_compiler_runtime89.c)(2);
48690
+ var $ = (0, import_react_compiler_runtime90.c)(2);
48669
48691
  var audioRuntime = useAudioThreadContext().audioRuntime;
48670
48692
  var t0;
48671
48693
  bb0: {
@@ -48713,7 +48735,7 @@ var useStatus = function() {
48713
48735
  return t1;
48714
48736
  };
48715
48737
  // src/components/threads/AudioThread/Visualization/index.tsx
48716
- var import_jsx_runtime88 = require("react/jsx-runtime");
48738
+ var import_jsx_runtime89 = require("react/jsx-runtime");
48717
48739
  var _excluded6 = [
48718
48740
  "children"
48719
48741
  ];
@@ -48817,7 +48839,7 @@ var Provider6 = function(_ref) {
48817
48839
  draw,
48818
48840
  audioThreadContext
48819
48841
  ]);
48820
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AudioThreadVisualizationContext.Provider, {
48842
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AudioThreadVisualizationContext.Provider, {
48821
48843
  value: {
48822
48844
  scale: scale
48823
48845
  },
@@ -48825,7 +48847,7 @@ var Provider6 = function(_ref) {
48825
48847
  });
48826
48848
  };
48827
48849
  var Root15 = function(t0) {
48828
- var $ = (0, import_react_compiler_runtime90.c)(6);
48850
+ var $ = (0, import_react_compiler_runtime91.c)(6);
48829
48851
  var children;
48830
48852
  var rest;
48831
48853
  if ($[0] !== t0) {
@@ -48842,8 +48864,8 @@ var Root15 = function(t0) {
48842
48864
  }
48843
48865
  var t1;
48844
48866
  if ($[3] !== children || $[4] !== rest) {
48845
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Provider6, {
48846
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
48867
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Provider6, {
48868
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
48847
48869
  direction: "column",
48848
48870
  align: "center",
48849
48871
  justify: "center",
@@ -48862,7 +48884,7 @@ var Root15 = function(t0) {
48862
48884
  return t1;
48863
48885
  };
48864
48886
  var BarsVisualizer2 = function(t0) {
48865
- var $ = (0, import_react_compiler_runtime90.c)(10);
48887
+ var $ = (0, import_react_compiler_runtime91.c)(10);
48866
48888
  var rest;
48867
48889
  var t1;
48868
48890
  var t2;
@@ -48888,7 +48910,7 @@ var BarsVisualizer2 = function(t0) {
48888
48910
  var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
48889
48911
  var t4;
48890
48912
  if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
48891
- t4 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(BarsVisualizer, _objectSpread47({
48913
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer, _objectSpread47({
48892
48914
  visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
48893
48915
  backgroundColor: t3,
48894
48916
  height: height,
@@ -48906,7 +48928,7 @@ var BarsVisualizer2 = function(t0) {
48906
48928
  return t4;
48907
48929
  };
48908
48930
  var AssistantVisualizationRoot = function(t0) {
48909
- var $ = (0, import_react_compiler_runtime90.c)(17);
48931
+ var $ = (0, import_react_compiler_runtime91.c)(17);
48910
48932
  var children;
48911
48933
  var rest;
48912
48934
  var t1;
@@ -48958,7 +48980,7 @@ var AssistantVisualizationRoot = function(t0) {
48958
48980
  }
48959
48981
  var t6;
48960
48982
  if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
48961
- t6 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
48983
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
48962
48984
  align: "center",
48963
48985
  justify: "center",
48964
48986
  height: height,
@@ -48979,17 +49001,17 @@ var AssistantVisualizationRoot = function(t0) {
48979
49001
  return t6;
48980
49002
  };
48981
49003
  var AssistantVisualization = function(props) {
48982
- var $ = (0, import_react_compiler_runtime90.c)(3);
49004
+ var $ = (0, import_react_compiler_runtime91.c)(3);
48983
49005
  var t0;
48984
49006
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48985
- t0 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(BarsVisualizer2, {});
49007
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer2, {});
48986
49008
  $[0] = t0;
48987
49009
  } else {
48988
49010
  t0 = $[0];
48989
49011
  }
48990
49012
  var t1;
48991
49013
  if ($[1] !== props) {
48992
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
49014
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
48993
49015
  children: t0
48994
49016
  }));
48995
49017
  $[1] = props;
@@ -49002,18 +49024,18 @@ var AssistantVisualization = function(props) {
49002
49024
  AssistantVisualization.Root = AssistantVisualizationRoot;
49003
49025
  AssistantVisualization.BarsVisualizer = BarsVisualizer2;
49004
49026
  var AssistantInfo = function(props) {
49005
- var $ = (0, import_react_compiler_runtime90.c)(6);
49027
+ var $ = (0, import_react_compiler_runtime91.c)(6);
49006
49028
  var assistantNameContext = (0, import_react71.useContext)(AssistantNameContext);
49007
49029
  var t0;
49008
49030
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49009
- t0 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(MessageGroup.AssistantAvatar, {});
49031
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(MessageGroup.AssistantAvatar, {});
49010
49032
  $[0] = t0;
49011
49033
  } else {
49012
49034
  t0 = $[0];
49013
49035
  }
49014
49036
  var t1;
49015
49037
  if ($[1] !== assistantNameContext) {
49016
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(MessageGroup.Name, {
49038
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(MessageGroup.Name, {
49017
49039
  children: assistantNameContext
49018
49040
  });
49019
49041
  $[1] = assistantNameContext;
@@ -49023,7 +49045,7 @@ var AssistantInfo = function(props) {
49023
49045
  }
49024
49046
  var t2;
49025
49047
  if ($[3] !== props || $[4] !== t1) {
49026
- t2 = /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes60.Flex, _objectSpread47(_objectSpread47({
49048
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes60.Flex, _objectSpread47(_objectSpread47({
49027
49049
  ml: "-22.5px",
49028
49050
  gap: "3",
49029
49051
  pt: "5"
@@ -49042,12 +49064,12 @@ var AssistantInfo = function(props) {
49042
49064
  return t2;
49043
49065
  };
49044
49066
  var Visualization = function(props) {
49045
- var $ = (0, import_react_compiler_runtime90.c)(4);
49067
+ var $ = (0, import_react_compiler_runtime91.c)(4);
49046
49068
  var t0;
49047
49069
  var t1;
49048
49070
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49049
- t0 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AssistantVisualization, {});
49050
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AssistantInfo, {});
49071
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantVisualization, {});
49072
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantInfo, {});
49051
49073
  $[0] = t0;
49052
49074
  $[1] = t1;
49053
49075
  } else {
@@ -49056,7 +49078,7 @@ var Visualization = function(props) {
49056
49078
  }
49057
49079
  var t2;
49058
49080
  if ($[2] !== props) {
49059
- t2 = /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Root15, _objectSpread47(_objectSpread47({}, props), {}, {
49081
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Root15, _objectSpread47(_objectSpread47({}, props), {}, {
49060
49082
  children: [
49061
49083
  t0,
49062
49084
  t1
@@ -49074,11 +49096,11 @@ Visualization.Provider = Provider6;
49074
49096
  Visualization.AssistantVisualization = AssistantVisualization;
49075
49097
  Visualization.AssistantInfo = AssistantInfo;
49076
49098
  // src/components/threads/AudioThread/Status/index.tsx
49077
- var import_react_compiler_runtime92 = require("react-compiler-runtime");
49099
+ var import_react_compiler_runtime93 = require("react-compiler-runtime");
49078
49100
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
49079
- var import_react_compiler_runtime91 = require("react-compiler-runtime");
49101
+ var import_react_compiler_runtime92 = require("react-compiler-runtime");
49080
49102
  var import_themes61 = require("@radix-ui/themes");
49081
- var import_jsx_runtime89 = require("react/jsx-runtime");
49103
+ var import_jsx_runtime90 = require("react/jsx-runtime");
49082
49104
  var html = function(_ref) {
49083
49105
  var texts = _ref.texts;
49084
49106
  return "\n .status-messages-texts:after {\n content: '".concat(texts[0], "';\n animation: texts ").concat(texts.length * 5, "s linear infinite;\n }\n\n @keyframes texts {\n ").concat(texts.map(function(_10, i) {
@@ -49086,11 +49108,11 @@ var html = function(_ref) {
49086
49108
  }).join(""), "\n }");
49087
49109
  };
49088
49110
  var StatusMessages = function(t0) {
49089
- var $ = (0, import_react_compiler_runtime91.c)(9);
49111
+ var $ = (0, import_react_compiler_runtime92.c)(9);
49090
49112
  var texts = t0.texts, className = t0.className, style = t0.style;
49091
49113
  var t1;
49092
49114
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49093
- t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes61.Text, {
49115
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes61.Text, {
49094
49116
  size: "2",
49095
49117
  weight: "regular",
49096
49118
  color: "gray",
@@ -49113,7 +49135,7 @@ var StatusMessages = function(t0) {
49113
49135
  }
49114
49136
  var t3;
49115
49137
  if ($[3] !== t2) {
49116
- t3 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("style", {
49138
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("style", {
49117
49139
  dangerouslySetInnerHTML: {
49118
49140
  __html: t2
49119
49141
  }
@@ -49125,7 +49147,7 @@ var StatusMessages = function(t0) {
49125
49147
  }
49126
49148
  var t4;
49127
49149
  if ($[5] !== className || $[6] !== style || $[7] !== t3) {
49128
- t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes61.Flex, {
49150
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_themes61.Flex, {
49129
49151
  justify: "center",
49130
49152
  pb: "5",
49131
49153
  className: className,
@@ -49145,7 +49167,7 @@ var StatusMessages = function(t0) {
49145
49167
  return t4;
49146
49168
  };
49147
49169
  // src/components/threads/AudioThread/Status/index.tsx
49148
- var import_jsx_runtime90 = require("react/jsx-runtime");
49170
+ var import_jsx_runtime91 = require("react/jsx-runtime");
49149
49171
  function ownKeys48(e, r) {
49150
49172
  var t = Object.keys(e);
49151
49173
  if (Object.getOwnPropertySymbols) {
@@ -49190,7 +49212,7 @@ function _toPrimitive48(t, r) {
49190
49212
  return ("string" === r ? String : Number)(t);
49191
49213
  }
49192
49214
  var Status = function(props) {
49193
- var $ = (0, import_react_compiler_runtime92.c)(12);
49215
+ var $ = (0, import_react_compiler_runtime93.c)(12);
49194
49216
  var status = useStatus().status;
49195
49217
  if (status === "recording") {
49196
49218
  var _t;
@@ -49207,7 +49229,7 @@ var Status = function(props) {
49207
49229
  }
49208
49230
  var _t2;
49209
49231
  if ($[1] !== props) {
49210
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49232
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49211
49233
  texts: _t
49212
49234
  }, props));
49213
49235
  $[1] = props;
@@ -49233,7 +49255,7 @@ var Status = function(props) {
49233
49255
  }
49234
49256
  var _t4;
49235
49257
  if ($[4] !== props) {
49236
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49258
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49237
49259
  texts: _t3
49238
49260
  }, props));
49239
49261
  $[4] = props;
@@ -49255,7 +49277,7 @@ var Status = function(props) {
49255
49277
  }
49256
49278
  var _t6;
49257
49279
  if ($[7] !== props) {
49258
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49280
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49259
49281
  texts: _t5
49260
49282
  }, props));
49261
49283
  $[7] = props;
@@ -49276,7 +49298,7 @@ var Status = function(props) {
49276
49298
  }
49277
49299
  var t1;
49278
49300
  if ($[10] !== props) {
49279
- t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(StatusMessages, _objectSpread48({
49301
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49280
49302
  texts: t0
49281
49303
  }, props));
49282
49304
  $[10] = props;
@@ -49287,11 +49309,11 @@ var Status = function(props) {
49287
49309
  return t1;
49288
49310
  };
49289
49311
  // src/components/threads/AudioThread/Form/index.tsx
49290
- var import_react_compiler_runtime95 = require("react-compiler-runtime");
49312
+ var import_react_compiler_runtime96 = require("react-compiler-runtime");
49291
49313
  var import_themes63 = require("@radix-ui/themes");
49292
49314
  // src/components/threads/AudioThread/Form/MicIcon.tsx
49293
- var import_react_compiler_runtime93 = require("react-compiler-runtime");
49294
- var import_jsx_runtime91 = require("react/jsx-runtime");
49315
+ var import_react_compiler_runtime94 = require("react-compiler-runtime");
49316
+ var import_jsx_runtime92 = require("react/jsx-runtime");
49295
49317
  function ownKeys49(e, r) {
49296
49318
  var t = Object.keys(e);
49297
49319
  if (Object.getOwnPropertySymbols) {
@@ -49336,10 +49358,10 @@ function _toPrimitive49(t, r) {
49336
49358
  return ("string" === r ? String : Number)(t);
49337
49359
  }
49338
49360
  var MicIcon = function(props) {
49339
- var $ = (0, import_react_compiler_runtime93.c)(3);
49361
+ var $ = (0, import_react_compiler_runtime94.c)(3);
49340
49362
  var t0;
49341
49363
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49342
- t0 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", {
49364
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", {
49343
49365
  stroke: "none",
49344
49366
  d: "M192 0c-53 0-96 43-96 96v160c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1 66.2 162.7 152 174.4V464h-48c-13.3 0-24 10.7-24 24s10.7 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24h-48v-33.6c85.8-11.7 152-85.3 152-174.4v-40c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 70.7-57.3 128-128 128S64 326.7 64 256v-40z"
49345
49367
  });
@@ -49349,7 +49371,7 @@ var MicIcon = function(props) {
49349
49371
  }
49350
49372
  var t1;
49351
49373
  if ($[1] !== props) {
49352
- t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", _objectSpread49(_objectSpread49({
49374
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", _objectSpread49(_objectSpread49({
49353
49375
  xmlns: "http://www.w3.org/2000/svg",
49354
49376
  fill: "currentColor",
49355
49377
  stroke: "currentColor",
@@ -49368,29 +49390,29 @@ var MicIcon = function(props) {
49368
49390
  return t1;
49369
49391
  };
49370
49392
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
49371
- var import_react_compiler_runtime94 = require("react-compiler-runtime");
49393
+ var import_react_compiler_runtime95 = require("react-compiler-runtime");
49372
49394
  var import_themes62 = require("@radix-ui/themes");
49373
49395
  var import_react_icons17 = require("@radix-ui/react-icons");
49374
- var import_jsx_runtime92 = require("react/jsx-runtime");
49396
+ var import_jsx_runtime93 = require("react/jsx-runtime");
49375
49397
  var ActionButton = function() {
49376
- var $ = (0, import_react_compiler_runtime94.c)(27);
49398
+ var $ = (0, import_react_compiler_runtime95.c)(27);
49377
49399
  var status = useStatus().status;
49378
49400
  var audioThreadContext = useAudioThreadContext();
49379
49401
  var superinterfaceContext = useSuperinterfaceContext();
49380
49402
  if (status === "recording") {
49381
49403
  var _t;
49382
49404
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49383
- _t = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.PauseIcon, {});
49405
+ _t = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.PauseIcon, {});
49384
49406
  $[0] = _t;
49385
49407
  } else {
49386
49408
  _t = $[0];
49387
49409
  }
49388
49410
  var t1;
49389
49411
  if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
49390
- t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.Flex, {
49412
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.Flex, {
49391
49413
  mr: "3",
49392
49414
  ml: "-7",
49393
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49415
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49394
49416
  onClick: audioThreadContext.audioRuntime.user.pause,
49395
49417
  color: "gray",
49396
49418
  variant: "soft",
@@ -49405,14 +49427,14 @@ var ActionButton = function() {
49405
49427
  }
49406
49428
  var t2;
49407
49429
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
49408
- t2 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.ArrowUpIcon, {});
49430
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.ArrowUpIcon, {});
49409
49431
  $[3] = t2;
49410
49432
  } else {
49411
49433
  t2 = $[3];
49412
49434
  }
49413
49435
  var t3;
49414
49436
  if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
49415
- t3 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49437
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49416
49438
  onClick: audioThreadContext.audioRuntime.user.stop,
49417
49439
  highContrast: true,
49418
49440
  variant: "soft",
@@ -49426,7 +49448,7 @@ var ActionButton = function() {
49426
49448
  }
49427
49449
  var t4;
49428
49450
  if ($[6] !== t1 || $[7] !== t3) {
49429
- t4 = /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_themes62.Flex, {
49451
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes62.Flex, {
49430
49452
  align: "center",
49431
49453
  children: [
49432
49454
  t1,
@@ -49444,14 +49466,14 @@ var ActionButton = function() {
49444
49466
  if (status === "recorderPaused") {
49445
49467
  var _t2;
49446
49468
  if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
49447
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.ResumeIcon, {});
49469
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.ResumeIcon, {});
49448
49470
  $[9] = _t2;
49449
49471
  } else {
49450
49472
  _t2 = $[9];
49451
49473
  }
49452
49474
  var _t3;
49453
49475
  if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
49454
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49476
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49455
49477
  onClick: audioThreadContext.audioRuntime.user.resume,
49456
49478
  color: "red",
49457
49479
  size: "4",
@@ -49467,7 +49489,7 @@ var ActionButton = function() {
49467
49489
  if (status === "idle") {
49468
49490
  var _t4;
49469
49491
  if ($[12] !== audioThreadContext.audioRuntime.user) {
49470
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49492
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49471
49493
  onClick: function() {
49472
49494
  return audioThreadContext.audioRuntime.user.start();
49473
49495
  },
@@ -49499,14 +49521,14 @@ var ActionButton = function() {
49499
49521
  }
49500
49522
  var _t6;
49501
49523
  if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
49502
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.StopIcon, {});
49524
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.StopIcon, {});
49503
49525
  $[18] = _t6;
49504
49526
  } else {
49505
49527
  _t6 = $[18];
49506
49528
  }
49507
49529
  var _t7;
49508
49530
  if ($[19] !== _t5) {
49509
- _t7 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49531
+ _t7 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49510
49532
  onClick: _t5,
49511
49533
  size: "4",
49512
49534
  color: "gray",
@@ -49533,14 +49555,14 @@ var ActionButton = function() {
49533
49555
  }
49534
49556
  var _t9;
49535
49557
  if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
49536
- _t9 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_icons17.ResumeIcon, {});
49558
+ _t9 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons17.ResumeIcon, {});
49537
49559
  $[23] = _t9;
49538
49560
  } else {
49539
49561
  _t9 = $[23];
49540
49562
  }
49541
49563
  var _t10;
49542
49564
  if ($[24] !== _t8) {
49543
- _t10 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49565
+ _t10 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49544
49566
  onClick: _t8,
49545
49567
  size: "4",
49546
49568
  children: _t9
@@ -49554,7 +49576,7 @@ var ActionButton = function() {
49554
49576
  }
49555
49577
  var t0;
49556
49578
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
49557
- t0 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes62.IconButton, {
49579
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes62.IconButton, {
49558
49580
  size: "4",
49559
49581
  variant: "soft",
49560
49582
  disabled: true
@@ -49566,7 +49588,7 @@ var ActionButton = function() {
49566
49588
  return t0;
49567
49589
  };
49568
49590
  // src/components/threads/AudioThread/Form/index.tsx
49569
- var import_jsx_runtime93 = require("react/jsx-runtime");
49591
+ var import_jsx_runtime94 = require("react/jsx-runtime");
49570
49592
  function ownKeys50(e, r) {
49571
49593
  var t = Object.keys(e);
49572
49594
  if (Object.getOwnPropertySymbols) {
@@ -49611,17 +49633,17 @@ function _toPrimitive50(t, r) {
49611
49633
  return ("string" === r ? String : Number)(t);
49612
49634
  }
49613
49635
  var Form = function(props) {
49614
- var $ = (0, import_react_compiler_runtime95.c)(17);
49636
+ var $ = (0, import_react_compiler_runtime96.c)(17);
49615
49637
  var status = useStatus().status;
49616
49638
  var audioThreadContext = useAudioThreadContext();
49617
49639
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
49618
49640
  var t1;
49619
49641
  if ($[0] !== t0) {
49620
- t1 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes63.Flex, {
49642
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes63.Flex, {
49621
49643
  ml: "-22.5px",
49622
49644
  mr: "2",
49623
49645
  align: "center",
49624
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(MicIcon, {
49646
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(MicIcon, {
49625
49647
  style: {
49626
49648
  color: t0
49627
49649
  }
@@ -49647,7 +49669,7 @@ var Form = function(props) {
49647
49669
  var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
49648
49670
  var t5;
49649
49671
  if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
49650
- t5 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(BarsVisualizer, {
49672
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(BarsVisualizer, {
49651
49673
  visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
49652
49674
  backgroundColor: t4,
49653
49675
  height: "20px",
@@ -49661,7 +49683,7 @@ var Form = function(props) {
49661
49683
  }
49662
49684
  var t6;
49663
49685
  if ($[7] !== t3 || $[8] !== t5) {
49664
- t6 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes63.Flex, {
49686
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes63.Flex, {
49665
49687
  px: "2",
49666
49688
  py: "1",
49667
49689
  style: t3,
@@ -49675,7 +49697,7 @@ var Form = function(props) {
49675
49697
  }
49676
49698
  var t7;
49677
49699
  if ($[10] !== t1 || $[11] !== t6) {
49678
- t7 = /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes63.Flex, {
49700
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes63.Flex, {
49679
49701
  pb: "3",
49680
49702
  align: "center",
49681
49703
  children: [
@@ -49691,14 +49713,14 @@ var Form = function(props) {
49691
49713
  }
49692
49714
  var t8;
49693
49715
  if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
49694
- t8 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ActionButton, {});
49716
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ActionButton, {});
49695
49717
  $[13] = t8;
49696
49718
  } else {
49697
49719
  t8 = $[13];
49698
49720
  }
49699
49721
  var t9;
49700
49722
  if ($[14] !== props || $[15] !== t7) {
49701
- t9 = /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes63.Flex, _objectSpread50(_objectSpread50({
49723
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes63.Flex, _objectSpread50(_objectSpread50({
49702
49724
  direction: "column",
49703
49725
  align: "center"
49704
49726
  }, props), {}, {
@@ -49716,7 +49738,7 @@ var Form = function(props) {
49716
49738
  return t9;
49717
49739
  };
49718
49740
  // src/components/threads/AudioThread/index.tsx
49719
- var import_jsx_runtime94 = require("react/jsx-runtime");
49741
+ var import_jsx_runtime95 = require("react/jsx-runtime");
49720
49742
  function ownKeys51(e, r) {
49721
49743
  var t = Object.keys(e);
49722
49744
  if (Object.getOwnPropertySymbols) {
@@ -49761,14 +49783,14 @@ function _toPrimitive51(t, r) {
49761
49783
  return ("string" === r ? String : Number)(t);
49762
49784
  }
49763
49785
  var AudioThread = function(props) {
49764
- var $ = (0, import_react_compiler_runtime96.c)(5);
49786
+ var $ = (0, import_react_compiler_runtime97.c)(5);
49765
49787
  var t0;
49766
49788
  var t1;
49767
49789
  var t2;
49768
49790
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49769
- t0 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Visualization, {});
49770
- t1 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Status, {});
49771
- t2 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Form, {});
49791
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Visualization, {});
49792
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Status, {});
49793
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Form, {});
49772
49794
  $[0] = t0;
49773
49795
  $[1] = t1;
49774
49796
  $[2] = t2;
@@ -49779,7 +49801,7 @@ var AudioThread = function(props) {
49779
49801
  }
49780
49802
  var t3;
49781
49803
  if ($[3] !== props) {
49782
- t3 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Root14, _objectSpread51(_objectSpread51({}, props), {}, {
49804
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root14, _objectSpread51(_objectSpread51({}, props), {}, {
49783
49805
  children: [
49784
49806
  t0,
49785
49807
  t1,
@@ -49798,7 +49820,7 @@ AudioThread.Visualization = Visualization;
49798
49820
  AudioThread.Status = Status;
49799
49821
  AudioThread.Form = Form;
49800
49822
  // src/components/threads/AudioThreadDialog/index.tsx
49801
- var import_jsx_runtime95 = require("react/jsx-runtime");
49823
+ var import_jsx_runtime96 = require("react/jsx-runtime");
49802
49824
  function ownKeys52(e, r) {
49803
49825
  var t = Object.keys(e);
49804
49826
  if (Object.getOwnPropertySymbols) {
@@ -49843,14 +49865,14 @@ function _toPrimitive52(t, r) {
49843
49865
  return ("string" === r ? String : Number)(t);
49844
49866
  }
49845
49867
  var AudioThreadDialog = function(props) {
49846
- var $ = (0, import_react_compiler_runtime97.c)(4);
49868
+ var $ = (0, import_react_compiler_runtime98.c)(4);
49847
49869
  var t0;
49848
49870
  var t1;
49849
49871
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49850
- t0 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Content7.Root, {
49851
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(AudioThread, {})
49872
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Content7.Root, {
49873
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AudioThread, {})
49852
49874
  });
49853
- t1 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Trigger, {});
49875
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Trigger, {});
49854
49876
  $[0] = t0;
49855
49877
  $[1] = t1;
49856
49878
  } else {
@@ -49859,7 +49881,7 @@ var AudioThreadDialog = function(props) {
49859
49881
  }
49860
49882
  var t2;
49861
49883
  if ($[2] !== props) {
49862
- t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root11, _objectSpread52(_objectSpread52({}, props), {}, {
49884
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Root11, _objectSpread52(_objectSpread52({}, props), {}, {
49863
49885
  children: [
49864
49886
  t0,
49865
49887
  t1
@@ -50365,10 +50387,10 @@ var useWebrtcAudioRuntime = function() {
50365
50387
  ]);
50366
50388
  };
50367
50389
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
50368
- var import_react_compiler_runtime98 = require("react-compiler-runtime");
50369
- var import_jsx_runtime96 = require("react/jsx-runtime");
50390
+ var import_react_compiler_runtime99 = require("react-compiler-runtime");
50391
+ var import_jsx_runtime97 = require("react/jsx-runtime");
50370
50392
  var WebrtcAudioRuntimeProvider = function(t0) {
50371
- var $ = (0, import_react_compiler_runtime98.c)(5);
50393
+ var $ = (0, import_react_compiler_runtime99.c)(5);
50372
50394
  var children = t0.children;
50373
50395
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
50374
50396
  var t1;
@@ -50383,7 +50405,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
50383
50405
  }
50384
50406
  var t2;
50385
50407
  if ($[2] !== children || $[3] !== t1) {
50386
- t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AudioThreadContext.Provider, {
50408
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(AudioThreadContext.Provider, {
50387
50409
  value: t1,
50388
50410
  children: children
50389
50411
  });
@@ -50396,9 +50418,9 @@ var WebrtcAudioRuntimeProvider = function(t0) {
50396
50418
  return t2;
50397
50419
  };
50398
50420
  // src/components/markdown/MarkdownProvider/index.tsx
50399
- var import_react_compiler_runtime99 = require("react-compiler-runtime");
50421
+ var import_react_compiler_runtime100 = require("react-compiler-runtime");
50400
50422
  var import_react73 = require("react");
50401
- var import_jsx_runtime97 = require("react/jsx-runtime");
50423
+ var import_jsx_runtime98 = require("react/jsx-runtime");
50402
50424
  var _excluded7 = [
50403
50425
  "children"
50404
50426
  ];
@@ -50421,7 +50443,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
50421
50443
  return t;
50422
50444
  }
50423
50445
  var MarkdownProvider = function(t0) {
50424
- var $ = (0, import_react_compiler_runtime99.c)(9);
50446
+ var $ = (0, import_react_compiler_runtime100.c)(9);
50425
50447
  var children;
50426
50448
  var rest;
50427
50449
  if ($[0] !== t0) {
@@ -50451,7 +50473,7 @@ var MarkdownProvider = function(t0) {
50451
50473
  var value = t1;
50452
50474
  var t3;
50453
50475
  if ($[6] !== children || $[7] !== value) {
50454
- t3 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(MarkdownContext.Provider, {
50476
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(MarkdownContext.Provider, {
50455
50477
  value: value,
50456
50478
  children: children
50457
50479
  });
@@ -50464,18 +50486,18 @@ var MarkdownProvider = function(t0) {
50464
50486
  return t3;
50465
50487
  };
50466
50488
  // src/components/annotations/SourceAnnotation/index.tsx
50467
- var import_react_compiler_runtime102 = require("react-compiler-runtime");
50489
+ var import_react_compiler_runtime103 = require("react-compiler-runtime");
50468
50490
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50469
- var import_react_compiler_runtime101 = require("react-compiler-runtime");
50491
+ var import_react_compiler_runtime102 = require("react-compiler-runtime");
50470
50492
  var import_react74 = require("react");
50471
50493
  var import_react_icons18 = require("@radix-ui/react-icons");
50472
50494
  var import_themes65 = require("@radix-ui/themes");
50473
50495
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
50474
- var import_react_compiler_runtime100 = require("react-compiler-runtime");
50496
+ var import_react_compiler_runtime101 = require("react-compiler-runtime");
50475
50497
  var import_themes64 = require("@radix-ui/themes");
50476
- var import_jsx_runtime98 = require("react/jsx-runtime");
50498
+ var import_jsx_runtime99 = require("react/jsx-runtime");
50477
50499
  var Content9 = function(t0) {
50478
- var $ = (0, import_react_compiler_runtime100.c)(5);
50500
+ var $ = (0, import_react_compiler_runtime101.c)(5);
50479
50501
  var fileId = t0.fileId;
50480
50502
  var superinterfaceContext = useSuperinterfaceContext();
50481
50503
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -50512,18 +50534,18 @@ var Content9 = function(t0) {
50512
50534
  }
50513
50535
  var t5;
50514
50536
  if ($[3] !== t3) {
50515
- t5 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Flex, {
50537
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Flex, {
50516
50538
  direction: "column",
50517
50539
  flexGrow: "1",
50518
50540
  gap: "3",
50519
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Card, {
50541
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Card, {
50520
50542
  style: t1,
50521
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Inset, {
50543
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Inset, {
50522
50544
  clip: "padding-box",
50523
50545
  style: t2,
50524
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes64.Flex, {
50546
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Flex, {
50525
50547
  flexGrow: "1",
50526
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("embed", {
50548
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("embed", {
50527
50549
  src: t3,
50528
50550
  style: t4
50529
50551
  })
@@ -50539,9 +50561,9 @@ var Content9 = function(t0) {
50539
50561
  return t5;
50540
50562
  };
50541
50563
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50542
- var import_jsx_runtime99 = require("react/jsx-runtime");
50564
+ var import_jsx_runtime100 = require("react/jsx-runtime");
50543
50565
  var FileCitation = function(t0) {
50544
- var $ = (0, import_react_compiler_runtime101.c)(18);
50566
+ var $ = (0, import_react_compiler_runtime102.c)(18);
50545
50567
  var annotation = t0.annotation;
50546
50568
  var _ref = _sliced_to_array((0, import_react74.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
50547
50569
  var t1;
@@ -50556,14 +50578,14 @@ var FileCitation = function(t0) {
50556
50578
  }
50557
50579
  var t2;
50558
50580
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
50559
- t2 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_icons18.QuoteIcon, {});
50581
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_icons18.QuoteIcon, {});
50560
50582
  $[2] = t2;
50561
50583
  } else {
50562
50584
  t2 = $[2];
50563
50585
  }
50564
50586
  var t3;
50565
50587
  if ($[3] !== t1) {
50566
- t3 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.IconButton, {
50588
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.IconButton, {
50567
50589
  variant: "soft",
50568
50590
  color: "gray",
50569
50591
  size: "1",
@@ -50599,9 +50621,9 @@ var FileCitation = function(t0) {
50599
50621
  }
50600
50622
  var t7;
50601
50623
  if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
50602
- t7 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.VisuallyHidden, {
50624
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.VisuallyHidden, {
50603
50625
  asChild: true,
50604
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.Dialog.Title, {
50626
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Dialog.Title, {
50605
50627
  children: "Source"
50606
50628
  })
50607
50629
  });
@@ -50611,7 +50633,7 @@ var FileCitation = function(t0) {
50611
50633
  }
50612
50634
  var t8;
50613
50635
  if ($[8] !== activeFileId) {
50614
- t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Content9, {
50636
+ t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Content9, {
50615
50637
  fileId: activeFileId
50616
50638
  });
50617
50639
  $[8] = activeFileId;
@@ -50621,7 +50643,7 @@ var FileCitation = function(t0) {
50621
50643
  }
50622
50644
  var t9;
50623
50645
  if ($[10] !== t8) {
50624
- t9 = /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes65.Dialog.Content, {
50646
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes65.Dialog.Content, {
50625
50647
  width: "1000px",
50626
50648
  height: "90vh",
50627
50649
  maxWidth: "calc(100vw - 2 * var(--space-4))",
@@ -50639,7 +50661,7 @@ var FileCitation = function(t0) {
50639
50661
  }
50640
50662
  var t10;
50641
50663
  if ($[12] !== t4 || $[13] !== t9) {
50642
- t10 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes65.Dialog.Root, {
50664
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes65.Dialog.Root, {
50643
50665
  open: t4,
50644
50666
  onOpenChange: t5,
50645
50667
  children: t9
@@ -50652,7 +50674,7 @@ var FileCitation = function(t0) {
50652
50674
  }
50653
50675
  var t11;
50654
50676
  if ($[15] !== t10 || $[16] !== t3) {
50655
- t11 = /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, {
50677
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, {
50656
50678
  children: [
50657
50679
  t3,
50658
50680
  t10
@@ -50667,7 +50689,7 @@ var FileCitation = function(t0) {
50667
50689
  return t11;
50668
50690
  };
50669
50691
  // src/components/annotations/SourceAnnotation/index.tsx
50670
- var import_jsx_runtime100 = require("react/jsx-runtime");
50692
+ var import_jsx_runtime101 = require("react/jsx-runtime");
50671
50693
  var _excluded8 = [
50672
50694
  "children"
50673
50695
  ];
@@ -50690,7 +50712,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
50690
50712
  return t;
50691
50713
  }
50692
50714
  var SourceAnnotation = function(t0) {
50693
- var $ = (0, import_react_compiler_runtime102.c)(10);
50715
+ var $ = (0, import_react_compiler_runtime103.c)(10);
50694
50716
  var children;
50695
50717
  var rest;
50696
50718
  if ($[0] !== t0) {
@@ -50718,7 +50740,7 @@ var SourceAnnotation = function(t0) {
50718
50740
  if (annotation.type === "file_citation") {
50719
50741
  var t2;
50720
50742
  if ($[5] !== annotation) {
50721
- t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(FileCitation, {
50743
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(FileCitation, {
50722
50744
  annotation: annotation
50723
50745
  });
50724
50746
  $[5] = annotation;
@@ -50731,7 +50753,7 @@ var SourceAnnotation = function(t0) {
50731
50753
  if (annotation.type === "file_path") {
50732
50754
  var _t2;
50733
50755
  if ($[7] !== annotation || $[8] !== children) {
50734
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(FilePathAnnotation, {
50756
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(FilePathAnnotation, {
50735
50757
  annotation: annotation,
50736
50758
  children: children
50737
50759
  });
@@ -50747,7 +50769,7 @@ var SourceAnnotation = function(t0) {
50747
50769
  return null;
50748
50770
  };
50749
50771
  // src/components/avatars/Avatar.tsx
50750
- var import_react_compiler_runtime105 = require("react-compiler-runtime");
50772
+ var import_react_compiler_runtime106 = require("react-compiler-runtime");
50751
50773
  // src/lib/enums/index.ts
50752
50774
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
50753
50775
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -50772,7 +50794,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
50772
50794
  // src/components/avatars/Avatar.tsx
50773
50795
  var import_themes68 = require("@radix-ui/themes");
50774
50796
  // src/components/imageAvatars/ImageAvatar/index.tsx
50775
- var import_react_compiler_runtime103 = require("react-compiler-runtime");
50797
+ var import_react_compiler_runtime104 = require("react-compiler-runtime");
50776
50798
  var import_themes66 = require("@radix-ui/themes");
50777
50799
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
50778
50800
  var width = function(_ref) {
@@ -50824,9 +50846,9 @@ var optimizedSrc = function(_ref) {
50824
50846
  }));
50825
50847
  };
50826
50848
  // src/components/imageAvatars/ImageAvatar/index.tsx
50827
- var import_jsx_runtime101 = require("react/jsx-runtime");
50849
+ var import_jsx_runtime102 = require("react/jsx-runtime");
50828
50850
  var ImageAvatar = function(t0) {
50829
- var $ = (0, import_react_compiler_runtime103.c)(9);
50851
+ var $ = (0, import_react_compiler_runtime104.c)(9);
50830
50852
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
50831
50853
  var superinterfaceContext = useSuperinterfaceContext();
50832
50854
  var t1;
@@ -50845,7 +50867,7 @@ var ImageAvatar = function(t0) {
50845
50867
  }
50846
50868
  var t2;
50847
50869
  if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
50848
- t2 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes66.Avatar, {
50870
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes66.Avatar, {
50849
50871
  className: className,
50850
50872
  style: style,
50851
50873
  fallback: "",
@@ -50863,7 +50885,7 @@ var ImageAvatar = function(t0) {
50863
50885
  return t2;
50864
50886
  };
50865
50887
  // src/components/iconAvatars/IconAvatar.tsx
50866
- var import_react_compiler_runtime104 = require("react-compiler-runtime");
50888
+ var import_react_compiler_runtime105 = require("react-compiler-runtime");
50867
50889
  var import_react75 = require("react");
50868
50890
  var import_themes67 = require("@radix-ui/themes");
50869
50891
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -50871,16 +50893,16 @@ var import_react_icons19 = require("@radix-ui/react-icons");
50871
50893
  var _obj;
50872
50894
  var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, import_react_icons19.BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, import_react_icons19.RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, import_react_icons19.MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, import_react_icons19.CubeIcon), _define_property(_obj, IconAvatarName.TARGET, import_react_icons19.TargetIcon), _define_property(_obj, IconAvatarName.DISC, import_react_icons19.DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, import_react_icons19.GlobeIcon), _define_property(_obj, IconAvatarName.STAR, import_react_icons19.StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, import_react_icons19.LightningBoltIcon), _define_property(_obj, IconAvatarName.FACE, import_react_icons19.FaceIcon), _define_property(_obj, IconAvatarName.PERSON, import_react_icons19.PersonIcon), _define_property(_obj, IconAvatarName.HEART, import_react_icons19.HeartIcon), _obj);
50873
50895
  // src/components/iconAvatars/IconAvatar.tsx
50874
- var import_jsx_runtime102 = require("react/jsx-runtime");
50896
+ var import_jsx_runtime103 = require("react/jsx-runtime");
50875
50897
  var IconAvatar = function(t0) {
50876
- var $ = (0, import_react_compiler_runtime104.c)(7);
50898
+ var $ = (0, import_react_compiler_runtime105.c)(7);
50877
50899
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
50878
50900
  var t1;
50879
50901
  t1 = iconAvatarComponents[iconAvatar.name];
50880
50902
  var Component2 = t1;
50881
50903
  var t2;
50882
50904
  if ($[0] !== Component2) {
50883
- t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Component2, {}) : "";
50905
+ t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Component2, {}) : "";
50884
50906
  $[0] = Component2;
50885
50907
  $[1] = t2;
50886
50908
  } else {
@@ -50888,7 +50910,7 @@ var IconAvatar = function(t0) {
50888
50910
  }
50889
50911
  var t3;
50890
50912
  if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
50891
- t3 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes67.Avatar, {
50913
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes67.Avatar, {
50892
50914
  className: className,
50893
50915
  style: style,
50894
50916
  size: size,
@@ -50905,16 +50927,16 @@ var IconAvatar = function(t0) {
50905
50927
  return t3;
50906
50928
  };
50907
50929
  // src/components/avatars/Avatar.tsx
50908
- var import_jsx_runtime103 = require("react/jsx-runtime");
50930
+ var import_jsx_runtime104 = require("react/jsx-runtime");
50909
50931
  var Avatar6 = function(t0) {
50910
- var $ = (0, import_react_compiler_runtime105.c)(14);
50932
+ var $ = (0, import_react_compiler_runtime106.c)(14);
50911
50933
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
50912
50934
  var size = t1 === void 0 ? "1" : t1;
50913
50935
  if (avatar) {
50914
50936
  if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
50915
50937
  var _t;
50916
50938
  if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
50917
- _t = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ImageAvatar, {
50939
+ _t = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ImageAvatar, {
50918
50940
  imageAvatar: avatar.imageAvatar,
50919
50941
  size: size,
50920
50942
  className: className,
@@ -50933,7 +50955,7 @@ var Avatar6 = function(t0) {
50933
50955
  if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
50934
50956
  var _t2;
50935
50957
  if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
50936
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(IconAvatar, {
50958
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(IconAvatar, {
50937
50959
  iconAvatar: avatar.iconAvatar,
50938
50960
  size: size,
50939
50961
  className: className,
@@ -50952,7 +50974,7 @@ var Avatar6 = function(t0) {
50952
50974
  }
50953
50975
  var t2;
50954
50976
  if ($[10] !== className || $[11] !== size || $[12] !== style) {
50955
- t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes68.Avatar, {
50977
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes68.Avatar, {
50956
50978
  fallback: "",
50957
50979
  size: size,
50958
50980
  className: className,
@@ -50968,9 +50990,9 @@ var Avatar6 = function(t0) {
50968
50990
  return t2;
50969
50991
  };
50970
50992
  // src/components/components/ComponentsProvider.tsx
50971
- var import_react_compiler_runtime106 = require("react-compiler-runtime");
50993
+ var import_react_compiler_runtime107 = require("react-compiler-runtime");
50972
50994
  var import_react76 = require("react");
50973
- var import_jsx_runtime104 = require("react/jsx-runtime");
50995
+ var import_jsx_runtime105 = require("react/jsx-runtime");
50974
50996
  var _excluded9 = [
50975
50997
  "children"
50976
50998
  ];
@@ -50993,7 +51015,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
50993
51015
  return t;
50994
51016
  }
50995
51017
  var ComponentsProvider = function(t0) {
50996
- var $ = (0, import_react_compiler_runtime106.c)(9);
51018
+ var $ = (0, import_react_compiler_runtime107.c)(9);
50997
51019
  var children;
50998
51020
  var rest;
50999
51021
  if ($[0] !== t0) {
@@ -51023,7 +51045,7 @@ var ComponentsProvider = function(t0) {
51023
51045
  var value = t1;
51024
51046
  var t3;
51025
51047
  if ($[6] !== children || $[7] !== value) {
51026
- t3 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ComponentsContext.Provider, {
51048
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ComponentsContext.Provider, {
51027
51049
  value: value,
51028
51050
  children: children
51029
51051
  });
@@ -51036,11 +51058,11 @@ var ComponentsProvider = function(t0) {
51036
51058
  return t3;
51037
51059
  };
51038
51060
  // src/components/assistants/AssistantProvider/index.tsx
51039
- var import_react_compiler_runtime107 = require("react-compiler-runtime");
51040
- var import_jsx_runtime105 = require("react/jsx-runtime");
51061
+ var import_react_compiler_runtime108 = require("react-compiler-runtime");
51062
+ var import_jsx_runtime106 = require("react/jsx-runtime");
51041
51063
  var AssistantProvider = function(t0) {
51042
51064
  var _assistant$name;
51043
- var $ = (0, import_react_compiler_runtime107.c)(10);
51065
+ var $ = (0, import_react_compiler_runtime108.c)(10);
51044
51066
  var children = t0.children;
51045
51067
  var superinterfaceContext = useSuperinterfaceContext();
51046
51068
  var t1;
@@ -51058,7 +51080,7 @@ var AssistantProvider = function(t0) {
51058
51080
  var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
51059
51081
  var t4;
51060
51082
  if ($[2] !== t3) {
51061
- t4 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Avatar6, {
51083
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Avatar6, {
51062
51084
  avatar: t3
51063
51085
  });
51064
51086
  $[2] = t3;
@@ -51068,7 +51090,7 @@ var AssistantProvider = function(t0) {
51068
51090
  }
51069
51091
  var t5;
51070
51092
  if ($[4] !== children || $[5] !== t4) {
51071
- t5 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(AssistantAvatarContext.Provider, {
51093
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(AssistantAvatarContext.Provider, {
51072
51094
  value: t4,
51073
51095
  children: children
51074
51096
  });
@@ -51080,7 +51102,7 @@ var AssistantProvider = function(t0) {
51080
51102
  }
51081
51103
  var t6;
51082
51104
  if ($[7] !== t2 || $[8] !== t5) {
51083
- t6 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(AssistantNameContext.Provider, {
51105
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(AssistantNameContext.Provider, {
51084
51106
  value: t2,
51085
51107
  children: t5
51086
51108
  });