@superinterface/react 3.25.0 → 3.27.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
@@ -37950,15 +37950,15 @@ var import_react_compiler_runtime75 = require("react-compiler-runtime");
37950
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_runtime56 = require("react-compiler-runtime");
37954
- var import_react41 = require("react");
37955
- var import_themes39 = require("@radix-ui/themes");
37953
+ var import_react_compiler_runtime58 = require("react-compiler-runtime");
37954
+ var import_react42 = require("react");
37955
+ var import_themes41 = require("@radix-ui/themes");
37956
37956
  // src/components/runSteps/RunSteps/index.tsx
37957
- var import_react_compiler_runtime52 = require("react-compiler-runtime");
37958
- var import_themes38 = require("@radix-ui/themes");
37959
- var import_react39 = require("react");
37957
+ var import_react_compiler_runtime54 = require("react-compiler-runtime");
37958
+ var import_themes40 = require("@radix-ui/themes");
37959
+ var import_react40 = require("react");
37960
37960
  // src/contexts/components/ComponentsContext/index.tsx
37961
- var import_react38 = require("react");
37961
+ var import_react39 = require("react");
37962
37962
  // src/components/runSteps/RunStep/index.tsx
37963
37963
  var import_react_compiler_runtime7 = require("react-compiler-runtime");
37964
37964
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
@@ -43115,35 +43115,103 @@ var AssistantAvatarContext = /* @__PURE__ */ (0, import_react31.createContext)(/
43115
43115
  }));
43116
43116
  // src/components/messageGroups/MessageGroup/AssistantAvatar.tsx
43117
43117
  var import_jsx_runtime47 = require("react/jsx-runtime");
43118
- var AssistantAvatar = function() {
43119
- var $ = (0, import_react_compiler_runtime46.c)(3);
43120
- var AssistantAvatarContextValue = (0, import_react32.useContext)(AssistantAvatarContext);
43121
- var t0;
43122
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43123
- t0 = {
43118
+ function ownKeys25(e, r) {
43119
+ var t = Object.keys(e);
43120
+ if (Object.getOwnPropertySymbols) {
43121
+ var o = Object.getOwnPropertySymbols(e);
43122
+ r && (o = o.filter(function(r2) {
43123
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
43124
+ })), t.push.apply(t, o);
43125
+ }
43126
+ return t;
43127
+ }
43128
+ function _objectSpread25(e) {
43129
+ for(var r = 1; r < arguments.length; r++){
43130
+ var t = null != arguments[r] ? arguments[r] : {};
43131
+ r % 2 ? ownKeys25(Object(t), true).forEach(function(r2) {
43132
+ _defineProperty25(e, r2, t[r2]);
43133
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys25(Object(t)).forEach(function(r2) {
43134
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
43135
+ });
43136
+ }
43137
+ return e;
43138
+ }
43139
+ function _defineProperty25(e, r, t) {
43140
+ return (r = _toPropertyKey25(r)) in e ? Object.defineProperty(e, r, {
43141
+ value: t,
43142
+ enumerable: true,
43143
+ configurable: true,
43144
+ writable: true
43145
+ }) : e[r] = t, e;
43146
+ }
43147
+ function _toPropertyKey25(t) {
43148
+ var i = _toPrimitive25(t, "string");
43149
+ return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
43150
+ }
43151
+ function _toPrimitive25(t, r) {
43152
+ if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
43153
+ var e = t[Symbol.toPrimitive];
43154
+ if (void 0 !== e) {
43155
+ var i = e.call(t, r || "default");
43156
+ if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
43157
+ throw new TypeError("@@toPrimitive must return a primitive value.");
43158
+ }
43159
+ return ("string" === r ? String : Number)(t);
43160
+ }
43161
+ var Root2 = function(t0) {
43162
+ var $ = (0, import_react_compiler_runtime46.c)(6);
43163
+ var children = t0.children, style = t0.style, className = t0.className;
43164
+ var t1;
43165
+ if ($[0] !== style) {
43166
+ t1 = _objectSpread25({
43124
43167
  borderRadius: "var(--radius-3)",
43125
43168
  overflow: "hidden"
43126
- };
43127
- $[0] = t0;
43169
+ }, style);
43170
+ $[0] = style;
43171
+ $[1] = t1;
43128
43172
  } else {
43129
- t0 = $[0];
43173
+ t1 = $[1];
43130
43174
  }
43131
- var t1;
43132
- if ($[1] !== AssistantAvatarContextValue) {
43133
- t1 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes31.Flex, {
43175
+ var t2;
43176
+ if ($[2] !== children || $[3] !== className || $[4] !== t1) {
43177
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes31.Flex, {
43134
43178
  flexShrink: "0",
43135
43179
  height: "24px",
43136
43180
  width: "24px",
43137
- style: t0,
43181
+ className: className,
43182
+ style: t1,
43183
+ children: children
43184
+ });
43185
+ $[2] = children;
43186
+ $[3] = className;
43187
+ $[4] = t1;
43188
+ $[5] = t2;
43189
+ } else {
43190
+ t2 = $[5];
43191
+ }
43192
+ return t2;
43193
+ };
43194
+ var AssistantAvatar = function(t0) {
43195
+ var $ = (0, import_react_compiler_runtime46.c)(4);
43196
+ var style = t0.style, className = t0.className;
43197
+ var AssistantAvatarContextValue = (0, import_react32.useContext)(AssistantAvatarContext);
43198
+ var t1;
43199
+ if ($[0] !== AssistantAvatarContextValue || $[1] !== className || $[2] !== style) {
43200
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Root2, {
43201
+ style: style,
43202
+ className: className,
43138
43203
  children: AssistantAvatarContextValue
43139
43204
  });
43140
- $[1] = AssistantAvatarContextValue;
43141
- $[2] = t1;
43205
+ $[0] = AssistantAvatarContextValue;
43206
+ $[1] = className;
43207
+ $[2] = style;
43208
+ $[3] = t1;
43142
43209
  } else {
43143
- t1 = $[2];
43210
+ t1 = $[3];
43144
43211
  }
43145
43212
  return t1;
43146
43213
  };
43214
+ AssistantAvatar.Root = Root2;
43147
43215
  // src/contexts/assistants/AssistantNameContext/index.tsx
43148
43216
  var import_react33 = require("react");
43149
43217
  var AssistantNameContext = /* @__PURE__ */ (0, import_react33.createContext)("Assistant");
@@ -43229,7 +43297,7 @@ var import_react_compiler_runtime49 = require("react-compiler-runtime");
43229
43297
  var import_react36 = require("react");
43230
43298
  var import_themes35 = require("@radix-ui/themes");
43231
43299
  var import_jsx_runtime51 = require("react/jsx-runtime");
43232
- var Root2 = /* @__PURE__ */ (0, import_react36.forwardRef)(function Root3(t0, ref) {
43300
+ var Root3 = /* @__PURE__ */ (0, import_react36.forwardRef)(function Root4(t0, ref) {
43233
43301
  var $ = (0, import_react_compiler_runtime49.c)(7);
43234
43302
  var children = t0.children, style = t0.style, className = t0.className;
43235
43303
  var t1;
@@ -43345,7 +43413,7 @@ var MessageGroup = function(t0) {
43345
43413
  }
43346
43414
  var t2;
43347
43415
  if ($[2] !== className || $[3] !== style || $[4] !== t1) {
43348
- t2 = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Root2, {
43416
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Root3, {
43349
43417
  className: className,
43350
43418
  style: style,
43351
43419
  children: t1
@@ -43359,7 +43427,7 @@ var MessageGroup = function(t0) {
43359
43427
  }
43360
43428
  return t2;
43361
43429
  };
43362
- MessageGroup.Root = Root2;
43430
+ MessageGroup.Root = Root3;
43363
43431
  MessageGroup.Name = Name;
43364
43432
  MessageGroup.AssistantAvatar = AssistantAvatar;
43365
43433
  MessageGroup.UserAvatar = UserAvatar;
@@ -43409,8 +43477,116 @@ var MessageAttachments = function(t0) {
43409
43477
  }
43410
43478
  return t3;
43411
43479
  };
43480
+ // src/components/skeletons/StartingSkeleton/index.tsx
43481
+ var import_react_compiler_runtime53 = require("react-compiler-runtime");
43482
+ var import_react38 = require("react");
43483
+ var import_themes39 = require("@radix-ui/themes");
43484
+ // src/components/skeletons/StartingContentSkeleton/index.tsx
43485
+ var import_react_compiler_runtime52 = require("react-compiler-runtime");
43486
+ var import_themes38 = require("@radix-ui/themes");
43487
+ var import_jsx_runtime54 = require("react/jsx-runtime");
43488
+ var StartingContentSkeleton = function() {
43489
+ var $ = (0, import_react_compiler_runtime52.c)(1);
43490
+ var t0;
43491
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43492
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes38.Skeleton, {
43493
+ loading: true,
43494
+ mt: "1",
43495
+ height: "var(--space-4)",
43496
+ width: "var(--space-4)",
43497
+ style: {
43498
+ borderRadius: "var(--radius-6)",
43499
+ flexShrink: 0
43500
+ }
43501
+ });
43502
+ $[0] = t0;
43503
+ } else {
43504
+ t0 = $[0];
43505
+ }
43506
+ return t0;
43507
+ };
43508
+ // src/components/skeletons/StartingSkeleton/index.tsx
43509
+ var import_jsx_runtime55 = require("react/jsx-runtime");
43510
+ var StartingSkeleton = function(t0) {
43511
+ var $ = (0, import_react_compiler_runtime53.c)(3);
43512
+ var children = t0.children;
43513
+ var t1;
43514
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43515
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Content6, {});
43516
+ $[0] = t1;
43517
+ } else {
43518
+ t1 = $[0];
43519
+ }
43520
+ var t2;
43521
+ if ($[1] !== children) {
43522
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Root5, {
43523
+ children: [
43524
+ children,
43525
+ t1
43526
+ ]
43527
+ });
43528
+ $[1] = children;
43529
+ $[2] = t2;
43530
+ } else {
43531
+ t2 = $[2];
43532
+ }
43533
+ return t2;
43534
+ };
43535
+ var Root5 = function(t0) {
43536
+ var $ = (0, import_react_compiler_runtime53.c)(7);
43537
+ var children = t0.children;
43538
+ var assistantNameContext = (0, import_react38.useContext)(AssistantNameContext);
43539
+ var t1;
43540
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43541
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MessageGroup.AssistantAvatar, {});
43542
+ $[0] = t1;
43543
+ } else {
43544
+ t1 = $[0];
43545
+ }
43546
+ var t2;
43547
+ if ($[1] !== assistantNameContext) {
43548
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MessageGroup.Name, {
43549
+ children: assistantNameContext
43550
+ });
43551
+ $[1] = assistantNameContext;
43552
+ $[2] = t2;
43553
+ } else {
43554
+ t2 = $[2];
43555
+ }
43556
+ var t3;
43557
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
43558
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(StartingContentSkeleton, {});
43559
+ $[3] = t3;
43560
+ } else {
43561
+ t3 = $[3];
43562
+ }
43563
+ var t4;
43564
+ if ($[4] !== children || $[5] !== t2) {
43565
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(MessageGroup.Root, {
43566
+ children: [
43567
+ t1,
43568
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes39.Box, {
43569
+ children: [
43570
+ t2,
43571
+ children,
43572
+ t3
43573
+ ]
43574
+ })
43575
+ ]
43576
+ });
43577
+ $[4] = children;
43578
+ $[5] = t2;
43579
+ $[6] = t4;
43580
+ } else {
43581
+ t4 = $[6];
43582
+ }
43583
+ return t4;
43584
+ };
43585
+ var Content6 = StartingContentSkeleton;
43586
+ StartingSkeleton.Root = Root5;
43587
+ StartingSkeleton.Content = Content6;
43412
43588
  // src/contexts/components/ComponentsContext/index.tsx
43413
- var ComponentsContext = /* @__PURE__ */ (0, import_react38.createContext)({
43589
+ var ComponentsContext = /* @__PURE__ */ (0, import_react39.createContext)({
43414
43590
  components: {
43415
43591
  RunStep: RunStep,
43416
43592
  StartingToolCalls: StartingToolCalls2,
@@ -43421,22 +43597,24 @@ var ComponentsContext = /* @__PURE__ */ (0, import_react38.createContext)({
43421
43597
  TextContent: TextContent,
43422
43598
  ImageFileContent: ImageFileContent,
43423
43599
  MessageGroup: MessageGroup,
43424
- MessageAttachments: MessageAttachments
43600
+ MessageAttachments: MessageAttachments,
43601
+ StartingSkeleton: StartingSkeleton,
43602
+ StartingContentSkeleton: StartingContentSkeleton
43425
43603
  }
43426
43604
  });
43427
43605
  // src/components/runSteps/RunSteps/index.tsx
43428
- var import_jsx_runtime54 = require("react/jsx-runtime");
43606
+ var import_jsx_runtime56 = require("react/jsx-runtime");
43429
43607
  var RunSteps = function(t0) {
43430
- var $ = (0, import_react_compiler_runtime52.c)(7);
43608
+ var $ = (0, import_react_compiler_runtime54.c)(7);
43431
43609
  var runSteps = t0.runSteps;
43432
- var componentsContext = (0, import_react39.useContext)(ComponentsContext);
43610
+ var componentsContext = (0, import_react40.useContext)(ComponentsContext);
43433
43611
  var Component2 = componentsContext.components.RunStep;
43434
43612
  var t1;
43435
43613
  if ($[0] !== Component2 || $[1] !== runSteps) {
43436
43614
  var _t;
43437
43615
  if ($[3] !== Component2) {
43438
43616
  _t = function(runStep) {
43439
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Component2, {
43617
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Component2, {
43440
43618
  runStep: runStep
43441
43619
  }, runStep.id);
43442
43620
  };
@@ -43454,7 +43632,7 @@ var RunSteps = function(t0) {
43454
43632
  }
43455
43633
  var t2;
43456
43634
  if ($[5] !== t1) {
43457
- t2 = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes38.Flex, {
43635
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes40.Flex, {
43458
43636
  direction: "column-reverse",
43459
43637
  children: t1
43460
43638
  });
@@ -43466,23 +43644,23 @@ var RunSteps = function(t0) {
43466
43644
  return t2;
43467
43645
  };
43468
43646
  // src/contexts/messages/MessageContext/index.ts
43469
- var import_react40 = require("react");
43470
- var MessageContext = /* @__PURE__ */ (0, import_react40.createContext)({
43647
+ var import_react41 = require("react");
43648
+ var MessageContext = /* @__PURE__ */ (0, import_react41.createContext)({
43471
43649
  message: null
43472
43650
  });
43473
43651
  // src/components/threads/Thread/Message/Provider.tsx
43474
43652
  var Provider = MessageContext.Provider;
43475
43653
  // src/components/threads/Thread/Message/Attachments/index.tsx
43476
- var import_react_compiler_runtime53 = require("react-compiler-runtime");
43477
- var import_jsx_runtime55 = require("react/jsx-runtime");
43654
+ var import_react_compiler_runtime55 = require("react-compiler-runtime");
43655
+ var import_jsx_runtime57 = require("react/jsx-runtime");
43478
43656
  var Attachments = function(t0) {
43479
- var $ = (0, import_react_compiler_runtime53.c)(3);
43657
+ var $ = (0, import_react_compiler_runtime55.c)(3);
43480
43658
  var message = t0.message;
43481
43659
  var _useComponents = useComponents(), t1 = _useComponents.components;
43482
43660
  var MessageAttachments2 = t1.MessageAttachments;
43483
43661
  var t2;
43484
43662
  if ($[0] !== MessageAttachments2 || $[1] !== message) {
43485
- t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MessageAttachments2, {
43663
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(MessageAttachments2, {
43486
43664
  message: message
43487
43665
  });
43488
43666
  $[0] = MessageAttachments2;
@@ -43494,18 +43672,18 @@ var Attachments = function(t0) {
43494
43672
  return t2;
43495
43673
  };
43496
43674
  // src/components/messages/MessageContent/index.tsx
43497
- var import_react_compiler_runtime55 = require("react-compiler-runtime");
43675
+ var import_react_compiler_runtime57 = require("react-compiler-runtime");
43498
43676
  // src/components/messages/MessageContent/ContentPart/index.tsx
43499
- var import_react_compiler_runtime54 = require("react-compiler-runtime");
43500
- var import_jsx_runtime56 = require("react/jsx-runtime");
43677
+ var import_react_compiler_runtime56 = require("react-compiler-runtime");
43678
+ var import_jsx_runtime58 = require("react/jsx-runtime");
43501
43679
  var TextContent2 = function(t0) {
43502
- var $ = (0, import_react_compiler_runtime54.c)(3);
43680
+ var $ = (0, import_react_compiler_runtime56.c)(3);
43503
43681
  var content2 = t0.content;
43504
43682
  var _useComponents = useComponents(), t1 = _useComponents.components;
43505
43683
  var TextContent3 = t1.TextContent;
43506
43684
  var t2;
43507
43685
  if ($[0] !== TextContent3 || $[1] !== content2) {
43508
- t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TextContent3, {
43686
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TextContent3, {
43509
43687
  content: content2
43510
43688
  });
43511
43689
  $[0] = TextContent3;
@@ -43517,13 +43695,13 @@ var TextContent2 = function(t0) {
43517
43695
  return t2;
43518
43696
  };
43519
43697
  var ImageFileContent2 = function(t0) {
43520
- var $ = (0, import_react_compiler_runtime54.c)(3);
43698
+ var $ = (0, import_react_compiler_runtime56.c)(3);
43521
43699
  var content2 = t0.content;
43522
43700
  var _useComponents = useComponents(), t1 = _useComponents.components;
43523
43701
  var ImageFileContent3 = t1.ImageFileContent;
43524
43702
  var t2;
43525
43703
  if ($[0] !== ImageFileContent3 || $[1] !== content2) {
43526
- t2 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ImageFileContent3, {
43704
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ImageFileContent3, {
43527
43705
  content: content2
43528
43706
  });
43529
43707
  $[0] = ImageFileContent3;
@@ -43535,12 +43713,12 @@ var ImageFileContent2 = function(t0) {
43535
43713
  return t2;
43536
43714
  };
43537
43715
  var ContentPart = function(t0) {
43538
- var $ = (0, import_react_compiler_runtime54.c)(4);
43716
+ var $ = (0, import_react_compiler_runtime56.c)(4);
43539
43717
  var content2 = t0.content;
43540
43718
  if (content2.type === "text") {
43541
43719
  var t1;
43542
43720
  if ($[0] !== content2) {
43543
- t1 = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TextContent2, {
43721
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TextContent2, {
43544
43722
  content: content2
43545
43723
  });
43546
43724
  $[0] = content2;
@@ -43553,7 +43731,7 @@ var ContentPart = function(t0) {
43553
43731
  if (content2.type === "image_file") {
43554
43732
  var _t;
43555
43733
  if ($[2] !== content2) {
43556
- _t = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ImageFileContent2, {
43734
+ _t = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ImageFileContent2, {
43557
43735
  content: content2
43558
43736
  });
43559
43737
  $[2] = content2;
@@ -43566,9 +43744,9 @@ var ContentPart = function(t0) {
43566
43744
  return null;
43567
43745
  };
43568
43746
  // src/components/messages/MessageContent/index.tsx
43569
- var import_jsx_runtime57 = require("react/jsx-runtime");
43747
+ var import_jsx_runtime59 = require("react/jsx-runtime");
43570
43748
  var MessageContent = function(t0) {
43571
- var $ = (0, import_react_compiler_runtime55.c)(4);
43749
+ var $ = (0, import_react_compiler_runtime57.c)(4);
43572
43750
  var message = t0.message;
43573
43751
  var t1;
43574
43752
  if ($[0] !== message.content) {
@@ -43580,7 +43758,7 @@ var MessageContent = function(t0) {
43580
43758
  }
43581
43759
  var t2;
43582
43760
  if ($[2] !== t1) {
43583
- t2 = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, {
43761
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, {
43584
43762
  children: t1
43585
43763
  });
43586
43764
  $[2] = t1;
@@ -43591,14 +43769,14 @@ var MessageContent = function(t0) {
43591
43769
  return t2;
43592
43770
  };
43593
43771
  function _temp2(content2, index) {
43594
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ContentPart, {
43772
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ContentPart, {
43595
43773
  content: content2
43596
43774
  }, index);
43597
43775
  }
43598
43776
  // src/components/threads/Thread/Message/index.tsx
43599
- var import_jsx_runtime58 = require("react/jsx-runtime");
43777
+ var import_jsx_runtime60 = require("react/jsx-runtime");
43600
43778
  var Message = function(t0) {
43601
- var $ = (0, import_react_compiler_runtime56.c)(37);
43779
+ var $ = (0, import_react_compiler_runtime58.c)(37);
43602
43780
  var message = t0.message, className = t0.className, style = t0.style;
43603
43781
  var t1;
43604
43782
  bb0: {
@@ -43706,7 +43884,7 @@ var Message = function(t0) {
43706
43884
  }
43707
43885
  var t3;
43708
43886
  if ($[21] !== olderRunSteps_0) {
43709
- t3 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(RunSteps, {
43887
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RunSteps, {
43710
43888
  runSteps: olderRunSteps_0
43711
43889
  });
43712
43890
  $[21] = olderRunSteps_0;
@@ -43725,13 +43903,13 @@ var Message = function(t0) {
43725
43903
  }
43726
43904
  var t5;
43727
43905
  if ($[24] !== message) {
43728
- t5 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes39.Box, {
43906
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes41.Box, {
43729
43907
  style: t4,
43730
43908
  children: [
43731
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Attachments, {
43909
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Attachments, {
43732
43910
  message: message
43733
43911
  }),
43734
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MessageContent, {
43912
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MessageContent, {
43735
43913
  message: message
43736
43914
  })
43737
43915
  ]
@@ -43743,7 +43921,7 @@ var Message = function(t0) {
43743
43921
  }
43744
43922
  var t6;
43745
43923
  if ($[26] !== laterRunSteps_0) {
43746
- t6 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(RunSteps, {
43924
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RunSteps, {
43747
43925
  runSteps: laterRunSteps_0
43748
43926
  });
43749
43927
  $[26] = laterRunSteps_0;
@@ -43753,7 +43931,7 @@ var Message = function(t0) {
43753
43931
  }
43754
43932
  var t7;
43755
43933
  if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
43756
- t7 = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes39.Box, {
43934
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes41.Box, {
43757
43935
  className: className,
43758
43936
  style: style,
43759
43937
  children: [
@@ -43773,7 +43951,7 @@ var Message = function(t0) {
43773
43951
  }
43774
43952
  var t8;
43775
43953
  if ($[34] !== t2 || $[35] !== t7) {
43776
- t8 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Provider, {
43954
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Provider, {
43777
43955
  value: t2,
43778
43956
  children: t7
43779
43957
  });
@@ -43792,11 +43970,11 @@ function _temp22(runStep_1) {
43792
43970
  return runStep_1.step_details.type === "message_creation";
43793
43971
  }
43794
43972
  // src/components/threads/Thread/Messages/Content/index.tsx
43795
- var import_react_compiler_runtime59 = require("react-compiler-runtime");
43796
- var import_react44 = require("react");
43973
+ var import_react_compiler_runtime61 = require("react-compiler-runtime");
43974
+ var import_react45 = require("react");
43797
43975
  // src/hooks/messageGroups/useMessageGroups/index.ts
43798
- var import_react_compiler_runtime57 = require("react-compiler-runtime");
43799
- var import_react42 = require("react");
43976
+ var import_react_compiler_runtime59 = require("react-compiler-runtime");
43977
+ var import_react43 = require("react");
43800
43978
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
43801
43979
  var import_lodash6 = __toESM(require("lodash"), 1);
43802
43980
  var import_radash13 = require("radash");
@@ -43830,7 +44008,7 @@ var newGroup = function(_ref) {
43830
44008
  ]);
43831
44009
  };
43832
44010
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
43833
- function ownKeys25(e, r) {
44011
+ function ownKeys26(e, r) {
43834
44012
  var t = Object.keys(e);
43835
44013
  if (Object.getOwnPropertySymbols) {
43836
44014
  var o = Object.getOwnPropertySymbols(e);
@@ -43840,30 +44018,30 @@ function ownKeys25(e, r) {
43840
44018
  }
43841
44019
  return t;
43842
44020
  }
43843
- function _objectSpread25(e) {
44021
+ function _objectSpread26(e) {
43844
44022
  for(var r = 1; r < arguments.length; r++){
43845
44023
  var t = null != arguments[r] ? arguments[r] : {};
43846
- r % 2 ? ownKeys25(Object(t), true).forEach(function(r2) {
43847
- _defineProperty25(e, r2, t[r2]);
43848
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys25(Object(t)).forEach(function(r2) {
44024
+ r % 2 ? ownKeys26(Object(t), true).forEach(function(r2) {
44025
+ _defineProperty26(e, r2, t[r2]);
44026
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys26(Object(t)).forEach(function(r2) {
43849
44027
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
43850
44028
  });
43851
44029
  }
43852
44030
  return e;
43853
44031
  }
43854
- function _defineProperty25(e, r, t) {
43855
- return (r = _toPropertyKey25(r)) in e ? Object.defineProperty(e, r, {
44032
+ function _defineProperty26(e, r, t) {
44033
+ return (r = _toPropertyKey26(r)) in e ? Object.defineProperty(e, r, {
43856
44034
  value: t,
43857
44035
  enumerable: true,
43858
44036
  configurable: true,
43859
44037
  writable: true
43860
44038
  }) : e[r] = t, e;
43861
44039
  }
43862
- function _toPropertyKey25(t) {
43863
- var i = _toPrimitive25(t, "string");
44040
+ function _toPropertyKey26(t) {
44041
+ var i = _toPrimitive26(t, "string");
43864
44042
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
43865
44043
  }
43866
- function _toPrimitive25(t, r) {
44044
+ function _toPrimitive26(t, r) {
43867
44045
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
43868
44046
  var e = t[Symbol.toPrimitive];
43869
44047
  if (void 0 !== e) {
@@ -43890,7 +44068,7 @@ var messageGroups = function(_ref) {
43890
44068
  });
43891
44069
  }
43892
44070
  return _to_consumable_array(import_lodash6.default.dropRight(groups)).concat([
43893
- _objectSpread25(_objectSpread25({}, group), {}, {
44071
+ _objectSpread26(_objectSpread26({}, group), {}, {
43894
44072
  messages: _to_consumable_array(group.messages).concat([
43895
44073
  message
43896
44074
  ])
@@ -43900,7 +44078,7 @@ var messageGroups = function(_ref) {
43900
44078
  };
43901
44079
  // src/hooks/messageGroups/useMessageGroups/index.ts
43902
44080
  var useMessageGroups = function(t0) {
43903
- var $ = (0, import_react_compiler_runtime57.c)(4);
44081
+ var $ = (0, import_react_compiler_runtime59.c)(4);
43904
44082
  var messages2 = t0.messages;
43905
44083
  var t1;
43906
44084
  var t2;
@@ -43927,18 +44105,18 @@ var useMessageGroups = function(t0) {
43927
44105
  return t1;
43928
44106
  };
43929
44107
  // src/components/skeletons/MessagesSkeleton/index.tsx
43930
- var import_react_compiler_runtime58 = require("react-compiler-runtime");
43931
- var import_react43 = require("react");
43932
- var import_themes40 = require("@radix-ui/themes");
43933
- var import_jsx_runtime59 = require("react/jsx-runtime");
43934
- var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function MessagesSkeleton2(_props, ref) {
43935
- var $ = (0, import_react_compiler_runtime58.c)(7);
44108
+ var import_react_compiler_runtime60 = require("react-compiler-runtime");
44109
+ var import_react44 = require("react");
44110
+ var import_themes42 = require("@radix-ui/themes");
44111
+ var import_jsx_runtime61 = require("react/jsx-runtime");
44112
+ var MessagesSkeleton = /* @__PURE__ */ (0, import_react44.forwardRef)(function MessagesSkeleton2(_props, ref) {
44113
+ var $ = (0, import_react_compiler_runtime60.c)(7);
43936
44114
  var t0;
43937
44115
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43938
- t0 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
44116
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43939
44117
  loading: true,
43940
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Avatar, {
43941
- fallback: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Flex, {}),
44118
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Avatar, {
44119
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Flex, {}),
43942
44120
  size: "1"
43943
44121
  })
43944
44122
  });
@@ -43948,8 +44126,8 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43948
44126
  }
43949
44127
  var t1;
43950
44128
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
43951
- t1 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MessageGroup.Name, {
43952
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
44129
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MessageGroup.Name, {
44130
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43953
44131
  loading: true,
43954
44132
  style: {
43955
44133
  width: "128px"
@@ -43962,7 +44140,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43962
44140
  }
43963
44141
  var t2;
43964
44142
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
43965
- t2 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
44143
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43966
44144
  loading: true,
43967
44145
  style: {
43968
44146
  width: "256px"
@@ -43974,7 +44152,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43974
44152
  }
43975
44153
  var t3;
43976
44154
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
43977
- t3 = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
44155
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43978
44156
  loading: true,
43979
44157
  style: {
43980
44158
  width: "256px",
@@ -43987,13 +44165,13 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
43987
44165
  }
43988
44166
  var t4;
43989
44167
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
43990
- t4 = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes40.Box, {
44168
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_themes42.Box, {
43991
44169
  pb: "3",
43992
44170
  children: [
43993
44171
  t1,
43994
44172
  t2,
43995
44173
  t3,
43996
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes40.Skeleton, {
44174
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes42.Skeleton, {
43997
44175
  loading: true,
43998
44176
  style: {
43999
44177
  width: "256px",
@@ -44008,7 +44186,7 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
44008
44186
  }
44009
44187
  var t5;
44010
44188
  if ($[5] !== ref) {
44011
- t5 = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(MessageGroup.Root, {
44189
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(MessageGroup.Root, {
44012
44190
  ref: ref,
44013
44191
  children: [
44014
44192
  t0,
@@ -44023,9 +44201,9 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react43.forwardRef)(function M
44023
44201
  return t5;
44024
44202
  });
44025
44203
  // src/components/threads/Thread/Messages/Content/index.tsx
44026
- var import_jsx_runtime60 = require("react/jsx-runtime");
44027
- var Content6 = function() {
44028
- var $ = (0, import_react_compiler_runtime59.c)(14);
44204
+ var import_jsx_runtime62 = require("react/jsx-runtime");
44205
+ var Content7 = function() {
44206
+ var $ = (0, import_react_compiler_runtime61.c)(14);
44029
44207
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
44030
44208
  var addToast = useToasts().addToast;
44031
44209
  var t0;
@@ -44064,11 +44242,11 @@ var Content6 = function() {
44064
44242
  t2 = $[4];
44065
44243
  t3 = $[5];
44066
44244
  }
44067
- (0, import_react44.useEffect)(t2, t3);
44245
+ (0, import_react45.useEffect)(t2, t3);
44068
44246
  if (isLoading || isLoadingError) {
44069
44247
  var _t;
44070
44248
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
44071
- _t = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MessagesSkeleton, {});
44249
+ _t = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessagesSkeleton, {});
44072
44250
  $[6] = _t;
44073
44251
  } else {
44074
44252
  _t = $[6];
@@ -44080,7 +44258,7 @@ var Content6 = function() {
44080
44258
  var _t2;
44081
44259
  if ($[10] !== MessageGroup2) {
44082
44260
  _t2 = function(messageGroup) {
44083
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MessageGroup2, {
44261
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessageGroup2, {
44084
44262
  messageGroup: messageGroup
44085
44263
  }, messageGroup.id);
44086
44264
  };
@@ -44098,7 +44276,7 @@ var Content6 = function() {
44098
44276
  }
44099
44277
  var t5;
44100
44278
  if ($[12] !== t4) {
44101
- t5 = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, {
44279
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_jsx_runtime62.Fragment, {
44102
44280
  children: t4
44103
44281
  });
44104
44282
  $[12] = t4;
@@ -44112,88 +44290,35 @@ var Content6 = function() {
44112
44290
  var import_react_compiler_runtime62 = require("react-compiler-runtime");
44113
44291
  var import_react46 = require("react");
44114
44292
  var import_themes43 = require("@radix-ui/themes");
44115
- // src/components/skeletons/StartingSkeleton/index.tsx
44116
- var import_react_compiler_runtime61 = require("react-compiler-runtime");
44117
- var import_react45 = require("react");
44118
- var import_themes42 = require("@radix-ui/themes");
44119
- // src/components/skeletons/StartingContentSkeleton/index.tsx
44120
- var import_react_compiler_runtime60 = require("react-compiler-runtime");
44121
- var import_themes41 = require("@radix-ui/themes");
44122
- var import_jsx_runtime61 = require("react/jsx-runtime");
44123
- var StartingContentSkeleton = function() {
44124
- var $ = (0, import_react_compiler_runtime60.c)(1);
44125
- var t0;
44126
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44127
- t0 = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_themes41.Skeleton, {
44128
- loading: true,
44129
- mt: "1",
44130
- height: "var(--space-4)",
44131
- width: "var(--space-4)",
44132
- style: {
44133
- borderRadius: "var(--radius-6)",
44134
- flexShrink: 0
44135
- }
44136
- });
44137
- $[0] = t0;
44293
+ var import_jsx_runtime63 = require("react/jsx-runtime");
44294
+ var StartingSkeleton2 = function() {
44295
+ var $ = (0, import_react_compiler_runtime62.c)(2);
44296
+ var _useComponents = useComponents(), t0 = _useComponents.components;
44297
+ var StartingSkeleton3 = t0.StartingSkeleton;
44298
+ var t1;
44299
+ if ($[0] !== StartingSkeleton3) {
44300
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingSkeleton3, {});
44301
+ $[0] = StartingSkeleton3;
44302
+ $[1] = t1;
44138
44303
  } else {
44139
- t0 = $[0];
44304
+ t1 = $[1];
44140
44305
  }
44141
- return t0;
44306
+ return t1;
44142
44307
  };
44143
- // src/components/skeletons/StartingSkeleton/index.tsx
44144
- var import_jsx_runtime62 = require("react/jsx-runtime");
44145
- var StartingSkeleton = function(t0) {
44146
- var $ = (0, import_react_compiler_runtime61.c)(7);
44147
- var children = t0.children;
44148
- var assistantNameContext = (0, import_react45.useContext)(AssistantNameContext);
44308
+ var StartingContentSkeleton2 = function() {
44309
+ var $ = (0, import_react_compiler_runtime62.c)(2);
44310
+ var _useComponents = useComponents(), t0 = _useComponents.components;
44311
+ var StartingContentSkeleton3 = t0.StartingContentSkeleton;
44149
44312
  var t1;
44150
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44151
- t1 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessageGroup.AssistantAvatar, {});
44152
- $[0] = t1;
44153
- } else {
44154
- t1 = $[0];
44155
- }
44156
- var t2;
44157
- if ($[1] !== assistantNameContext) {
44158
- t2 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MessageGroup.Name, {
44159
- children: assistantNameContext
44160
- });
44161
- $[1] = assistantNameContext;
44162
- $[2] = t2;
44163
- } else {
44164
- t2 = $[2];
44165
- }
44166
- var t3;
44167
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
44168
- t3 = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(StartingContentSkeleton, {});
44169
- $[3] = t3;
44170
- } else {
44171
- t3 = $[3];
44172
- }
44173
- var t4;
44174
- if ($[4] !== children || $[5] !== t2) {
44175
- t4 = /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(MessageGroup.Root, {
44176
- children: [
44177
- t1,
44178
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes42.Box, {
44179
- children: [
44180
- t2,
44181
- children,
44182
- t3
44183
- ]
44184
- })
44185
- ]
44186
- });
44187
- $[4] = children;
44188
- $[5] = t2;
44189
- $[6] = t4;
44313
+ if ($[0] !== StartingContentSkeleton3) {
44314
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingContentSkeleton3, {});
44315
+ $[0] = StartingContentSkeleton3;
44316
+ $[1] = t1;
44190
44317
  } else {
44191
- t4 = $[6];
44318
+ t1 = $[1];
44192
44319
  }
44193
- return t4;
44320
+ return t1;
44194
44321
  };
44195
- // src/components/threads/Thread/Messages/Progress/index.tsx
44196
- var import_jsx_runtime63 = require("react/jsx-runtime");
44197
44322
  var Progress = function() {
44198
44323
  var $ = (0, import_react_compiler_runtime62.c)(3);
44199
44324
  var latestMessage = useLatestMessage().latestMessage;
@@ -44228,7 +44353,7 @@ var Progress = function() {
44228
44353
  if (isStartingSkeletonVisible) {
44229
44354
  var t1;
44230
44355
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44231
- t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingSkeleton, {});
44356
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingSkeleton2, {});
44232
44357
  $[0] = t1;
44233
44358
  } else {
44234
44359
  t1 = $[0];
@@ -44238,11 +44363,7 @@ var Progress = function() {
44238
44363
  if (isMutatingMessage) {
44239
44364
  var _t;
44240
44365
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
44241
- _t = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes43.Flex, {
44242
- flexShrink: "0",
44243
- height: "24px",
44244
- width: "24px"
44245
- });
44366
+ _t = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MessageGroup.AssistantAvatar.Root, {});
44246
44367
  $[1] = _t;
44247
44368
  } else {
44248
44369
  _t = $[1];
@@ -44253,7 +44374,7 @@ var Progress = function() {
44253
44374
  children: [
44254
44375
  _t,
44255
44376
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes43.Box, {
44256
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingContentSkeleton, {})
44377
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StartingContentSkeleton2, {})
44257
44378
  })
44258
44379
  ]
44259
44380
  });
@@ -44320,7 +44441,7 @@ var useInfiniteScroll = function(_ref) {
44320
44441
  };
44321
44442
  // src/components/threads/Thread/Messages/Root/index.tsx
44322
44443
  var import_jsx_runtime64 = require("react/jsx-runtime");
44323
- function ownKeys26(e, r) {
44444
+ function ownKeys27(e, r) {
44324
44445
  var t = Object.keys(e);
44325
44446
  if (Object.getOwnPropertySymbols) {
44326
44447
  var o = Object.getOwnPropertySymbols(e);
@@ -44330,30 +44451,30 @@ function ownKeys26(e, r) {
44330
44451
  }
44331
44452
  return t;
44332
44453
  }
44333
- function _objectSpread26(e) {
44454
+ function _objectSpread27(e) {
44334
44455
  for(var r = 1; r < arguments.length; r++){
44335
44456
  var t = null != arguments[r] ? arguments[r] : {};
44336
- r % 2 ? ownKeys26(Object(t), true).forEach(function(r2) {
44337
- _defineProperty26(e, r2, t[r2]);
44338
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys26(Object(t)).forEach(function(r2) {
44457
+ r % 2 ? ownKeys27(Object(t), true).forEach(function(r2) {
44458
+ _defineProperty27(e, r2, t[r2]);
44459
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys27(Object(t)).forEach(function(r2) {
44339
44460
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44340
44461
  });
44341
44462
  }
44342
44463
  return e;
44343
44464
  }
44344
- function _defineProperty26(e, r, t) {
44345
- return (r = _toPropertyKey26(r)) in e ? Object.defineProperty(e, r, {
44465
+ function _defineProperty27(e, r, t) {
44466
+ return (r = _toPropertyKey27(r)) in e ? Object.defineProperty(e, r, {
44346
44467
  value: t,
44347
44468
  enumerable: true,
44348
44469
  configurable: true,
44349
44470
  writable: true
44350
44471
  }) : e[r] = t, e;
44351
44472
  }
44352
- function _toPropertyKey26(t) {
44353
- var i = _toPrimitive26(t, "string");
44473
+ function _toPropertyKey27(t) {
44474
+ var i = _toPrimitive27(t, "string");
44354
44475
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44355
44476
  }
44356
- function _toPrimitive26(t, r) {
44477
+ function _toPrimitive27(t, r) {
44357
44478
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44358
44479
  var e = t[Symbol.toPrimitive];
44359
44480
  if (void 0 !== e) {
@@ -44363,7 +44484,7 @@ function _toPrimitive26(t, r) {
44363
44484
  }
44364
44485
  return ("string" === r ? String : Number)(t);
44365
44486
  }
44366
- var Root4 = function(t0) {
44487
+ var Root6 = function(t0) {
44367
44488
  var $ = (0, import_react_compiler_runtime63.c)(18);
44368
44489
  var children = t0.children, style = t0.style, className = t0.className;
44369
44490
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
@@ -44392,7 +44513,7 @@ var Root4 = function(t0) {
44392
44513
  }
44393
44514
  var t3;
44394
44515
  if ($[6] !== t2) {
44395
- t3 = _objectSpread26({
44516
+ t3 = _objectSpread27({
44396
44517
  overflow: "auto"
44397
44518
  }, t2);
44398
44519
  $[6] = t2;
@@ -44487,7 +44608,7 @@ var Messages2 = function(t0) {
44487
44608
  var t4;
44488
44609
  var t5;
44489
44610
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44490
- t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Content6, {});
44611
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Content7, {});
44491
44612
  t4 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NextPageSkeleton, {});
44492
44613
  t5 = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_themes45.Flex, {
44493
44614
  flexShrink: "0",
@@ -44504,7 +44625,7 @@ var Messages2 = function(t0) {
44504
44625
  }
44505
44626
  var t6;
44506
44627
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
44507
- t6 = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Root4, {
44628
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Root6, {
44508
44629
  style: style,
44509
44630
  className: className,
44510
44631
  children: [
@@ -44525,7 +44646,7 @@ var Messages2 = function(t0) {
44525
44646
  }
44526
44647
  return t6;
44527
44648
  };
44528
- Messages2.Root = Root4;
44649
+ Messages2.Root = Root6;
44529
44650
  Messages2.Message = Message;
44530
44651
  Messages2.NextPageSkeleton = NextPageSkeleton;
44531
44652
  // src/components/threads/Thread/MessageForm/index.tsx
@@ -44552,7 +44673,7 @@ var useMessageFormContext = function() {
44552
44673
  };
44553
44674
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
44554
44675
  var import_jsx_runtime67 = require("react/jsx-runtime");
44555
- function ownKeys27(e, r) {
44676
+ function ownKeys28(e, r) {
44556
44677
  var t = Object.keys(e);
44557
44678
  if (Object.getOwnPropertySymbols) {
44558
44679
  var o = Object.getOwnPropertySymbols(e);
@@ -44562,30 +44683,30 @@ function ownKeys27(e, r) {
44562
44683
  }
44563
44684
  return t;
44564
44685
  }
44565
- function _objectSpread27(e) {
44686
+ function _objectSpread28(e) {
44566
44687
  for(var r = 1; r < arguments.length; r++){
44567
44688
  var t = null != arguments[r] ? arguments[r] : {};
44568
- r % 2 ? ownKeys27(Object(t), true).forEach(function(r2) {
44569
- _defineProperty27(e, r2, t[r2]);
44570
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys27(Object(t)).forEach(function(r2) {
44689
+ r % 2 ? ownKeys28(Object(t), true).forEach(function(r2) {
44690
+ _defineProperty28(e, r2, t[r2]);
44691
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys28(Object(t)).forEach(function(r2) {
44571
44692
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44572
44693
  });
44573
44694
  }
44574
44695
  return e;
44575
44696
  }
44576
- function _defineProperty27(e, r, t) {
44577
- return (r = _toPropertyKey27(r)) in e ? Object.defineProperty(e, r, {
44697
+ function _defineProperty28(e, r, t) {
44698
+ return (r = _toPropertyKey28(r)) in e ? Object.defineProperty(e, r, {
44578
44699
  value: t,
44579
44700
  enumerable: true,
44580
44701
  configurable: true,
44581
44702
  writable: true
44582
44703
  }) : e[r] = t, e;
44583
44704
  }
44584
- function _toPropertyKey27(t) {
44585
- var i = _toPrimitive27(t, "string");
44705
+ function _toPropertyKey28(t) {
44706
+ var i = _toPrimitive28(t, "string");
44586
44707
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44587
44708
  }
44588
- function _toPrimitive27(t, r) {
44709
+ function _toPrimitive28(t, r) {
44589
44710
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44590
44711
  var e = t[Symbol.toPrimitive];
44591
44712
  if (void 0 !== e) {
@@ -44595,7 +44716,7 @@ function _toPrimitive27(t, r) {
44595
44716
  }
44596
44717
  return ("string" === r ? String : Number)(t);
44597
44718
  }
44598
- var Root5 = function(t0) {
44719
+ var Root7 = function(t0) {
44599
44720
  var $ = (0, import_react_compiler_runtime66.c)(4);
44600
44721
  var children = t0.children, style = t0.style, className = t0.className;
44601
44722
  var t1;
@@ -44641,7 +44762,7 @@ var Button3 = function(props) {
44641
44762
  }
44642
44763
  var _t3;
44643
44764
  if ($[3] !== props || $[4] !== _t) {
44644
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44765
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread28(_objectSpread28({
44645
44766
  type: "button",
44646
44767
  onClick: _t
44647
44768
  }, props), {}, {
@@ -44665,7 +44786,7 @@ var Button3 = function(props) {
44665
44786
  }
44666
44787
  var t2;
44667
44788
  if ($[7] !== props || $[8] !== t0) {
44668
- t2 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread27(_objectSpread27({
44789
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes46.IconButton, _objectSpread28(_objectSpread28({
44669
44790
  type: "submit",
44670
44791
  disabled: t0
44671
44792
  }, props), {}, {
@@ -44690,7 +44811,7 @@ var Submit = function(props) {
44690
44811
  }
44691
44812
  var t1;
44692
44813
  if ($[1] !== props) {
44693
- t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root5, _objectSpread27(_objectSpread27({}, props), {}, {
44814
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root7, _objectSpread28(_objectSpread28({}, props), {}, {
44694
44815
  children: t0
44695
44816
  }));
44696
44817
  $[1] = props;
@@ -44700,7 +44821,7 @@ var Submit = function(props) {
44700
44821
  }
44701
44822
  return t1;
44702
44823
  };
44703
- Submit.Root = Root5;
44824
+ Submit.Root = Root7;
44704
44825
  Submit.Button = Button3;
44705
44826
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44706
44827
  var import_react_query6 = require("@tanstack/react-query");
@@ -44719,7 +44840,7 @@ var formOptions = {
44719
44840
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44720
44841
  var import_radash14 = require("radash");
44721
44842
  var import_jsx_runtime68 = require("react/jsx-runtime");
44722
- function ownKeys28(e, r) {
44843
+ function ownKeys29(e, r) {
44723
44844
  var t = Object.keys(e);
44724
44845
  if (Object.getOwnPropertySymbols) {
44725
44846
  var o = Object.getOwnPropertySymbols(e);
@@ -44729,30 +44850,30 @@ function ownKeys28(e, r) {
44729
44850
  }
44730
44851
  return t;
44731
44852
  }
44732
- function _objectSpread28(e) {
44853
+ function _objectSpread29(e) {
44733
44854
  for(var r = 1; r < arguments.length; r++){
44734
44855
  var t = null != arguments[r] ? arguments[r] : {};
44735
- r % 2 ? ownKeys28(Object(t), true).forEach(function(r2) {
44736
- _defineProperty28(e, r2, t[r2]);
44737
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys28(Object(t)).forEach(function(r2) {
44856
+ r % 2 ? ownKeys29(Object(t), true).forEach(function(r2) {
44857
+ _defineProperty29(e, r2, t[r2]);
44858
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys29(Object(t)).forEach(function(r2) {
44738
44859
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44739
44860
  });
44740
44861
  }
44741
44862
  return e;
44742
44863
  }
44743
- function _defineProperty28(e, r, t) {
44744
- return (r = _toPropertyKey28(r)) in e ? Object.defineProperty(e, r, {
44864
+ function _defineProperty29(e, r, t) {
44865
+ return (r = _toPropertyKey29(r)) in e ? Object.defineProperty(e, r, {
44745
44866
  value: t,
44746
44867
  enumerable: true,
44747
44868
  configurable: true,
44748
44869
  writable: true
44749
44870
  }) : e[r] = t, e;
44750
44871
  }
44751
- function _toPropertyKey28(t) {
44752
- var i = _toPrimitive28(t, "string");
44872
+ function _toPropertyKey29(t) {
44873
+ var i = _toPrimitive29(t, "string");
44753
44874
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44754
44875
  }
44755
- function _toPrimitive28(t, r) {
44876
+ function _toPrimitive29(t, r) {
44756
44877
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44757
44878
  var e = t[Symbol.toPrimitive];
44758
44879
  if (void 0 !== e) {
@@ -44785,7 +44906,7 @@ function _asyncToGenerator6(n) {
44785
44906
  });
44786
44907
  };
44787
44908
  }
44788
- var Root6 = function(_ref) {
44909
+ var Root8 = function(_ref) {
44789
44910
  "use no memo";
44790
44911
  var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
44791
44912
  var _$_ref = _sliced_to_array((0, import_react51.useState)([]), 2), files = _$_ref[0], setFiles = _$_ref[1];
@@ -44858,7 +44979,7 @@ var Root6 = function(_ref) {
44858
44979
  });
44859
44980
  return [
44860
44981
  4,
44861
- createMessage(_objectSpread28({
44982
+ createMessage(_objectSpread29({
44862
44983
  // @ts-ignore-next-line
44863
44984
  content: data2.content
44864
44985
  }, attachments.length ? {
@@ -44887,7 +45008,7 @@ var Root6 = function(_ref) {
44887
45008
  isFileLoading: isFileLoading,
44888
45009
  content: content2
44889
45010
  },
44890
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_hook_form.FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
45011
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_hook_form.FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
44891
45012
  children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes47.Box, {
44892
45013
  asChild: true,
44893
45014
  flexShrink: "0",
@@ -44928,7 +45049,7 @@ var _excluded3 = [
44928
45049
  "style",
44929
45050
  "className"
44930
45051
  ];
44931
- function ownKeys29(e, r) {
45052
+ function ownKeys30(e, r) {
44932
45053
  var t = Object.keys(e);
44933
45054
  if (Object.getOwnPropertySymbols) {
44934
45055
  var o = Object.getOwnPropertySymbols(e);
@@ -44938,30 +45059,30 @@ function ownKeys29(e, r) {
44938
45059
  }
44939
45060
  return t;
44940
45061
  }
44941
- function _objectSpread29(e) {
45062
+ function _objectSpread30(e) {
44942
45063
  for(var r = 1; r < arguments.length; r++){
44943
45064
  var t = null != arguments[r] ? arguments[r] : {};
44944
- r % 2 ? ownKeys29(Object(t), true).forEach(function(r2) {
44945
- _defineProperty29(e, r2, t[r2]);
44946
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys29(Object(t)).forEach(function(r2) {
45065
+ r % 2 ? ownKeys30(Object(t), true).forEach(function(r2) {
45066
+ _defineProperty30(e, r2, t[r2]);
45067
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys30(Object(t)).forEach(function(r2) {
44947
45068
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
44948
45069
  });
44949
45070
  }
44950
45071
  return e;
44951
45072
  }
44952
- function _defineProperty29(e, r, t) {
44953
- return (r = _toPropertyKey29(r)) in e ? Object.defineProperty(e, r, {
45073
+ function _defineProperty30(e, r, t) {
45074
+ return (r = _toPropertyKey30(r)) in e ? Object.defineProperty(e, r, {
44954
45075
  value: t,
44955
45076
  enumerable: true,
44956
45077
  configurable: true,
44957
45078
  writable: true
44958
45079
  }) : e[r] = t, e;
44959
45080
  }
44960
- function _toPropertyKey29(t) {
44961
- var i = _toPrimitive29(t, "string");
45081
+ function _toPropertyKey30(t) {
45082
+ var i = _toPrimitive30(t, "string");
44962
45083
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
44963
45084
  }
44964
- function _toPrimitive29(t, r) {
45085
+ function _toPrimitive30(t, r) {
44965
45086
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
44966
45087
  var e = t[Symbol.toPrimitive];
44967
45088
  if (void 0 !== e) {
@@ -45029,7 +45150,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45029
45150
  }
45030
45151
  var t4;
45031
45152
  if ($[7] !== t3) {
45032
- t4 = _objectSpread29({
45153
+ t4 = _objectSpread30({
45033
45154
  border: 0,
45034
45155
  outline: 0,
45035
45156
  boxSizing: "border-box",
@@ -45048,7 +45169,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45048
45169
  t5 = /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, {
45049
45170
  children: [
45050
45171
  t1,
45051
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_textarea_autosize.default, _objectSpread29({
45172
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_textarea_autosize.default, _objectSpread30({
45052
45173
  ref: ref,
45053
45174
  className: t2,
45054
45175
  style: t4
@@ -45067,7 +45188,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
45067
45188
  });
45068
45189
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
45069
45190
  var import_jsx_runtime70 = require("react/jsx-runtime");
45070
- function ownKeys30(e, r) {
45191
+ function ownKeys31(e, r) {
45071
45192
  var t = Object.keys(e);
45072
45193
  if (Object.getOwnPropertySymbols) {
45073
45194
  var o = Object.getOwnPropertySymbols(e);
@@ -45077,30 +45198,30 @@ function ownKeys30(e, r) {
45077
45198
  }
45078
45199
  return t;
45079
45200
  }
45080
- function _objectSpread30(e) {
45201
+ function _objectSpread31(e) {
45081
45202
  for(var r = 1; r < arguments.length; r++){
45082
45203
  var t = null != arguments[r] ? arguments[r] : {};
45083
- r % 2 ? ownKeys30(Object(t), true).forEach(function(r2) {
45084
- _defineProperty30(e, r2, t[r2]);
45085
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys30(Object(t)).forEach(function(r2) {
45204
+ r % 2 ? ownKeys31(Object(t), true).forEach(function(r2) {
45205
+ _defineProperty31(e, r2, t[r2]);
45206
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys31(Object(t)).forEach(function(r2) {
45086
45207
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45087
45208
  });
45088
45209
  }
45089
45210
  return e;
45090
45211
  }
45091
- function _defineProperty30(e, r, t) {
45092
- return (r = _toPropertyKey30(r)) in e ? Object.defineProperty(e, r, {
45212
+ function _defineProperty31(e, r, t) {
45213
+ return (r = _toPropertyKey31(r)) in e ? Object.defineProperty(e, r, {
45093
45214
  value: t,
45094
45215
  enumerable: true,
45095
45216
  configurable: true,
45096
45217
  writable: true
45097
45218
  }) : e[r] = t, e;
45098
45219
  }
45099
- function _toPropertyKey30(t) {
45100
- var i = _toPrimitive30(t, "string");
45220
+ function _toPropertyKey31(t) {
45221
+ var i = _toPrimitive31(t, "string");
45101
45222
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45102
45223
  }
45103
- function _toPrimitive30(t, r) {
45224
+ function _toPrimitive31(t, r) {
45104
45225
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45105
45226
  var e = t[Symbol.toPrimitive];
45106
45227
  if (void 0 !== e) {
@@ -45110,7 +45231,7 @@ function _toPrimitive30(t, r) {
45110
45231
  }
45111
45232
  return ("string" === r ? String : Number)(t);
45112
45233
  }
45113
- var Root7 = function(t0) {
45234
+ var Root9 = function(t0) {
45114
45235
  var $ = (0, import_react_compiler_runtime68.c)(4);
45115
45236
  var children = t0.children, style = t0.style, className = t0.className;
45116
45237
  var t1;
@@ -45156,7 +45277,7 @@ var Input = function(props) {
45156
45277
  isDisabledPrevious,
45157
45278
  textareaProps
45158
45279
  ]);
45159
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
45280
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TextareaBase, _objectSpread31(_objectSpread31(_objectSpread31({
45160
45281
  minRows: 1,
45161
45282
  placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
45162
45283
  disabled: isDisabled,
@@ -45186,7 +45307,7 @@ var Control = function(props) {
45186
45307
  }
45187
45308
  var t1;
45188
45309
  if ($[1] !== props) {
45189
- t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Root7, _objectSpread30(_objectSpread30({}, props), {}, {
45310
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Root9, _objectSpread31(_objectSpread31({}, props), {}, {
45190
45311
  children: t0
45191
45312
  }));
45192
45313
  $[1] = props;
@@ -45196,14 +45317,14 @@ var Control = function(props) {
45196
45317
  }
45197
45318
  return t1;
45198
45319
  };
45199
- Control.Root = Root7;
45320
+ Control.Root = Root9;
45200
45321
  Control.Input = Input;
45201
45322
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
45202
45323
  var import_react_compiler_runtime69 = require("react-compiler-runtime");
45203
45324
  var import_themes49 = require("@radix-ui/themes");
45204
45325
  var import_react_icons12 = require("@radix-ui/react-icons");
45205
45326
  var import_jsx_runtime71 = require("react/jsx-runtime");
45206
- function ownKeys31(e, r) {
45327
+ function ownKeys32(e, r) {
45207
45328
  var t = Object.keys(e);
45208
45329
  if (Object.getOwnPropertySymbols) {
45209
45330
  var o = Object.getOwnPropertySymbols(e);
@@ -45213,30 +45334,30 @@ function ownKeys31(e, r) {
45213
45334
  }
45214
45335
  return t;
45215
45336
  }
45216
- function _objectSpread31(e) {
45337
+ function _objectSpread32(e) {
45217
45338
  for(var r = 1; r < arguments.length; r++){
45218
45339
  var t = null != arguments[r] ? arguments[r] : {};
45219
- r % 2 ? ownKeys31(Object(t), true).forEach(function(r2) {
45220
- _defineProperty31(e, r2, t[r2]);
45221
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys31(Object(t)).forEach(function(r2) {
45340
+ r % 2 ? ownKeys32(Object(t), true).forEach(function(r2) {
45341
+ _defineProperty32(e, r2, t[r2]);
45342
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys32(Object(t)).forEach(function(r2) {
45222
45343
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45223
45344
  });
45224
45345
  }
45225
45346
  return e;
45226
45347
  }
45227
- function _defineProperty31(e, r, t) {
45228
- return (r = _toPropertyKey31(r)) in e ? Object.defineProperty(e, r, {
45348
+ function _defineProperty32(e, r, t) {
45349
+ return (r = _toPropertyKey32(r)) in e ? Object.defineProperty(e, r, {
45229
45350
  value: t,
45230
45351
  enumerable: true,
45231
45352
  configurable: true,
45232
45353
  writable: true
45233
45354
  }) : e[r] = t, e;
45234
45355
  }
45235
- function _toPropertyKey31(t) {
45236
- var i = _toPrimitive31(t, "string");
45356
+ function _toPropertyKey32(t) {
45357
+ var i = _toPrimitive32(t, "string");
45237
45358
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45238
45359
  }
45239
- function _toPrimitive31(t, r) {
45360
+ function _toPrimitive32(t, r) {
45240
45361
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45241
45362
  var e = t[Symbol.toPrimitive];
45242
45363
  if (void 0 !== e) {
@@ -45322,7 +45443,7 @@ var Preview = function(props) {
45322
45443
  }
45323
45444
  var t1;
45324
45445
  if ($[5] !== props || $[6] !== t0) {
45325
- t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, _objectSpread31(_objectSpread31({
45446
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes49.Flex, _objectSpread32(_objectSpread32({
45326
45447
  flexBasis: "100%",
45327
45448
  direction: "column",
45328
45449
  pb: "2",
@@ -45356,7 +45477,7 @@ var formData = function(variables) {
45356
45477
  return data2;
45357
45478
  };
45358
45479
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/index.ts
45359
- function ownKeys32(e, r) {
45480
+ function ownKeys33(e, r) {
45360
45481
  var t = Object.keys(e);
45361
45482
  if (Object.getOwnPropertySymbols) {
45362
45483
  var o = Object.getOwnPropertySymbols(e);
@@ -45366,30 +45487,30 @@ function ownKeys32(e, r) {
45366
45487
  }
45367
45488
  return t;
45368
45489
  }
45369
- function _objectSpread32(e) {
45490
+ function _objectSpread33(e) {
45370
45491
  for(var r = 1; r < arguments.length; r++){
45371
45492
  var t = null != arguments[r] ? arguments[r] : {};
45372
- r % 2 ? ownKeys32(Object(t), true).forEach(function(r2) {
45373
- _defineProperty32(e, r2, t[r2]);
45374
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys32(Object(t)).forEach(function(r2) {
45493
+ r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
45494
+ _defineProperty33(e, r2, t[r2]);
45495
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
45375
45496
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45376
45497
  });
45377
45498
  }
45378
45499
  return e;
45379
45500
  }
45380
- function _defineProperty32(e, r, t) {
45381
- return (r = _toPropertyKey32(r)) in e ? Object.defineProperty(e, r, {
45501
+ function _defineProperty33(e, r, t) {
45502
+ return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
45382
45503
  value: t,
45383
45504
  enumerable: true,
45384
45505
  configurable: true,
45385
45506
  writable: true
45386
45507
  }) : e[r] = t, e;
45387
45508
  }
45388
- function _toPropertyKey32(t) {
45389
- var i = _toPrimitive32(t, "string");
45509
+ function _toPropertyKey33(t) {
45510
+ var i = _toPrimitive33(t, "string");
45390
45511
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45391
45512
  }
45392
- function _toPrimitive32(t, r) {
45513
+ function _toPrimitive33(t, r) {
45393
45514
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45394
45515
  var e = t[Symbol.toPrimitive];
45395
45516
  if (void 0 !== e) {
@@ -45409,7 +45530,7 @@ var body2 = function(_ref) {
45409
45530
  assistantId: variables.assistantId
45410
45531
  });
45411
45532
  if (!threadId) return formData(variables);
45412
- return formData(_objectSpread32(_objectSpread32({}, variables), {}, {
45533
+ return formData(_objectSpread33(_objectSpread33({}, variables), {}, {
45413
45534
  threadId: threadId
45414
45535
  }));
45415
45536
  };
@@ -45476,7 +45597,7 @@ var mutationFn2 = function(_ref) {
45476
45597
  }();
45477
45598
  };
45478
45599
  // src/hooks/files/useCreateFile/lib/mutationOptions/index.ts
45479
- function ownKeys33(e, r) {
45600
+ function ownKeys34(e, r) {
45480
45601
  var t = Object.keys(e);
45481
45602
  if (Object.getOwnPropertySymbols) {
45482
45603
  var o = Object.getOwnPropertySymbols(e);
@@ -45486,30 +45607,30 @@ function ownKeys33(e, r) {
45486
45607
  }
45487
45608
  return t;
45488
45609
  }
45489
- function _objectSpread33(e) {
45610
+ function _objectSpread34(e) {
45490
45611
  for(var r = 1; r < arguments.length; r++){
45491
45612
  var t = null != arguments[r] ? arguments[r] : {};
45492
- r % 2 ? ownKeys33(Object(t), true).forEach(function(r2) {
45493
- _defineProperty33(e, r2, t[r2]);
45494
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys33(Object(t)).forEach(function(r2) {
45613
+ r % 2 ? ownKeys34(Object(t), true).forEach(function(r2) {
45614
+ _defineProperty34(e, r2, t[r2]);
45615
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys34(Object(t)).forEach(function(r2) {
45495
45616
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45496
45617
  });
45497
45618
  }
45498
45619
  return e;
45499
45620
  }
45500
- function _defineProperty33(e, r, t) {
45501
- return (r = _toPropertyKey33(r)) in e ? Object.defineProperty(e, r, {
45621
+ function _defineProperty34(e, r, t) {
45622
+ return (r = _toPropertyKey34(r)) in e ? Object.defineProperty(e, r, {
45502
45623
  value: t,
45503
45624
  enumerable: true,
45504
45625
  configurable: true,
45505
45626
  writable: true
45506
45627
  }) : e[r] = t, e;
45507
45628
  }
45508
- function _toPropertyKey33(t) {
45509
- var i = _toPrimitive33(t, "string");
45629
+ function _toPropertyKey34(t) {
45630
+ var i = _toPrimitive34(t, "string");
45510
45631
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45511
45632
  }
45512
- function _toPrimitive33(t, r) {
45633
+ function _toPrimitive34(t, r) {
45513
45634
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45514
45635
  var e = t[Symbol.toPrimitive];
45515
45636
  if (void 0 !== e) {
@@ -45525,7 +45646,7 @@ var mutationOptions2 = function(_ref) {
45525
45646
  "createFile",
45526
45647
  threadContext.variables
45527
45648
  ];
45528
- return _objectSpread33(_objectSpread33(_objectSpread33({
45649
+ return _objectSpread34(_objectSpread34(_objectSpread34({
45529
45650
  mutationFn: mutationFn2({
45530
45651
  queryClient: queryClient,
45531
45652
  superinterfaceContext: superinterfaceContext,
@@ -45537,7 +45658,7 @@ var mutationOptions2 = function(_ref) {
45537
45658
  });
45538
45659
  };
45539
45660
  // src/hooks/files/useCreateFile/index.ts
45540
- function ownKeys34(e, r) {
45661
+ function ownKeys35(e, r) {
45541
45662
  var t = Object.keys(e);
45542
45663
  if (Object.getOwnPropertySymbols) {
45543
45664
  var o = Object.getOwnPropertySymbols(e);
@@ -45547,30 +45668,30 @@ function ownKeys34(e, r) {
45547
45668
  }
45548
45669
  return t;
45549
45670
  }
45550
- function _objectSpread34(e) {
45671
+ function _objectSpread35(e) {
45551
45672
  for(var r = 1; r < arguments.length; r++){
45552
45673
  var t = null != arguments[r] ? arguments[r] : {};
45553
- r % 2 ? ownKeys34(Object(t), true).forEach(function(r2) {
45554
- _defineProperty34(e, r2, t[r2]);
45555
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys34(Object(t)).forEach(function(r2) {
45674
+ r % 2 ? ownKeys35(Object(t), true).forEach(function(r2) {
45675
+ _defineProperty35(e, r2, t[r2]);
45676
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys35(Object(t)).forEach(function(r2) {
45556
45677
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45557
45678
  });
45558
45679
  }
45559
45680
  return e;
45560
45681
  }
45561
- function _defineProperty34(e, r, t) {
45562
- return (r = _toPropertyKey34(r)) in e ? Object.defineProperty(e, r, {
45682
+ function _defineProperty35(e, r, t) {
45683
+ return (r = _toPropertyKey35(r)) in e ? Object.defineProperty(e, r, {
45563
45684
  value: t,
45564
45685
  enumerable: true,
45565
45686
  configurable: true,
45566
45687
  writable: true
45567
45688
  }) : e[r] = t, e;
45568
45689
  }
45569
- function _toPropertyKey34(t) {
45570
- var i = _toPrimitive34(t, "string");
45690
+ function _toPropertyKey35(t) {
45691
+ var i = _toPrimitive35(t, "string");
45571
45692
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45572
45693
  }
45573
- function _toPrimitive34(t, r) {
45694
+ function _toPrimitive35(t, r) {
45574
45695
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45575
45696
  var e = t[Symbol.toPrimitive];
45576
45697
  if (void 0 !== e) {
@@ -45632,7 +45753,7 @@ var useCreateFile = function(t0) {
45632
45753
  var args = t62;
45633
45754
  var _args = _to_array(args), firstArg = _args[0], restArgs = _args.slice(1);
45634
45755
  return (_props = props).mutateAsync.apply(_props, [
45635
- _objectSpread34(_objectSpread34({}, threadContext.variables), firstArg)
45756
+ _objectSpread35(_objectSpread35({}, threadContext.variables), firstArg)
45636
45757
  ].concat(_to_consumable_array(restArgs)));
45637
45758
  };
45638
45759
  $[9] = props;
@@ -45643,7 +45764,7 @@ var useCreateFile = function(t0) {
45643
45764
  }
45644
45765
  var t6;
45645
45766
  if ($[12] !== props || $[13] !== t5) {
45646
- t6 = _objectSpread34(_objectSpread34({}, props), {}, {
45767
+ t6 = _objectSpread35(_objectSpread35({}, props), {}, {
45647
45768
  createFile: t5
45648
45769
  });
45649
45770
  $[12] = props;
@@ -45658,7 +45779,7 @@ function _temp4() {}
45658
45779
  function _temp23() {}
45659
45780
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
45660
45781
  var import_jsx_runtime72 = require("react/jsx-runtime");
45661
- function ownKeys35(e, r) {
45782
+ function ownKeys36(e, r) {
45662
45783
  var t = Object.keys(e);
45663
45784
  if (Object.getOwnPropertySymbols) {
45664
45785
  var o = Object.getOwnPropertySymbols(e);
@@ -45668,30 +45789,30 @@ function ownKeys35(e, r) {
45668
45789
  }
45669
45790
  return t;
45670
45791
  }
45671
- function _objectSpread35(e) {
45792
+ function _objectSpread36(e) {
45672
45793
  for(var r = 1; r < arguments.length; r++){
45673
45794
  var t = null != arguments[r] ? arguments[r] : {};
45674
- r % 2 ? ownKeys35(Object(t), true).forEach(function(r2) {
45675
- _defineProperty35(e, r2, t[r2]);
45676
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys35(Object(t)).forEach(function(r2) {
45795
+ r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
45796
+ _defineProperty36(e, r2, t[r2]);
45797
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
45677
45798
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
45678
45799
  });
45679
45800
  }
45680
45801
  return e;
45681
45802
  }
45682
- function _defineProperty35(e, r, t) {
45683
- return (r = _toPropertyKey35(r)) in e ? Object.defineProperty(e, r, {
45803
+ function _defineProperty36(e, r, t) {
45804
+ return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
45684
45805
  value: t,
45685
45806
  enumerable: true,
45686
45807
  configurable: true,
45687
45808
  writable: true
45688
45809
  }) : e[r] = t, e;
45689
45810
  }
45690
- function _toPropertyKey35(t) {
45691
- var i = _toPrimitive35(t, "string");
45811
+ function _toPropertyKey36(t) {
45812
+ var i = _toPrimitive36(t, "string");
45692
45813
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
45693
45814
  }
45694
- function _toPrimitive35(t, r) {
45815
+ function _toPrimitive36(t, r) {
45695
45816
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
45696
45817
  var e = t[Symbol.toPrimitive];
45697
45818
  if (void 0 !== e) {
@@ -45938,7 +46059,7 @@ var Control2 = function(props) {
45938
46059
  createFile,
45939
46060
  setFiles
45940
46061
  ]);
45941
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes50.Flex, _objectSpread35(_objectSpread35({
46062
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes50.Flex, _objectSpread36(_objectSpread36({
45942
46063
  pt: "2",
45943
46064
  pr: "2",
45944
46065
  flexGrow: "0"
@@ -45980,7 +46101,7 @@ var Files = {
45980
46101
  };
45981
46102
  // src/components/threads/Thread/MessageForm/Field/index.tsx
45982
46103
  var import_jsx_runtime73 = require("react/jsx-runtime");
45983
- function ownKeys36(e, r) {
46104
+ function ownKeys37(e, r) {
45984
46105
  var t = Object.keys(e);
45985
46106
  if (Object.getOwnPropertySymbols) {
45986
46107
  var o = Object.getOwnPropertySymbols(e);
@@ -45990,30 +46111,30 @@ function ownKeys36(e, r) {
45990
46111
  }
45991
46112
  return t;
45992
46113
  }
45993
- function _objectSpread36(e) {
46114
+ function _objectSpread37(e) {
45994
46115
  for(var r = 1; r < arguments.length; r++){
45995
46116
  var t = null != arguments[r] ? arguments[r] : {};
45996
- r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
45997
- _defineProperty36(e, r2, t[r2]);
45998
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
46117
+ r % 2 ? ownKeys37(Object(t), true).forEach(function(r2) {
46118
+ _defineProperty37(e, r2, t[r2]);
46119
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys37(Object(t)).forEach(function(r2) {
45999
46120
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46000
46121
  });
46001
46122
  }
46002
46123
  return e;
46003
46124
  }
46004
- function _defineProperty36(e, r, t) {
46005
- return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
46125
+ function _defineProperty37(e, r, t) {
46126
+ return (r = _toPropertyKey37(r)) in e ? Object.defineProperty(e, r, {
46006
46127
  value: t,
46007
46128
  enumerable: true,
46008
46129
  configurable: true,
46009
46130
  writable: true
46010
46131
  }) : e[r] = t, e;
46011
46132
  }
46012
- function _toPropertyKey36(t) {
46013
- var i = _toPrimitive36(t, "string");
46133
+ function _toPropertyKey37(t) {
46134
+ var i = _toPrimitive37(t, "string");
46014
46135
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46015
46136
  }
46016
- function _toPrimitive36(t, r) {
46137
+ function _toPrimitive37(t, r) {
46017
46138
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46018
46139
  var e = t[Symbol.toPrimitive];
46019
46140
  if (void 0 !== e) {
@@ -46023,7 +46144,7 @@ function _toPrimitive36(t, r) {
46023
46144
  }
46024
46145
  return ("string" === r ? String : Number)(t);
46025
46146
  }
46026
- var Root8 = function(_ref) {
46147
+ var Root10 = function(_ref) {
46027
46148
  "use no memo";
46028
46149
  var children = _ref.children, className = _ref.className, style = _ref.style;
46029
46150
  var _$_ref = (0, import_react_hook_form3.useFormContext)(), errors = _$_ref.formState.errors;
@@ -46039,7 +46160,7 @@ var Root8 = function(_ref) {
46039
46160
  direction: "column",
46040
46161
  flexShrink: "0",
46041
46162
  children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes51.Flex, {
46042
- style: _objectSpread36({
46163
+ style: _objectSpread37({
46043
46164
  borderRadius: "var(--radius-2)",
46044
46165
  borderWidth: "1px",
46045
46166
  borderStyle: "solid",
@@ -46057,13 +46178,13 @@ var Root8 = function(_ref) {
46057
46178
  });
46058
46179
  };
46059
46180
  var Field = {
46060
- Root: Root8,
46181
+ Root: Root10,
46061
46182
  Control: Control,
46062
46183
  Files: Files
46063
46184
  };
46064
46185
  // src/components/threads/Thread/MessageForm/index.tsx
46065
46186
  var import_jsx_runtime74 = require("react/jsx-runtime");
46066
- function ownKeys37(e, r) {
46187
+ function ownKeys38(e, r) {
46067
46188
  var t = Object.keys(e);
46068
46189
  if (Object.getOwnPropertySymbols) {
46069
46190
  var o = Object.getOwnPropertySymbols(e);
@@ -46073,30 +46194,30 @@ function ownKeys37(e, r) {
46073
46194
  }
46074
46195
  return t;
46075
46196
  }
46076
- function _objectSpread37(e) {
46197
+ function _objectSpread38(e) {
46077
46198
  for(var r = 1; r < arguments.length; r++){
46078
46199
  var t = null != arguments[r] ? arguments[r] : {};
46079
- r % 2 ? ownKeys37(Object(t), true).forEach(function(r2) {
46080
- _defineProperty37(e, r2, t[r2]);
46081
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys37(Object(t)).forEach(function(r2) {
46200
+ r % 2 ? ownKeys38(Object(t), true).forEach(function(r2) {
46201
+ _defineProperty38(e, r2, t[r2]);
46202
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys38(Object(t)).forEach(function(r2) {
46082
46203
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46083
46204
  });
46084
46205
  }
46085
46206
  return e;
46086
46207
  }
46087
- function _defineProperty37(e, r, t) {
46088
- return (r = _toPropertyKey37(r)) in e ? Object.defineProperty(e, r, {
46208
+ function _defineProperty38(e, r, t) {
46209
+ return (r = _toPropertyKey38(r)) in e ? Object.defineProperty(e, r, {
46089
46210
  value: t,
46090
46211
  enumerable: true,
46091
46212
  configurable: true,
46092
46213
  writable: true
46093
46214
  }) : e[r] = t, e;
46094
46215
  }
46095
- function _toPropertyKey37(t) {
46096
- var i = _toPrimitive37(t, "string");
46216
+ function _toPropertyKey38(t) {
46217
+ var i = _toPrimitive38(t, "string");
46097
46218
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46098
46219
  }
46099
- function _toPrimitive37(t, r) {
46220
+ function _toPrimitive38(t, r) {
46100
46221
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46101
46222
  var e = t[Symbol.toPrimitive];
46102
46223
  if (void 0 !== e) {
@@ -46122,7 +46243,7 @@ var MessageForm = function(props) {
46122
46243
  }
46123
46244
  var t1;
46124
46245
  if ($[1] !== props) {
46125
- t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Root6, _objectSpread37(_objectSpread37({}, props), {}, {
46246
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Root8, _objectSpread38(_objectSpread38({}, props), {}, {
46126
46247
  children: t0
46127
46248
  }));
46128
46249
  $[1] = props;
@@ -46132,7 +46253,7 @@ var MessageForm = function(props) {
46132
46253
  }
46133
46254
  return t1;
46134
46255
  };
46135
- MessageForm.Root = Root6;
46256
+ MessageForm.Root = Root8;
46136
46257
  MessageForm.Field = Field;
46137
46258
  MessageForm.Submit = Submit;
46138
46259
  // src/components/threads/Thread/Root/index.tsx
@@ -46317,7 +46438,7 @@ var _excluded4 = [
46317
46438
  "style",
46318
46439
  "className"
46319
46440
  ];
46320
- function ownKeys38(e, r) {
46441
+ function ownKeys39(e, r) {
46321
46442
  var t = Object.keys(e);
46322
46443
  if (Object.getOwnPropertySymbols) {
46323
46444
  var o = Object.getOwnPropertySymbols(e);
@@ -46327,30 +46448,30 @@ function ownKeys38(e, r) {
46327
46448
  }
46328
46449
  return t;
46329
46450
  }
46330
- function _objectSpread38(e) {
46451
+ function _objectSpread39(e) {
46331
46452
  for(var r = 1; r < arguments.length; r++){
46332
46453
  var t = null != arguments[r] ? arguments[r] : {};
46333
- r % 2 ? ownKeys38(Object(t), true).forEach(function(r2) {
46334
- _defineProperty38(e, r2, t[r2]);
46335
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys38(Object(t)).forEach(function(r2) {
46454
+ r % 2 ? ownKeys39(Object(t), true).forEach(function(r2) {
46455
+ _defineProperty39(e, r2, t[r2]);
46456
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys39(Object(t)).forEach(function(r2) {
46336
46457
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46337
46458
  });
46338
46459
  }
46339
46460
  return e;
46340
46461
  }
46341
- function _defineProperty38(e, r, t) {
46342
- return (r = _toPropertyKey38(r)) in e ? Object.defineProperty(e, r, {
46462
+ function _defineProperty39(e, r, t) {
46463
+ return (r = _toPropertyKey39(r)) in e ? Object.defineProperty(e, r, {
46343
46464
  value: t,
46344
46465
  enumerable: true,
46345
46466
  configurable: true,
46346
46467
  writable: true
46347
46468
  }) : e[r] = t, e;
46348
46469
  }
46349
- function _toPropertyKey38(t) {
46350
- var i = _toPrimitive38(t, "string");
46470
+ function _toPropertyKey39(t) {
46471
+ var i = _toPrimitive39(t, "string");
46351
46472
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46352
46473
  }
46353
- function _toPrimitive38(t, r) {
46474
+ function _toPrimitive39(t, r) {
46354
46475
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46355
46476
  var e = t[Symbol.toPrimitive];
46356
46477
  if (void 0 !== e) {
@@ -46378,7 +46499,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
46378
46499
  }
46379
46500
  return t;
46380
46501
  }
46381
- var Root10 = function(t0) {
46502
+ var Root12 = function(t0) {
46382
46503
  var $ = (0, import_react_compiler_runtime74.c)(12);
46383
46504
  var children;
46384
46505
  var className;
@@ -46421,7 +46542,7 @@ var Root10 = function(t0) {
46421
46542
  if ($[9] !== rest || $[10] !== t1) {
46422
46543
  t2 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ToastsProvider, {
46423
46544
  bottom: "var(--space-9)",
46424
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
46545
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Provider2, _objectSpread39(_objectSpread39({}, rest), {}, {
46425
46546
  children: t1
46426
46547
  }))
46427
46548
  });
@@ -46435,7 +46556,7 @@ var Root10 = function(t0) {
46435
46556
  };
46436
46557
  // src/components/threads/Thread/index.tsx
46437
46558
  var import_jsx_runtime78 = require("react/jsx-runtime");
46438
- function ownKeys39(e, r) {
46559
+ function ownKeys40(e, r) {
46439
46560
  var t = Object.keys(e);
46440
46561
  if (Object.getOwnPropertySymbols) {
46441
46562
  var o = Object.getOwnPropertySymbols(e);
@@ -46445,30 +46566,30 @@ function ownKeys39(e, r) {
46445
46566
  }
46446
46567
  return t;
46447
46568
  }
46448
- function _objectSpread39(e) {
46569
+ function _objectSpread40(e) {
46449
46570
  for(var r = 1; r < arguments.length; r++){
46450
46571
  var t = null != arguments[r] ? arguments[r] : {};
46451
- r % 2 ? ownKeys39(Object(t), true).forEach(function(r2) {
46452
- _defineProperty39(e, r2, t[r2]);
46453
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys39(Object(t)).forEach(function(r2) {
46572
+ r % 2 ? ownKeys40(Object(t), true).forEach(function(r2) {
46573
+ _defineProperty40(e, r2, t[r2]);
46574
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys40(Object(t)).forEach(function(r2) {
46454
46575
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46455
46576
  });
46456
46577
  }
46457
46578
  return e;
46458
46579
  }
46459
- function _defineProperty39(e, r, t) {
46460
- return (r = _toPropertyKey39(r)) in e ? Object.defineProperty(e, r, {
46580
+ function _defineProperty40(e, r, t) {
46581
+ return (r = _toPropertyKey40(r)) in e ? Object.defineProperty(e, r, {
46461
46582
  value: t,
46462
46583
  enumerable: true,
46463
46584
  configurable: true,
46464
46585
  writable: true
46465
46586
  }) : e[r] = t, e;
46466
46587
  }
46467
- function _toPropertyKey39(t) {
46468
- var i = _toPrimitive39(t, "string");
46588
+ function _toPropertyKey40(t) {
46589
+ var i = _toPrimitive40(t, "string");
46469
46590
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46470
46591
  }
46471
- function _toPrimitive39(t, r) {
46592
+ function _toPrimitive40(t, r) {
46472
46593
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46473
46594
  var e = t[Symbol.toPrimitive];
46474
46595
  if (void 0 !== e) {
@@ -46493,7 +46614,7 @@ var Thread = function(props) {
46493
46614
  }
46494
46615
  var t2;
46495
46616
  if ($[2] !== props) {
46496
- t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Root10, _objectSpread39(_objectSpread39({}, props), {}, {
46617
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Root12, _objectSpread40(_objectSpread40({}, props), {}, {
46497
46618
  children: [
46498
46619
  t0,
46499
46620
  t1
@@ -46506,7 +46627,7 @@ var Thread = function(props) {
46506
46627
  }
46507
46628
  return t2;
46508
46629
  };
46509
- Thread.Root = Root10;
46630
+ Thread.Root = Root12;
46510
46631
  Thread.Messages = Messages2;
46511
46632
  Thread.MessageForm = MessageForm;
46512
46633
  // src/hooks/messages/useMessageContext/index.ts
@@ -46621,7 +46742,7 @@ var queryOptions2 = function(_ref) {
46621
46742
  });
46622
46743
  };
46623
46744
  // src/hooks/assistants/useAssistant/index.ts
46624
- function ownKeys40(e, r) {
46745
+ function ownKeys41(e, r) {
46625
46746
  var t = Object.keys(e);
46626
46747
  if (Object.getOwnPropertySymbols) {
46627
46748
  var o = Object.getOwnPropertySymbols(e);
@@ -46631,30 +46752,30 @@ function ownKeys40(e, r) {
46631
46752
  }
46632
46753
  return t;
46633
46754
  }
46634
- function _objectSpread40(e) {
46755
+ function _objectSpread41(e) {
46635
46756
  for(var r = 1; r < arguments.length; r++){
46636
46757
  var t = null != arguments[r] ? arguments[r] : {};
46637
- r % 2 ? ownKeys40(Object(t), true).forEach(function(r2) {
46638
- _defineProperty40(e, r2, t[r2]);
46639
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys40(Object(t)).forEach(function(r2) {
46758
+ r % 2 ? ownKeys41(Object(t), true).forEach(function(r2) {
46759
+ _defineProperty41(e, r2, t[r2]);
46760
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys41(Object(t)).forEach(function(r2) {
46640
46761
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46641
46762
  });
46642
46763
  }
46643
46764
  return e;
46644
46765
  }
46645
- function _defineProperty40(e, r, t) {
46646
- return (r = _toPropertyKey40(r)) in e ? Object.defineProperty(e, r, {
46766
+ function _defineProperty41(e, r, t) {
46767
+ return (r = _toPropertyKey41(r)) in e ? Object.defineProperty(e, r, {
46647
46768
  value: t,
46648
46769
  enumerable: true,
46649
46770
  configurable: true,
46650
46771
  writable: true
46651
46772
  }) : e[r] = t, e;
46652
46773
  }
46653
- function _toPropertyKey40(t) {
46654
- var i = _toPrimitive40(t, "string");
46774
+ function _toPropertyKey41(t) {
46775
+ var i = _toPrimitive41(t, "string");
46655
46776
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46656
46777
  }
46657
- function _toPrimitive40(t, r) {
46778
+ function _toPrimitive41(t, r) {
46658
46779
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46659
46780
  var e = t[Symbol.toPrimitive];
46660
46781
  if (void 0 !== e) {
@@ -46685,7 +46806,7 @@ var useAssistant = function(t0) {
46685
46806
  var t3 = props.data ? props.data.assistant : null;
46686
46807
  var t4;
46687
46808
  if ($[3] !== props || $[4] !== t3) {
46688
- t4 = _objectSpread40(_objectSpread40({}, props), {}, {
46809
+ t4 = _objectSpread41(_objectSpread41({}, props), {}, {
46689
46810
  assistant: t3
46690
46811
  });
46691
46812
  $[3] = props;
@@ -46749,7 +46870,7 @@ var Provider4 = function(t0) {
46749
46870
  };
46750
46871
  // src/components/threads/ThreadDialog/Root/index.tsx
46751
46872
  var import_jsx_runtime80 = require("react/jsx-runtime");
46752
- var Root11 = function(t0) {
46873
+ var Root13 = function(t0) {
46753
46874
  var $ = (0, import_react_compiler_runtime78.c)(2);
46754
46875
  var children = t0.children;
46755
46876
  var t1;
@@ -46772,7 +46893,7 @@ var import_react_compiler_runtime79 = require("react-compiler-runtime");
46772
46893
  var import_themes54 = require("@radix-ui/themes");
46773
46894
  var import_react_icons15 = require("@radix-ui/react-icons");
46774
46895
  var import_jsx_runtime81 = require("react/jsx-runtime");
46775
- function ownKeys41(e, r) {
46896
+ function ownKeys42(e, r) {
46776
46897
  var t = Object.keys(e);
46777
46898
  if (Object.getOwnPropertySymbols) {
46778
46899
  var o = Object.getOwnPropertySymbols(e);
@@ -46782,30 +46903,30 @@ function ownKeys41(e, r) {
46782
46903
  }
46783
46904
  return t;
46784
46905
  }
46785
- function _objectSpread41(e) {
46906
+ function _objectSpread42(e) {
46786
46907
  for(var r = 1; r < arguments.length; r++){
46787
46908
  var t = null != arguments[r] ? arguments[r] : {};
46788
- r % 2 ? ownKeys41(Object(t), true).forEach(function(r2) {
46789
- _defineProperty41(e, r2, t[r2]);
46790
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys41(Object(t)).forEach(function(r2) {
46909
+ r % 2 ? ownKeys42(Object(t), true).forEach(function(r2) {
46910
+ _defineProperty42(e, r2, t[r2]);
46911
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys42(Object(t)).forEach(function(r2) {
46791
46912
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46792
46913
  });
46793
46914
  }
46794
46915
  return e;
46795
46916
  }
46796
- function _defineProperty41(e, r, t) {
46797
- return (r = _toPropertyKey41(r)) in e ? Object.defineProperty(e, r, {
46917
+ function _defineProperty42(e, r, t) {
46918
+ return (r = _toPropertyKey42(r)) in e ? Object.defineProperty(e, r, {
46798
46919
  value: t,
46799
46920
  enumerable: true,
46800
46921
  configurable: true,
46801
46922
  writable: true
46802
46923
  }) : e[r] = t, e;
46803
46924
  }
46804
- function _toPropertyKey41(t) {
46805
- var i = _toPrimitive41(t, "string");
46925
+ function _toPropertyKey42(t) {
46926
+ var i = _toPrimitive42(t, "string");
46806
46927
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46807
46928
  }
46808
- function _toPrimitive41(t, r) {
46929
+ function _toPrimitive42(t, r) {
46809
46930
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46810
46931
  var e = t[Symbol.toPrimitive];
46811
46932
  if (void 0 !== e) {
@@ -46826,7 +46947,7 @@ var Button4 = function(props) {
46826
46947
  }
46827
46948
  var t1;
46828
46949
  if ($[1] !== props) {
46829
- t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes54.IconButton, _objectSpread41(_objectSpread41({
46950
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes54.IconButton, _objectSpread42(_objectSpread42({
46830
46951
  size: "4",
46831
46952
  radius: "full"
46832
46953
  }, props), {}, {
@@ -46841,7 +46962,7 @@ var Button4 = function(props) {
46841
46962
  };
46842
46963
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46843
46964
  var import_jsx_runtime82 = require("react/jsx-runtime");
46844
- function ownKeys42(e, r) {
46965
+ function ownKeys43(e, r) {
46845
46966
  var t = Object.keys(e);
46846
46967
  if (Object.getOwnPropertySymbols) {
46847
46968
  var o = Object.getOwnPropertySymbols(e);
@@ -46851,30 +46972,30 @@ function ownKeys42(e, r) {
46851
46972
  }
46852
46973
  return t;
46853
46974
  }
46854
- function _objectSpread42(e) {
46975
+ function _objectSpread43(e) {
46855
46976
  for(var r = 1; r < arguments.length; r++){
46856
46977
  var t = null != arguments[r] ? arguments[r] : {};
46857
- r % 2 ? ownKeys42(Object(t), true).forEach(function(r2) {
46858
- _defineProperty42(e, r2, t[r2]);
46859
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys42(Object(t)).forEach(function(r2) {
46978
+ r % 2 ? ownKeys43(Object(t), true).forEach(function(r2) {
46979
+ _defineProperty43(e, r2, t[r2]);
46980
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys43(Object(t)).forEach(function(r2) {
46860
46981
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
46861
46982
  });
46862
46983
  }
46863
46984
  return e;
46864
46985
  }
46865
- function _defineProperty42(e, r, t) {
46866
- return (r = _toPropertyKey42(r)) in e ? Object.defineProperty(e, r, {
46986
+ function _defineProperty43(e, r, t) {
46987
+ return (r = _toPropertyKey43(r)) in e ? Object.defineProperty(e, r, {
46867
46988
  value: t,
46868
46989
  enumerable: true,
46869
46990
  configurable: true,
46870
46991
  writable: true
46871
46992
  }) : e[r] = t, e;
46872
46993
  }
46873
- function _toPropertyKey42(t) {
46874
- var i = _toPrimitive42(t, "string");
46994
+ function _toPropertyKey43(t) {
46995
+ var i = _toPrimitive43(t, "string");
46875
46996
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
46876
46997
  }
46877
- function _toPrimitive42(t, r) {
46998
+ function _toPrimitive43(t, r) {
46878
46999
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
46879
47000
  var e = t[Symbol.toPrimitive];
46880
47001
  if (void 0 !== e) {
@@ -46884,7 +47005,7 @@ function _toPrimitive42(t, r) {
46884
47005
  }
46885
47006
  return ("string" === r ? String : Number)(t);
46886
47007
  }
46887
- var Root12 = function(t0) {
47008
+ var Root14 = function(t0) {
46888
47009
  var $ = (0, import_react_compiler_runtime80.c)(14);
46889
47010
  var children = t0.children, style = t0.style, className = t0.className;
46890
47011
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
@@ -46920,7 +47041,7 @@ var Root12 = function(t0) {
46920
47041
  }
46921
47042
  var t5;
46922
47043
  if ($[6] !== t4) {
46923
- t5 = _objectSpread42({
47044
+ t5 = _objectSpread43({
46924
47045
  zIndex: 9999999999
46925
47046
  }, t4);
46926
47047
  $[6] = t4;
@@ -46966,7 +47087,7 @@ var Trigger = function(args) {
46966
47087
  }
46967
47088
  var t1;
46968
47089
  if ($[1] !== args) {
46969
- t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Root12, _objectSpread42(_objectSpread42({}, args), {}, {
47090
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Root14, _objectSpread43(_objectSpread43({}, args), {}, {
46970
47091
  children: t0
46971
47092
  }));
46972
47093
  $[1] = args;
@@ -46976,7 +47097,7 @@ var Trigger = function(args) {
46976
47097
  }
46977
47098
  return t1;
46978
47099
  };
46979
- Trigger.Root = Root12;
47100
+ Trigger.Root = Root14;
46980
47101
  Trigger.Button = Button4;
46981
47102
  function _temp6(prev) {
46982
47103
  return !prev;
@@ -47062,7 +47183,7 @@ function _temp7(prev) {
47062
47183
  }
47063
47184
  // src/components/threads/ThreadDialog/Content/index.tsx
47064
47185
  var import_jsx_runtime84 = require("react/jsx-runtime");
47065
- function ownKeys43(e, r) {
47186
+ function ownKeys44(e, r) {
47066
47187
  var t = Object.keys(e);
47067
47188
  if (Object.getOwnPropertySymbols) {
47068
47189
  var o = Object.getOwnPropertySymbols(e);
@@ -47072,30 +47193,30 @@ function ownKeys43(e, r) {
47072
47193
  }
47073
47194
  return t;
47074
47195
  }
47075
- function _objectSpread43(e) {
47196
+ function _objectSpread44(e) {
47076
47197
  for(var r = 1; r < arguments.length; r++){
47077
47198
  var t = null != arguments[r] ? arguments[r] : {};
47078
- r % 2 ? ownKeys43(Object(t), true).forEach(function(r2) {
47079
- _defineProperty43(e, r2, t[r2]);
47080
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys43(Object(t)).forEach(function(r2) {
47199
+ r % 2 ? ownKeys44(Object(t), true).forEach(function(r2) {
47200
+ _defineProperty44(e, r2, t[r2]);
47201
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys44(Object(t)).forEach(function(r2) {
47081
47202
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
47082
47203
  });
47083
47204
  }
47084
47205
  return e;
47085
47206
  }
47086
- function _defineProperty43(e, r, t) {
47087
- return (r = _toPropertyKey43(r)) in e ? Object.defineProperty(e, r, {
47207
+ function _defineProperty44(e, r, t) {
47208
+ return (r = _toPropertyKey44(r)) in e ? Object.defineProperty(e, r, {
47088
47209
  value: t,
47089
47210
  enumerable: true,
47090
47211
  configurable: true,
47091
47212
  writable: true
47092
47213
  }) : e[r] = t, e;
47093
47214
  }
47094
- function _toPropertyKey43(t) {
47095
- var i = _toPrimitive43(t, "string");
47215
+ function _toPropertyKey44(t) {
47216
+ var i = _toPrimitive44(t, "string");
47096
47217
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
47097
47218
  }
47098
- function _toPrimitive43(t, r) {
47219
+ function _toPrimitive44(t, r) {
47099
47220
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
47100
47221
  var e = t[Symbol.toPrimitive];
47101
47222
  if (void 0 !== e) {
@@ -47105,7 +47226,7 @@ function _toPrimitive43(t, r) {
47105
47226
  }
47106
47227
  return ("string" === r ? String : Number)(t);
47107
47228
  }
47108
- var Root13 = function(t0) {
47229
+ var Root15 = function(t0) {
47109
47230
  var $ = (0, import_react_compiler_runtime82.c)(19);
47110
47231
  var children = t0.children, className = t0.className, style = t0.style;
47111
47232
  var isOpen = useThreadDialogContext().isOpen;
@@ -47155,7 +47276,7 @@ var Root13 = function(t0) {
47155
47276
  }
47156
47277
  var t6;
47157
47278
  if ($[5] !== style) {
47158
- t6 = _objectSpread43({
47279
+ t6 = _objectSpread44({
47159
47280
  zIndex: 9999999999
47160
47281
  }, style);
47161
47282
  $[5] = style;
@@ -47257,7 +47378,7 @@ var Messages3 = function(t0) {
47257
47378
  var className = t0.className, style = t0.style;
47258
47379
  var t1;
47259
47380
  if ($[0] !== style) {
47260
- t1 = _objectSpread43({
47381
+ t1 = _objectSpread44({
47261
47382
  paddingTop: "var(--space-5)",
47262
47383
  paddingRight: "var(--space-5)",
47263
47384
  paddingLeft: "var(--space-5)"
@@ -47305,7 +47426,7 @@ var FormContainer = function(t0) {
47305
47426
  }
47306
47427
  return t1;
47307
47428
  };
47308
- var Content7 = function(props) {
47429
+ var Content8 = function(props) {
47309
47430
  var $ = (0, import_react_compiler_runtime82.c)(4);
47310
47431
  var t0;
47311
47432
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -47330,7 +47451,7 @@ var Content7 = function(props) {
47330
47451
  }
47331
47452
  var t2;
47332
47453
  if ($[2] !== props) {
47333
- t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Root13, _objectSpread43(_objectSpread43({}, props), {}, {
47454
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Root15, _objectSpread44(_objectSpread44({}, props), {}, {
47334
47455
  children: t1
47335
47456
  }));
47336
47457
  $[2] = props;
@@ -47340,18 +47461,18 @@ var Content7 = function(props) {
47340
47461
  }
47341
47462
  return t2;
47342
47463
  };
47343
- Content7.Root = Root13;
47344
- Content7.Messages = Messages3;
47345
- Content7.FormContainer = FormContainer;
47464
+ Content8.Root = Root15;
47465
+ Content8.Messages = Messages3;
47466
+ Content8.FormContainer = FormContainer;
47346
47467
  // src/components/threads/ThreadDialog/index.tsx
47347
47468
  var import_jsx_runtime85 = require("react/jsx-runtime");
47348
47469
  var ThreadDialog = function() {
47349
47470
  var $ = (0, import_react_compiler_runtime83.c)(1);
47350
47471
  var t0;
47351
47472
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47352
- t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root11, {
47473
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root13, {
47353
47474
  children: [
47354
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Content7, {}),
47475
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Content8, {}),
47355
47476
  /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Trigger, {})
47356
47477
  ]
47357
47478
  });
@@ -47361,9 +47482,9 @@ var ThreadDialog = function() {
47361
47482
  }
47362
47483
  return t0;
47363
47484
  };
47364
- ThreadDialog.Root = Root11;
47485
+ ThreadDialog.Root = Root13;
47365
47486
  ThreadDialog.Trigger = Trigger;
47366
- ThreadDialog.Content = Content7;
47487
+ ThreadDialog.Content = Content8;
47367
47488
  // src/components/threads/AudioThreadDialog/index.tsx
47368
47489
  var import_react_compiler_runtime98 = require("react-compiler-runtime");
47369
47490
  // src/components/threads/AudioThread/index.tsx
@@ -47503,7 +47624,7 @@ var useInterval = function(callback, delay) {
47503
47624
  };
47504
47625
  function _temp8() {}
47505
47626
  // src/hooks/audioThreads/useRecorder/index.ts
47506
- function ownKeys44(e, r) {
47627
+ function ownKeys45(e, r) {
47507
47628
  var t = Object.keys(e);
47508
47629
  if (Object.getOwnPropertySymbols) {
47509
47630
  var o = Object.getOwnPropertySymbols(e);
@@ -47513,30 +47634,30 @@ function ownKeys44(e, r) {
47513
47634
  }
47514
47635
  return t;
47515
47636
  }
47516
- function _objectSpread44(e) {
47637
+ function _objectSpread45(e) {
47517
47638
  for(var r = 1; r < arguments.length; r++){
47518
47639
  var t = null != arguments[r] ? arguments[r] : {};
47519
- r % 2 ? ownKeys44(Object(t), true).forEach(function(r2) {
47520
- _defineProperty44(e, r2, t[r2]);
47521
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys44(Object(t)).forEach(function(r2) {
47640
+ r % 2 ? ownKeys45(Object(t), true).forEach(function(r2) {
47641
+ _defineProperty45(e, r2, t[r2]);
47642
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys45(Object(t)).forEach(function(r2) {
47522
47643
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
47523
47644
  });
47524
47645
  }
47525
47646
  return e;
47526
47647
  }
47527
- function _defineProperty44(e, r, t) {
47528
- return (r = _toPropertyKey44(r)) in e ? Object.defineProperty(e, r, {
47648
+ function _defineProperty45(e, r, t) {
47649
+ return (r = _toPropertyKey45(r)) in e ? Object.defineProperty(e, r, {
47529
47650
  value: t,
47530
47651
  enumerable: true,
47531
47652
  configurable: true,
47532
47653
  writable: true
47533
47654
  }) : e[r] = t, e;
47534
47655
  }
47535
- function _toPropertyKey44(t) {
47536
- var i = _toPrimitive44(t, "string");
47656
+ function _toPropertyKey45(t) {
47657
+ var i = _toPrimitive45(t, "string");
47537
47658
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
47538
47659
  }
47539
- function _toPrimitive44(t, r) {
47660
+ function _toPrimitive45(t, r) {
47540
47661
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
47541
47662
  var e = t[Symbol.toPrimitive];
47542
47663
  if (void 0 !== e) {
@@ -47710,7 +47831,7 @@ var useRecorder = function(_ref) {
47710
47831
  if (!silenceStart.isBefore((0, import_dayjs3.default)().subtract(1.5, "second"))) return;
47711
47832
  audioCaptureProps.stop();
47712
47833
  }, 300);
47713
- return _objectSpread44(_objectSpread44({}, audioCaptureProps), {}, {
47834
+ return _objectSpread45(_objectSpread45({}, audioCaptureProps), {}, {
47714
47835
  status: status,
47715
47836
  visualizationAnalyser: visualizationAnalyser
47716
47837
  });
@@ -47743,7 +47864,7 @@ var unsupportedNames = [
47743
47864
  ];
47744
47865
  var isHtmlAudioSupported = !unsupportedNames.includes(((_detect = (0, import_detect_browser.detect)()) === null || _detect === void 0 ? void 0 : _detect.name) || "");
47745
47866
  // src/hooks/audioThreads/useMessageAudio/index.ts
47746
- function ownKeys45(e, r) {
47867
+ function ownKeys46(e, r) {
47747
47868
  var t = Object.keys(e);
47748
47869
  if (Object.getOwnPropertySymbols) {
47749
47870
  var o = Object.getOwnPropertySymbols(e);
@@ -47753,30 +47874,30 @@ function ownKeys45(e, r) {
47753
47874
  }
47754
47875
  return t;
47755
47876
  }
47756
- function _objectSpread45(e) {
47877
+ function _objectSpread46(e) {
47757
47878
  for(var r = 1; r < arguments.length; r++){
47758
47879
  var t = null != arguments[r] ? arguments[r] : {};
47759
- r % 2 ? ownKeys45(Object(t), true).forEach(function(r2) {
47760
- _defineProperty45(e, r2, t[r2]);
47761
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys45(Object(t)).forEach(function(r2) {
47880
+ r % 2 ? ownKeys46(Object(t), true).forEach(function(r2) {
47881
+ _defineProperty46(e, r2, t[r2]);
47882
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys46(Object(t)).forEach(function(r2) {
47762
47883
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
47763
47884
  });
47764
47885
  }
47765
47886
  return e;
47766
47887
  }
47767
- function _defineProperty45(e, r, t) {
47768
- return (r = _toPropertyKey45(r)) in e ? Object.defineProperty(e, r, {
47888
+ function _defineProperty46(e, r, t) {
47889
+ return (r = _toPropertyKey46(r)) in e ? Object.defineProperty(e, r, {
47769
47890
  value: t,
47770
47891
  enumerable: true,
47771
47892
  configurable: true,
47772
47893
  writable: true
47773
47894
  }) : e[r] = t, e;
47774
47895
  }
47775
- function _toPropertyKey45(t) {
47776
- var i = _toPrimitive45(t, "string");
47896
+ function _toPropertyKey46(t) {
47897
+ var i = _toPrimitive46(t, "string");
47777
47898
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
47778
47899
  }
47779
- function _toPrimitive45(t, r) {
47900
+ function _toPrimitive46(t, r) {
47780
47901
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
47781
47902
  var e = t[Symbol.toPrimitive];
47782
47903
  if (void 0 !== e) {
@@ -47906,7 +48027,7 @@ var useMessageAudio = function(t0) {
47906
48027
  if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext || $[16] !== unplayedMessageSentences) {
47907
48028
  t4 = function(t52) {
47908
48029
  var input_0 = t52.input, onPlay = t52.onPlay, onStop = t52.onStop, onEnd_0 = t52.onEnd;
47909
- var searchParams = new URLSearchParams(_objectSpread45({
48030
+ var searchParams = new URLSearchParams(_objectSpread46({
47910
48031
  input: input_0
47911
48032
  }, superinterfaceContext.variables));
47912
48033
  audioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(searchParams), {
@@ -47924,7 +48045,7 @@ var useMessageAudio = function(t0) {
47924
48045
  if (!isNextFullSentence) {
47925
48046
  return;
47926
48047
  }
47927
- var nextSearchParams = new URLSearchParams(_objectSpread45({
48048
+ var nextSearchParams = new URLSearchParams(_objectSpread46({
47928
48049
  input: nextUnplayedMessageSentence.sentence
47929
48050
  }, superinterfaceContext.variables));
47930
48051
  nextAudioPlayer.load("".concat(superinterfaceContext.baseUrl, "/audio-runtimes/tts?").concat(nextSearchParams), {
@@ -48117,7 +48238,7 @@ var useMessageAudio = function(t0) {
48117
48238
  var isPending = t12;
48118
48239
  var t13;
48119
48240
  if ($[44] !== audioPlayer || $[45] !== isAudioPlayed || $[46] !== isPending || $[47] !== visualizationAnalyser) {
48120
- t13 = _objectSpread45(_objectSpread45({
48241
+ t13 = _objectSpread46(_objectSpread46({
48121
48242
  isPending: isPending,
48122
48243
  isAudioPlayed: isAudioPlayed
48123
48244
  }, audioPlayer), {}, {
@@ -48403,7 +48524,7 @@ var _excluded22 = [
48403
48524
  "className",
48404
48525
  "style"
48405
48526
  ];
48406
- function ownKeys46(e, r) {
48527
+ function ownKeys47(e, r) {
48407
48528
  var t = Object.keys(e);
48408
48529
  if (Object.getOwnPropertySymbols) {
48409
48530
  var o = Object.getOwnPropertySymbols(e);
@@ -48413,30 +48534,30 @@ function ownKeys46(e, r) {
48413
48534
  }
48414
48535
  return t;
48415
48536
  }
48416
- function _objectSpread46(e) {
48537
+ function _objectSpread47(e) {
48417
48538
  for(var r = 1; r < arguments.length; r++){
48418
48539
  var t = null != arguments[r] ? arguments[r] : {};
48419
- r % 2 ? ownKeys46(Object(t), true).forEach(function(r2) {
48420
- _defineProperty46(e, r2, t[r2]);
48421
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys46(Object(t)).forEach(function(r2) {
48540
+ r % 2 ? ownKeys47(Object(t), true).forEach(function(r2) {
48541
+ _defineProperty47(e, r2, t[r2]);
48542
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys47(Object(t)).forEach(function(r2) {
48422
48543
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
48423
48544
  });
48424
48545
  }
48425
48546
  return e;
48426
48547
  }
48427
- function _defineProperty46(e, r, t) {
48428
- return (r = _toPropertyKey46(r)) in e ? Object.defineProperty(e, r, {
48548
+ function _defineProperty47(e, r, t) {
48549
+ return (r = _toPropertyKey47(r)) in e ? Object.defineProperty(e, r, {
48429
48550
  value: t,
48430
48551
  enumerable: true,
48431
48552
  configurable: true,
48432
48553
  writable: true
48433
48554
  }) : e[r] = t, e;
48434
48555
  }
48435
- function _toPropertyKey46(t) {
48436
- var i = _toPrimitive46(t, "string");
48556
+ function _toPropertyKey47(t) {
48557
+ var i = _toPrimitive47(t, "string");
48437
48558
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
48438
48559
  }
48439
- function _toPrimitive46(t, r) {
48560
+ function _toPrimitive47(t, r) {
48440
48561
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
48441
48562
  var e = t[Symbol.toPrimitive];
48442
48563
  if (void 0 !== e) {
@@ -48464,7 +48585,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
48464
48585
  }
48465
48586
  return t;
48466
48587
  }
48467
- var Content8 = function(t0) {
48588
+ var Content9 = function(t0) {
48468
48589
  var $ = (0, import_react_compiler_runtime89.c)(4);
48469
48590
  var children = t0.children, className = t0.className, style = t0.style;
48470
48591
  var t1;
@@ -48526,7 +48647,7 @@ var Provider5 = function(t0) {
48526
48647
  var audioThreadContext = useAudioThreadContext();
48527
48648
  var t1;
48528
48649
  if ($[3] !== audioThreadContext || $[4] !== rest) {
48529
- t1 = _objectSpread46(_objectSpread46({}, audioThreadContext), rest);
48650
+ t1 = _objectSpread47(_objectSpread47({}, audioThreadContext), rest);
48530
48651
  $[3] = audioThreadContext;
48531
48652
  $[4] = rest;
48532
48653
  $[5] = t1;
@@ -48547,7 +48668,7 @@ var Provider5 = function(t0) {
48547
48668
  }
48548
48669
  return t2;
48549
48670
  };
48550
- var Root14 = function(t0) {
48671
+ var Root16 = function(t0) {
48551
48672
  var $ = (0, import_react_compiler_runtime89.c)(16);
48552
48673
  var children;
48553
48674
  var className;
@@ -48576,7 +48697,7 @@ var Root14 = function(t0) {
48576
48697
  var t1;
48577
48698
  if ($[6] !== children || $[7] !== className || $[8] !== style) {
48578
48699
  t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ToastsProvider, {
48579
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Content8, {
48700
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Content9, {
48580
48701
  className: className,
48581
48702
  style: style,
48582
48703
  children: children
@@ -48603,7 +48724,7 @@ var Root14 = function(t0) {
48603
48724
  }
48604
48725
  var t3;
48605
48726
  if ($[13] !== rest || $[14] !== t2) {
48606
- t3 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
48727
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Provider5, _objectSpread47(_objectSpread47({}, rest), {}, {
48607
48728
  children: t2
48608
48729
  }));
48609
48730
  $[13] = rest;
@@ -48748,7 +48869,7 @@ var _excluded32 = [
48748
48869
  "height",
48749
48870
  "width"
48750
48871
  ];
48751
- function ownKeys47(e, r) {
48872
+ function ownKeys48(e, r) {
48752
48873
  var t = Object.keys(e);
48753
48874
  if (Object.getOwnPropertySymbols) {
48754
48875
  var o = Object.getOwnPropertySymbols(e);
@@ -48758,30 +48879,30 @@ function ownKeys47(e, r) {
48758
48879
  }
48759
48880
  return t;
48760
48881
  }
48761
- function _objectSpread47(e) {
48882
+ function _objectSpread48(e) {
48762
48883
  for(var r = 1; r < arguments.length; r++){
48763
48884
  var t = null != arguments[r] ? arguments[r] : {};
48764
- r % 2 ? ownKeys47(Object(t), true).forEach(function(r2) {
48765
- _defineProperty47(e, r2, t[r2]);
48766
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys47(Object(t)).forEach(function(r2) {
48885
+ r % 2 ? ownKeys48(Object(t), true).forEach(function(r2) {
48886
+ _defineProperty48(e, r2, t[r2]);
48887
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys48(Object(t)).forEach(function(r2) {
48767
48888
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
48768
48889
  });
48769
48890
  }
48770
48891
  return e;
48771
48892
  }
48772
- function _defineProperty47(e, r, t) {
48773
- return (r = _toPropertyKey47(r)) in e ? Object.defineProperty(e, r, {
48893
+ function _defineProperty48(e, r, t) {
48894
+ return (r = _toPropertyKey48(r)) in e ? Object.defineProperty(e, r, {
48774
48895
  value: t,
48775
48896
  enumerable: true,
48776
48897
  configurable: true,
48777
48898
  writable: true
48778
48899
  }) : e[r] = t, e;
48779
48900
  }
48780
- function _toPropertyKey47(t) {
48781
- var i = _toPrimitive47(t, "string");
48901
+ function _toPropertyKey48(t) {
48902
+ var i = _toPrimitive48(t, "string");
48782
48903
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
48783
48904
  }
48784
- function _toPrimitive47(t, r) {
48905
+ function _toPrimitive48(t, r) {
48785
48906
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
48786
48907
  var e = t[Symbol.toPrimitive];
48787
48908
  if (void 0 !== e) {
@@ -48846,7 +48967,7 @@ var Provider6 = function(_ref) {
48846
48967
  children: children
48847
48968
  });
48848
48969
  };
48849
- var Root15 = function(t0) {
48970
+ var Root17 = function(t0) {
48850
48971
  var $ = (0, import_react_compiler_runtime91.c)(6);
48851
48972
  var children;
48852
48973
  var rest;
@@ -48865,7 +48986,7 @@ var Root15 = function(t0) {
48865
48986
  var t1;
48866
48987
  if ($[3] !== children || $[4] !== rest) {
48867
48988
  t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Provider6, {
48868
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
48989
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread48(_objectSpread48({
48869
48990
  direction: "column",
48870
48991
  align: "center",
48871
48992
  justify: "center",
@@ -48910,7 +49031,7 @@ var BarsVisualizer2 = function(t0) {
48910
49031
  var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
48911
49032
  var t4;
48912
49033
  if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
48913
- t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer, _objectSpread47({
49034
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer, _objectSpread48({
48914
49035
  visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
48915
49036
  backgroundColor: t3,
48916
49037
  height: height,
@@ -48966,7 +49087,7 @@ var AssistantVisualizationRoot = function(t0) {
48966
49087
  }
48967
49088
  var t5;
48968
49089
  if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
48969
- t5 = _objectSpread47({
49090
+ t5 = _objectSpread48({
48970
49091
  backgroundColor: t3,
48971
49092
  borderRadius: "9999px",
48972
49093
  scale: scale
@@ -48980,7 +49101,7 @@ var AssistantVisualizationRoot = function(t0) {
48980
49101
  }
48981
49102
  var t6;
48982
49103
  if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
48983
- t6 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread47(_objectSpread47({
49104
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes60.Flex, _objectSpread48(_objectSpread48({
48984
49105
  align: "center",
48985
49106
  justify: "center",
48986
49107
  height: height,
@@ -49011,7 +49132,7 @@ var AssistantVisualization = function(props) {
49011
49132
  }
49012
49133
  var t1;
49013
49134
  if ($[1] !== props) {
49014
- t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
49135
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AssistantVisualizationRoot, _objectSpread48(_objectSpread48({}, props), {}, {
49015
49136
  children: t0
49016
49137
  }));
49017
49138
  $[1] = props;
@@ -49045,7 +49166,7 @@ var AssistantInfo = function(props) {
49045
49166
  }
49046
49167
  var t2;
49047
49168
  if ($[3] !== props || $[4] !== t1) {
49048
- t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes60.Flex, _objectSpread47(_objectSpread47({
49169
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes60.Flex, _objectSpread48(_objectSpread48({
49049
49170
  ml: "-22.5px",
49050
49171
  gap: "3",
49051
49172
  pt: "5"
@@ -49078,7 +49199,7 @@ var Visualization = function(props) {
49078
49199
  }
49079
49200
  var t2;
49080
49201
  if ($[2] !== props) {
49081
- t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Root15, _objectSpread47(_objectSpread47({}, props), {}, {
49202
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Root17, _objectSpread48(_objectSpread48({}, props), {}, {
49082
49203
  children: [
49083
49204
  t0,
49084
49205
  t1
@@ -49091,7 +49212,7 @@ var Visualization = function(props) {
49091
49212
  }
49092
49213
  return t2;
49093
49214
  };
49094
- Visualization.Root = Root15;
49215
+ Visualization.Root = Root17;
49095
49216
  Visualization.Provider = Provider6;
49096
49217
  Visualization.AssistantVisualization = AssistantVisualization;
49097
49218
  Visualization.AssistantInfo = AssistantInfo;
@@ -49168,7 +49289,7 @@ var StatusMessages = function(t0) {
49168
49289
  };
49169
49290
  // src/components/threads/AudioThread/Status/index.tsx
49170
49291
  var import_jsx_runtime91 = require("react/jsx-runtime");
49171
- function ownKeys48(e, r) {
49292
+ function ownKeys49(e, r) {
49172
49293
  var t = Object.keys(e);
49173
49294
  if (Object.getOwnPropertySymbols) {
49174
49295
  var o = Object.getOwnPropertySymbols(e);
@@ -49178,30 +49299,30 @@ function ownKeys48(e, r) {
49178
49299
  }
49179
49300
  return t;
49180
49301
  }
49181
- function _objectSpread48(e) {
49302
+ function _objectSpread49(e) {
49182
49303
  for(var r = 1; r < arguments.length; r++){
49183
49304
  var t = null != arguments[r] ? arguments[r] : {};
49184
- r % 2 ? ownKeys48(Object(t), true).forEach(function(r2) {
49185
- _defineProperty48(e, r2, t[r2]);
49186
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys48(Object(t)).forEach(function(r2) {
49305
+ r % 2 ? ownKeys49(Object(t), true).forEach(function(r2) {
49306
+ _defineProperty49(e, r2, t[r2]);
49307
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys49(Object(t)).forEach(function(r2) {
49187
49308
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49188
49309
  });
49189
49310
  }
49190
49311
  return e;
49191
49312
  }
49192
- function _defineProperty48(e, r, t) {
49193
- return (r = _toPropertyKey48(r)) in e ? Object.defineProperty(e, r, {
49313
+ function _defineProperty49(e, r, t) {
49314
+ return (r = _toPropertyKey49(r)) in e ? Object.defineProperty(e, r, {
49194
49315
  value: t,
49195
49316
  enumerable: true,
49196
49317
  configurable: true,
49197
49318
  writable: true
49198
49319
  }) : e[r] = t, e;
49199
49320
  }
49200
- function _toPropertyKey48(t) {
49201
- var i = _toPrimitive48(t, "string");
49321
+ function _toPropertyKey49(t) {
49322
+ var i = _toPrimitive49(t, "string");
49202
49323
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49203
49324
  }
49204
- function _toPrimitive48(t, r) {
49325
+ function _toPrimitive49(t, r) {
49205
49326
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49206
49327
  var e = t[Symbol.toPrimitive];
49207
49328
  if (void 0 !== e) {
@@ -49229,7 +49350,7 @@ var Status = function(props) {
49229
49350
  }
49230
49351
  var _t2;
49231
49352
  if ($[1] !== props) {
49232
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49353
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49233
49354
  texts: _t
49234
49355
  }, props));
49235
49356
  $[1] = props;
@@ -49255,7 +49376,7 @@ var Status = function(props) {
49255
49376
  }
49256
49377
  var _t4;
49257
49378
  if ($[4] !== props) {
49258
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49379
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49259
49380
  texts: _t3
49260
49381
  }, props));
49261
49382
  $[4] = props;
@@ -49277,7 +49398,7 @@ var Status = function(props) {
49277
49398
  }
49278
49399
  var _t6;
49279
49400
  if ($[7] !== props) {
49280
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49401
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49281
49402
  texts: _t5
49282
49403
  }, props));
49283
49404
  $[7] = props;
@@ -49298,7 +49419,7 @@ var Status = function(props) {
49298
49419
  }
49299
49420
  var t1;
49300
49421
  if ($[10] !== props) {
49301
- t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread48({
49422
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(StatusMessages, _objectSpread49({
49302
49423
  texts: t0
49303
49424
  }, props));
49304
49425
  $[10] = props;
@@ -49314,7 +49435,7 @@ var import_themes63 = require("@radix-ui/themes");
49314
49435
  // src/components/threads/AudioThread/Form/MicIcon.tsx
49315
49436
  var import_react_compiler_runtime94 = require("react-compiler-runtime");
49316
49437
  var import_jsx_runtime92 = require("react/jsx-runtime");
49317
- function ownKeys49(e, r) {
49438
+ function ownKeys50(e, r) {
49318
49439
  var t = Object.keys(e);
49319
49440
  if (Object.getOwnPropertySymbols) {
49320
49441
  var o = Object.getOwnPropertySymbols(e);
@@ -49324,30 +49445,30 @@ function ownKeys49(e, r) {
49324
49445
  }
49325
49446
  return t;
49326
49447
  }
49327
- function _objectSpread49(e) {
49448
+ function _objectSpread50(e) {
49328
49449
  for(var r = 1; r < arguments.length; r++){
49329
49450
  var t = null != arguments[r] ? arguments[r] : {};
49330
- r % 2 ? ownKeys49(Object(t), true).forEach(function(r2) {
49331
- _defineProperty49(e, r2, t[r2]);
49332
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys49(Object(t)).forEach(function(r2) {
49451
+ r % 2 ? ownKeys50(Object(t), true).forEach(function(r2) {
49452
+ _defineProperty50(e, r2, t[r2]);
49453
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys50(Object(t)).forEach(function(r2) {
49333
49454
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49334
49455
  });
49335
49456
  }
49336
49457
  return e;
49337
49458
  }
49338
- function _defineProperty49(e, r, t) {
49339
- return (r = _toPropertyKey49(r)) in e ? Object.defineProperty(e, r, {
49459
+ function _defineProperty50(e, r, t) {
49460
+ return (r = _toPropertyKey50(r)) in e ? Object.defineProperty(e, r, {
49340
49461
  value: t,
49341
49462
  enumerable: true,
49342
49463
  configurable: true,
49343
49464
  writable: true
49344
49465
  }) : e[r] = t, e;
49345
49466
  }
49346
- function _toPropertyKey49(t) {
49347
- var i = _toPrimitive49(t, "string");
49467
+ function _toPropertyKey50(t) {
49468
+ var i = _toPrimitive50(t, "string");
49348
49469
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49349
49470
  }
49350
- function _toPrimitive49(t, r) {
49471
+ function _toPrimitive50(t, r) {
49351
49472
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49352
49473
  var e = t[Symbol.toPrimitive];
49353
49474
  if (void 0 !== e) {
@@ -49371,7 +49492,7 @@ var MicIcon = function(props) {
49371
49492
  }
49372
49493
  var t1;
49373
49494
  if ($[1] !== props) {
49374
- t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", _objectSpread49(_objectSpread49({
49495
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", _objectSpread50(_objectSpread50({
49375
49496
  xmlns: "http://www.w3.org/2000/svg",
49376
49497
  fill: "currentColor",
49377
49498
  stroke: "currentColor",
@@ -49589,7 +49710,7 @@ var ActionButton = function() {
49589
49710
  };
49590
49711
  // src/components/threads/AudioThread/Form/index.tsx
49591
49712
  var import_jsx_runtime94 = require("react/jsx-runtime");
49592
- function ownKeys50(e, r) {
49713
+ function ownKeys51(e, r) {
49593
49714
  var t = Object.keys(e);
49594
49715
  if (Object.getOwnPropertySymbols) {
49595
49716
  var o = Object.getOwnPropertySymbols(e);
@@ -49599,30 +49720,30 @@ function ownKeys50(e, r) {
49599
49720
  }
49600
49721
  return t;
49601
49722
  }
49602
- function _objectSpread50(e) {
49723
+ function _objectSpread51(e) {
49603
49724
  for(var r = 1; r < arguments.length; r++){
49604
49725
  var t = null != arguments[r] ? arguments[r] : {};
49605
- r % 2 ? ownKeys50(Object(t), true).forEach(function(r2) {
49606
- _defineProperty50(e, r2, t[r2]);
49607
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys50(Object(t)).forEach(function(r2) {
49726
+ r % 2 ? ownKeys51(Object(t), true).forEach(function(r2) {
49727
+ _defineProperty51(e, r2, t[r2]);
49728
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys51(Object(t)).forEach(function(r2) {
49608
49729
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49609
49730
  });
49610
49731
  }
49611
49732
  return e;
49612
49733
  }
49613
- function _defineProperty50(e, r, t) {
49614
- return (r = _toPropertyKey50(r)) in e ? Object.defineProperty(e, r, {
49734
+ function _defineProperty51(e, r, t) {
49735
+ return (r = _toPropertyKey51(r)) in e ? Object.defineProperty(e, r, {
49615
49736
  value: t,
49616
49737
  enumerable: true,
49617
49738
  configurable: true,
49618
49739
  writable: true
49619
49740
  }) : e[r] = t, e;
49620
49741
  }
49621
- function _toPropertyKey50(t) {
49622
- var i = _toPrimitive50(t, "string");
49742
+ function _toPropertyKey51(t) {
49743
+ var i = _toPrimitive51(t, "string");
49623
49744
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49624
49745
  }
49625
- function _toPrimitive50(t, r) {
49746
+ function _toPrimitive51(t, r) {
49626
49747
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49627
49748
  var e = t[Symbol.toPrimitive];
49628
49749
  if (void 0 !== e) {
@@ -49720,7 +49841,7 @@ var Form = function(props) {
49720
49841
  }
49721
49842
  var t9;
49722
49843
  if ($[14] !== props || $[15] !== t7) {
49723
- t9 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes63.Flex, _objectSpread50(_objectSpread50({
49844
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes63.Flex, _objectSpread51(_objectSpread51({
49724
49845
  direction: "column",
49725
49846
  align: "center"
49726
49847
  }, props), {}, {
@@ -49739,7 +49860,7 @@ var Form = function(props) {
49739
49860
  };
49740
49861
  // src/components/threads/AudioThread/index.tsx
49741
49862
  var import_jsx_runtime95 = require("react/jsx-runtime");
49742
- function ownKeys51(e, r) {
49863
+ function ownKeys52(e, r) {
49743
49864
  var t = Object.keys(e);
49744
49865
  if (Object.getOwnPropertySymbols) {
49745
49866
  var o = Object.getOwnPropertySymbols(e);
@@ -49749,30 +49870,30 @@ function ownKeys51(e, r) {
49749
49870
  }
49750
49871
  return t;
49751
49872
  }
49752
- function _objectSpread51(e) {
49873
+ function _objectSpread52(e) {
49753
49874
  for(var r = 1; r < arguments.length; r++){
49754
49875
  var t = null != arguments[r] ? arguments[r] : {};
49755
- r % 2 ? ownKeys51(Object(t), true).forEach(function(r2) {
49756
- _defineProperty51(e, r2, t[r2]);
49757
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys51(Object(t)).forEach(function(r2) {
49876
+ r % 2 ? ownKeys52(Object(t), true).forEach(function(r2) {
49877
+ _defineProperty52(e, r2, t[r2]);
49878
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys52(Object(t)).forEach(function(r2) {
49758
49879
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49759
49880
  });
49760
49881
  }
49761
49882
  return e;
49762
49883
  }
49763
- function _defineProperty51(e, r, t) {
49764
- return (r = _toPropertyKey51(r)) in e ? Object.defineProperty(e, r, {
49884
+ function _defineProperty52(e, r, t) {
49885
+ return (r = _toPropertyKey52(r)) in e ? Object.defineProperty(e, r, {
49765
49886
  value: t,
49766
49887
  enumerable: true,
49767
49888
  configurable: true,
49768
49889
  writable: true
49769
49890
  }) : e[r] = t, e;
49770
49891
  }
49771
- function _toPropertyKey51(t) {
49772
- var i = _toPrimitive51(t, "string");
49892
+ function _toPropertyKey52(t) {
49893
+ var i = _toPrimitive52(t, "string");
49773
49894
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49774
49895
  }
49775
- function _toPrimitive51(t, r) {
49896
+ function _toPrimitive52(t, r) {
49776
49897
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49777
49898
  var e = t[Symbol.toPrimitive];
49778
49899
  if (void 0 !== e) {
@@ -49801,7 +49922,7 @@ var AudioThread = function(props) {
49801
49922
  }
49802
49923
  var t3;
49803
49924
  if ($[3] !== props) {
49804
- t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root14, _objectSpread51(_objectSpread51({}, props), {}, {
49925
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Root16, _objectSpread52(_objectSpread52({}, props), {}, {
49805
49926
  children: [
49806
49927
  t0,
49807
49928
  t1,
@@ -49815,13 +49936,13 @@ var AudioThread = function(props) {
49815
49936
  }
49816
49937
  return t3;
49817
49938
  };
49818
- AudioThread.Root = Root14;
49939
+ AudioThread.Root = Root16;
49819
49940
  AudioThread.Visualization = Visualization;
49820
49941
  AudioThread.Status = Status;
49821
49942
  AudioThread.Form = Form;
49822
49943
  // src/components/threads/AudioThreadDialog/index.tsx
49823
49944
  var import_jsx_runtime96 = require("react/jsx-runtime");
49824
- function ownKeys52(e, r) {
49945
+ function ownKeys53(e, r) {
49825
49946
  var t = Object.keys(e);
49826
49947
  if (Object.getOwnPropertySymbols) {
49827
49948
  var o = Object.getOwnPropertySymbols(e);
@@ -49831,30 +49952,30 @@ function ownKeys52(e, r) {
49831
49952
  }
49832
49953
  return t;
49833
49954
  }
49834
- function _objectSpread52(e) {
49955
+ function _objectSpread53(e) {
49835
49956
  for(var r = 1; r < arguments.length; r++){
49836
49957
  var t = null != arguments[r] ? arguments[r] : {};
49837
- r % 2 ? ownKeys52(Object(t), true).forEach(function(r2) {
49838
- _defineProperty52(e, r2, t[r2]);
49839
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys52(Object(t)).forEach(function(r2) {
49958
+ r % 2 ? ownKeys53(Object(t), true).forEach(function(r2) {
49959
+ _defineProperty53(e, r2, t[r2]);
49960
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys53(Object(t)).forEach(function(r2) {
49840
49961
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
49841
49962
  });
49842
49963
  }
49843
49964
  return e;
49844
49965
  }
49845
- function _defineProperty52(e, r, t) {
49846
- return (r = _toPropertyKey52(r)) in e ? Object.defineProperty(e, r, {
49966
+ function _defineProperty53(e, r, t) {
49967
+ return (r = _toPropertyKey53(r)) in e ? Object.defineProperty(e, r, {
49847
49968
  value: t,
49848
49969
  enumerable: true,
49849
49970
  configurable: true,
49850
49971
  writable: true
49851
49972
  }) : e[r] = t, e;
49852
49973
  }
49853
- function _toPropertyKey52(t) {
49854
- var i = _toPrimitive52(t, "string");
49974
+ function _toPropertyKey53(t) {
49975
+ var i = _toPrimitive53(t, "string");
49855
49976
  return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
49856
49977
  }
49857
- function _toPrimitive52(t, r) {
49978
+ function _toPrimitive53(t, r) {
49858
49979
  if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
49859
49980
  var e = t[Symbol.toPrimitive];
49860
49981
  if (void 0 !== e) {
@@ -49869,7 +49990,7 @@ var AudioThreadDialog = function(props) {
49869
49990
  var t0;
49870
49991
  var t1;
49871
49992
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49872
- t0 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Content7.Root, {
49993
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Content8.Root, {
49873
49994
  children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AudioThread, {})
49874
49995
  });
49875
49996
  t1 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Trigger, {});
@@ -49881,7 +50002,7 @@ var AudioThreadDialog = function(props) {
49881
50002
  }
49882
50003
  var t2;
49883
50004
  if ($[2] !== props) {
49884
- t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Root11, _objectSpread52(_objectSpread52({}, props), {}, {
50005
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Root13, _objectSpread53(_objectSpread53({}, props), {}, {
49885
50006
  children: [
49886
50007
  t0,
49887
50008
  t1
@@ -49894,9 +50015,9 @@ var AudioThreadDialog = function(props) {
49894
50015
  }
49895
50016
  return t2;
49896
50017
  };
49897
- AudioThreadDialog.Root = Root11;
50018
+ AudioThreadDialog.Root = Root13;
49898
50019
  AudioThreadDialog.Trigger = Trigger;
49899
- AudioThreadDialog.Content = Content7;
50020
+ AudioThreadDialog.Content = Content8;
49900
50021
  // src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
49901
50022
  var import_react72 = require("react");
49902
50023
  function asyncGeneratorStep12(n, t, e, r, o, a, c) {
@@ -50496,7 +50617,7 @@ var import_themes65 = require("@radix-ui/themes");
50496
50617
  var import_react_compiler_runtime101 = require("react-compiler-runtime");
50497
50618
  var import_themes64 = require("@radix-ui/themes");
50498
50619
  var import_jsx_runtime99 = require("react/jsx-runtime");
50499
- var Content9 = function(t0) {
50620
+ var Content10 = function(t0) {
50500
50621
  var $ = (0, import_react_compiler_runtime101.c)(5);
50501
50622
  var fileId = t0.fileId;
50502
50623
  var superinterfaceContext = useSuperinterfaceContext();
@@ -50633,7 +50754,7 @@ var FileCitation = function(t0) {
50633
50754
  }
50634
50755
  var t8;
50635
50756
  if ($[8] !== activeFileId) {
50636
- t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Content9, {
50757
+ t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Content10, {
50637
50758
  fileId: activeFileId
50638
50759
  });
50639
50760
  $[8] = activeFileId;