@superinterface/react 3.9.1 → 3.9.3

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
@@ -6322,11 +6322,9 @@ var Root4 = function(_ref) {
6322
6322
  });
6323
6323
  };
6324
6324
  // src/components/threads/Thread/MessageForm/Field/index.tsx
6325
- import { c as _c42 } from "react-compiler-runtime";
6326
6325
  import { useFormContext as useFormContext2 } from "react-hook-form";
6327
6326
  import { Container as RadixContainer, Flex as Flex23 } from "@radix-ui/themes";
6328
6327
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
6329
- import { c as _c39 } from "react-compiler-runtime";
6330
6328
  import { Flex as Flex20 } from "@radix-ui/themes";
6331
6329
  import { useFormContext } from "react-hook-form";
6332
6330
  // src/hooks/misc/usePrevious.ts
@@ -6544,110 +6542,48 @@ var Root5 = function(_ref) {
6544
6542
  });
6545
6543
  };
6546
6544
  var Input = function(props) {
6545
+ "use no memo";
6547
6546
  var _props$placeholder;
6548
- var $ = _c39(20);
6549
6547
  var assistantNameContext = useContext12(AssistantNameContext);
6550
6548
  var register = useFormContext().register;
6551
6549
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
6552
- var t0;
6553
- t0 = isDisabled || isLoading;
6554
- var isSubmitDisabled = t0;
6550
+ var isSubmitDisabled = useMemo14(function() {
6551
+ return isDisabled || isLoading;
6552
+ }, [
6553
+ isDisabled,
6554
+ isLoading
6555
+ ]);
6555
6556
  var isDisabledPrevious = usePrevious(isDisabled);
6556
6557
  var textareaRef = useRef5(null);
6557
- var t1;
6558
- if ($[0] !== register) {
6559
- t1 = register("content");
6560
- $[0] = register;
6561
- $[1] = t1;
6562
- } else {
6563
- t1 = $[1];
6564
- }
6565
- var textareaProps = t1;
6566
- var t2;
6567
- if ($[2] !== isDisabled || $[3] !== isDisabledPrevious) {
6568
- t2 = function() {
6569
- if (isDisabled) {
6570
- return;
6571
- }
6572
- if (!isDisabledPrevious) {
6573
- return;
6574
- }
6575
- if (!textareaRef.current) {
6576
- return;
6577
- }
6578
- textareaRef.current.focus();
6579
- };
6580
- $[2] = isDisabled;
6581
- $[3] = isDisabledPrevious;
6582
- $[4] = t2;
6583
- } else {
6584
- t2 = $[4];
6585
- }
6586
- var t3;
6587
- if ($[5] !== isDisabled || $[6] !== isDisabledPrevious || $[7] !== textareaProps) {
6588
- t3 = [
6589
- isDisabled,
6590
- isDisabledPrevious,
6591
- textareaProps
6592
- ];
6593
- $[5] = isDisabled;
6594
- $[6] = isDisabledPrevious;
6595
- $[7] = textareaProps;
6596
- $[8] = t3;
6597
- } else {
6598
- t3 = $[8];
6599
- }
6600
- useEffect6(t2, t3);
6601
- var t4 = (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "...");
6602
- var t5;
6603
- if ($[9] !== isSubmitDisabled) {
6604
- t5 = function(e) {
6558
+ var textareaProps = register("content");
6559
+ useEffect6(function() {
6560
+ if (isDisabled) return;
6561
+ if (!isDisabledPrevious) return;
6562
+ if (!textareaRef.current) return;
6563
+ textareaRef.current.focus();
6564
+ }, [
6565
+ isDisabled,
6566
+ isDisabledPrevious,
6567
+ textareaProps
6568
+ ]);
6569
+ return /* @__PURE__ */ _jsx66(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
6570
+ minRows: 1,
6571
+ placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
6572
+ disabled: isDisabled,
6573
+ onKeyDown: function(e) {
6605
6574
  if (e.key === "Enter" && !e.shiftKey) {
6606
6575
  var _e$currentTarget$form;
6607
6576
  e.preventDefault();
6608
- if (isSubmitDisabled) {
6609
- return;
6610
- }
6577
+ if (isSubmitDisabled) return;
6611
6578
  (_e$currentTarget$form = e.currentTarget.form) === null || _e$currentTarget$form === void 0 || _e$currentTarget$form.requestSubmit();
6612
6579
  }
6613
- };
6614
- $[9] = isSubmitDisabled;
6615
- $[10] = t5;
6616
- } else {
6617
- t5 = $[10];
6618
- }
6619
- var t6;
6620
- if ($[11] !== textareaProps) {
6621
- t6 = function(e_0) {
6580
+ }
6581
+ }, textareaProps), props), {}, {
6582
+ ref: function(e_0) {
6622
6583
  textareaProps.ref(e_0);
6623
6584
  textareaRef.current = e_0;
6624
- };
6625
- $[11] = textareaProps;
6626
- $[12] = t6;
6627
- } else {
6628
- t6 = $[12];
6629
- }
6630
- var t7;
6631
- if ($[13] !== isDisabled || $[14] !== props || $[15] !== t4 || $[16] !== t5 || $[17] !== t6 || $[18] !== textareaProps) {
6632
- t7 = /* @__PURE__ */ _jsx66(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
6633
- minRows: 1,
6634
- placeholder: t4,
6635
- disabled: isDisabled,
6636
- onKeyDown: t5
6637
- }, textareaProps), props), {}, {
6638
- ref: t6
6639
- }));
6640
- $[13] = isDisabled;
6641
- $[14] = props;
6642
- $[15] = t4;
6643
- $[16] = t5;
6644
- $[17] = t6;
6645
- $[18] = textareaProps;
6646
- $[19] = t7;
6647
- } else {
6648
- t7 = $[19];
6649
- }
6650
- return t7;
6585
+ }
6586
+ }));
6651
6587
  };
6652
6588
  var Control = function(props) {
6653
6589
  return /* @__PURE__ */ _jsx66(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
@@ -6657,7 +6593,7 @@ var Control = function(props) {
6657
6593
  Control.Root = Root5;
6658
6594
  Control.Input = Input;
6659
6595
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
6660
- import { c as _c40 } from "react-compiler-runtime";
6596
+ import { c as _c39 } from "react-compiler-runtime";
6661
6597
  import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
6662
6598
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
6663
6599
  import { jsx as _jsx67, jsxs as _jsxs23 } from "react/jsx-runtime";
@@ -6705,7 +6641,7 @@ function _toPrimitive31(t, r) {
6705
6641
  return ("string" === r ? String : Number)(t);
6706
6642
  }
6707
6643
  var Preview = function(props) {
6708
- var $ = _c40(8);
6644
+ var $ = _c39(8);
6709
6645
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
6710
6646
  if (!files.length) {
6711
6647
  return null;
@@ -6803,7 +6739,7 @@ import dayjs2 from "dayjs";
6803
6739
  import { FilePlusIcon } from "@radix-ui/react-icons";
6804
6740
  import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
6805
6741
  // src/hooks/files/useCreateFile/index.ts
6806
- import { c as _c41 } from "react-compiler-runtime";
6742
+ import { c as _c40 } from "react-compiler-runtime";
6807
6743
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
6808
6744
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
6809
6745
  var formData = function(variables) {
@@ -7039,7 +6975,7 @@ function _toPrimitive34(t, r) {
7039
6975
  return ("string" === r ? String : Number)(t);
7040
6976
  }
7041
6977
  var useCreateFile = function(t0) {
7042
- var $ = _c41(15);
6978
+ var $ = _c40(15);
7043
6979
  var t1;
7044
6980
  if ($[0] !== t0) {
7045
6981
  t1 = t0 === void 0 ? {
@@ -7481,76 +7417,38 @@ function _toPrimitive36(t, r) {
7481
7417
  }
7482
7418
  return ("string" === r ? String : Number)(t);
7483
7419
  }
7484
- var Root6 = function(t0) {
7485
- var $ = _c42(12);
7486
- var children = t0.children, className = t0.className, style = t0.style;
7487
- var _useFormContext2 = useFormContext2(), t1 = _useFormContext2.formState;
7488
- var errors = t1.errors;
7489
- var t2 = errors.content ? "var(--red-9)" : "var(--gray-5)";
7490
- var t3;
7491
- if ($[0] !== errors.content) {
7492
- t3 = errors.content ? {
7493
- backgroundColor: "var(--red-2)"
7494
- } : {};
7495
- $[0] = errors.content;
7496
- $[1] = t3;
7497
- } else {
7498
- t3 = $[1];
7499
- }
7500
- var t4;
7501
- if ($[2] !== t2 || $[3] !== t3) {
7502
- t4 = _objectSpread36({
7503
- borderRadius: "var(--radius-2)",
7504
- borderWidth: "1px",
7505
- borderStyle: "solid",
7506
- borderColor: t2
7507
- }, t3);
7508
- $[2] = t2;
7509
- $[3] = t3;
7510
- $[4] = t4;
7511
- } else {
7512
- t4 = $[4];
7513
- }
7514
- var t5;
7515
- if ($[5] !== children || $[6] !== t4) {
7516
- t5 = /* @__PURE__ */ _jsx69(Flex23, {
7420
+ var Root6 = function(_ref) {
7421
+ "use no memo";
7422
+ var children = _ref.children, className = _ref.className, style = _ref.style;
7423
+ var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
7424
+ return /* @__PURE__ */ _jsx69(RadixContainer, {
7425
+ size: "2",
7426
+ flexGrow: "0",
7427
+ className: className,
7428
+ style: style,
7429
+ children: /* @__PURE__ */ _jsx69(Flex23, {
7517
7430
  direction: "column",
7518
7431
  flexShrink: "0",
7519
7432
  children: /* @__PURE__ */ _jsx69(Flex23, {
7520
7433
  direction: "column",
7521
7434
  flexShrink: "0",
7522
7435
  children: /* @__PURE__ */ _jsx69(Flex23, {
7523
- style: t4,
7436
+ style: _objectSpread36({
7437
+ borderRadius: "var(--radius-2)",
7438
+ borderWidth: "1px",
7439
+ borderStyle: "solid",
7440
+ borderColor: errors.content ? "var(--red-9)" : "var(--gray-5)"
7441
+ }, errors.content ? {
7442
+ backgroundColor: "var(--red-2)"
7443
+ } : {}),
7524
7444
  p: "2",
7525
7445
  pl: "3",
7526
7446
  wrap: "wrap",
7527
7447
  children: children
7528
7448
  })
7529
7449
  })
7530
- });
7531
- $[5] = children;
7532
- $[6] = t4;
7533
- $[7] = t5;
7534
- } else {
7535
- t5 = $[7];
7536
- }
7537
- var t6;
7538
- if ($[8] !== className || $[9] !== style || $[10] !== t5) {
7539
- t6 = /* @__PURE__ */ _jsx69(RadixContainer, {
7540
- size: "2",
7541
- flexGrow: "0",
7542
- className: className,
7543
- style: style,
7544
- children: t5
7545
- });
7546
- $[8] = className;
7547
- $[9] = style;
7548
- $[10] = t5;
7549
- $[11] = t6;
7550
- } else {
7551
- t6 = $[11];
7552
- }
7553
- return t6;
7450
+ })
7451
+ });
7554
7452
  };
7555
7453
  var Field = {
7556
7454
  Root: Root6,
@@ -7620,7 +7518,7 @@ import { Flex as Flex25 } from "@radix-ui/themes";
7620
7518
  // src/components/threads/Thread/Provider/index.tsx
7621
7519
  var Provider2 = SuperinterfaceProvider;
7622
7520
  // src/components/toasts/ToastsProvider/index.tsx
7623
- import { c as _c43 } from "react-compiler-runtime";
7521
+ import { c as _c41 } from "react-compiler-runtime";
7624
7522
  import { useState as useState5, useCallback as useCallback4 } from "react";
7625
7523
  import * as Toast2 from "@radix-ui/react-toast";
7626
7524
  // src/components/toasts/ToastsProvider/CustomToast.tsx
@@ -7659,7 +7557,7 @@ var CustomToast = function(_ref) {
7659
7557
  // src/components/toasts/ToastsProvider/index.tsx
7660
7558
  import { jsx as _jsx72, jsxs as _jsxs27 } from "react/jsx-runtime";
7661
7559
  var ToastsProvider = function(t0) {
7662
- var $ = _c43(15);
7560
+ var $ = _c41(15);
7663
7561
  var children = t0.children, t1 = t0.bottom;
7664
7562
  var bottom = t1 === void 0 ? 0 : t1;
7665
7563
  var t2;
@@ -7907,7 +7805,7 @@ var useMessageContext = function() {
7907
7805
  return useContext13(MessageContext);
7908
7806
  };
7909
7807
  // src/hooks/assistants/useAssistant/index.ts
7910
- import { c as _c44 } from "react-compiler-runtime";
7808
+ import { c as _c42 } from "react-compiler-runtime";
7911
7809
  import { useMemo as useMemo15 } from "react";
7912
7810
  import { useQuery } from "@tanstack/react-query";
7913
7811
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -8057,7 +7955,7 @@ function _toPrimitive40(t, r) {
8057
7955
  return ("string" === r ? String : Number)(t);
8058
7956
  }
8059
7957
  var useAssistant = function(t0) {
8060
- var $ = _c44(6);
7958
+ var $ = _c42(6);
8061
7959
  var assistantId = t0.assistantId;
8062
7960
  var superinterfaceContext = useSuperinterfaceContext();
8063
7961
  var t1;
@@ -8090,7 +7988,7 @@ var useAssistant = function(t0) {
8090
7988
  return t2;
8091
7989
  };
8092
7990
  // src/components/threads/ThreadDialog/Provider/index.tsx
8093
- import { c as _c45 } from "react-compiler-runtime";
7991
+ import { c as _c43 } from "react-compiler-runtime";
8094
7992
  import { useState as useState6 } from "react";
8095
7993
  // src/contexts/threads/ThreadDialogContext/index.ts
8096
7994
  import { createContext as createContext12 } from "react";
@@ -8106,7 +8004,7 @@ var useThreadDialogContext = function() {
8106
8004
  // src/components/threads/ThreadDialog/Provider/index.tsx
8107
8005
  import { jsx as _jsx75 } from "react/jsx-runtime";
8108
8006
  var Provider4 = function(t0) {
8109
- var $ = _c45(5);
8007
+ var $ = _c43(5);
8110
8008
  var children = t0.children;
8111
8009
  var threadDialogContext = useThreadDialogContext();
8112
8010
  var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
@@ -8144,7 +8042,7 @@ var Root9 = function(_ref) {
8144
8042
  });
8145
8043
  };
8146
8044
  // src/components/threads/ThreadDialog/Trigger/index.tsx
8147
- import { c as _c46 } from "react-compiler-runtime";
8045
+ import { c as _c44 } from "react-compiler-runtime";
8148
8046
  import { Flex as Flex26 } from "@radix-ui/themes";
8149
8047
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
8150
8048
  import { IconButton as IconButton8 } from "@radix-ui/themes";
@@ -8247,7 +8145,7 @@ function _toPrimitive42(t, r) {
8247
8145
  return ("string" === r ? String : Number)(t);
8248
8146
  }
8249
8147
  var Root10 = function(t0) {
8250
- var $ = _c46(14);
8148
+ var $ = _c44(14);
8251
8149
  var children = t0.children, style = t0.style, className = t0.className;
8252
8150
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
8253
8151
  var t1 = isOpen ? "none" : "flex";
@@ -8328,15 +8226,15 @@ function _temp8(prev) {
8328
8226
  return !prev;
8329
8227
  }
8330
8228
  // src/components/threads/ThreadDialog/Content/index.tsx
8331
- import { c as _c48 } from "react-compiler-runtime";
8229
+ import { c as _c46 } from "react-compiler-runtime";
8332
8230
  import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
8333
8231
  // src/components/threads/ThreadDialog/Close/index.tsx
8334
- import { c as _c47 } from "react-compiler-runtime";
8232
+ import { c as _c45 } from "react-compiler-runtime";
8335
8233
  import { Cross1Icon } from "@radix-ui/react-icons";
8336
8234
  import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
8337
8235
  import { jsx as _jsx79 } from "react/jsx-runtime";
8338
8236
  var Close = function() {
8339
- var $ = _c47(9);
8237
+ var $ = _c45(9);
8340
8238
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
8341
8239
  var t0 = isOpen ? "flex" : "none";
8342
8240
  var t1;
@@ -8452,7 +8350,7 @@ function _toPrimitive43(t, r) {
8452
8350
  return ("string" === r ? String : Number)(t);
8453
8351
  }
8454
8352
  var Root11 = function(t0) {
8455
- var $ = _c48(19);
8353
+ var $ = _c46(19);
8456
8354
  var children = t0.children, className = t0.className, style = t0.style;
8457
8355
  var isOpen = useThreadDialogContext().isOpen;
8458
8356
  if (!isOpen) {
@@ -8651,7 +8549,7 @@ ThreadDialog.Root = Root9;
8651
8549
  ThreadDialog.Trigger = Trigger;
8652
8550
  ThreadDialog.Content = Content7;
8653
8551
  // src/components/threads/AudioThread/Root/index.tsx
8654
- import { c as _c53 } from "react-compiler-runtime";
8552
+ import { c as _c51 } from "react-compiler-runtime";
8655
8553
  import { Flex as Flex29 } from "@radix-ui/themes";
8656
8554
  // src/contexts/threads/AudioThreadContext/index.ts
8657
8555
  import { createContext as createContext13 } from "react";
@@ -8771,7 +8669,7 @@ var AudioThreadContext = /* @__PURE__ */ createContext13({
8771
8669
  }
8772
8670
  });
8773
8671
  // src/hooks/misc/usePermission/index.ts
8774
- import { c as _c49 } from "react-compiler-runtime";
8672
+ import { c as _c47 } from "react-compiler-runtime";
8775
8673
  import { useEffect as useEffect7, useState as useState7 } from "react";
8776
8674
  // src/hooks/misc/usePermission/util.ts
8777
8675
  var noop = function() {};
@@ -8795,7 +8693,7 @@ function off(obj) {
8795
8693
  }
8796
8694
  // src/hooks/misc/usePermission/index.ts
8797
8695
  var usePermission = function(permissionDesc) {
8798
- var $ = _c49(3);
8696
+ var $ = _c47(3);
8799
8697
  var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
8800
8698
  var t0;
8801
8699
  var t1;
@@ -8849,10 +8747,10 @@ var blobToData = function(blob) {
8849
8747
  });
8850
8748
  };
8851
8749
  // src/hooks/audioThreads/useStatus/index.ts
8852
- import { c as _c50 } from "react-compiler-runtime";
8750
+ import { c as _c48 } from "react-compiler-runtime";
8853
8751
  import { useMemo as useMemo16 } from "react";
8854
8752
  var useStatus = function(t0) {
8855
- var $ = _c50(2);
8753
+ var $ = _c48(2);
8856
8754
  var messageAudioProps = t0.messageAudioProps, recorderProps = t0.recorderProps, createMessageProps = t0.createMessageProps;
8857
8755
  var latestMessageProps = useLatestMessage();
8858
8756
  var t1;
@@ -8911,10 +8809,10 @@ import { useAudioCapture } from "use-audio-capture";
8911
8809
  import { useMemo as useMemo17, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
8912
8810
  import { useAudioPlayer } from "react-use-audio-player";
8913
8811
  // src/hooks/misc/useInterval.ts
8914
- import { c as _c51 } from "react-compiler-runtime";
8812
+ import { c as _c49 } from "react-compiler-runtime";
8915
8813
  import { useEffect as useEffect8, useRef as useRef6 } from "react";
8916
8814
  var useInterval = function(callback, delay) {
8917
- var $ = _c51(5);
8815
+ var $ = _c49(5);
8918
8816
  var savedCallback = useRef6(_temp10);
8919
8817
  var t0;
8920
8818
  if ($[0] !== callback) {
@@ -9167,7 +9065,7 @@ var useRecorder = function(_ref) {
9167
9065
  });
9168
9066
  };
9169
9067
  // src/hooks/audioThreads/useMessageAudio/index.ts
9170
- import { c as _c52 } from "react-compiler-runtime";
9068
+ import { c as _c50 } from "react-compiler-runtime";
9171
9069
  import { useMemo as useMemo18, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
9172
9070
  import nlp from "compromise";
9173
9071
  import { Howler } from "howler";
@@ -9249,7 +9147,7 @@ var getMessageSentences = function(_ref) {
9249
9147
  });
9250
9148
  };
9251
9149
  var useMessageAudio = function(t0) {
9252
- var $ = _c52(50);
9150
+ var $ = _c50(50);
9253
9151
  var _onEnd = t0.onEnd, passedPlay = t0.play;
9254
9152
  var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
9255
9153
  var t1;
@@ -9684,7 +9582,7 @@ function _asyncToGenerator12(n) {
9684
9582
  };
9685
9583
  }
9686
9584
  var Content8 = function(t0) {
9687
- var $ = _c53(24);
9585
+ var $ = _c51(24);
9688
9586
  var children = t0.children, className = t0.className, style = t0.style, play = t0.play;
9689
9587
  var addToast = useToasts().addToast;
9690
9588
  var queryClient = useQueryClient6();
@@ -10044,7 +9942,7 @@ var Visualization = function(props) {
10044
9942
  }));
10045
9943
  };
10046
9944
  // src/components/threads/AudioThread/Status/index.tsx
10047
- import { c as _c54 } from "react-compiler-runtime";
9945
+ import { c as _c52 } from "react-compiler-runtime";
10048
9946
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
10049
9947
  import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
10050
9948
  import { jsx as _jsx85, jsxs as _jsxs32 } from "react/jsx-runtime";
@@ -10124,7 +10022,7 @@ function _toPrimitive48(t, r) {
10124
10022
  return ("string" === r ? String : Number)(t);
10125
10023
  }
10126
10024
  var Status = function(props) {
10127
- var $ = _c54(12);
10025
+ var $ = _c52(12);
10128
10026
  var audioThreadContext = useAudioThreadContext();
10129
10027
  if (audioThreadContext.status === "recording") {
10130
10028
  var _t;
@@ -10221,7 +10119,7 @@ var Status = function(props) {
10221
10119
  return t1;
10222
10120
  };
10223
10121
  // src/components/threads/AudioThread/Form/index.tsx
10224
- import { c as _c56 } from "react-compiler-runtime";
10122
+ import { c as _c54 } from "react-compiler-runtime";
10225
10123
  import { Flex as Flex34 } from "@radix-ui/themes";
10226
10124
  // src/components/threads/AudioThread/Form/MicIcon.tsx
10227
10125
  import { jsx as _jsx87 } from "react/jsx-runtime";
@@ -10285,12 +10183,12 @@ var MicIcon = function(props) {
10285
10183
  }));
10286
10184
  };
10287
10185
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
10288
- import { c as _c55 } from "react-compiler-runtime";
10186
+ import { c as _c53 } from "react-compiler-runtime";
10289
10187
  import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
10290
10188
  import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
10291
10189
  import { jsx as _jsx88, jsxs as _jsxs33 } from "react/jsx-runtime";
10292
10190
  var ActionButton = function() {
10293
- var $ = _c55(27);
10191
+ var $ = _c53(27);
10294
10192
  var audioThreadContext = useAudioThreadContext();
10295
10193
  var superinterfaceContext = useSuperinterfaceContext();
10296
10194
  if (audioThreadContext.status === "recording") {
@@ -10527,7 +10425,7 @@ function _toPrimitive50(t, r) {
10527
10425
  return ("string" === r ? String : Number)(t);
10528
10426
  }
10529
10427
  var Form = function(props) {
10530
- var $ = _c56(17);
10428
+ var $ = _c54(17);
10531
10429
  var audioThreadContext = useAudioThreadContext();
10532
10430
  var t0 = audioThreadContext.status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
10533
10431
  var t1;
@@ -10747,7 +10645,7 @@ AudioThreadDialog.Root = Root9;
10747
10645
  AudioThreadDialog.Trigger = Trigger;
10748
10646
  AudioThreadDialog.Content = Content7;
10749
10647
  // src/components/markdown/MarkdownProvider/index.tsx
10750
- import { c as _c57 } from "react-compiler-runtime";
10648
+ import { c as _c55 } from "react-compiler-runtime";
10751
10649
  import { useMemo as useMemo19 } from "react";
10752
10650
  import { jsx as _jsx92 } from "react/jsx-runtime";
10753
10651
  var _excluded5 = [
@@ -10772,7 +10670,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
10772
10670
  return t;
10773
10671
  }
10774
10672
  var MarkdownProvider = function(t0) {
10775
- var $ = _c57(9);
10673
+ var $ = _c55(9);
10776
10674
  var children;
10777
10675
  var rest;
10778
10676
  if ($[0] !== t0) {
@@ -10814,369 +10712,8 @@ var MarkdownProvider = function(t0) {
10814
10712
  }
10815
10713
  return t3;
10816
10714
  };
10817
- // src/components/annotations/SourceAnnotation/index.tsx
10818
- import { c as _c60 } from "react-compiler-runtime";
10819
- // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
10820
- import { c as _c59 } from "react-compiler-runtime";
10821
- import { useState as useState12 } from "react";
10822
- import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
10823
- import { Dialog, VisuallyHidden, IconButton as IconButton12 } from "@radix-ui/themes";
10824
- // src/components/annotations/SourceAnnotation/FileCitation/Content/index.tsx
10825
- import { c as _c58 } from "react-compiler-runtime";
10826
- import { Flex as Flex36, Card as Card6, Inset as Inset3 } from "@radix-ui/themes";
10827
- import { usePDFSlick } from "@pdfslick/react";
10828
- import "@pdfslick/react/dist/pdf_viewer.css";
10829
- // src/components/annotations/SourceAnnotation/FileCitation/Content/Navigation.tsx
10830
- import { Card as Card5, IconButton as IconButton11, Flex as Flex35 } from "@radix-ui/themes";
10831
- import { ZoomInIcon, ZoomOutIcon } from "@radix-ui/react-icons";
10832
- import { jsx as _jsx93, jsxs as _jsxs37 } from "react/jsx-runtime";
10833
- var Navigation = function(_ref) {
10834
- var usePDFSlickStore = _ref.usePDFSlickStore;
10835
- var pdfSlick = usePDFSlickStore(function(s) {
10836
- return s.pdfSlick;
10837
- });
10838
- return /* @__PURE__ */ _jsx93(Flex35, {
10839
- justify: "center",
10840
- position: "absolute",
10841
- bottom: "var(--space-2)",
10842
- left: "0",
10843
- right: "0",
10844
- style: {
10845
- zIndex: 99999
10846
- },
10847
- children: /* @__PURE__ */ _jsx93(Card5, {
10848
- children: /* @__PURE__ */ _jsxs37(Flex35, {
10849
- gap: "2",
10850
- children: [
10851
- /* @__PURE__ */ _jsx93(IconButton11, {
10852
- variant: "soft",
10853
- onClick: function() {
10854
- var _pdfSlick$viewer;
10855
- return pdfSlick === null || pdfSlick === void 0 || (_pdfSlick$viewer = pdfSlick.viewer) === null || _pdfSlick$viewer === void 0 ? void 0 : _pdfSlick$viewer.decreaseScale();
10856
- },
10857
- children: /* @__PURE__ */ _jsx93(ZoomOutIcon, {})
10858
- }),
10859
- /* @__PURE__ */ _jsx93(IconButton11, {
10860
- variant: "soft",
10861
- onClick: function() {
10862
- var _pdfSlick$viewer2;
10863
- return pdfSlick === null || pdfSlick === void 0 || (_pdfSlick$viewer2 = pdfSlick.viewer) === null || _pdfSlick$viewer2 === void 0 ? void 0 : _pdfSlick$viewer2.increaseScale();
10864
- },
10865
- children: /* @__PURE__ */ _jsx93(ZoomInIcon, {})
10866
- })
10867
- ]
10868
- })
10869
- })
10870
- });
10871
- };
10872
- // src/components/annotations/SourceAnnotation/FileCitation/Content/index.tsx
10873
- import { jsx as _jsx94, jsxs as _jsxs38 } from "react/jsx-runtime";
10874
- function ownKeys53(e, r) {
10875
- var t = Object.keys(e);
10876
- if (Object.getOwnPropertySymbols) {
10877
- var o = Object.getOwnPropertySymbols(e);
10878
- r && (o = o.filter(function(r2) {
10879
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
10880
- })), t.push.apply(t, o);
10881
- }
10882
- return t;
10883
- }
10884
- function _objectSpread53(e) {
10885
- for(var r = 1; r < arguments.length; r++){
10886
- var t = null != arguments[r] ? arguments[r] : {};
10887
- r % 2 ? ownKeys53(Object(t), true).forEach(function(r2) {
10888
- _defineProperty53(e, r2, t[r2]);
10889
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys53(Object(t)).forEach(function(r2) {
10890
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
10891
- });
10892
- }
10893
- return e;
10894
- }
10895
- function _defineProperty53(e, r, t) {
10896
- return (r = _toPropertyKey53(r)) in e ? Object.defineProperty(e, r, {
10897
- value: t,
10898
- enumerable: true,
10899
- configurable: true,
10900
- writable: true
10901
- }) : e[r] = t, e;
10902
- }
10903
- function _toPropertyKey53(t) {
10904
- var i = _toPrimitive53(t, "string");
10905
- return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
10906
- }
10907
- function _toPrimitive53(t, r) {
10908
- if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
10909
- var e = t[Symbol.toPrimitive];
10910
- if (void 0 !== e) {
10911
- var i = e.call(t, r || "default");
10912
- if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
10913
- throw new TypeError("@@toPrimitive must return a primitive value.");
10914
- }
10915
- return ("string" === r ? String : Number)(t);
10916
- }
10917
- var Content9 = function(t0) {
10918
- var $ = _c58(14);
10919
- var fileId = t0.fileId;
10920
- var superinterfaceContext = useSuperinterfaceContext();
10921
- var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
10922
- var t1;
10923
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
10924
- t1 = {
10925
- scaleValue: "page-width",
10926
- removePageBorders: true
10927
- };
10928
- $[0] = t1;
10929
- } else {
10930
- t1 = $[0];
10931
- }
10932
- var _usePDFSlick = usePDFSlick("".concat(superinterfaceContext.baseUrl, "/api/cloud/files/").concat(fileId, "/contents?").concat(nextSearchParams), t1), viewerRef = _usePDFSlick.viewerRef, usePDFSlickStore = _usePDFSlick.usePDFSlickStore, PDFSlickViewer = _usePDFSlick.PDFSlickViewer;
10933
- var t2;
10934
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
10935
- t2 = {
10936
- display: "flex",
10937
- flexGrow: "1"
10938
- };
10939
- $[1] = t2;
10940
- } else {
10941
- t2 = $[1];
10942
- }
10943
- var t3;
10944
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
10945
- t3 = {
10946
- display: "flex",
10947
- flexGrow: "1"
10948
- };
10949
- $[2] = t3;
10950
- } else {
10951
- t3 = $[2];
10952
- }
10953
- var t4;
10954
- if ($[3] !== usePDFSlickStore || $[4] !== viewerRef) {
10955
- t4 = {
10956
- viewerRef: viewerRef,
10957
- usePDFSlickStore: usePDFSlickStore
10958
- };
10959
- $[3] = usePDFSlickStore;
10960
- $[4] = viewerRef;
10961
- $[5] = t4;
10962
- } else {
10963
- t4 = $[5];
10964
- }
10965
- var t5;
10966
- if ($[6] !== PDFSlickViewer || $[7] !== t4) {
10967
- t5 = /* @__PURE__ */ _jsx94(PDFSlickViewer, _objectSpread53({}, t4));
10968
- $[6] = PDFSlickViewer;
10969
- $[7] = t4;
10970
- $[8] = t5;
10971
- } else {
10972
- t5 = $[8];
10973
- }
10974
- var t6;
10975
- if ($[9] !== usePDFSlickStore) {
10976
- t6 = /* @__PURE__ */ _jsx94(Navigation, {
10977
- usePDFSlickStore: usePDFSlickStore
10978
- });
10979
- $[9] = usePDFSlickStore;
10980
- $[10] = t6;
10981
- } else {
10982
- t6 = $[10];
10983
- }
10984
- var t7;
10985
- if ($[11] !== t5 || $[12] !== t6) {
10986
- t7 = /* @__PURE__ */ _jsx94(Flex36, {
10987
- direction: "column",
10988
- flexGrow: "1",
10989
- gap: "3",
10990
- children: /* @__PURE__ */ _jsx94(Card6, {
10991
- style: t2,
10992
- children: /* @__PURE__ */ _jsx94(Inset3, {
10993
- clip: "padding-box",
10994
- style: t3,
10995
- children: /* @__PURE__ */ _jsxs38(Flex36, {
10996
- flexGrow: "1",
10997
- position: "relative",
10998
- children: [
10999
- t5,
11000
- t6
11001
- ]
11002
- })
11003
- })
11004
- })
11005
- });
11006
- $[11] = t5;
11007
- $[12] = t6;
11008
- $[13] = t7;
11009
- } else {
11010
- t7 = $[13];
11011
- }
11012
- return t7;
11013
- };
11014
- // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
11015
- import { jsx as _jsx95, jsxs as _jsxs39, Fragment as _Fragment4 } from "react/jsx-runtime";
11016
- var FileCitation = function(t0) {
11017
- var $ = _c59(18);
11018
- var annotation = t0.annotation;
11019
- var _useState12 = _sliced_to_array(useState12(null), 2), activeFileId = _useState12[0], setActiveFileId = _useState12[1];
11020
- var t1;
11021
- if ($[0] !== annotation.file_citation.file_id) {
11022
- t1 = function() {
11023
- setActiveFileId(annotation.file_citation.file_id);
11024
- };
11025
- $[0] = annotation.file_citation.file_id;
11026
- $[1] = t1;
11027
- } else {
11028
- t1 = $[1];
11029
- }
11030
- var t2;
11031
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
11032
- t2 = /* @__PURE__ */ _jsx95(QuoteIcon2, {});
11033
- $[2] = t2;
11034
- } else {
11035
- t2 = $[2];
11036
- }
11037
- var t3;
11038
- if ($[3] !== t1) {
11039
- t3 = /* @__PURE__ */ _jsx95(IconButton12, {
11040
- variant: "soft",
11041
- color: "gray",
11042
- size: "1",
11043
- onClick: t1,
11044
- children: t2
11045
- });
11046
- $[3] = t1;
11047
- $[4] = t3;
11048
- } else {
11049
- t3 = $[4];
11050
- }
11051
- var t4 = !!activeFileId;
11052
- var t5;
11053
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
11054
- t5 = function(open) {
11055
- if (!open) {
11056
- setActiveFileId(null);
11057
- }
11058
- };
11059
- $[5] = t5;
11060
- } else {
11061
- t5 = $[5];
11062
- }
11063
- var t6;
11064
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
11065
- t6 = {
11066
- display: "flex",
11067
- flexDirection: "column"
11068
- };
11069
- $[6] = t6;
11070
- } else {
11071
- t6 = $[6];
11072
- }
11073
- var t7;
11074
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
11075
- t7 = /* @__PURE__ */ _jsx95(VisuallyHidden, {
11076
- asChild: true,
11077
- children: /* @__PURE__ */ _jsx95(Dialog.Title, {
11078
- children: "Source"
11079
- })
11080
- });
11081
- $[7] = t7;
11082
- } else {
11083
- t7 = $[7];
11084
- }
11085
- var t8;
11086
- if ($[8] !== activeFileId) {
11087
- t8 = activeFileId && /* @__PURE__ */ _jsx95(Content9, {
11088
- fileId: activeFileId
11089
- });
11090
- $[8] = activeFileId;
11091
- $[9] = t8;
11092
- } else {
11093
- t8 = $[9];
11094
- }
11095
- var t9;
11096
- if ($[10] !== t8) {
11097
- t9 = /* @__PURE__ */ _jsxs39(Dialog.Content, {
11098
- width: "1000px",
11099
- height: "90vh",
11100
- maxWidth: "calc(100vw - 2 * var(--space-4))",
11101
- "aria-describedby": void 0,
11102
- style: t6,
11103
- children: [
11104
- t7,
11105
- t8
11106
- ]
11107
- });
11108
- $[10] = t8;
11109
- $[11] = t9;
11110
- } else {
11111
- t9 = $[11];
11112
- }
11113
- var t10;
11114
- if ($[12] !== t4 || $[13] !== t9) {
11115
- t10 = /* @__PURE__ */ _jsx95(Dialog.Root, {
11116
- open: t4,
11117
- onOpenChange: t5,
11118
- children: t9
11119
- });
11120
- $[12] = t4;
11121
- $[13] = t9;
11122
- $[14] = t10;
11123
- } else {
11124
- t10 = $[14];
11125
- }
11126
- var t11;
11127
- if ($[15] !== t10 || $[16] !== t3) {
11128
- t11 = /* @__PURE__ */ _jsxs39(_Fragment4, {
11129
- children: [
11130
- t3,
11131
- t10
11132
- ]
11133
- });
11134
- $[15] = t10;
11135
- $[16] = t3;
11136
- $[17] = t11;
11137
- } else {
11138
- t11 = $[17];
11139
- }
11140
- return t11;
11141
- };
11142
- // src/components/annotations/SourceAnnotation/index.tsx
11143
- import { jsx as _jsx96 } from "react/jsx-runtime";
11144
- var SourceAnnotation = function(t0) {
11145
- var $ = _c60(5);
11146
- var annotation = t0.annotation, children = t0.children;
11147
- if (annotation.type === "file_citation") {
11148
- var t1;
11149
- if ($[0] !== annotation) {
11150
- t1 = /* @__PURE__ */ _jsx96(FileCitation, {
11151
- annotation: annotation
11152
- });
11153
- $[0] = annotation;
11154
- $[1] = t1;
11155
- } else {
11156
- t1 = $[1];
11157
- }
11158
- return t1;
11159
- } else {
11160
- if (annotation.type === "file_path") {
11161
- var _t;
11162
- if ($[2] !== annotation || $[3] !== children) {
11163
- _t = /* @__PURE__ */ _jsx96(FilePathAnnotation, {
11164
- annotation: annotation,
11165
- children: children
11166
- });
11167
- $[2] = annotation;
11168
- $[3] = children;
11169
- $[4] = _t;
11170
- } else {
11171
- _t = $[4];
11172
- }
11173
- return _t;
11174
- }
11175
- }
11176
- return null;
11177
- };
11178
10715
  // src/components/avatars/Avatar.tsx
11179
- import { c as _c63 } from "react-compiler-runtime";
10716
+ import { c as _c58 } from "react-compiler-runtime";
11180
10717
  // src/lib/enums/index.ts
11181
10718
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
11182
10719
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -11201,7 +10738,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
11201
10738
  // src/components/avatars/Avatar.tsx
11202
10739
  import { Avatar as RadixAvatar } from "@radix-ui/themes";
11203
10740
  // src/components/imageAvatars/ImageAvatar/index.tsx
11204
- import { c as _c61 } from "react-compiler-runtime";
10741
+ import { c as _c56 } from "react-compiler-runtime";
11205
10742
  import { Avatar as Avatar4 } from "@radix-ui/themes";
11206
10743
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
11207
10744
  var width = function(_ref) {
@@ -11253,9 +10790,9 @@ var optimizedSrc = function(_ref) {
11253
10790
  }));
11254
10791
  };
11255
10792
  // src/components/imageAvatars/ImageAvatar/index.tsx
11256
- import { jsx as _jsx97 } from "react/jsx-runtime";
10793
+ import { jsx as _jsx93 } from "react/jsx-runtime";
11257
10794
  var ImageAvatar = function(t0) {
11258
- var $ = _c61(9);
10795
+ var $ = _c56(9);
11259
10796
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
11260
10797
  var superinterfaceContext = useSuperinterfaceContext();
11261
10798
  var t1;
@@ -11274,7 +10811,7 @@ var ImageAvatar = function(t0) {
11274
10811
  }
11275
10812
  var t2;
11276
10813
  if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
11277
- t2 = /* @__PURE__ */ _jsx97(Avatar4, {
10814
+ t2 = /* @__PURE__ */ _jsx93(Avatar4, {
11278
10815
  className: className,
11279
10816
  style: style,
11280
10817
  fallback: "",
@@ -11292,7 +10829,7 @@ var ImageAvatar = function(t0) {
11292
10829
  return t2;
11293
10830
  };
11294
10831
  // src/components/iconAvatars/IconAvatar.tsx
11295
- import { c as _c62 } from "react-compiler-runtime";
10832
+ import { c as _c57 } from "react-compiler-runtime";
11296
10833
  import { useMemo as useMemo20 } from "react";
11297
10834
  import { Avatar as Avatar5 } from "@radix-ui/themes";
11298
10835
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -11300,16 +10837,16 @@ import { BackpackIcon, RocketIcon, MagicWandIcon, CubeIcon, TargetIcon, DiscIcon
11300
10837
  var _obj;
11301
10838
  var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, CubeIcon), _define_property(_obj, IconAvatarName.TARGET, TargetIcon), _define_property(_obj, IconAvatarName.DISC, DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, GlobeIcon), _define_property(_obj, IconAvatarName.STAR, StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, LightningBoltIcon2), _define_property(_obj, IconAvatarName.FACE, FaceIcon), _define_property(_obj, IconAvatarName.PERSON, PersonIcon2), _define_property(_obj, IconAvatarName.HEART, HeartIcon), _obj);
11302
10839
  // src/components/iconAvatars/IconAvatar.tsx
11303
- import { jsx as _jsx98 } from "react/jsx-runtime";
10840
+ import { jsx as _jsx94 } from "react/jsx-runtime";
11304
10841
  var IconAvatar = function(t0) {
11305
- var $ = _c62(7);
10842
+ var $ = _c57(7);
11306
10843
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
11307
10844
  var t1;
11308
10845
  t1 = iconAvatarComponents[iconAvatar.name];
11309
10846
  var Component2 = t1;
11310
10847
  var t2;
11311
10848
  if ($[0] !== Component2) {
11312
- t2 = Component2 ? /* @__PURE__ */ _jsx98(Component2, {}) : "";
10849
+ t2 = Component2 ? /* @__PURE__ */ _jsx94(Component2, {}) : "";
11313
10850
  $[0] = Component2;
11314
10851
  $[1] = t2;
11315
10852
  } else {
@@ -11317,7 +10854,7 @@ var IconAvatar = function(t0) {
11317
10854
  }
11318
10855
  var t3;
11319
10856
  if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
11320
- t3 = /* @__PURE__ */ _jsx98(Avatar5, {
10857
+ t3 = /* @__PURE__ */ _jsx94(Avatar5, {
11321
10858
  className: className,
11322
10859
  style: style,
11323
10860
  size: size,
@@ -11334,16 +10871,16 @@ var IconAvatar = function(t0) {
11334
10871
  return t3;
11335
10872
  };
11336
10873
  // src/components/avatars/Avatar.tsx
11337
- import { jsx as _jsx99 } from "react/jsx-runtime";
10874
+ import { jsx as _jsx95 } from "react/jsx-runtime";
11338
10875
  var Avatar6 = function(t0) {
11339
- var $ = _c63(14);
10876
+ var $ = _c58(14);
11340
10877
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
11341
10878
  var size = t1 === void 0 ? "1" : t1;
11342
10879
  if (avatar) {
11343
10880
  if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
11344
10881
  var _t;
11345
10882
  if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
11346
- _t = /* @__PURE__ */ _jsx99(ImageAvatar, {
10883
+ _t = /* @__PURE__ */ _jsx95(ImageAvatar, {
11347
10884
  imageAvatar: avatar.imageAvatar,
11348
10885
  size: size,
11349
10886
  className: className,
@@ -11362,7 +10899,7 @@ var Avatar6 = function(t0) {
11362
10899
  if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
11363
10900
  var _t2;
11364
10901
  if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
11365
- _t2 = /* @__PURE__ */ _jsx99(IconAvatar, {
10902
+ _t2 = /* @__PURE__ */ _jsx95(IconAvatar, {
11366
10903
  iconAvatar: avatar.iconAvatar,
11367
10904
  size: size,
11368
10905
  className: className,
@@ -11381,7 +10918,7 @@ var Avatar6 = function(t0) {
11381
10918
  }
11382
10919
  var t2;
11383
10920
  if ($[10] !== className || $[11] !== size || $[12] !== style) {
11384
- t2 = /* @__PURE__ */ _jsx99(RadixAvatar, {
10921
+ t2 = /* @__PURE__ */ _jsx95(RadixAvatar, {
11385
10922
  fallback: "",
11386
10923
  size: size,
11387
10924
  className: className,
@@ -11397,7 +10934,7 @@ var Avatar6 = function(t0) {
11397
10934
  return t2;
11398
10935
  };
11399
10936
  // src/components/components/ComponentsProvider.tsx
11400
- import { c as _c64 } from "react-compiler-runtime";
10937
+ import { c as _c59 } from "react-compiler-runtime";
11401
10938
  import { useMemo as useMemo21 } from "react";
11402
10939
  // src/hooks/components/useComponents.ts
11403
10940
  import { useContext as useContext17 } from "react";
@@ -11405,7 +10942,7 @@ var useComponents = function() {
11405
10942
  return useContext17(ComponentsContext);
11406
10943
  };
11407
10944
  // src/components/components/ComponentsProvider.tsx
11408
- import { jsx as _jsx100 } from "react/jsx-runtime";
10945
+ import { jsx as _jsx96 } from "react/jsx-runtime";
11409
10946
  var _excluded6 = [
11410
10947
  "children"
11411
10948
  ];
@@ -11428,7 +10965,7 @@ function _objectWithoutPropertiesLoose6(r, e) {
11428
10965
  return t;
11429
10966
  }
11430
10967
  var ComponentsProvider = function(t0) {
11431
- var $ = _c64(9);
10968
+ var $ = _c59(9);
11432
10969
  var children;
11433
10970
  var rest;
11434
10971
  if ($[0] !== t0) {
@@ -11458,7 +10995,7 @@ var ComponentsProvider = function(t0) {
11458
10995
  var value = t1;
11459
10996
  var t3;
11460
10997
  if ($[6] !== children || $[7] !== value) {
11461
- t3 = /* @__PURE__ */ _jsx100(ComponentsContext.Provider, {
10998
+ t3 = /* @__PURE__ */ _jsx96(ComponentsContext.Provider, {
11462
10999
  value: value,
11463
11000
  children: children
11464
11001
  });
@@ -11471,11 +11008,11 @@ var ComponentsProvider = function(t0) {
11471
11008
  return t3;
11472
11009
  };
11473
11010
  // src/components/assistants/AssistantProvider/index.tsx
11474
- import { c as _c65 } from "react-compiler-runtime";
11475
- import { jsx as _jsx101 } from "react/jsx-runtime";
11011
+ import { c as _c60 } from "react-compiler-runtime";
11012
+ import { jsx as _jsx97 } from "react/jsx-runtime";
11476
11013
  var AssistantProvider = function(t0) {
11477
11014
  var _assistant$name;
11478
- var $ = _c65(10);
11015
+ var $ = _c60(10);
11479
11016
  var children = t0.children;
11480
11017
  var superinterfaceContext = useSuperinterfaceContext();
11481
11018
  var t1;
@@ -11493,7 +11030,7 @@ var AssistantProvider = function(t0) {
11493
11030
  var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
11494
11031
  var t4;
11495
11032
  if ($[2] !== t3) {
11496
- t4 = /* @__PURE__ */ _jsx101(Avatar6, {
11033
+ t4 = /* @__PURE__ */ _jsx97(Avatar6, {
11497
11034
  avatar: t3
11498
11035
  });
11499
11036
  $[2] = t3;
@@ -11503,7 +11040,7 @@ var AssistantProvider = function(t0) {
11503
11040
  }
11504
11041
  var t5;
11505
11042
  if ($[4] !== children || $[5] !== t4) {
11506
- t5 = /* @__PURE__ */ _jsx101(AssistantAvatarContext.Provider, {
11043
+ t5 = /* @__PURE__ */ _jsx97(AssistantAvatarContext.Provider, {
11507
11044
  value: t4,
11508
11045
  children: children
11509
11046
  });
@@ -11515,7 +11052,7 @@ var AssistantProvider = function(t0) {
11515
11052
  }
11516
11053
  var t6;
11517
11054
  if ($[7] !== t2 || $[8] !== t5) {
11518
- t6 = /* @__PURE__ */ _jsx101(AssistantNameContext.Provider, {
11055
+ t6 = /* @__PURE__ */ _jsx97(AssistantNameContext.Provider, {
11519
11056
  value: t2,
11520
11057
  children: t5
11521
11058
  });
@@ -11527,5 +11064,5 @@ var AssistantProvider = function(t0) {
11527
11064
  }
11528
11065
  return t6;
11529
11066
  };
11530
- export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, UserAvatarContext, useAssistant, useAudioThreadContext, useComponents, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext };
11067
+ export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, RunStep, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, UserAvatarContext, useAssistant, useAudioThreadContext, useComponents, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext };
11531
11068
  //# sourceMappingURL=index.js.map