@superinterface/react 3.7.0 → 3.7.1

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.js CHANGED
@@ -435,7 +435,7 @@ var SuperinterfaceProvider = function(_ref) {
435
435
  // src/components/threads/Thread/Messages/index.tsx
436
436
  import { Flex as Flex18 } from "@radix-ui/themes";
437
437
  // src/components/threads/Thread/Message/index.tsx
438
- import { c as _c26 } from "react-compiler-runtime";
438
+ import { c as _c25 } from "react-compiler-runtime";
439
439
  import { useMemo as useMemo10 } from "react";
440
440
  import { isEmpty as isEmpty2 } from "radash";
441
441
  import { Box as Box9 } from "@radix-ui/themes";
@@ -1120,9 +1120,9 @@ var Attachments = function(t0) {
1120
1120
  return t3;
1121
1121
  };
1122
1122
  // src/components/threads/Thread/Message/ContentPart/index.tsx
1123
- import { c as _c25 } from "react-compiler-runtime";
1123
+ import { c as _c24 } from "react-compiler-runtime";
1124
1124
  // src/components/threads/Thread/Message/ContentPart/TextContent.tsx
1125
- import { c as _c23 } from "react-compiler-runtime";
1125
+ import { c as _c22 } from "react-compiler-runtime";
1126
1126
  import React, { useState as useState3, useEffect as useEffect2, useMemo as useMemo9 } from "react";
1127
1127
  import { Badge as Badge2 } from "@radix-ui/themes";
1128
1128
  import { compile } from "@mdx-js/mdx";
@@ -1371,10 +1371,10 @@ var Pre = function(_ref) {
1371
1371
  });
1372
1372
  };
1373
1373
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
1374
- import { c as _c15 } from "react-compiler-runtime";
1374
+ import { c as _c14 } from "react-compiler-runtime";
1375
1375
  import { Code as RadixCode } from "@radix-ui/themes";
1376
1376
  // src/components/suggestions/Suggestions/index.tsx
1377
- import { c as _c14 } from "react-compiler-runtime";
1377
+ import { c as _c13 } from "react-compiler-runtime";
1378
1378
  import { useMemo as useMemo6 } from "react";
1379
1379
  // src/hooks/messages/useLatestMessage/index.ts
1380
1380
  import { c as _c11 } from "react-compiler-runtime";
@@ -1767,12 +1767,11 @@ import { isEmpty } from "radash";
1767
1767
  import { onlyText } from "react-children-utilities";
1768
1768
  import { Flex as Flex7 } from "@radix-ui/themes";
1769
1769
  // src/components/suggestions/Suggestions/Item.tsx
1770
- import { c as _c13 } from "react-compiler-runtime";
1770
+ import { c as _c12 } from "react-compiler-runtime";
1771
1771
  import { ArrowUpIcon } from "@radix-ui/react-icons";
1772
1772
  import { Text as Text4, Button as Button2, Spinner } from "@radix-ui/themes";
1773
1773
  // src/hooks/messages/useCreateMessage/index.ts
1774
- import { c as _c12 } from "react-compiler-runtime";
1775
- import { partob } from "radash";
1774
+ import { useCallback } from "react";
1776
1775
  import { useMutation, useQueryClient as useQueryClient2 } from "@tanstack/react-query";
1777
1776
  // src/hooks/messages/useCreateMessage/lib/mutationOptions/onMutate/index.ts
1778
1777
  import { omit } from "radash";
@@ -3146,72 +3145,29 @@ function _toPrimitive18(t, r) {
3146
3145
  }
3147
3146
  return ("string" === r ? String : Number)(t);
3148
3147
  }
3149
- var useCreateMessage = function(t0) {
3150
- var $ = _c12(15);
3151
- var t1;
3152
- if ($[0] !== t0) {
3153
- t1 = t0 === void 0 ? {
3154
- onError: _temp
3155
- } : t0;
3156
- $[0] = t0;
3157
- $[1] = t1;
3158
- } else {
3159
- t1 = $[1];
3160
- }
3161
- var t2 = t1.onError;
3162
- var t3;
3163
- if ($[2] !== t2) {
3164
- t3 = t2 === void 0 ? _temp2 : t2;
3165
- $[2] = t2;
3166
- $[3] = t3;
3167
- } else {
3168
- t3 = $[3];
3169
- }
3170
- var onError = t3;
3148
+ var useCreateMessage = function useCreateMessage2() {
3149
+ var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3150
+ onError: function() {}
3151
+ }, _ref_onError = _ref.onError, onError = _ref_onError === void 0 ? function() {} : _ref_onError;
3171
3152
  var queryClient = useQueryClient2();
3172
3153
  var superinterfaceContext = useSuperinterfaceContext();
3173
3154
  var threadContext = useSuperinterfaceContext();
3174
- var t4;
3175
- if ($[4] !== onError || $[5] !== queryClient || $[6] !== superinterfaceContext || $[7] !== threadContext) {
3176
- t4 = mutationOptions({
3177
- queryClient: queryClient,
3178
- threadContext: threadContext,
3179
- superinterfaceContext: superinterfaceContext,
3180
- onError: onError
3181
- });
3182
- $[4] = onError;
3183
- $[5] = queryClient;
3184
- $[6] = superinterfaceContext;
3185
- $[7] = threadContext;
3186
- $[8] = t4;
3187
- } else {
3188
- t4 = $[8];
3189
- }
3190
- var props = useMutation(t4);
3191
- var t5;
3192
- if ($[9] !== props.mutateAsync || $[10] !== threadContext.variables) {
3193
- t5 = partob(props.mutateAsync, threadContext.variables);
3194
- $[9] = props.mutateAsync;
3195
- $[10] = threadContext.variables;
3196
- $[11] = t5;
3197
- } else {
3198
- t5 = $[11];
3199
- }
3200
- var t6;
3201
- if ($[12] !== props || $[13] !== t5) {
3202
- t6 = _objectSpread18(_objectSpread18({}, props), {}, {
3203
- createMessage: t5
3204
- });
3205
- $[12] = props;
3206
- $[13] = t5;
3207
- $[14] = t6;
3208
- } else {
3209
- t6 = $[14];
3210
- }
3211
- return t6;
3155
+ var props = useMutation(mutationOptions({
3156
+ queryClient: queryClient,
3157
+ threadContext: threadContext,
3158
+ superinterfaceContext: superinterfaceContext,
3159
+ onError: onError
3160
+ }));
3161
+ var createMessage = useCallback(function(variables) {
3162
+ return props.mutateAsync(_objectSpread18(_objectSpread18({}, threadContext.variables), variables));
3163
+ }, [
3164
+ props.mutateAsync,
3165
+ threadContext.variables
3166
+ ]);
3167
+ return _objectSpread18(_objectSpread18({}, props), {}, {
3168
+ createMessage: createMessage
3169
+ });
3212
3170
  };
3213
- function _temp() {}
3214
- function _temp2() {}
3215
3171
  // src/components/suggestions/Suggestions/Item.tsx
3216
3172
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
3217
3173
  // src/hooks/toasts/useToasts/index.ts
@@ -3297,7 +3253,7 @@ function _toPrimitive19(t, r) {
3297
3253
  return ("string" === r ? String : Number)(t);
3298
3254
  }
3299
3255
  var Item = function(t0) {
3300
- var $ = _c13(16);
3256
+ var $ = _c12(16);
3301
3257
  var suggestion = t0.suggestion, isDisabled = t0.isDisabled, className = t0.className, style = t0.style;
3302
3258
  var addToast = useToasts().addToast;
3303
3259
  var queryClient = useQueryClient3();
@@ -3425,7 +3381,7 @@ var Content4 = function(_ref) {
3425
3381
  import { jsx as _jsx29 } from "react/jsx-runtime";
3426
3382
  var Suggestions = function(t0) {
3427
3383
  var _latestMessageProps$l;
3428
- var $ = _c14(4);
3384
+ var $ = _c13(4);
3429
3385
  var children = t0.children, className = t0.className, style = t0.style;
3430
3386
  var latestMessageProps = useLatestMessage();
3431
3387
  var t1;
@@ -3457,7 +3413,7 @@ Suggestions.Item = Item;
3457
3413
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
3458
3414
  import { jsx as _jsx30 } from "react/jsx-runtime";
3459
3415
  var Code3 = function(t0) {
3460
- var $ = _c15(4);
3416
+ var $ = _c14(4);
3461
3417
  var children = t0.children, className = t0.className;
3462
3418
  if (className === "language-suggestions") {
3463
3419
  var _t;
@@ -3485,7 +3441,7 @@ var Code3 = function(t0) {
3485
3441
  return t1;
3486
3442
  };
3487
3443
  // src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
3488
- import { c as _c20 } from "react-compiler-runtime";
3444
+ import { c as _c19 } from "react-compiler-runtime";
3489
3445
  // src/components/images/Image.tsx
3490
3446
  import { Box as Box8 } from "@radix-ui/themes";
3491
3447
  import { jsx as _jsx31 } from "react/jsx-runtime";
@@ -3594,13 +3550,13 @@ import { Flex as Flex8 } from "@radix-ui/themes";
3594
3550
  import "@vidstack/react/player/styles/base.css";
3595
3551
  import { MediaPlayer, MediaProvider, Controls } from "@vidstack/react";
3596
3552
  // src/components/media/PlayButton.tsx
3597
- import { c as _c16 } from "react-compiler-runtime";
3553
+ import { c as _c15 } from "react-compiler-runtime";
3598
3554
  import { PlayButton as VidstackPlayButton, useMediaState } from "@vidstack/react";
3599
3555
  import { IconButton } from "@radix-ui/themes";
3600
3556
  import { PlayIcon, PauseIcon } from "@radix-ui/react-icons";
3601
3557
  import { jsx as _jsx32 } from "react/jsx-runtime";
3602
3558
  var PlayButton = function() {
3603
- var $ = _c16(2);
3559
+ var $ = _c15(2);
3604
3560
  var isPaused = useMediaState("paused");
3605
3561
  var t0;
3606
3562
  if ($[0] !== isPaused) {
@@ -3619,13 +3575,13 @@ var PlayButton = function() {
3619
3575
  return t0;
3620
3576
  };
3621
3577
  // src/components/media/VolumeButton.tsx
3622
- import { c as _c17 } from "react-compiler-runtime";
3578
+ import { c as _c16 } from "react-compiler-runtime";
3623
3579
  import { MuteButton, useMediaState as useMediaState2, useMediaRemote } from "@vidstack/react";
3624
3580
  import { IconButton as IconButton2, HoverCard, Slider } from "@radix-ui/themes";
3625
3581
  import { SpeakerModerateIcon, SpeakerOffIcon } from "@radix-ui/react-icons";
3626
3582
  import { jsx as _jsx33, jsxs as _jsxs11 } from "react/jsx-runtime";
3627
3583
  var VolumeButton = function() {
3628
- var $ = _c17(13);
3584
+ var $ = _c16(13);
3629
3585
  var volume = useMediaState2("volume");
3630
3586
  var isMuted = useMediaState2("muted");
3631
3587
  var remote = useMediaRemote();
@@ -3705,13 +3661,13 @@ var VolumeButton = function() {
3705
3661
  return t5;
3706
3662
  };
3707
3663
  // src/components/media/Time.tsx
3708
- import { c as _c18 } from "react-compiler-runtime";
3664
+ import { c as _c17 } from "react-compiler-runtime";
3709
3665
  import { useState, useEffect, useMemo as useMemo7 } from "react";
3710
3666
  import { useMediaState as useMediaState3, useMediaRemote as useMediaRemote2 } from "@vidstack/react";
3711
3667
  import { Slider as Slider2 } from "@radix-ui/themes";
3712
3668
  import { jsx as _jsx34 } from "react/jsx-runtime";
3713
3669
  var Time = function() {
3714
- var $ = _c18(17);
3670
+ var $ = _c17(17);
3715
3671
  var time = useMediaState3("currentTime");
3716
3672
  var duration = useMediaState3("duration");
3717
3673
  var seeking = useMediaState3("seeking");
@@ -3817,13 +3773,13 @@ var MediaContainer = function(_ref) {
3817
3773
  });
3818
3774
  };
3819
3775
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/FullscreenButton.tsx
3820
- import { c as _c19 } from "react-compiler-runtime";
3776
+ import { c as _c18 } from "react-compiler-runtime";
3821
3777
  import { FullscreenButton as VidstackFullscreenButton, useMediaState as useMediaState4 } from "@vidstack/react";
3822
3778
  import { IconButton as IconButton3 } from "@radix-ui/themes";
3823
3779
  import { EnterFullScreenIcon, ExitFullScreenIcon } from "@radix-ui/react-icons";
3824
3780
  import { jsx as _jsx36 } from "react/jsx-runtime";
3825
3781
  var FullscreenButton = function() {
3826
- var $ = _c19(2);
3782
+ var $ = _c18(2);
3827
3783
  var isFullscreen = useMediaState4("fullscreen");
3828
3784
  var t0;
3829
3785
  if ($[0] !== isFullscreen) {
@@ -3984,7 +3940,7 @@ function _toPrimitive21(t, r) {
3984
3940
  return ("string" === r ? String : Number)(t);
3985
3941
  }
3986
3942
  var Img = function(props) {
3987
- var $ = _c20(8);
3943
+ var $ = _c19(8);
3988
3944
  if (!props.src) {
3989
3945
  var t0;
3990
3946
  if ($[0] !== props) {
@@ -4040,7 +3996,7 @@ var Img = function(props) {
4040
3996
  }
4041
3997
  };
4042
3998
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
4043
- import { c as _c22 } from "react-compiler-runtime";
3999
+ import { c as _c21 } from "react-compiler-runtime";
4044
4000
  import { QuoteIcon } from "@radix-ui/react-icons";
4045
4001
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/AnnotationBase.tsx
4046
4002
  import { IconButton as IconButton4, Popover as Popover4, Flex as Flex10, Text as Text5 } from "@radix-ui/themes";
@@ -4072,10 +4028,10 @@ var AnnotationBase = function(_ref) {
4072
4028
  });
4073
4029
  };
4074
4030
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/FilePathAnnotation.tsx
4075
- import { c as _c21 } from "react-compiler-runtime";
4031
+ import { c as _c20 } from "react-compiler-runtime";
4076
4032
  import { jsx as _jsx41 } from "react/jsx-runtime";
4077
4033
  var FilePathAnnotation = function(t0) {
4078
- var $ = _c21(3);
4034
+ var $ = _c20(3);
4079
4035
  var annotation = t0.annotation, children = t0.children;
4080
4036
  var superinterfaceContext = useSuperinterfaceContext();
4081
4037
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -4099,7 +4055,7 @@ var FilePathAnnotation = function(t0) {
4099
4055
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
4100
4056
  import { jsx as _jsx42 } from "react/jsx-runtime";
4101
4057
  var Annotation = function(t0) {
4102
- var $ = _c22(4);
4058
+ var $ = _c21(4);
4103
4059
  var annotation = t0.annotation, children = t0.children;
4104
4060
  if (annotation.type === "file_citation") {
4105
4061
  var t1;
@@ -4710,7 +4666,7 @@ var replaceExpressionsWithLiterals = function(_ref3) {
4710
4666
  });
4711
4667
  };
4712
4668
  var TextContent = function(t0) {
4713
- var $ = _c23(13);
4669
+ var $ = _c22(13);
4714
4670
  var content = t0.content;
4715
4671
  var _useMarkdownContext = useMarkdownContext(), getRemarkPlugins2 = _useMarkdownContext.getRemarkPlugins, components2 = _useMarkdownContext.components;
4716
4672
  var t1;
@@ -4849,10 +4805,10 @@ var TextContent = function(t0) {
4849
4805
  return t7;
4850
4806
  };
4851
4807
  // src/components/threads/Thread/Message/ContentPart/ImageFileContent.tsx
4852
- import { c as _c24 } from "react-compiler-runtime";
4808
+ import { c as _c23 } from "react-compiler-runtime";
4853
4809
  import { jsx as _jsx45 } from "react/jsx-runtime";
4854
4810
  var ImageFileContent = function(t0) {
4855
- var $ = _c24(2);
4811
+ var $ = _c23(2);
4856
4812
  var content = t0.content;
4857
4813
  var superinterfaceContext = useSuperinterfaceContext();
4858
4814
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -4873,7 +4829,7 @@ var ImageFileContent = function(t0) {
4873
4829
  // src/components/threads/Thread/Message/ContentPart/index.tsx
4874
4830
  import { jsx as _jsx46 } from "react/jsx-runtime";
4875
4831
  var ContentPart = function(t0) {
4876
- var $ = _c25(4);
4832
+ var $ = _c24(4);
4877
4833
  var content = t0.content;
4878
4834
  if (content.type === "text") {
4879
4835
  var t1;
@@ -4906,7 +4862,7 @@ var ContentPart = function(t0) {
4906
4862
  // src/components/threads/Thread/Message/index.tsx
4907
4863
  import { jsx as _jsx47, jsxs as _jsxs16 } from "react/jsx-runtime";
4908
4864
  var Message = function(t0) {
4909
- var $ = _c26(51);
4865
+ var $ = _c25(51);
4910
4866
  var message = t0.message, className = t0.className, style = t0.style;
4911
4867
  var t1;
4912
4868
  bb0: {
@@ -4940,7 +4896,7 @@ var Message = function(t0) {
4940
4896
  var messageCreationRunStepIndex = message.runSteps.findIndex(_t2);
4941
4897
  var _t3;
4942
4898
  if ($[3] !== message.runSteps || $[4] !== messageCreationRunStepIndex) {
4943
- var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp3);
4899
+ var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp);
4944
4900
  if (nextRunStepIndex === -1) {
4945
4901
  nextRunStepIndex = 0;
4946
4902
  }
@@ -4954,7 +4910,7 @@ var Message = function(t0) {
4954
4910
  var laterRunSteps = _t3;
4955
4911
  var _t4;
4956
4912
  if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
4957
- _t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
4913
+ _t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp2);
4958
4914
  $[6] = message.runSteps;
4959
4915
  $[7] = messageCreationRunStepIndex;
4960
4916
  $[8] = _t4;
@@ -5015,7 +4971,7 @@ var Message = function(t0) {
5015
4971
  }
5016
4972
  var _t8;
5017
4973
  if ($[19] !== message.runSteps) {
5018
- _t8 = message.runSteps.some(_temp32);
4974
+ _t8 = message.runSteps.some(_temp3);
5019
4975
  $[19] = message.runSteps;
5020
4976
  $[20] = _t8;
5021
4977
  } else {
@@ -5144,13 +5100,13 @@ var Message = function(t0) {
5144
5100
  }
5145
5101
  return t12;
5146
5102
  };
5147
- function _temp3(runStep_0) {
5103
+ function _temp(runStep_0) {
5148
5104
  return runStep_0.step_details.type === "message_creation";
5149
5105
  }
5150
- function _temp22(runStep_1) {
5106
+ function _temp2(runStep_1) {
5151
5107
  return runStep_1.step_details.type === "message_creation";
5152
5108
  }
5153
- function _temp32(rs) {
5109
+ function _temp3(rs) {
5154
5110
  return rs.status === "in_progress";
5155
5111
  }
5156
5112
  function _temp4(content, index) {
@@ -5159,10 +5115,10 @@ function _temp4(content, index) {
5159
5115
  }, index);
5160
5116
  }
5161
5117
  // src/components/threads/Thread/Messages/Content/index.tsx
5162
- import { c as _c33 } from "react-compiler-runtime";
5118
+ import { c as _c32 } from "react-compiler-runtime";
5163
5119
  import { useEffect as useEffect3 } from "react";
5164
5120
  // src/hooks/messageGroups/useMessageGroups/index.ts
5165
- import { c as _c27 } from "react-compiler-runtime";
5121
+ import { c as _c26 } from "react-compiler-runtime";
5166
5122
  import { useMemo as useMemo11 } from "react";
5167
5123
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
5168
5124
  import _6 from "lodash";
@@ -5267,7 +5223,7 @@ var messageGroups = function(_ref) {
5267
5223
  };
5268
5224
  // src/hooks/messageGroups/useMessageGroups/index.ts
5269
5225
  var useMessageGroups = function(t0) {
5270
- var $ = _c27(4);
5226
+ var $ = _c26(4);
5271
5227
  var messages2 = t0.messages;
5272
5228
  var t1;
5273
5229
  var t2;
@@ -5294,16 +5250,16 @@ var useMessageGroups = function(t0) {
5294
5250
  return t1;
5295
5251
  };
5296
5252
  // src/components/skeletons/MessagesSkeleton/index.tsx
5297
- import { c as _c29 } from "react-compiler-runtime";
5253
+ import { c as _c28 } from "react-compiler-runtime";
5298
5254
  import { forwardRef as forwardRef3 } from "react";
5299
5255
  import { Flex as Flex13, Avatar, Box as Box10, Skeleton as Skeleton2 } from "@radix-ui/themes";
5300
5256
  // src/components/messageGroups/MessageGroupBase/index.tsx
5301
- import { c as _c28 } from "react-compiler-runtime";
5257
+ import { c as _c27 } from "react-compiler-runtime";
5302
5258
  import { forwardRef as forwardRef2 } from "react";
5303
5259
  import { Flex as Flex11, Container } from "@radix-ui/themes";
5304
5260
  import { jsx as _jsx48 } from "react/jsx-runtime";
5305
5261
  var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0, ref) {
5306
- var $ = _c28(5);
5262
+ var $ = _c27(5);
5307
5263
  var children = t0.children;
5308
5264
  var t1;
5309
5265
  if ($[0] !== children) {
@@ -5351,7 +5307,7 @@ var Name = function(_ref) {
5351
5307
  // src/components/skeletons/MessagesSkeleton/index.tsx
5352
5308
  import { jsx as _jsx50, jsxs as _jsxs17 } from "react/jsx-runtime";
5353
5309
  var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
5354
- var $ = _c29(7);
5310
+ var $ = _c28(7);
5355
5311
  var t0;
5356
5312
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
5357
5313
  t0 = /* @__PURE__ */ _jsx50(Skeleton2, {
@@ -5442,11 +5398,11 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
5442
5398
  return t5;
5443
5399
  });
5444
5400
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
5445
- import { c as _c32 } from "react-compiler-runtime";
5401
+ import { c as _c31 } from "react-compiler-runtime";
5446
5402
  import { useContext as useContext9 } from "react";
5447
5403
  import { Box as Box11 } from "@radix-ui/themes";
5448
5404
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
5449
- import { c as _c30 } from "react-compiler-runtime";
5405
+ import { c as _c29 } from "react-compiler-runtime";
5450
5406
  import { useContext as useContext7 } from "react";
5451
5407
  import { Flex as Flex14 } from "@radix-ui/themes";
5452
5408
  // src/contexts/assistants/AssistantAvatarContext/index.tsx
@@ -5461,7 +5417,7 @@ var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx
5461
5417
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
5462
5418
  import { jsx as _jsx52 } from "react/jsx-runtime";
5463
5419
  var AssistantAvatar = function() {
5464
- var $ = _c30(3);
5420
+ var $ = _c29(3);
5465
5421
  var AssistantAvatarContextValue = useContext7(AssistantAvatarContext);
5466
5422
  var t0;
5467
5423
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -5493,7 +5449,7 @@ var AssistantAvatar = function() {
5493
5449
  import { createContext as createContext9 } from "react";
5494
5450
  var AssistantNameContext = /* @__PURE__ */ createContext9("Assistant");
5495
5451
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
5496
- import { c as _c31 } from "react-compiler-runtime";
5452
+ import { c as _c30 } from "react-compiler-runtime";
5497
5453
  import { useContext as useContext8 } from "react";
5498
5454
  import { Flex as Flex15 } from "@radix-ui/themes";
5499
5455
  // src/contexts/users/UserAvatarContext/index.tsx
@@ -5508,7 +5464,7 @@ var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */ _jsx53(A
5508
5464
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
5509
5465
  import { jsx as _jsx54 } from "react/jsx-runtime";
5510
5466
  var UserAvatar = function() {
5511
- var $ = _c31(3);
5467
+ var $ = _c30(3);
5512
5468
  var UserAvatarContextValue = useContext8(UserAvatarContext);
5513
5469
  var t0;
5514
5470
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -5553,7 +5509,7 @@ var Content5 = function(_ref) {
5553
5509
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
5554
5510
  import { jsx as _jsx56, jsxs as _jsxs18 } from "react/jsx-runtime";
5555
5511
  var MessageGroup = function(t0) {
5556
- var $ = _c32(12);
5512
+ var $ = _c31(12);
5557
5513
  var messageGroup = t0.messageGroup;
5558
5514
  var assistantNameContext = useContext9(AssistantNameContext);
5559
5515
  var t1;
@@ -5619,7 +5575,7 @@ var MessageGroup = function(t0) {
5619
5575
  // src/components/threads/Thread/Messages/Content/index.tsx
5620
5576
  import { jsx as _jsx57, Fragment as _Fragment2 } from "react/jsx-runtime";
5621
5577
  var Content6 = function() {
5622
- var $ = _c33(11);
5578
+ var $ = _c32(11);
5623
5579
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
5624
5580
  var addToast = useToasts().addToast;
5625
5581
  var t0;
@@ -5693,15 +5649,15 @@ function _temp5(messageGroup) {
5693
5649
  }, messageGroup.id);
5694
5650
  }
5695
5651
  // src/components/threads/Thread/Messages/Progress/index.tsx
5696
- import { c as _c35 } from "react-compiler-runtime";
5652
+ import { c as _c34 } from "react-compiler-runtime";
5697
5653
  import { useMemo as useMemo12 } from "react";
5698
5654
  // src/components/skeletons/StartingSkeleton/index.tsx
5699
- import { c as _c34 } from "react-compiler-runtime";
5655
+ import { c as _c33 } from "react-compiler-runtime";
5700
5656
  import { useContext as useContext10 } from "react";
5701
5657
  import { Box as Box12 } from "@radix-ui/themes";
5702
5658
  import { jsx as _jsx58, jsxs as _jsxs19 } from "react/jsx-runtime";
5703
5659
  var StartingSkeleton = function(t0) {
5704
- var $ = _c34(7);
5660
+ var $ = _c33(7);
5705
5661
  var children = t0.children;
5706
5662
  var assistantNameContext = useContext10(AssistantNameContext);
5707
5663
  var t1;
@@ -5753,7 +5709,7 @@ var StartingSkeleton = function(t0) {
5753
5709
  // src/components/threads/Thread/Messages/Progress/index.tsx
5754
5710
  import { jsx as _jsx59 } from "react/jsx-runtime";
5755
5711
  var Progress = function() {
5756
- var $ = _c35(1);
5712
+ var $ = _c34(1);
5757
5713
  var latestMessage = useLatestMessage().latestMessage;
5758
5714
  var isMutatingMessage = useIsMutatingMessage();
5759
5715
  var t0;
@@ -5796,17 +5752,17 @@ var Progress = function() {
5796
5752
  return t1;
5797
5753
  };
5798
5754
  // src/components/threads/Thread/Messages/Root/index.tsx
5799
- import { c as _c36 } from "react-compiler-runtime";
5755
+ import { c as _c35 } from "react-compiler-runtime";
5800
5756
  import { Flex as Flex17 } from "@radix-ui/themes";
5801
5757
  // src/hooks/misc/useInfiniteScroll/index.tsx
5802
5758
  import { useRef as useRef3 } from "react";
5803
5759
  import { useInView } from "react-intersection-observer";
5804
5760
  // src/hooks/misc/useThrottledEffect/index.tsx
5805
5761
  import _7 from "lodash";
5806
- import { useRef as useRef2, useEffect as useEffect4, useCallback } from "react";
5762
+ import { useRef as useRef2, useEffect as useEffect4, useCallback as useCallback2 } from "react";
5807
5763
  var useThrottledEffect = function(cb, delay, additionalDeps) {
5808
5764
  var cbRef = useRef2(cb);
5809
- var throttledCb = useCallback(_7.throttle(function() {
5765
+ var throttledCb = useCallback2(_7.throttle(function() {
5810
5766
  var _cbRef;
5811
5767
  return (_cbRef = cbRef).current.apply(_cbRef, arguments);
5812
5768
  }, delay, {
@@ -5894,7 +5850,7 @@ function _toPrimitive26(t, r) {
5894
5850
  return ("string" === r ? String : Number)(t);
5895
5851
  }
5896
5852
  var Root2 = function(t0) {
5897
- var $ = _c36(18);
5853
+ var $ = _c35(18);
5898
5854
  var children = t0.children, style = t0.style, className = t0.className;
5899
5855
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
5900
5856
  var t1;
@@ -5977,10 +5933,10 @@ var Root2 = function(t0) {
5977
5933
  return t6;
5978
5934
  };
5979
5935
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
5980
- import { c as _c37 } from "react-compiler-runtime";
5936
+ import { c as _c36 } from "react-compiler-runtime";
5981
5937
  import { jsx as _jsx61 } from "react/jsx-runtime";
5982
5938
  var NextPageSkeleton = function() {
5983
- var $ = _c37(1);
5939
+ var $ = _c36(1);
5984
5940
  var hasNextPage = useMessages().hasNextPage;
5985
5941
  if (!hasNextPage) {
5986
5942
  return null;
@@ -6022,7 +5978,7 @@ Messages.Root = Root2;
6022
5978
  Messages.Message = Message;
6023
5979
  Messages.NextPageSkeleton = NextPageSkeleton;
6024
5980
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
6025
- import { c as _c38 } from "react-compiler-runtime";
5981
+ import { c as _c37 } from "react-compiler-runtime";
6026
5982
  import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
6027
5983
  import { IconButton as IconButton5, Flex as Flex19 } from "@radix-ui/themes";
6028
5984
  // src/hooks/messages/useMessageFormContext/index.ts
@@ -6097,7 +6053,7 @@ var Root3 = function(_ref) {
6097
6053
  });
6098
6054
  };
6099
6055
  var Button3 = function(props) {
6100
- var $ = _c38(10);
6056
+ var $ = _c37(10);
6101
6057
  var superinterfaceContext = useSuperinterfaceContext();
6102
6058
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
6103
6059
  if (isLoading) {
@@ -6181,7 +6137,7 @@ var formOptions = {
6181
6137
  resolver: zodResolver(schema)
6182
6138
  };
6183
6139
  // src/components/threads/Thread/MessageForm/Root/index.tsx
6184
- import { partob as partob2 } from "radash";
6140
+ import { partob } from "radash";
6185
6141
  import { jsx as _jsx64 } from "react/jsx-runtime";
6186
6142
  function ownKeys28(e, r) {
6187
6143
  var t = Object.keys(e);
@@ -6290,7 +6246,7 @@ var Root4 = function(_ref) {
6290
6246
  latestMessage,
6291
6247
  isDisabledArg
6292
6248
  ]);
6293
- var onSubmit = onSubmitArg ? partob2(onSubmitArg, {
6249
+ var onSubmit = onSubmitArg ? partob(onSubmitArg, {
6294
6250
  reset: reset,
6295
6251
  createMessage: createMessage
6296
6252
  }) : /* @__PURE__ */ function() {
@@ -6383,7 +6339,7 @@ var usePrevious = function(state) {
6383
6339
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
6384
6340
  import { useContext as useContext12, useMemo as useMemo14, useRef as useRef5, useEffect as useEffect6 } from "react";
6385
6341
  // src/components/textareas/TextareaBase/index.tsx
6386
- import { c as _c39 } from "react-compiler-runtime";
6342
+ import { c as _c38 } from "react-compiler-runtime";
6387
6343
  import { forwardRef as forwardRef4 } from "react";
6388
6344
  import TextareaAutosize from "react-textarea-autosize";
6389
6345
  import { jsx as _jsx65, Fragment as _Fragment3, jsxs as _jsxs22 } from "react/jsx-runtime";
@@ -6454,7 +6410,7 @@ function _objectWithoutPropertiesLoose2(r, e) {
6454
6410
  }
6455
6411
  var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
6456
6412
  var _className;
6457
- var $ = _c39(14);
6413
+ var $ = _c38(14);
6458
6414
  var className;
6459
6415
  var rest;
6460
6416
  var style;
@@ -6637,7 +6593,7 @@ var Control = function(props) {
6637
6593
  Control.Root = Root5;
6638
6594
  Control.Input = Input;
6639
6595
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
6640
- import { c as _c40 } from "react-compiler-runtime";
6596
+ import { c as _c39 } from "react-compiler-runtime";
6641
6597
  import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
6642
6598
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
6643
6599
  import { jsx as _jsx67, jsxs as _jsxs23 } from "react/jsx-runtime";
@@ -6685,7 +6641,7 @@ function _toPrimitive31(t, r) {
6685
6641
  return ("string" === r ? String : Number)(t);
6686
6642
  }
6687
6643
  var Preview = function(props) {
6688
- var $ = _c40(8);
6644
+ var $ = _c39(8);
6689
6645
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
6690
6646
  if (!files.length) {
6691
6647
  return null;
@@ -6777,13 +6733,13 @@ var Preview = function(props) {
6777
6733
  return t1;
6778
6734
  };
6779
6735
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
6780
- import { useCallback as useCallback2 } from "react";
6736
+ import { useCallback as useCallback3 } from "react";
6781
6737
  import { omit as omit4 } from "radash";
6782
6738
  import dayjs2 from "dayjs";
6783
6739
  import { FilePlusIcon } from "@radix-ui/react-icons";
6784
6740
  import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
6785
6741
  // src/hooks/files/useCreateFile/index.ts
6786
- import { c as _c41 } from "react-compiler-runtime";
6742
+ import { c as _c40 } from "react-compiler-runtime";
6787
6743
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
6788
6744
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
6789
6745
  var formData = function(variables) {
@@ -7019,7 +6975,7 @@ function _toPrimitive34(t, r) {
7019
6975
  return ("string" === r ? String : Number)(t);
7020
6976
  }
7021
6977
  var useCreateFile = function(t0) {
7022
- var $ = _c41(15);
6978
+ var $ = _c40(15);
7023
6979
  var t1;
7024
6980
  if ($[0] !== t0) {
7025
6981
  t1 = t0 === void 0 ? {
@@ -7033,7 +6989,7 @@ var useCreateFile = function(t0) {
7033
6989
  var t2 = t1.onError;
7034
6990
  var t3;
7035
6991
  if ($[2] !== t2) {
7036
- t3 = t2 === void 0 ? _temp23 : t2;
6992
+ t3 = t2 === void 0 ? _temp22 : t2;
7037
6993
  $[2] = t2;
7038
6994
  $[3] = t3;
7039
6995
  } else {
@@ -7093,7 +7049,7 @@ var useCreateFile = function(t0) {
7093
7049
  return t6;
7094
7050
  };
7095
7051
  function _temp6() {}
7096
- function _temp23() {}
7052
+ function _temp22() {}
7097
7053
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
7098
7054
  import { jsx as _jsx68, jsxs as _jsxs24 } from "react/jsx-runtime";
7099
7055
  function ownKeys35(e, r) {
@@ -7208,7 +7164,7 @@ var Control2 = function(props) {
7208
7164
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, setFiles = _useMessageFormContext.setFiles;
7209
7165
  var createFile = useCreateFile().createFile;
7210
7166
  var addToast = useToasts().addToast;
7211
- var onChange = useCallback2(/* @__PURE__ */ function() {
7167
+ var onChange = useCallback3(/* @__PURE__ */ function() {
7212
7168
  var _ref = _asyncToGenerator8(function(event) {
7213
7169
  var fileObjects, newFiles, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
7214
7170
  return _ts_generator(this, function(_state) {
@@ -7562,8 +7518,8 @@ import { Flex as Flex25 } from "@radix-ui/themes";
7562
7518
  // src/components/threads/Thread/Provider/index.tsx
7563
7519
  var Provider2 = SuperinterfaceProvider;
7564
7520
  // src/components/toasts/ToastsProvider/index.tsx
7565
- import { c as _c42 } from "react-compiler-runtime";
7566
- import { useState as useState5, useCallback as useCallback3 } from "react";
7521
+ import { c as _c41 } from "react-compiler-runtime";
7522
+ import { useState as useState5, useCallback as useCallback4 } from "react";
7567
7523
  import * as Toast2 from "@radix-ui/react-toast";
7568
7524
  // src/components/toasts/ToastsProvider/CustomToast.tsx
7569
7525
  import * as Toast from "@radix-ui/react-toast";
@@ -7601,7 +7557,7 @@ var CustomToast = function(_ref) {
7601
7557
  // src/components/toasts/ToastsProvider/index.tsx
7602
7558
  import { jsx as _jsx72, jsxs as _jsxs27 } from "react/jsx-runtime";
7603
7559
  var ToastsProvider = function(t0) {
7604
- var $ = _c42(15);
7560
+ var $ = _c41(15);
7605
7561
  var children = t0.children, t1 = t0.bottom;
7606
7562
  var bottom = t1 === void 0 ? 0 : t1;
7607
7563
  var t2;
@@ -7849,7 +7805,7 @@ var useMessageContext = function() {
7849
7805
  return useContext13(MessageContext);
7850
7806
  };
7851
7807
  // src/hooks/assistants/useAssistant/index.ts
7852
- import { c as _c43 } from "react-compiler-runtime";
7808
+ import { c as _c42 } from "react-compiler-runtime";
7853
7809
  import { useMemo as useMemo15 } from "react";
7854
7810
  import { useQuery } from "@tanstack/react-query";
7855
7811
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -7999,7 +7955,7 @@ function _toPrimitive40(t, r) {
7999
7955
  return ("string" === r ? String : Number)(t);
8000
7956
  }
8001
7957
  var useAssistant = function(t0) {
8002
- var $ = _c43(6);
7958
+ var $ = _c42(6);
8003
7959
  var assistantId = t0.assistantId;
8004
7960
  var superinterfaceContext = useSuperinterfaceContext();
8005
7961
  var t1;
@@ -8032,7 +7988,7 @@ var useAssistant = function(t0) {
8032
7988
  return t2;
8033
7989
  };
8034
7990
  // src/components/threads/ThreadDialog/Provider/index.tsx
8035
- import { c as _c44 } from "react-compiler-runtime";
7991
+ import { c as _c43 } from "react-compiler-runtime";
8036
7992
  import { useState as useState6 } from "react";
8037
7993
  // src/contexts/threads/ThreadDialogContext/index.ts
8038
7994
  import { createContext as createContext12 } from "react";
@@ -8048,7 +8004,7 @@ var useThreadDialogContext = function() {
8048
8004
  // src/components/threads/ThreadDialog/Provider/index.tsx
8049
8005
  import { jsx as _jsx75 } from "react/jsx-runtime";
8050
8006
  var Provider4 = function(t0) {
8051
- var $ = _c44(5);
8007
+ var $ = _c43(5);
8052
8008
  var children = t0.children;
8053
8009
  var threadDialogContext = useThreadDialogContext();
8054
8010
  var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
@@ -8086,7 +8042,7 @@ var Root9 = function(_ref) {
8086
8042
  });
8087
8043
  };
8088
8044
  // src/components/threads/ThreadDialog/Trigger/index.tsx
8089
- import { c as _c45 } from "react-compiler-runtime";
8045
+ import { c as _c44 } from "react-compiler-runtime";
8090
8046
  import { Flex as Flex26 } from "@radix-ui/themes";
8091
8047
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
8092
8048
  import { IconButton as IconButton8 } from "@radix-ui/themes";
@@ -8189,7 +8145,7 @@ function _toPrimitive42(t, r) {
8189
8145
  return ("string" === r ? String : Number)(t);
8190
8146
  }
8191
8147
  var Root10 = function(t0) {
8192
- var $ = _c45(14);
8148
+ var $ = _c44(14);
8193
8149
  var children = t0.children, style = t0.style, className = t0.className;
8194
8150
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
8195
8151
  var t1 = isOpen ? "none" : "flex";
@@ -8270,15 +8226,15 @@ function _temp8(prev) {
8270
8226
  return !prev;
8271
8227
  }
8272
8228
  // src/components/threads/ThreadDialog/Content/index.tsx
8273
- import { c as _c47 } from "react-compiler-runtime";
8229
+ import { c as _c46 } from "react-compiler-runtime";
8274
8230
  import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
8275
8231
  // src/components/threads/ThreadDialog/Close/index.tsx
8276
- import { c as _c46 } from "react-compiler-runtime";
8232
+ import { c as _c45 } from "react-compiler-runtime";
8277
8233
  import { Cross1Icon } from "@radix-ui/react-icons";
8278
8234
  import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
8279
8235
  import { jsx as _jsx79 } from "react/jsx-runtime";
8280
8236
  var Close = function() {
8281
- var $ = _c46(9);
8237
+ var $ = _c45(9);
8282
8238
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
8283
8239
  var t0 = isOpen ? "flex" : "none";
8284
8240
  var t1;
@@ -8394,7 +8350,7 @@ function _toPrimitive43(t, r) {
8394
8350
  return ("string" === r ? String : Number)(t);
8395
8351
  }
8396
8352
  var Root11 = function(t0) {
8397
- var $ = _c47(19);
8353
+ var $ = _c46(19);
8398
8354
  var children = t0.children, className = t0.className, style = t0.style;
8399
8355
  var isOpen = useThreadDialogContext().isOpen;
8400
8356
  if (!isOpen) {
@@ -8593,7 +8549,7 @@ ThreadDialog.Root = Root9;
8593
8549
  ThreadDialog.Trigger = Trigger;
8594
8550
  ThreadDialog.Content = Content7;
8595
8551
  // src/components/threads/AudioThread/Root/index.tsx
8596
- import { c as _c52 } from "react-compiler-runtime";
8552
+ import { c as _c51 } from "react-compiler-runtime";
8597
8553
  import { Flex as Flex29 } from "@radix-ui/themes";
8598
8554
  // src/contexts/threads/AudioThreadContext/index.ts
8599
8555
  import { createContext as createContext13 } from "react";
@@ -8713,7 +8669,7 @@ var AudioThreadContext = /* @__PURE__ */ createContext13({
8713
8669
  }
8714
8670
  });
8715
8671
  // src/hooks/misc/usePermission/index.ts
8716
- import { c as _c48 } from "react-compiler-runtime";
8672
+ import { c as _c47 } from "react-compiler-runtime";
8717
8673
  import { useEffect as useEffect7, useState as useState7 } from "react";
8718
8674
  // src/hooks/misc/usePermission/util.ts
8719
8675
  var noop = function() {};
@@ -8737,7 +8693,7 @@ function off(obj) {
8737
8693
  }
8738
8694
  // src/hooks/misc/usePermission/index.ts
8739
8695
  var usePermission = function(permissionDesc) {
8740
- var $ = _c48(3);
8696
+ var $ = _c47(3);
8741
8697
  var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
8742
8698
  var t0;
8743
8699
  var t1;
@@ -8791,10 +8747,10 @@ var blobToData = function(blob) {
8791
8747
  });
8792
8748
  };
8793
8749
  // src/hooks/audioThreads/useStatus/index.ts
8794
- import { c as _c49 } from "react-compiler-runtime";
8750
+ import { c as _c48 } from "react-compiler-runtime";
8795
8751
  import { useMemo as useMemo16 } from "react";
8796
8752
  var useStatus = function(t0) {
8797
- var $ = _c49(2);
8753
+ var $ = _c48(2);
8798
8754
  var messageAudioProps = t0.messageAudioProps, recorderProps = t0.recorderProps, createMessageProps = t0.createMessageProps;
8799
8755
  var latestMessageProps = useLatestMessage();
8800
8756
  var t1;
@@ -8850,13 +8806,13 @@ var useStatus = function(t0) {
8850
8806
  // src/hooks/audioThreads/useRecorder/index.ts
8851
8807
  import dayjs3 from "dayjs";
8852
8808
  import { useAudioCapture } from "use-audio-capture";
8853
- import { useMemo as useMemo17, useRef as useRef7, useState as useState8, useCallback as useCallback4, useEffect as useEffect9 } from "react";
8809
+ import { useMemo as useMemo17, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
8854
8810
  import { useAudioPlayer } from "react-use-audio-player";
8855
8811
  // src/hooks/misc/useInterval.ts
8856
- import { c as _c50 } from "react-compiler-runtime";
8812
+ import { c as _c49 } from "react-compiler-runtime";
8857
8813
  import { useEffect as useEffect8, useRef as useRef6 } from "react";
8858
8814
  var useInterval = function(callback, delay) {
8859
- var $ = _c50(5);
8815
+ var $ = _c49(5);
8860
8816
  var savedCallback = useRef6(_temp10);
8861
8817
  var t0;
8862
8818
  if ($[0] !== callback) {
@@ -9063,7 +9019,7 @@ var useRecorder = function(_ref) {
9063
9019
  }, [
9064
9020
  audioEngine
9065
9021
  ]);
9066
- var handleSilence = useCallback4(function() {
9022
+ var handleSilence = useCallback5(function() {
9067
9023
  if (!silenceAnalyser) return;
9068
9024
  var frequencyData = new Uint8Array(silenceAnalyser.frequencyBinCount);
9069
9025
  silenceAnalyser.getByteFrequencyData(frequencyData);
@@ -9109,7 +9065,7 @@ var useRecorder = function(_ref) {
9109
9065
  });
9110
9066
  };
9111
9067
  // src/hooks/audioThreads/useMessageAudio/index.ts
9112
- import { c as _c51 } from "react-compiler-runtime";
9068
+ import { c as _c50 } from "react-compiler-runtime";
9113
9069
  import { useMemo as useMemo18, useRef as useRef8, useState as useState9, useEffect as useEffect10 } from "react";
9114
9070
  import nlp from "compromise";
9115
9071
  import { Howler } from "howler";
@@ -9191,7 +9147,7 @@ var getMessageSentences = function(_ref) {
9191
9147
  });
9192
9148
  };
9193
9149
  var useMessageAudio = function(t0) {
9194
- var $ = _c51(44);
9150
+ var $ = _c50(44);
9195
9151
  var onEnd = t0.onEnd;
9196
9152
  var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
9197
9153
  var t1;
@@ -9600,7 +9556,7 @@ function _asyncToGenerator12(n) {
9600
9556
  };
9601
9557
  }
9602
9558
  var Content8 = function(t0) {
9603
- var $ = _c52(21);
9559
+ var $ = _c51(21);
9604
9560
  var children = t0.children, className = t0.className, style = t0.style;
9605
9561
  var addToast = useToasts().addToast;
9606
9562
  var queryClient = useQueryClient6();
@@ -9753,20 +9709,20 @@ var Root12 = function(_ref) {
9753
9709
  });
9754
9710
  };
9755
9711
  function _temp12() {
9756
- return _temp24.apply(this, arguments);
9712
+ return _temp23.apply(this, arguments);
9757
9713
  }
9758
- function _temp24() {
9759
- _temp24 = _asyncToGenerator12(function() {
9714
+ function _temp23() {
9715
+ _temp23 = _asyncToGenerator12(function() {
9760
9716
  return _ts_generator(this, function(_state) {
9761
9717
  return [
9762
9718
  2
9763
9719
  ];
9764
9720
  });
9765
9721
  });
9766
- return _temp24.apply(this, arguments);
9722
+ return _temp23.apply(this, arguments);
9767
9723
  }
9768
9724
  // src/components/threads/AudioThread/Visualization/index.tsx
9769
- import { useContext as useContext16, useState as useState11, useCallback as useCallback6, useEffect as useEffect12 } from "react";
9725
+ import { useContext as useContext16, useState as useState11, useCallback as useCallback7, useEffect as useEffect12 } from "react";
9770
9726
  import _9 from "lodash";
9771
9727
  import { Flex as Flex31 } from "@radix-ui/themes";
9772
9728
  // src/hooks/threads/useAudioThreadContext/index.ts
@@ -9777,14 +9733,14 @@ var useAudioThreadContext = function() {
9777
9733
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
9778
9734
  import _8 from "lodash";
9779
9735
  import { Flex as Flex30, Grid } from "@radix-ui/themes";
9780
- import { useState as useState10, useEffect as useEffect11, useCallback as useCallback5 } from "react";
9736
+ import { useState as useState10, useEffect as useEffect11, useCallback as useCallback6 } from "react";
9781
9737
  import { cluster } from "radash";
9782
9738
  import { jsx as _jsx83 } from "react/jsx-runtime";
9783
9739
  var barCount = 4;
9784
9740
  var BarsVisualizer = function(_ref) {
9785
9741
  var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
9786
9742
  var _useState10 = _sliced_to_array(useState10([]), 2), barHeights = _useState10[0], setBarHeights = _useState10[1];
9787
- var draw = useCallback5(function(_ref2) {
9743
+ var draw = useCallback6(function(_ref2) {
9788
9744
  var visualizationAnalyser_0 = _ref2.visualizationAnalyser;
9789
9745
  if (!visualizationAnalyser_0) {
9790
9746
  setBarHeights(Array(barCount).fill(0));
@@ -9887,7 +9843,7 @@ var Visualization = function(props) {
9887
9843
  var audioThreadContext = useAudioThreadContext();
9888
9844
  var assistantNameContext = useContext16(AssistantNameContext);
9889
9845
  var _useState11 = _sliced_to_array(useState11(0), 2), scale = _useState11[0], setScale = _useState11[1];
9890
- var draw = useCallback6(function(_ref) {
9846
+ var draw = useCallback7(function(_ref) {
9891
9847
  var visualizationAnalyser = _ref.visualizationAnalyser;
9892
9848
  if (!visualizationAnalyser) {
9893
9849
  setScale(1);
@@ -9950,7 +9906,7 @@ var Visualization = function(props) {
9950
9906
  }));
9951
9907
  };
9952
9908
  // src/components/threads/AudioThread/Status/index.tsx
9953
- import { c as _c53 } from "react-compiler-runtime";
9909
+ import { c as _c52 } from "react-compiler-runtime";
9954
9910
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
9955
9911
  import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
9956
9912
  import { jsx as _jsx85, jsxs as _jsxs32 } from "react/jsx-runtime";
@@ -10030,7 +9986,7 @@ function _toPrimitive48(t, r) {
10030
9986
  return ("string" === r ? String : Number)(t);
10031
9987
  }
10032
9988
  var Status = function(props) {
10033
- var $ = _c53(12);
9989
+ var $ = _c52(12);
10034
9990
  var audioThreadContext = useAudioThreadContext();
10035
9991
  if (audioThreadContext.status === "recording") {
10036
9992
  var _t;
@@ -10127,7 +10083,7 @@ var Status = function(props) {
10127
10083
  return t1;
10128
10084
  };
10129
10085
  // src/components/threads/AudioThread/Form/index.tsx
10130
- import { c as _c55 } from "react-compiler-runtime";
10086
+ import { c as _c54 } from "react-compiler-runtime";
10131
10087
  import { Flex as Flex34 } from "@radix-ui/themes";
10132
10088
  // src/components/threads/AudioThread/Form/MicIcon.tsx
10133
10089
  import { jsx as _jsx87 } from "react/jsx-runtime";
@@ -10191,12 +10147,12 @@ var MicIcon = function(props) {
10191
10147
  }));
10192
10148
  };
10193
10149
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
10194
- import { c as _c54 } from "react-compiler-runtime";
10150
+ import { c as _c53 } from "react-compiler-runtime";
10195
10151
  import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
10196
10152
  import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
10197
10153
  import { jsx as _jsx88, jsxs as _jsxs33 } from "react/jsx-runtime";
10198
10154
  var ActionButton = function() {
10199
- var $ = _c54(27);
10155
+ var $ = _c53(27);
10200
10156
  var audioThreadContext = useAudioThreadContext();
10201
10157
  var superinterfaceContext = useSuperinterfaceContext();
10202
10158
  if (audioThreadContext.status === "recording") {
@@ -10433,7 +10389,7 @@ function _toPrimitive50(t, r) {
10433
10389
  return ("string" === r ? String : Number)(t);
10434
10390
  }
10435
10391
  var Form = function(props) {
10436
- var $ = _c55(17);
10392
+ var $ = _c54(17);
10437
10393
  var audioThreadContext = useAudioThreadContext();
10438
10394
  var t0 = audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
10439
10395
  var t1;
@@ -10653,7 +10609,7 @@ AudioThreadDialog.Root = Root9;
10653
10609
  AudioThreadDialog.Trigger = Trigger;
10654
10610
  AudioThreadDialog.Content = Content7;
10655
10611
  // src/components/markdown/MarkdownProvider/index.tsx
10656
- import { c as _c56 } from "react-compiler-runtime";
10612
+ import { c as _c55 } from "react-compiler-runtime";
10657
10613
  import { useMemo as useMemo19 } from "react";
10658
10614
  import { jsx as _jsx92 } from "react/jsx-runtime";
10659
10615
  var _excluded5 = [
@@ -10678,7 +10634,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
10678
10634
  return t;
10679
10635
  }
10680
10636
  var MarkdownProvider = function(t0) {
10681
- var $ = _c56(9);
10637
+ var $ = _c55(9);
10682
10638
  var children;
10683
10639
  var rest;
10684
10640
  if ($[0] !== t0) {
@@ -10721,7 +10677,7 @@ var MarkdownProvider = function(t0) {
10721
10677
  return t3;
10722
10678
  };
10723
10679
  // src/components/avatars/Avatar.tsx
10724
- import { c as _c59 } from "react-compiler-runtime";
10680
+ import { c as _c58 } from "react-compiler-runtime";
10725
10681
  // src/lib/enums/index.ts
10726
10682
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
10727
10683
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -10746,7 +10702,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
10746
10702
  // src/components/avatars/Avatar.tsx
10747
10703
  import { Avatar as RadixAvatar } from "@radix-ui/themes";
10748
10704
  // src/components/imageAvatars/ImageAvatar/index.tsx
10749
- import { c as _c57 } from "react-compiler-runtime";
10705
+ import { c as _c56 } from "react-compiler-runtime";
10750
10706
  import { Avatar as Avatar4 } from "@radix-ui/themes";
10751
10707
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
10752
10708
  var width = function(_ref) {
@@ -10800,7 +10756,7 @@ var optimizedSrc = function(_ref) {
10800
10756
  // src/components/imageAvatars/ImageAvatar/index.tsx
10801
10757
  import { jsx as _jsx93 } from "react/jsx-runtime";
10802
10758
  var ImageAvatar = function(t0) {
10803
- var $ = _c57(9);
10759
+ var $ = _c56(9);
10804
10760
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
10805
10761
  var superinterfaceContext = useSuperinterfaceContext();
10806
10762
  var t1;
@@ -10837,7 +10793,7 @@ var ImageAvatar = function(t0) {
10837
10793
  return t2;
10838
10794
  };
10839
10795
  // src/components/iconAvatars/IconAvatar.tsx
10840
- import { c as _c58 } from "react-compiler-runtime";
10796
+ import { c as _c57 } from "react-compiler-runtime";
10841
10797
  import { useMemo as useMemo20 } from "react";
10842
10798
  import { Avatar as Avatar5 } from "@radix-ui/themes";
10843
10799
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -10847,7 +10803,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
10847
10803
  // src/components/iconAvatars/IconAvatar.tsx
10848
10804
  import { jsx as _jsx94 } from "react/jsx-runtime";
10849
10805
  var IconAvatar = function(t0) {
10850
- var $ = _c58(7);
10806
+ var $ = _c57(7);
10851
10807
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
10852
10808
  var t1;
10853
10809
  t1 = iconAvatarComponents[iconAvatar.name];
@@ -10881,7 +10837,7 @@ var IconAvatar = function(t0) {
10881
10837
  // src/components/avatars/Avatar.tsx
10882
10838
  import { jsx as _jsx95 } from "react/jsx-runtime";
10883
10839
  var Avatar6 = function(t0) {
10884
- var $ = _c59(14);
10840
+ var $ = _c58(14);
10885
10841
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
10886
10842
  var size = t1 === void 0 ? "1" : t1;
10887
10843
  if (avatar) {
@@ -10942,7 +10898,7 @@ var Avatar6 = function(t0) {
10942
10898
  return t2;
10943
10899
  };
10944
10900
  // src/components/components/ComponentsProvider.tsx
10945
- import { c as _c60 } from "react-compiler-runtime";
10901
+ import { c as _c59 } from "react-compiler-runtime";
10946
10902
  import { useMemo as useMemo21 } from "react";
10947
10903
  // src/hooks/components/useComponents.ts
10948
10904
  import { useContext as useContext17 } from "react";
@@ -10973,7 +10929,7 @@ function _objectWithoutPropertiesLoose6(r, e) {
10973
10929
  return t;
10974
10930
  }
10975
10931
  var ComponentsProvider = function(t0) {
10976
- var $ = _c60(9);
10932
+ var $ = _c59(9);
10977
10933
  var children;
10978
10934
  var rest;
10979
10935
  if ($[0] !== t0) {
@@ -11016,11 +10972,11 @@ var ComponentsProvider = function(t0) {
11016
10972
  return t3;
11017
10973
  };
11018
10974
  // src/components/assistants/AssistantProvider/index.tsx
11019
- import { c as _c61 } from "react-compiler-runtime";
10975
+ import { c as _c60 } from "react-compiler-runtime";
11020
10976
  import { jsx as _jsx97 } from "react/jsx-runtime";
11021
10977
  var AssistantProvider = function(t0) {
11022
10978
  var _assistant$name;
11023
- var $ = _c61(10);
10979
+ var $ = _c60(10);
11024
10980
  var children = t0.children;
11025
10981
  var superinterfaceContext = useSuperinterfaceContext();
11026
10982
  var t1;