@superinterface/react 5.2.3-beta.0 → 5.2.3-beta.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.cjs CHANGED
@@ -5608,7 +5608,7 @@ var require_lib = __commonJS({
5608
5608
  key: "parseMaybeAssign",
5609
5609
  value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
5610
5610
  var _this = this;
5611
- var _jsx109;
5611
+ var _jsx110;
5612
5612
  var state = null;
5613
5613
  var jsx2;
5614
5614
  if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
@@ -5623,7 +5623,7 @@ var require_lib = __commonJS({
5623
5623
  context.pop();
5624
5624
  }
5625
5625
  }
5626
- if ((_jsx109 = jsx2) != null && _jsx109.error || this.match(47)) {
5626
+ if ((_jsx110 = jsx2) != null && _jsx110.error || this.match(47)) {
5627
5627
  var _jsx210, _jsx310;
5628
5628
  state = state || this.state.clone();
5629
5629
  var typeParameters;
@@ -13401,7 +13401,7 @@ var require_lib = __commonJS({
13401
13401
  key: "parseMaybeAssign",
13402
13402
  value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
13403
13403
  var _this = this;
13404
- var _jsx109, _jsx210, _typeCast, _jsx310, _typeCast2;
13404
+ var _jsx110, _jsx210, _typeCast, _jsx310, _typeCast2;
13405
13405
  var state;
13406
13406
  var jsx2;
13407
13407
  var typeCast;
@@ -13417,7 +13417,7 @@ var require_lib = __commonJS({
13417
13417
  context.pop();
13418
13418
  }
13419
13419
  }
13420
- if (!((_jsx109 = jsx2) != null && _jsx109.error) && !this.match(47)) {
13420
+ if (!((_jsx110 = jsx2) != null && _jsx110.error) && !this.match(47)) {
13421
13421
  return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
13422
13422
  }
13423
13423
  if (!state || state === this.state) state = this.state.clone();
@@ -37220,7 +37220,7 @@ var SuperinterfaceProvider = function(_ref) {
37220
37220
  });
37221
37221
  };
37222
37222
  // src/components/threads/Thread/index.tsx
37223
- var import_react_compiler_runtime77 = require("react-compiler-runtime");
37223
+ var import_react_compiler_runtime78 = require("react-compiler-runtime");
37224
37224
  // src/components/threads/Thread/Messages/index.tsx
37225
37225
  var import_react_compiler_runtime66 = require("react-compiler-runtime");
37226
37226
  var import_themes45 = require("@radix-ui/themes");
@@ -39958,7 +39958,8 @@ var threadRunRequiresAction = /* @__PURE__ */ function() {
39958
39958
  3,
39959
39959
  2
39960
39960
  ];
39961
- toolCalls = value.data.required_action.submit_client_tool_outputs.tool_calls;
39961
+ toolCalls = // @ts-ignore-next-line
39962
+ value.data.required_action.submit_client_tool_outputs.tool_calls;
39962
39963
  return [
39963
39964
  4,
39964
39965
  (0, import_radash9.map)(toolCalls, /* @__PURE__ */ function() {
@@ -44090,7 +44091,7 @@ Messages2.Message = Message;
44090
44091
  Messages2.NextPageSkeleton = NextPageSkeleton;
44091
44092
  Messages2.Content = Content7;
44092
44093
  // src/components/threads/Thread/MessageForm/index.tsx
44093
- var import_react_compiler_runtime73 = require("react-compiler-runtime");
44094
+ var import_react_compiler_runtime74 = require("react-compiler-runtime");
44094
44095
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
44095
44096
  var import_react_compiler_runtime67 = require("react-compiler-runtime");
44096
44097
  var import_react_icons11 = require("@radix-ui/react-icons");
@@ -44265,9 +44266,40 @@ Submit.Root = Root7;
44265
44266
  Submit.Button = Button3;
44266
44267
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44267
44268
  var import_react_query6 = require("@tanstack/react-query");
44268
- var import_react51 = require("react");
44269
- // src/lib/reactHookForm.ts
44269
+ var import_react52 = require("react");
44270
44270
  var import_react_hook_form = require("react-hook-form");
44271
+ // src/lib/reactHookForm/FormProvider.tsx
44272
+ var import_react_compiler_runtime68 = require("react-compiler-runtime");
44273
+ var import_react51 = require("react");
44274
+ var import_jsx_runtime69 = require("react/jsx-runtime");
44275
+ var FormContext = /* @__PURE__ */ (0, import_react51.createContext)(null);
44276
+ var useFormContext = function() {
44277
+ var value = (0, import_react51.useContext)(FormContext);
44278
+ if (!value) {
44279
+ throw new Error("useFormContext must be used within FormProvider");
44280
+ }
44281
+ return value;
44282
+ };
44283
+ var FormProvider = function(t0) {
44284
+ var $ = (0, import_react_compiler_runtime68.c)(3);
44285
+ var children = t0.children, form = t0.form;
44286
+ var t1;
44287
+ t1 = form;
44288
+ var contextValue = t1;
44289
+ var t2;
44290
+ if ($[0] !== children || $[1] !== contextValue) {
44291
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FormContext.Provider, {
44292
+ value: contextValue,
44293
+ children: children
44294
+ });
44295
+ $[0] = children;
44296
+ $[1] = contextValue;
44297
+ $[2] = t2;
44298
+ } else {
44299
+ t2 = $[2];
44300
+ }
44301
+ return t2;
44302
+ };
44271
44303
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44272
44304
  var import_themes47 = require("@radix-ui/themes");
44273
44305
  // src/components/threads/Thread/MessageForm/Root/lib/formOptions.ts
@@ -44281,7 +44313,7 @@ var formOptions = {
44281
44313
  };
44282
44314
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44283
44315
  var import_radash14 = require("radash");
44284
- var import_jsx_runtime69 = require("react/jsx-runtime");
44316
+ var import_jsx_runtime70 = require("react/jsx-runtime");
44285
44317
  function ownKeys30(e, r) {
44286
44318
  var t = Object.keys(e);
44287
44319
  if (Object.getOwnPropertySymbols) {
@@ -44351,7 +44383,7 @@ function _asyncToGenerator6(n) {
44351
44383
  var Root8 = function(_ref) {
44352
44384
  "use no memo";
44353
44385
  var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
44354
- var _$_ref = _sliced_to_array((0, import_react51.useState)([]), 2), files = _$_ref[0], setFiles = _$_ref[1];
44386
+ var _$_ref = _sliced_to_array((0, import_react52.useState)([]), 2), files = _$_ref[0], setFiles = _$_ref[1];
44355
44387
  var formProps = (0, import_react_hook_form.useForm)(formOptions);
44356
44388
  var handleSubmit = formProps.handleSubmit, isSubmitting = formProps.formState.isSubmitting, formReset = formProps.reset, watch = formProps.watch;
44357
44389
  var addToast = useToasts().addToast;
@@ -44365,7 +44397,7 @@ var Root8 = function(_ref) {
44365
44397
  })
44366
44398
  }).createMessage;
44367
44399
  var isMutatingMessage = useIsMutatingMessage();
44368
- var isFileLoading = (0, import_react51.useMemo)(function() {
44400
+ var isFileLoading = (0, import_react52.useMemo)(function() {
44369
44401
  return files.some(function(file) {
44370
44402
  return isOptimistic({
44371
44403
  id: file.id
@@ -44374,21 +44406,21 @@ var Root8 = function(_ref) {
44374
44406
  }, [
44375
44407
  files
44376
44408
  ]);
44377
- var isLoading = (0, import_react51.useMemo)(function() {
44409
+ var isLoading = (0, import_react52.useMemo)(function() {
44378
44410
  return isMutatingMessage || isSubmitting;
44379
44411
  }, [
44380
44412
  isMutatingMessage,
44381
44413
  isSubmitting
44382
44414
  ]);
44383
44415
  var latestMessage = useLatestMessage().latestMessage;
44384
- var isDisabled = (0, import_react51.useMemo)(function() {
44416
+ var isDisabled = (0, import_react52.useMemo)(function() {
44385
44417
  var _latestMessage$metada;
44386
44418
  return !!(latestMessage !== null && latestMessage !== void 0 && (_latestMessage$metada = latestMessage.metadata) !== null && _latestMessage$metada !== void 0 && _latestMessage$metada.isBlocking) || !!isDisabledArg;
44387
44419
  }, [
44388
44420
  latestMessage,
44389
44421
  isDisabledArg
44390
44422
  ]);
44391
- var reset = (0, import_react51.useCallback)(function() {
44423
+ var reset = (0, import_react52.useCallback)(function() {
44392
44424
  formReset();
44393
44425
  setFiles([]);
44394
44426
  }, [
@@ -44463,7 +44495,7 @@ var Root8 = function(_ref) {
44463
44495
  };
44464
44496
  }();
44465
44497
  var content_0 = watch("content");
44466
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(MessageFormContext.Provider, {
44498
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(MessageFormContext.Provider, {
44467
44499
  value: {
44468
44500
  isDisabled: isDisabled,
44469
44501
  isLoading: isLoading,
@@ -44472,41 +44504,42 @@ var Root8 = function(_ref) {
44472
44504
  isFileLoading: isFileLoading,
44473
44505
  content: content_0
44474
44506
  },
44475
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_hook_form.FormProvider, _objectSpread30(_objectSpread30({}, formProps), {}, {
44476
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_themes47.Box, {
44507
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(FormProvider, {
44508
+ form: formProps,
44509
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes47.Box, {
44477
44510
  asChild: true,
44478
44511
  flexShrink: "0",
44479
44512
  style: style,
44480
44513
  className: className,
44481
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("form", {
44514
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("form", {
44482
44515
  onSubmit: handleSubmit(onSubmit),
44483
44516
  children: children
44484
44517
  })
44485
44518
  })
44486
- }))
44519
+ })
44487
44520
  });
44488
44521
  };
44489
44522
  // src/components/threads/Thread/MessageForm/Field/index.tsx
44490
44523
  var import_themes51 = require("@radix-ui/themes");
44491
44524
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44492
- var import_react_compiler_runtime69 = require("react-compiler-runtime");
44525
+ var import_react_compiler_runtime70 = require("react-compiler-runtime");
44493
44526
  var import_themes48 = require("@radix-ui/themes");
44494
44527
  // src/hooks/misc/usePrevious.ts
44495
- var import_react52 = require("react");
44528
+ var import_react53 = require("react");
44496
44529
  var usePrevious = function(state) {
44497
- var ref = (0, import_react52.useRef)(void 0);
44498
- (0, import_react52.useEffect)(function() {
44530
+ var ref = (0, import_react53.useRef)(void 0);
44531
+ (0, import_react53.useEffect)(function() {
44499
44532
  ref.current = state;
44500
44533
  });
44501
44534
  return ref.current;
44502
44535
  };
44503
44536
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44504
- var import_react54 = require("react");
44537
+ var import_react55 = require("react");
44505
44538
  // src/components/textareas/TextareaBase/index.tsx
44506
- var import_react_compiler_runtime68 = require("react-compiler-runtime");
44507
- var import_react53 = require("react");
44539
+ var import_react_compiler_runtime69 = require("react-compiler-runtime");
44540
+ var import_react54 = require("react");
44508
44541
  var import_react_textarea_autosize = __toESM(require("react-textarea-autosize"), 1);
44509
- var import_jsx_runtime70 = require("react/jsx-runtime");
44542
+ var import_jsx_runtime71 = require("react/jsx-runtime");
44510
44543
  var _excluded3 = [
44511
44544
  "style",
44512
44545
  "className"
@@ -44572,8 +44605,8 @@ function _objectWithoutPropertiesLoose3(r, e) {
44572
44605
  }
44573
44606
  return t;
44574
44607
  }
44575
- var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function TextareaBase2(t0, ref) {
44576
- var $ = (0, import_react_compiler_runtime68.c)(14);
44608
+ var TextareaBase = /* @__PURE__ */ (0, import_react54.forwardRef)(function TextareaBase2(t0, ref) {
44609
+ var $ = (0, import_react_compiler_runtime69.c)(14);
44577
44610
  var className;
44578
44611
  var rest;
44579
44612
  var style;
@@ -44594,7 +44627,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
44594
44627
  }
44595
44628
  var t1;
44596
44629
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
44597
- t1 = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("style", {
44630
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("style", {
44598
44631
  children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
44599
44632
  });
44600
44633
  $[4] = t1;
@@ -44628,10 +44661,10 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
44628
44661
  }
44629
44662
  var t5;
44630
44663
  if ($[9] !== ref || $[10] !== rest || $[11] !== t2 || $[12] !== t4) {
44631
- t5 = /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, {
44664
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, {
44632
44665
  children: [
44633
44666
  t1,
44634
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_textarea_autosize.default, _objectSpread31({
44667
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_textarea_autosize.default, _objectSpread31({
44635
44668
  ref: ref,
44636
44669
  className: t2,
44637
44670
  style: t4
@@ -44649,7 +44682,7 @@ var TextareaBase = /* @__PURE__ */ (0, import_react53.forwardRef)(function Texta
44649
44682
  return t5;
44650
44683
  });
44651
44684
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44652
- var import_jsx_runtime71 = require("react/jsx-runtime");
44685
+ var import_jsx_runtime72 = require("react/jsx-runtime");
44653
44686
  function ownKeys32(e, r) {
44654
44687
  var t = Object.keys(e);
44655
44688
  if (Object.getOwnPropertySymbols) {
@@ -44694,11 +44727,11 @@ function _toPrimitive32(t, r) {
44694
44727
  return ("string" === r ? String : Number)(t);
44695
44728
  }
44696
44729
  var Root9 = function(t0) {
44697
- var $ = (0, import_react_compiler_runtime69.c)(4);
44730
+ var $ = (0, import_react_compiler_runtime70.c)(4);
44698
44731
  var children = t0.children, style = t0.style, className = t0.className;
44699
44732
  var t1;
44700
44733
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
44701
- t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes48.Flex, {
44734
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes48.Flex, {
44702
44735
  flexGrow: "1",
44703
44736
  pt: "4px",
44704
44737
  style: style,
@@ -44717,19 +44750,19 @@ var Root9 = function(t0) {
44717
44750
  var Input = function(props) {
44718
44751
  "use no memo";
44719
44752
  var _props$placeholder;
44720
- var assistantNameContext = (0, import_react54.useContext)(AssistantNameContext);
44721
- var register = (0, import_react_hook_form.useFormContext)().register;
44753
+ var assistantNameContext = (0, import_react55.useContext)(AssistantNameContext);
44754
+ var register = useFormContext().register;
44722
44755
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
44723
- var isSubmitDisabled = (0, import_react54.useMemo)(function() {
44756
+ var isSubmitDisabled = (0, import_react55.useMemo)(function() {
44724
44757
  return isDisabled || isLoading;
44725
44758
  }, [
44726
44759
  isDisabled,
44727
44760
  isLoading
44728
44761
  ]);
44729
44762
  var isDisabledPrevious = usePrevious(isDisabled);
44730
- var textareaRef = (0, import_react54.useRef)(null);
44763
+ var textareaRef = (0, import_react55.useRef)(null);
44731
44764
  var textareaProps = register("content");
44732
- (0, import_react54.useEffect)(function() {
44765
+ (0, import_react55.useEffect)(function() {
44733
44766
  if (isDisabled) return;
44734
44767
  if (!isDisabledPrevious) return;
44735
44768
  if (!textareaRef.current) return;
@@ -44739,7 +44772,7 @@ var Input = function(props) {
44739
44772
  isDisabledPrevious,
44740
44773
  textareaProps
44741
44774
  ]);
44742
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TextareaBase, _objectSpread32(_objectSpread32(_objectSpread32({
44775
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TextareaBase, _objectSpread32(_objectSpread32(_objectSpread32({
44743
44776
  minRows: 1,
44744
44777
  placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
44745
44778
  disabled: isDisabled,
@@ -44759,17 +44792,17 @@ var Input = function(props) {
44759
44792
  }));
44760
44793
  };
44761
44794
  var Control = function(props) {
44762
- var $ = (0, import_react_compiler_runtime69.c)(3);
44795
+ var $ = (0, import_react_compiler_runtime70.c)(3);
44763
44796
  var t0;
44764
44797
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44765
- t0 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Input, {});
44798
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Input, {});
44766
44799
  $[0] = t0;
44767
44800
  } else {
44768
44801
  t0 = $[0];
44769
44802
  }
44770
44803
  var t1;
44771
44804
  if ($[1] !== props) {
44772
- t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Root9, _objectSpread32(_objectSpread32({}, props), {}, {
44805
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Root9, _objectSpread32(_objectSpread32({}, props), {}, {
44773
44806
  children: t0
44774
44807
  }));
44775
44808
  $[1] = props;
@@ -44782,10 +44815,10 @@ var Control = function(props) {
44782
44815
  Control.Root = Root9;
44783
44816
  Control.Input = Input;
44784
44817
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
44785
- var import_react_compiler_runtime70 = require("react-compiler-runtime");
44818
+ var import_react_compiler_runtime71 = require("react-compiler-runtime");
44786
44819
  var import_themes49 = require("@radix-ui/themes");
44787
44820
  var import_react_icons12 = require("@radix-ui/react-icons");
44788
- var import_jsx_runtime72 = require("react/jsx-runtime");
44821
+ var import_jsx_runtime73 = require("react/jsx-runtime");
44789
44822
  function ownKeys33(e, r) {
44790
44823
  var t = Object.keys(e);
44791
44824
  if (Object.getOwnPropertySymbols) {
@@ -44830,7 +44863,7 @@ function _toPrimitive33(t, r) {
44830
44863
  return ("string" === r ? String : Number)(t);
44831
44864
  }
44832
44865
  var Preview = function(props) {
44833
- var $ = (0, import_react_compiler_runtime70.c)(8);
44866
+ var $ = (0, import_react_compiler_runtime71.c)(8);
44834
44867
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
44835
44868
  if (!files.length) {
44836
44869
  return null;
@@ -44840,30 +44873,30 @@ var Preview = function(props) {
44840
44873
  var _t;
44841
44874
  if ($[3] !== setFiles) {
44842
44875
  _t = function(file) {
44843
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes49.Card, {
44876
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes49.Card, {
44844
44877
  variant: "ghost",
44845
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes49.Flex, {
44878
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_themes49.Flex, {
44846
44879
  align: "center",
44847
44880
  justify: "between",
44848
44881
  gap: "1",
44849
44882
  children: [
44850
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes49.Flex, {
44883
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_themes49.Flex, {
44851
44884
  align: "center",
44852
44885
  gap: "1",
44853
44886
  flexShrink: "1",
44854
44887
  minWidth: "0",
44855
44888
  maxWidth: "250px",
44856
44889
  children: [
44857
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes49.Flex, {
44890
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes49.Flex, {
44858
44891
  flexShrink: "0",
44859
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes49.Spinner, {
44892
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes49.Spinner, {
44860
44893
  loading: isOptimistic({
44861
44894
  id: file.id
44862
44895
  }),
44863
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons12.FileIcon, {})
44896
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_icons12.FileIcon, {})
44864
44897
  })
44865
44898
  }),
44866
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes49.Text, {
44899
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes49.Text, {
44867
44900
  size: "2",
44868
44901
  truncate: true,
44869
44902
  wrap: "nowrap",
@@ -44871,9 +44904,9 @@ var Preview = function(props) {
44871
44904
  })
44872
44905
  ]
44873
44906
  }),
44874
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes49.Flex, {
44907
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes49.Flex, {
44875
44908
  flexShrink: "0",
44876
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes49.IconButton, {
44909
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes49.IconButton, {
44877
44910
  onClick: function() {
44878
44911
  return setFiles(function(prev) {
44879
44912
  return prev.filter(function(prevFile) {
@@ -44884,7 +44917,7 @@ var Preview = function(props) {
44884
44917
  color: "gray",
44885
44918
  variant: "ghost",
44886
44919
  size: "1",
44887
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons12.Cross2Icon, {})
44920
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_icons12.Cross2Icon, {})
44888
44921
  })
44889
44922
  })
44890
44923
  ]
@@ -44905,7 +44938,7 @@ var Preview = function(props) {
44905
44938
  }
44906
44939
  var t1;
44907
44940
  if ($[5] !== props || $[6] !== t0) {
44908
- t1 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes49.Flex, _objectSpread33(_objectSpread33({
44941
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes49.Flex, _objectSpread33(_objectSpread33({
44909
44942
  flexBasis: "100%",
44910
44943
  direction: "column",
44911
44944
  pb: "2",
@@ -44922,15 +44955,15 @@ var Preview = function(props) {
44922
44955
  return t1;
44923
44956
  };
44924
44957
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
44925
- var import_react_compiler_runtime72 = require("react-compiler-runtime");
44958
+ var import_react_compiler_runtime73 = require("react-compiler-runtime");
44926
44959
  var import_react_icons13 = require("@radix-ui/react-icons");
44927
44960
  var import_themes50 = require("@radix-ui/themes");
44928
44961
  // src/hooks/files/useChangeFilesField/index.ts
44929
- var import_react55 = require("react");
44962
+ var import_react56 = require("react");
44930
44963
  var import_radash15 = require("radash");
44931
44964
  var import_dayjs2 = __toESM(require("dayjs"), 1);
44932
44965
  // src/hooks/files/useCreateFile/index.ts
44933
- var import_react_compiler_runtime71 = require("react-compiler-runtime");
44966
+ var import_react_compiler_runtime72 = require("react-compiler-runtime");
44934
44967
  var import_react_query7 = require("@tanstack/react-query");
44935
44968
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
44936
44969
  var formData = function(variables) {
@@ -45166,7 +45199,7 @@ function _toPrimitive36(t, r) {
45166
45199
  return ("string" === r ? String : Number)(t);
45167
45200
  }
45168
45201
  var useCreateFile = function(t0) {
45169
- var $ = (0, import_react_compiler_runtime71.c)(15);
45202
+ var $ = (0, import_react_compiler_runtime72.c)(15);
45170
45203
  var t1;
45171
45204
  if ($[0] !== t0) {
45172
45205
  t1 = t0 === void 0 ? {
@@ -45317,7 +45350,7 @@ var useChangeFilesField = function() {
45317
45350
  var setFiles = useMessageFormContext().setFiles;
45318
45351
  var createFile = useCreateFile().createFile;
45319
45352
  var addToast = useToasts().addToast;
45320
- var changeFilesField = (0, import_react55.useCallback)(/* @__PURE__ */ function() {
45353
+ var changeFilesField = (0, import_react56.useCallback)(/* @__PURE__ */ function() {
45321
45354
  var _ref2 = _asyncToGenerator8(function(event) {
45322
45355
  var fileObjects, newFiles, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
45323
45356
  return _ts_generator(this, function(_state) {
@@ -45495,7 +45528,7 @@ var useChangeFilesField = function() {
45495
45528
  // src/lib/files/filesFieldAccept.ts
45496
45529
  var filesFieldAccept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
45497
45530
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
45498
- var import_jsx_runtime73 = require("react/jsx-runtime");
45531
+ var import_jsx_runtime74 = require("react/jsx-runtime");
45499
45532
  function ownKeys37(e, r) {
45500
45533
  var t = Object.keys(e);
45501
45534
  if (Object.getOwnPropertySymbols) {
@@ -45540,7 +45573,7 @@ function _toPrimitive37(t, r) {
45540
45573
  return ("string" === r ? String : Number)(t);
45541
45574
  }
45542
45575
  var Control2 = function(props) {
45543
- var $ = (0, import_react_compiler_runtime72.c)(11);
45576
+ var $ = (0, import_react_compiler_runtime73.c)(11);
45544
45577
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
45545
45578
  var changeFilesField = useChangeFilesField().changeFilesField;
45546
45579
  var t0 = isDisabled || isLoading;
@@ -45551,7 +45584,7 @@ var Control2 = function(props) {
45551
45584
  position: "relative",
45552
45585
  overflow: "hidden"
45553
45586
  };
45554
- t2 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_icons13.FilePlusIcon, {});
45587
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_icons13.FilePlusIcon, {});
45555
45588
  $[0] = t1;
45556
45589
  $[1] = t2;
45557
45590
  } else {
@@ -45575,7 +45608,7 @@ var Control2 = function(props) {
45575
45608
  }
45576
45609
  var t4;
45577
45610
  if ($[3] !== changeFilesField) {
45578
- t4 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("input", {
45611
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("input", {
45579
45612
  type: "file",
45580
45613
  multiple: true,
45581
45614
  accept: filesFieldAccept,
@@ -45589,7 +45622,7 @@ var Control2 = function(props) {
45589
45622
  }
45590
45623
  var t5;
45591
45624
  if ($[5] !== t0 || $[6] !== t4) {
45592
- t5 = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_themes50.IconButton, {
45625
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_themes50.IconButton, {
45593
45626
  type: "button",
45594
45627
  variant: "ghost",
45595
45628
  color: "gray",
@@ -45608,7 +45641,7 @@ var Control2 = function(props) {
45608
45641
  }
45609
45642
  var t6;
45610
45643
  if ($[8] !== props || $[9] !== t5) {
45611
- t6 = /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes50.Flex, _objectSpread37(_objectSpread37({
45644
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes50.Flex, _objectSpread37(_objectSpread37({
45612
45645
  pt: "2",
45613
45646
  pr: "2",
45614
45647
  flexGrow: "0"
@@ -45629,7 +45662,7 @@ var Files = {
45629
45662
  Control: Control2
45630
45663
  };
45631
45664
  // src/components/threads/Thread/MessageForm/Field/index.tsx
45632
- var import_jsx_runtime74 = require("react/jsx-runtime");
45665
+ var import_jsx_runtime75 = require("react/jsx-runtime");
45633
45666
  function ownKeys38(e, r) {
45634
45667
  var t = Object.keys(e);
45635
45668
  if (Object.getOwnPropertySymbols) {
@@ -45676,19 +45709,19 @@ function _toPrimitive38(t, r) {
45676
45709
  var Root10 = function(_ref) {
45677
45710
  "use no memo";
45678
45711
  var children = _ref.children, className = _ref.className, style = _ref.style;
45679
- var _$_ref = (0, import_react_hook_form.useFormContext)(), errors = _$_ref.formState.errors;
45680
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes51.Container, {
45712
+ var _useFormContext = useFormContext(), errors = _useFormContext.formState.errors;
45713
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes51.Container, {
45681
45714
  size: "2",
45682
45715
  flexGrow: "0",
45683
45716
  className: className,
45684
45717
  style: style,
45685
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes51.Flex, {
45718
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes51.Flex, {
45686
45719
  direction: "column",
45687
45720
  flexShrink: "0",
45688
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes51.Flex, {
45721
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes51.Flex, {
45689
45722
  direction: "column",
45690
45723
  flexShrink: "0",
45691
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes51.Flex, {
45724
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes51.Flex, {
45692
45725
  style: _objectSpread38({
45693
45726
  borderRadius: "var(--radius-2)",
45694
45727
  borderWidth: "1px",
@@ -45712,7 +45745,7 @@ var Field = {
45712
45745
  Files: Files
45713
45746
  };
45714
45747
  // src/components/threads/Thread/MessageForm/index.tsx
45715
- var import_jsx_runtime75 = require("react/jsx-runtime");
45748
+ var import_jsx_runtime76 = require("react/jsx-runtime");
45716
45749
  function ownKeys39(e, r) {
45717
45750
  var t = Object.keys(e);
45718
45751
  if (Object.getOwnPropertySymbols) {
@@ -45757,13 +45790,13 @@ function _toPrimitive39(t, r) {
45757
45790
  return ("string" === r ? String : Number)(t);
45758
45791
  }
45759
45792
  var MessageForm = function(props) {
45760
- var $ = (0, import_react_compiler_runtime73.c)(3);
45793
+ var $ = (0, import_react_compiler_runtime74.c)(3);
45761
45794
  var t0;
45762
45795
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
45763
- t0 = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Field.Root, {
45796
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Field.Root, {
45764
45797
  children: [
45765
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Field.Control, {}),
45766
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Submit, {})
45798
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Field.Control, {}),
45799
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Submit, {})
45767
45800
  ]
45768
45801
  });
45769
45802
  $[0] = t0;
@@ -45772,7 +45805,7 @@ var MessageForm = function(props) {
45772
45805
  }
45773
45806
  var t1;
45774
45807
  if ($[1] !== props) {
45775
- t1 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
45808
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
45776
45809
  children: t0
45777
45810
  }));
45778
45811
  $[1] = props;
@@ -45786,32 +45819,32 @@ MessageForm.Root = Root8;
45786
45819
  MessageForm.Field = Field;
45787
45820
  MessageForm.Submit = Submit;
45788
45821
  // src/components/threads/Thread/Root/index.tsx
45789
- var import_react_compiler_runtime76 = require("react-compiler-runtime");
45822
+ var import_react_compiler_runtime77 = require("react-compiler-runtime");
45790
45823
  var import_themes53 = require("@radix-ui/themes");
45791
45824
  // src/components/threads/Thread/Provider/index.tsx
45792
45825
  var Provider2 = SuperinterfaceProvider;
45793
45826
  // src/components/toasts/ToastsProvider/index.tsx
45794
- var import_react_compiler_runtime75 = require("react-compiler-runtime");
45795
- var import_react56 = require("react");
45827
+ var import_react_compiler_runtime76 = require("react-compiler-runtime");
45828
+ var import_react57 = require("react");
45796
45829
  var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
45797
45830
  // src/components/toasts/ToastsProvider/CustomToast.tsx
45798
- var import_react_compiler_runtime74 = require("react-compiler-runtime");
45831
+ var import_react_compiler_runtime75 = require("react-compiler-runtime");
45799
45832
  var Toast = __toESM(require("@radix-ui/react-toast"), 1);
45800
45833
  var import_themes52 = require("@radix-ui/themes");
45801
45834
  var import_react_icons14 = require("@radix-ui/react-icons");
45802
- var import_jsx_runtime76 = require("react/jsx-runtime");
45835
+ var import_jsx_runtime77 = require("react/jsx-runtime");
45803
45836
  var CustomToast = function(t0) {
45804
- var $ = (0, import_react_compiler_runtime74.c)(7);
45837
+ var $ = (0, import_react_compiler_runtime75.c)(7);
45805
45838
  var toast = t0.toast;
45806
45839
  var t1;
45807
45840
  if ($[0] !== toast.type) {
45808
- t1 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes52.Flex, {
45841
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes52.Flex, {
45809
45842
  pr: "2",
45810
45843
  height: "14px",
45811
45844
  align: "center",
45812
- children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_icons14.CheckCircledIcon, {
45845
+ children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_icons14.CheckCircledIcon, {
45813
45846
  color: "var(--accent-9)"
45814
- }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_icons14.CrossCircledIcon, {
45847
+ }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_icons14.CrossCircledIcon, {
45815
45848
  color: "var(--red-9)"
45816
45849
  })
45817
45850
  });
@@ -45822,7 +45855,7 @@ var CustomToast = function(t0) {
45822
45855
  }
45823
45856
  var t2;
45824
45857
  if ($[2] !== toast.message) {
45825
- t2 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes52.Text, {
45858
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes52.Text, {
45826
45859
  weight: "medium",
45827
45860
  size: "1",
45828
45861
  children: toast.message
@@ -45834,10 +45867,10 @@ var CustomToast = function(t0) {
45834
45867
  }
45835
45868
  var t3;
45836
45869
  if ($[4] !== t1 || $[5] !== t2) {
45837
- t3 = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Toast.Root, {
45838
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes52.Card, {
45839
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Toast.Title, {
45840
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_themes52.Flex, {
45870
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Toast.Root, {
45871
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes52.Card, {
45872
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Toast.Title, {
45873
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_themes52.Flex, {
45841
45874
  children: [
45842
45875
  t1,
45843
45876
  t2
@@ -45855,9 +45888,9 @@ var CustomToast = function(t0) {
45855
45888
  return t3;
45856
45889
  };
45857
45890
  // src/components/toasts/ToastsProvider/index.tsx
45858
- var import_jsx_runtime77 = require("react/jsx-runtime");
45891
+ var import_jsx_runtime78 = require("react/jsx-runtime");
45859
45892
  var ToastsProvider = function(t0) {
45860
- var $ = (0, import_react_compiler_runtime75.c)(15);
45893
+ var $ = (0, import_react_compiler_runtime76.c)(15);
45861
45894
  var children = t0.children, t1 = t0.bottom;
45862
45895
  var bottom = t1 === void 0 ? 0 : t1;
45863
45896
  var t2;
@@ -45867,7 +45900,7 @@ var ToastsProvider = function(t0) {
45867
45900
  } else {
45868
45901
  t2 = $[0];
45869
45902
  }
45870
- var _ref = _sliced_to_array((0, import_react56.useState)(t2), 2), toasts = _ref[0], setToasts = _ref[1];
45903
+ var _ref = _sliced_to_array((0, import_react57.useState)(t2), 2), toasts = _ref[0], setToasts = _ref[1];
45871
45904
  var t3;
45872
45905
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
45873
45906
  t3 = function(toast) {
@@ -45903,7 +45936,7 @@ var ToastsProvider = function(t0) {
45903
45936
  }
45904
45937
  var t6;
45905
45938
  if ($[6] !== bottom) {
45906
- t6 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Toast2.Viewport, {
45939
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Toast2.Viewport, {
45907
45940
  style: {
45908
45941
  position: "absolute",
45909
45942
  bottom: bottom,
@@ -45927,7 +45960,7 @@ var ToastsProvider = function(t0) {
45927
45960
  }
45928
45961
  var t7;
45929
45962
  if ($[8] !== children || $[9] !== t5 || $[10] !== t6) {
45930
- t7 = /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Toast2.Provider, {
45963
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Toast2.Provider, {
45931
45964
  children: [
45932
45965
  children,
45933
45966
  t5,
@@ -45943,7 +45976,7 @@ var ToastsProvider = function(t0) {
45943
45976
  }
45944
45977
  var t8;
45945
45978
  if ($[12] !== t4 || $[13] !== t7) {
45946
- t8 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ToastsContext.Provider, {
45979
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToastsContext.Provider, {
45947
45980
  value: t4,
45948
45981
  children: t7
45949
45982
  });
@@ -45956,12 +45989,12 @@ var ToastsProvider = function(t0) {
45956
45989
  return t8;
45957
45990
  };
45958
45991
  function _temp5(toast_0, index) {
45959
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CustomToast, {
45992
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CustomToast, {
45960
45993
  toast: toast_0
45961
45994
  }, index);
45962
45995
  }
45963
45996
  // src/components/threads/Thread/Root/index.tsx
45964
- var import_jsx_runtime78 = require("react/jsx-runtime");
45997
+ var import_jsx_runtime79 = require("react/jsx-runtime");
45965
45998
  var _excluded4 = [
45966
45999
  "children",
45967
46000
  "style",
@@ -46029,7 +46062,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
46029
46062
  return t;
46030
46063
  }
46031
46064
  var Root12 = function(t0) {
46032
- var $ = (0, import_react_compiler_runtime76.c)(12);
46065
+ var $ = (0, import_react_compiler_runtime77.c)(12);
46033
46066
  var children;
46034
46067
  var className;
46035
46068
  var rest;
@@ -46053,7 +46086,7 @@ var Root12 = function(t0) {
46053
46086
  }
46054
46087
  var t1;
46055
46088
  if ($[5] !== children || $[6] !== className || $[7] !== style) {
46056
- t1 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_themes53.Flex, {
46089
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes53.Flex, {
46057
46090
  direction: "column",
46058
46091
  flexGrow: "1",
46059
46092
  className: className,
@@ -46069,9 +46102,9 @@ var Root12 = function(t0) {
46069
46102
  }
46070
46103
  var t2;
46071
46104
  if ($[9] !== rest || $[10] !== t1) {
46072
- t2 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToastsProvider, {
46105
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ToastsProvider, {
46073
46106
  bottom: "var(--space-9)",
46074
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Provider2, _objectSpread40(_objectSpread40({}, rest), {}, {
46107
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Provider2, _objectSpread40(_objectSpread40({}, rest), {}, {
46075
46108
  children: t1
46076
46109
  }))
46077
46110
  });
@@ -46084,7 +46117,7 @@ var Root12 = function(t0) {
46084
46117
  return t2;
46085
46118
  };
46086
46119
  // src/components/threads/Thread/index.tsx
46087
- var import_jsx_runtime79 = require("react/jsx-runtime");
46120
+ var import_jsx_runtime80 = require("react/jsx-runtime");
46088
46121
  function ownKeys41(e, r) {
46089
46122
  var t = Object.keys(e);
46090
46123
  if (Object.getOwnPropertySymbols) {
@@ -46129,12 +46162,12 @@ function _toPrimitive41(t, r) {
46129
46162
  return ("string" === r ? String : Number)(t);
46130
46163
  }
46131
46164
  var Thread = function(props) {
46132
- var $ = (0, import_react_compiler_runtime77.c)(4);
46165
+ var $ = (0, import_react_compiler_runtime78.c)(4);
46133
46166
  var t0;
46134
46167
  var t1;
46135
46168
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46136
- t0 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Messages2, {});
46137
- t1 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(MessageForm, {});
46169
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Messages2, {});
46170
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(MessageForm, {});
46138
46171
  $[0] = t0;
46139
46172
  $[1] = t1;
46140
46173
  } else {
@@ -46143,7 +46176,7 @@ var Thread = function(props) {
46143
46176
  }
46144
46177
  var t2;
46145
46178
  if ($[2] !== props) {
46146
- t2 = /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(Root12, _objectSpread41(_objectSpread41({}, props), {}, {
46179
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(Root12, _objectSpread41(_objectSpread41({}, props), {}, {
46147
46180
  children: [
46148
46181
  t0,
46149
46182
  t1
@@ -46160,13 +46193,13 @@ Thread.Root = Root12;
46160
46193
  Thread.Messages = Messages2;
46161
46194
  Thread.MessageForm = MessageForm;
46162
46195
  // src/hooks/messages/useMessageContext/index.ts
46163
- var import_react57 = require("react");
46196
+ var import_react58 = require("react");
46164
46197
  var useMessageContext = function() {
46165
- return (0, import_react57.useContext)(MessageContext);
46198
+ return (0, import_react58.useContext)(MessageContext);
46166
46199
  };
46167
46200
  // src/hooks/assistants/useAssistant/index.ts
46168
- var import_react_compiler_runtime78 = require("react-compiler-runtime");
46169
- var import_react58 = require("react");
46201
+ var import_react_compiler_runtime79 = require("react-compiler-runtime");
46202
+ var import_react59 = require("react");
46170
46203
  var import_react_query9 = require("@tanstack/react-query");
46171
46204
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
46172
46205
  var import_react_query8 = require("@tanstack/react-query");
@@ -46315,7 +46348,7 @@ function _toPrimitive42(t, r) {
46315
46348
  return ("string" === r ? String : Number)(t);
46316
46349
  }
46317
46350
  var useAssistant = function(t0) {
46318
- var $ = (0, import_react_compiler_runtime78.c)(6);
46351
+ var $ = (0, import_react_compiler_runtime79.c)(6);
46319
46352
  var assistantId = t0.assistantId;
46320
46353
  var superinterfaceContext = useSuperinterfaceContext();
46321
46354
  var t1;
@@ -46348,30 +46381,30 @@ var useAssistant = function(t0) {
46348
46381
  return t2;
46349
46382
  };
46350
46383
  // src/components/threads/ThreadDialog/index.tsx
46351
- var import_react_compiler_runtime85 = require("react-compiler-runtime");
46384
+ var import_react_compiler_runtime86 = require("react-compiler-runtime");
46352
46385
  // src/components/threads/ThreadDialog/Root/index.tsx
46353
- var import_react_compiler_runtime80 = require("react-compiler-runtime");
46386
+ var import_react_compiler_runtime81 = require("react-compiler-runtime");
46354
46387
  // src/components/threads/ThreadDialog/Provider/index.tsx
46355
- var import_react_compiler_runtime79 = require("react-compiler-runtime");
46356
- var import_react61 = require("react");
46388
+ var import_react_compiler_runtime80 = require("react-compiler-runtime");
46389
+ var import_react62 = require("react");
46357
46390
  // src/contexts/threads/ThreadDialogContext/index.ts
46358
- var import_react59 = require("react");
46359
- var ThreadDialogContext = /* @__PURE__ */ (0, import_react59.createContext)({
46391
+ var import_react60 = require("react");
46392
+ var ThreadDialogContext = /* @__PURE__ */ (0, import_react60.createContext)({
46360
46393
  isOpen: false,
46361
46394
  setIsOpen: function() {}
46362
46395
  });
46363
46396
  // src/hooks/threads/useThreadDialogContext/index.ts
46364
- var import_react60 = require("react");
46397
+ var import_react61 = require("react");
46365
46398
  var useThreadDialogContext = function() {
46366
- return (0, import_react60.useContext)(ThreadDialogContext);
46399
+ return (0, import_react61.useContext)(ThreadDialogContext);
46367
46400
  };
46368
46401
  // src/components/threads/ThreadDialog/Provider/index.tsx
46369
- var import_jsx_runtime80 = require("react/jsx-runtime");
46402
+ var import_jsx_runtime81 = require("react/jsx-runtime");
46370
46403
  var Provider4 = function(t0) {
46371
- var $ = (0, import_react_compiler_runtime79.c)(5);
46404
+ var $ = (0, import_react_compiler_runtime80.c)(5);
46372
46405
  var children = t0.children;
46373
46406
  var threadDialogContext = useThreadDialogContext();
46374
- var _ref = _sliced_to_array((0, import_react61.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
46407
+ var _ref = _sliced_to_array((0, import_react62.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
46375
46408
  var t1;
46376
46409
  if ($[0] !== isOpen) {
46377
46410
  t1 = {
@@ -46385,7 +46418,7 @@ var Provider4 = function(t0) {
46385
46418
  }
46386
46419
  var t2;
46387
46420
  if ($[2] !== children || $[3] !== t1) {
46388
- t2 = /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ThreadDialogContext.Provider, {
46421
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ThreadDialogContext.Provider, {
46389
46422
  value: t1,
46390
46423
  children: children
46391
46424
  });
@@ -46398,13 +46431,13 @@ var Provider4 = function(t0) {
46398
46431
  return t2;
46399
46432
  };
46400
46433
  // src/components/threads/ThreadDialog/Root/index.tsx
46401
- var import_jsx_runtime81 = require("react/jsx-runtime");
46434
+ var import_jsx_runtime82 = require("react/jsx-runtime");
46402
46435
  var Root13 = function(t0) {
46403
- var $ = (0, import_react_compiler_runtime80.c)(2);
46436
+ var $ = (0, import_react_compiler_runtime81.c)(2);
46404
46437
  var children = t0.children;
46405
46438
  var t1;
46406
46439
  if ($[0] !== children) {
46407
- t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Provider4, {
46440
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Provider4, {
46408
46441
  children: children
46409
46442
  });
46410
46443
  $[0] = children;
@@ -46415,13 +46448,13 @@ var Root13 = function(t0) {
46415
46448
  return t1;
46416
46449
  };
46417
46450
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46418
- var import_react_compiler_runtime82 = require("react-compiler-runtime");
46451
+ var import_react_compiler_runtime83 = require("react-compiler-runtime");
46419
46452
  var import_themes55 = require("@radix-ui/themes");
46420
46453
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
46421
- var import_react_compiler_runtime81 = require("react-compiler-runtime");
46454
+ var import_react_compiler_runtime82 = require("react-compiler-runtime");
46422
46455
  var import_themes54 = require("@radix-ui/themes");
46423
46456
  var import_react_icons15 = require("@radix-ui/react-icons");
46424
- var import_jsx_runtime82 = require("react/jsx-runtime");
46457
+ var import_jsx_runtime83 = require("react/jsx-runtime");
46425
46458
  function ownKeys43(e, r) {
46426
46459
  var t = Object.keys(e);
46427
46460
  if (Object.getOwnPropertySymbols) {
@@ -46466,17 +46499,17 @@ function _toPrimitive43(t, r) {
46466
46499
  return ("string" === r ? String : Number)(t);
46467
46500
  }
46468
46501
  var Button4 = function(props) {
46469
- var $ = (0, import_react_compiler_runtime81.c)(3);
46502
+ var $ = (0, import_react_compiler_runtime82.c)(3);
46470
46503
  var t0;
46471
46504
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46472
- t0 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_icons15.ChatBubbleIcon, {});
46505
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_icons15.ChatBubbleIcon, {});
46473
46506
  $[0] = t0;
46474
46507
  } else {
46475
46508
  t0 = $[0];
46476
46509
  }
46477
46510
  var t1;
46478
46511
  if ($[1] !== props) {
46479
- t1 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_themes54.IconButton, _objectSpread43(_objectSpread43({
46512
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes54.IconButton, _objectSpread43(_objectSpread43({
46480
46513
  size: "4",
46481
46514
  radius: "full"
46482
46515
  }, props), {}, {
@@ -46490,7 +46523,7 @@ var Button4 = function(props) {
46490
46523
  return t1;
46491
46524
  };
46492
46525
  // src/components/threads/ThreadDialog/Trigger/index.tsx
46493
- var import_jsx_runtime83 = require("react/jsx-runtime");
46526
+ var import_jsx_runtime84 = require("react/jsx-runtime");
46494
46527
  function ownKeys44(e, r) {
46495
46528
  var t = Object.keys(e);
46496
46529
  if (Object.getOwnPropertySymbols) {
@@ -46535,7 +46568,7 @@ function _toPrimitive44(t, r) {
46535
46568
  return ("string" === r ? String : Number)(t);
46536
46569
  }
46537
46570
  var Root14 = function(t0) {
46538
- var $ = (0, import_react_compiler_runtime82.c)(14);
46571
+ var $ = (0, import_react_compiler_runtime83.c)(14);
46539
46572
  var children = t0.children, style = t0.style, className = t0.className;
46540
46573
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
46541
46574
  var t1 = isOpen ? "none" : "flex";
@@ -46580,7 +46613,7 @@ var Root14 = function(t0) {
46580
46613
  }
46581
46614
  var t6;
46582
46615
  if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
46583
- t6 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes55.Flex, {
46616
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes55.Flex, {
46584
46617
  display: t2,
46585
46618
  onClick: t3,
46586
46619
  direction: "column",
@@ -46606,17 +46639,17 @@ var Root14 = function(t0) {
46606
46639
  return t6;
46607
46640
  };
46608
46641
  var Trigger = function(args) {
46609
- var $ = (0, import_react_compiler_runtime82.c)(3);
46642
+ var $ = (0, import_react_compiler_runtime83.c)(3);
46610
46643
  var t0;
46611
46644
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46612
- t0 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Button4, {});
46645
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button4, {});
46613
46646
  $[0] = t0;
46614
46647
  } else {
46615
46648
  t0 = $[0];
46616
46649
  }
46617
46650
  var t1;
46618
46651
  if ($[1] !== args) {
46619
- t1 = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Root14, _objectSpread44(_objectSpread44({}, args), {}, {
46652
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Root14, _objectSpread44(_objectSpread44({}, args), {}, {
46620
46653
  children: t0
46621
46654
  }));
46622
46655
  $[1] = args;
@@ -46632,15 +46665,15 @@ function _temp6(prev) {
46632
46665
  return !prev;
46633
46666
  }
46634
46667
  // src/components/threads/ThreadDialog/Content/index.tsx
46635
- var import_react_compiler_runtime84 = require("react-compiler-runtime");
46668
+ var import_react_compiler_runtime85 = require("react-compiler-runtime");
46636
46669
  var import_themes57 = require("@radix-ui/themes");
46637
46670
  // src/components/threads/ThreadDialog/Close/index.tsx
46638
- var import_react_compiler_runtime83 = require("react-compiler-runtime");
46671
+ var import_react_compiler_runtime84 = require("react-compiler-runtime");
46639
46672
  var import_react_icons16 = require("@radix-ui/react-icons");
46640
46673
  var import_themes56 = require("@radix-ui/themes");
46641
- var import_jsx_runtime84 = require("react/jsx-runtime");
46674
+ var import_jsx_runtime85 = require("react/jsx-runtime");
46642
46675
  var Close = function() {
46643
- var $ = (0, import_react_compiler_runtime83.c)(9);
46676
+ var $ = (0, import_react_compiler_runtime84.c)(9);
46644
46677
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
46645
46678
  var t0 = isOpen ? "flex" : "none";
46646
46679
  var t1;
@@ -46675,10 +46708,10 @@ var Close = function() {
46675
46708
  }
46676
46709
  var t4;
46677
46710
  if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
46678
- t4 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes56.IconButton, {
46711
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes56.IconButton, {
46679
46712
  size: "2",
46680
46713
  variant: "soft",
46681
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons16.Cross1Icon, {})
46714
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons16.Cross1Icon, {})
46682
46715
  });
46683
46716
  $[5] = t4;
46684
46717
  } else {
@@ -46686,7 +46719,7 @@ var Close = function() {
46686
46719
  }
46687
46720
  var t5;
46688
46721
  if ($[6] !== t1 || $[7] !== t2) {
46689
- t5 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes56.Flex, {
46722
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes56.Flex, {
46690
46723
  display: t1,
46691
46724
  onClick: t2,
46692
46725
  direction: "column",
@@ -46711,7 +46744,7 @@ function _temp7(prev) {
46711
46744
  return !prev;
46712
46745
  }
46713
46746
  // src/components/threads/ThreadDialog/Content/index.tsx
46714
- var import_jsx_runtime85 = require("react/jsx-runtime");
46747
+ var import_jsx_runtime86 = require("react/jsx-runtime");
46715
46748
  function ownKeys45(e, r) {
46716
46749
  var t = Object.keys(e);
46717
46750
  if (Object.getOwnPropertySymbols) {
@@ -46756,7 +46789,7 @@ function _toPrimitive45(t, r) {
46756
46789
  return ("string" === r ? String : Number)(t);
46757
46790
  }
46758
46791
  var Root15 = function(t0) {
46759
- var $ = (0, import_react_compiler_runtime84.c)(19);
46792
+ var $ = (0, import_react_compiler_runtime85.c)(19);
46760
46793
  var children = t0.children, className = t0.className, style = t0.style;
46761
46794
  var isOpen = useThreadDialogContext().isOpen;
46762
46795
  if (!isOpen) {
@@ -46843,7 +46876,7 @@ var Root15 = function(t0) {
46843
46876
  }
46844
46877
  var t10;
46845
46878
  if ($[10] !== children) {
46846
- t10 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes57.Inset, {
46879
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes57.Inset, {
46847
46880
  clip: "padding-box",
46848
46881
  side: "all",
46849
46882
  pb: "current",
@@ -46857,14 +46890,14 @@ var Root15 = function(t0) {
46857
46890
  }
46858
46891
  var t11;
46859
46892
  if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
46860
- t11 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Close, {});
46893
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Close, {});
46861
46894
  $[12] = t11;
46862
46895
  } else {
46863
46896
  t11 = $[12];
46864
46897
  }
46865
46898
  var t12;
46866
46899
  if ($[13] !== t10) {
46867
- t12 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes57.Card, {
46900
+ t12 = /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes57.Card, {
46868
46901
  mb: t7,
46869
46902
  style: t8,
46870
46903
  children: [
@@ -46879,7 +46912,7 @@ var Root15 = function(t0) {
46879
46912
  }
46880
46913
  var t13;
46881
46914
  if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
46882
- t13 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes57.Flex, {
46915
+ t13 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes57.Flex, {
46883
46916
  className: className,
46884
46917
  direction: "column",
46885
46918
  justify: "end",
@@ -46903,7 +46936,7 @@ var Root15 = function(t0) {
46903
46936
  return t13;
46904
46937
  };
46905
46938
  var Messages3 = function(t0) {
46906
- var $ = (0, import_react_compiler_runtime84.c)(5);
46939
+ var $ = (0, import_react_compiler_runtime85.c)(5);
46907
46940
  var className = t0.className, style = t0.style;
46908
46941
  var t1;
46909
46942
  if ($[0] !== style) {
@@ -46919,7 +46952,7 @@ var Messages3 = function(t0) {
46919
46952
  }
46920
46953
  var t2;
46921
46954
  if ($[2] !== className || $[3] !== t1) {
46922
- t2 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Thread.Messages, {
46955
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Thread.Messages, {
46923
46956
  className: className,
46924
46957
  style: t1
46925
46958
  });
@@ -46932,11 +46965,11 @@ var Messages3 = function(t0) {
46932
46965
  return t2;
46933
46966
  };
46934
46967
  var FormContainer = function(t0) {
46935
- var $ = (0, import_react_compiler_runtime84.c)(4);
46968
+ var $ = (0, import_react_compiler_runtime85.c)(4);
46936
46969
  var children = t0.children, className = t0.className, style = t0.style;
46937
46970
  var t1;
46938
46971
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
46939
- t1 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_themes57.Flex, {
46972
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_themes57.Flex, {
46940
46973
  direction: "column",
46941
46974
  pl: "5",
46942
46975
  pr: "5",
@@ -46956,21 +46989,21 @@ var FormContainer = function(t0) {
46956
46989
  return t1;
46957
46990
  };
46958
46991
  var Content8 = function(props) {
46959
- var $ = (0, import_react_compiler_runtime84.c)(4);
46992
+ var $ = (0, import_react_compiler_runtime85.c)(4);
46960
46993
  var t0;
46961
46994
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46962
- t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Messages3, {});
46995
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Messages3, {});
46963
46996
  $[0] = t0;
46964
46997
  } else {
46965
46998
  t0 = $[0];
46966
46999
  }
46967
47000
  var t1;
46968
47001
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
46969
- t1 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Thread.Root, {
47002
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Thread.Root, {
46970
47003
  children: [
46971
47004
  t0,
46972
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FormContainer, {
46973
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Thread.MessageForm, {})
47005
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(FormContainer, {
47006
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Thread.MessageForm, {})
46974
47007
  })
46975
47008
  ]
46976
47009
  });
@@ -46980,7 +47013,7 @@ var Content8 = function(props) {
46980
47013
  }
46981
47014
  var t2;
46982
47015
  if ($[2] !== props) {
46983
- t2 = /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Root15, _objectSpread45(_objectSpread45({}, props), {}, {
47016
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Root15, _objectSpread45(_objectSpread45({}, props), {}, {
46984
47017
  children: t1
46985
47018
  }));
46986
47019
  $[2] = props;
@@ -46994,15 +47027,15 @@ Content8.Root = Root15;
46994
47027
  Content8.Messages = Messages3;
46995
47028
  Content8.FormContainer = FormContainer;
46996
47029
  // src/components/threads/ThreadDialog/index.tsx
46997
- var import_jsx_runtime86 = require("react/jsx-runtime");
47030
+ var import_jsx_runtime87 = require("react/jsx-runtime");
46998
47031
  var ThreadDialog = function() {
46999
- var $ = (0, import_react_compiler_runtime85.c)(1);
47032
+ var $ = (0, import_react_compiler_runtime86.c)(1);
47000
47033
  var t0;
47001
47034
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47002
- t0 = /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Root13, {
47035
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Root13, {
47003
47036
  children: [
47004
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Content8, {}),
47005
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Trigger, {})
47037
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Content8, {}),
47038
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Trigger, {})
47006
47039
  ]
47007
47040
  });
47008
47041
  $[0] = t0;
@@ -47015,30 +47048,30 @@ ThreadDialog.Root = Root13;
47015
47048
  ThreadDialog.Trigger = Trigger;
47016
47049
  ThreadDialog.Content = Content8;
47017
47050
  // src/components/threads/AudioThreadDialog/index.tsx
47018
- var import_react_compiler_runtime100 = require("react-compiler-runtime");
47051
+ var import_react_compiler_runtime101 = require("react-compiler-runtime");
47019
47052
  // src/components/threads/AudioThread/index.tsx
47020
- var import_react_compiler_runtime99 = require("react-compiler-runtime");
47053
+ var import_react_compiler_runtime100 = require("react-compiler-runtime");
47021
47054
  // src/components/threads/AudioThread/Root/index.tsx
47022
- var import_react_compiler_runtime91 = require("react-compiler-runtime");
47055
+ var import_react_compiler_runtime92 = require("react-compiler-runtime");
47023
47056
  var import_themes58 = require("@radix-ui/themes");
47024
47057
  // src/contexts/threads/AudioThreadContext/index.ts
47025
- var import_react62 = require("react");
47026
- var AudioThreadContext = /* @__PURE__ */ (0, import_react62.createContext)({
47058
+ var import_react63 = require("react");
47059
+ var AudioThreadContext = /* @__PURE__ */ (0, import_react63.createContext)({
47027
47060
  audioRuntime: null
47028
47061
  });
47029
47062
  // src/hooks/threads/useAudioThreadContext/index.ts
47030
- var import_react63 = require("react");
47063
+ var import_react64 = require("react");
47031
47064
  var useAudioThreadContext = function() {
47032
- return (0, import_react63.useContext)(AudioThreadContext);
47065
+ return (0, import_react64.useContext)(AudioThreadContext);
47033
47066
  };
47034
47067
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
47035
- var import_react_compiler_runtime90 = require("react-compiler-runtime");
47068
+ var import_react_compiler_runtime91 = require("react-compiler-runtime");
47036
47069
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
47037
- var import_react_compiler_runtime89 = require("react-compiler-runtime");
47038
- var import_react68 = require("react");
47070
+ var import_react_compiler_runtime90 = require("react-compiler-runtime");
47071
+ var import_react69 = require("react");
47039
47072
  // src/hooks/misc/usePermission/index.ts
47040
- var import_react_compiler_runtime86 = require("react-compiler-runtime");
47041
- var import_react64 = require("react");
47073
+ var import_react_compiler_runtime87 = require("react-compiler-runtime");
47074
+ var import_react65 = require("react");
47042
47075
  // src/hooks/misc/usePermission/util.ts
47043
47076
  var noop = function() {};
47044
47077
  function on(obj) {
@@ -47061,8 +47094,8 @@ function off(obj) {
47061
47094
  }
47062
47095
  // src/hooks/misc/usePermission/index.ts
47063
47096
  var usePermission = function(permissionDesc) {
47064
- var $ = (0, import_react_compiler_runtime86.c)(3);
47065
- var _ref = _sliced_to_array((0, import_react64.useState)(""), 2), state = _ref[0], setState = _ref[1];
47097
+ var $ = (0, import_react_compiler_runtime87.c)(3);
47098
+ var _ref = _sliced_to_array((0, import_react65.useState)(""), 2), state = _ref[0], setState = _ref[1];
47066
47099
  var t0;
47067
47100
  var t1;
47068
47101
  if ($[0] !== permissionDesc) {
@@ -47101,20 +47134,20 @@ var usePermission = function(permissionDesc) {
47101
47134
  t0 = $[1];
47102
47135
  t1 = $[2];
47103
47136
  }
47104
- (0, import_react64.useEffect)(t0, t1);
47137
+ (0, import_react65.useEffect)(t0, t1);
47105
47138
  return state;
47106
47139
  };
47107
47140
  // src/hooks/audioThreads/useRecorder/index.ts
47108
47141
  var import_dayjs3 = __toESM(require("dayjs"), 1);
47109
47142
  var import_use_audio_capture = require("@supercorp/use-audio-capture");
47110
- var import_react66 = require("react");
47143
+ var import_react67 = require("react");
47111
47144
  var import_react_use_audio_player = require("react-use-audio-player");
47112
47145
  // src/hooks/misc/useInterval.ts
47113
- var import_react_compiler_runtime87 = require("react-compiler-runtime");
47114
- var import_react65 = require("react");
47146
+ var import_react_compiler_runtime88 = require("react-compiler-runtime");
47147
+ var import_react66 = require("react");
47115
47148
  var useInterval = function(callback, delay) {
47116
- var $ = (0, import_react_compiler_runtime87.c)(5);
47117
- var savedCallback = (0, import_react65.useRef)(_temp8);
47149
+ var $ = (0, import_react_compiler_runtime88.c)(5);
47150
+ var savedCallback = (0, import_react66.useRef)(_temp8);
47118
47151
  var t0;
47119
47152
  if ($[0] !== callback) {
47120
47153
  t0 = function() {
@@ -47125,7 +47158,7 @@ var useInterval = function(callback, delay) {
47125
47158
  } else {
47126
47159
  t0 = $[1];
47127
47160
  }
47128
- (0, import_react65.useEffect)(t0);
47161
+ (0, import_react66.useEffect)(t0);
47129
47162
  var t1;
47130
47163
  var t2;
47131
47164
  if ($[2] !== delay) {
@@ -47149,7 +47182,7 @@ var useInterval = function(callback, delay) {
47149
47182
  t1 = $[3];
47150
47183
  t2 = $[4];
47151
47184
  }
47152
- (0, import_react65.useEffect)(t1, t2);
47185
+ (0, import_react66.useEffect)(t1, t2);
47153
47186
  };
47154
47187
  function _temp8() {}
47155
47188
  // src/hooks/audioThreads/useRecorder/index.ts
@@ -47221,14 +47254,14 @@ function _asyncToGenerator10(n) {
47221
47254
  }
47222
47255
  var useRecorder = function(_ref) {
47223
47256
  var isStopOnSilence = _ref.isStopOnSilence, _onStart = _ref.onStart, _onStop = _ref.onStop;
47224
- var _$_ref = _sliced_to_array((0, import_react66.useState)(null), 2), silenceStart = _$_ref[0], setSilenceStart = _$_ref[1];
47225
- var _$_ref1 = _sliced_to_array((0, import_react66.useState)(null), 2), noiseStart = _$_ref1[0], setNoiseStart = _$_ref1[1];
47226
- var _$_ref2 = _sliced_to_array((0, import_react66.useState)(null), 2), mediaStream = _$_ref2[0], setMediaStream = _$_ref2[1];
47227
- var _$_ref3 = _sliced_to_array((0, import_react66.useState)("idle"), 2), status = _$_ref3[0], setStatus = _$_ref3[1];
47257
+ var _$_ref = _sliced_to_array((0, import_react67.useState)(null), 2), silenceStart = _$_ref[0], setSilenceStart = _$_ref[1];
47258
+ var _$_ref1 = _sliced_to_array((0, import_react67.useState)(null), 2), noiseStart = _$_ref1[0], setNoiseStart = _$_ref1[1];
47259
+ var _$_ref2 = _sliced_to_array((0, import_react67.useState)(null), 2), mediaStream = _$_ref2[0], setMediaStream = _$_ref2[1];
47260
+ var _$_ref3 = _sliced_to_array((0, import_react67.useState)("idle"), 2), status = _$_ref3[0], setStatus = _$_ref3[1];
47228
47261
  var startAudioPlayer = (0, import_react_use_audio_player.useAudioPlayer)();
47229
47262
  var endAudioPlayer = (0, import_react_use_audio_player.useAudioPlayer)();
47230
- var _$_ref4 = _sliced_to_array((0, import_react66.useState)(false), 2), isLoaded = _$_ref4[0], setIsLoaded = _$_ref4[1];
47231
- (0, import_react66.useEffect)(function() {
47263
+ var _$_ref4 = _sliced_to_array((0, import_react67.useState)(false), 2), isLoaded = _$_ref4[0], setIsLoaded = _$_ref4[1];
47264
+ (0, import_react67.useEffect)(function() {
47232
47265
  if (isLoaded) return;
47233
47266
  setIsLoaded(true);
47234
47267
  }, [
@@ -47288,9 +47321,9 @@ var useRecorder = function(_ref) {
47288
47321
  setNoiseStart(null);
47289
47322
  }
47290
47323
  });
47291
- var _$_ref5 = _sliced_to_array((0, import_react66.useState)(null), 2), audioEngine = _$_ref5[0], setAudioEngine = _$_ref5[1];
47292
- var isInited = (0, import_react66.useRef)(false);
47293
- (0, import_react66.useEffect)(function() {
47324
+ var _$_ref5 = _sliced_to_array((0, import_react67.useState)(null), 2), audioEngine = _$_ref5[0], setAudioEngine = _$_ref5[1];
47325
+ var isInited = (0, import_react67.useRef)(false);
47326
+ (0, import_react67.useEffect)(function() {
47294
47327
  if (!mediaStream) return;
47295
47328
  if (isInited.current) return;
47296
47329
  isInited.current = true;
@@ -47303,7 +47336,7 @@ var useRecorder = function(_ref) {
47303
47336
  isInited,
47304
47337
  mediaStream
47305
47338
  ]);
47306
- var visualizationAnalyser = (0, import_react66.useMemo)(function() {
47339
+ var visualizationAnalyser = (0, import_react67.useMemo)(function() {
47307
47340
  if (!audioEngine) return null;
47308
47341
  var result = audioEngine.audioContext.createAnalyser();
47309
47342
  audioEngine.source.connect(result);
@@ -47311,7 +47344,7 @@ var useRecorder = function(_ref) {
47311
47344
  }, [
47312
47345
  audioEngine
47313
47346
  ]);
47314
- var silenceAnalyser = (0, import_react66.useMemo)(function() {
47347
+ var silenceAnalyser = (0, import_react67.useMemo)(function() {
47315
47348
  if (!audioEngine) return null;
47316
47349
  var result_0 = audioEngine.audioContext.createAnalyser();
47317
47350
  result_0.minDecibels = -60;
@@ -47320,7 +47353,7 @@ var useRecorder = function(_ref) {
47320
47353
  }, [
47321
47354
  audioEngine
47322
47355
  ]);
47323
- var handleSilence = (0, import_react66.useCallback)(function() {
47356
+ var handleSilence = (0, import_react67.useCallback)(function() {
47324
47357
  if (!silenceAnalyser) return;
47325
47358
  var frequencyData = new Uint8Array(silenceAnalyser.frequencyBinCount);
47326
47359
  silenceAnalyser.getByteFrequencyData(frequencyData);
@@ -47343,7 +47376,7 @@ var useRecorder = function(_ref) {
47343
47376
  setNoiseStart,
47344
47377
  setSilenceStart
47345
47378
  ]);
47346
- (0, import_react66.useEffect)(function() {
47379
+ (0, import_react67.useEffect)(function() {
47347
47380
  if (!isStopOnSilence) return;
47348
47381
  requestAnimationFrame(function() {
47349
47382
  return handleSilence();
@@ -47366,8 +47399,8 @@ var useRecorder = function(_ref) {
47366
47399
  });
47367
47400
  };
47368
47401
  // src/hooks/audioThreads/useMessageAudio/index.ts
47369
- var import_react_compiler_runtime88 = require("react-compiler-runtime");
47370
- var import_react67 = require("react");
47402
+ var import_react_compiler_runtime89 = require("react-compiler-runtime");
47403
+ var import_react68 = require("react");
47371
47404
  var import_compromise = __toESM(require("compromise"), 1);
47372
47405
  var import_howler = require("howler");
47373
47406
  var import_react_use_audio_player2 = require("react-use-audio-player");
@@ -47448,7 +47481,7 @@ var getMessageSentences = function(_ref) {
47448
47481
  };
47449
47482
  var useMessageAudio = function(t0) {
47450
47483
  var _latestMessageProps$l, _latestMessageProps$l4, _latestMessageProps$l5;
47451
- var $ = (0, import_react_compiler_runtime88.c)(68);
47484
+ var $ = (0, import_react_compiler_runtime89.c)(68);
47452
47485
  var _onEnd = t0.onEnd, passedPlay = t0.play, t1 = t0.fullSentenceRegex;
47453
47486
  var t2;
47454
47487
  if ($[0] !== t1) {
@@ -47459,7 +47492,7 @@ var useMessageAudio = function(t0) {
47459
47492
  t2 = $[1];
47460
47493
  }
47461
47494
  var fullSentenceRegex = t2;
47462
- var _ref = _sliced_to_array((0, import_react67.useState)(false), 2), isAudioPlayed = _ref[0], setIsAudioPlayed = _ref[1];
47495
+ var _ref = _sliced_to_array((0, import_react68.useState)(false), 2), isAudioPlayed = _ref[0], setIsAudioPlayed = _ref[1];
47463
47496
  var t3;
47464
47497
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
47465
47498
  t3 = [];
@@ -47467,7 +47500,7 @@ var useMessageAudio = function(t0) {
47467
47500
  } else {
47468
47501
  t3 = $[2];
47469
47502
  }
47470
- var _ref1 = _sliced_to_array((0, import_react67.useState)(t3), 2), stoppedMessageIds = _ref1[0], setStoppedMessageIds = _ref1[1];
47503
+ var _ref1 = _sliced_to_array((0, import_react68.useState)(t3), 2), stoppedMessageIds = _ref1[0], setStoppedMessageIds = _ref1[1];
47471
47504
  var t4;
47472
47505
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
47473
47506
  t4 = [];
@@ -47475,12 +47508,12 @@ var useMessageAudio = function(t0) {
47475
47508
  } else {
47476
47509
  t4 = $[3];
47477
47510
  }
47478
- var _ref2 = _sliced_to_array((0, import_react67.useState)(t4), 2), playedMessageSentences = _ref2[0], setPlayedMessageSentences = _ref2[1];
47511
+ var _ref2 = _sliced_to_array((0, import_react68.useState)(t4), 2), playedMessageSentences = _ref2[0], setPlayedMessageSentences = _ref2[1];
47479
47512
  var audioPlayer = (0, import_react_use_audio_player2.useAudioPlayer)();
47480
47513
  var nextAudioPlayer = (0, import_react_use_audio_player2.useAudioPlayer)();
47481
47514
  var superinterfaceContext = useSuperinterfaceContext();
47482
- var _ref3 = _sliced_to_array((0, import_react67.useState)(false), 2), isPlaying = _ref3[0], setIsPlaying = _ref3[1];
47483
- var isLastSentencePlayedRef = (0, import_react67.useRef)(false);
47515
+ var _ref3 = _sliced_to_array((0, import_react68.useState)(false), 2), isPlaying = _ref3[0], setIsPlaying = _ref3[1];
47516
+ var isLastSentencePlayedRef = (0, import_react68.useRef)(false);
47484
47517
  var latestMessageProps = useLatestMessage();
47485
47518
  var t5;
47486
47519
  var t6;
@@ -47501,7 +47534,7 @@ var useMessageAudio = function(t0) {
47501
47534
  t5 = $[5];
47502
47535
  t6 = $[6];
47503
47536
  }
47504
- (0, import_react67.useEffect)(t5, t6);
47537
+ (0, import_react68.useEffect)(t5, t6);
47505
47538
  var t7;
47506
47539
  bb0: {
47507
47540
  if (!latestMessageProps.latestMessage) {
@@ -47724,7 +47757,7 @@ var useMessageAudio = function(t0) {
47724
47757
  } else {
47725
47758
  t11 = $[43];
47726
47759
  }
47727
- (0, import_react67.useEffect)(t10, t11);
47760
+ (0, import_react68.useEffect)(t10, t11);
47728
47761
  var t12;
47729
47762
  if ($[44] !== isPlaying || $[45] !== ((_latestMessageProps$l = latestMessageProps.latestMessage) === null || _latestMessageProps$l === void 0 ? void 0 : _latestMessageProps$l.status) || $[46] !== _onEnd || $[47] !== unplayedMessageSentences.length) {
47730
47763
  var _latestMessageProps$l3;
@@ -47760,7 +47793,7 @@ var useMessageAudio = function(t0) {
47760
47793
  } else {
47761
47794
  t14 = $[53];
47762
47795
  }
47763
- (0, import_react67.useEffect)(t12, t14);
47796
+ (0, import_react68.useEffect)(t12, t14);
47764
47797
  var t15;
47765
47798
  if ($[54] !== audioPlayer) {
47766
47799
  t15 = [
@@ -47771,9 +47804,9 @@ var useMessageAudio = function(t0) {
47771
47804
  } else {
47772
47805
  t15 = $[55];
47773
47806
  }
47774
- (0, import_react67.useEffect)(_temp9, t15);
47775
- var _ref4 = _sliced_to_array((0, import_react67.useState)(null), 2), audioEngine = _ref4[0], setAudioEngine = _ref4[1];
47776
- var isAudioEngineInited = (0, import_react67.useRef)(false);
47807
+ (0, import_react68.useEffect)(_temp9, t15);
47808
+ var _ref4 = _sliced_to_array((0, import_react68.useState)(null), 2), audioEngine = _ref4[0], setAudioEngine = _ref4[1];
47809
+ var isAudioEngineInited = (0, import_react68.useRef)(false);
47777
47810
  var t16;
47778
47811
  if ($[56] !== audioPlayer.playing) {
47779
47812
  t16 = function() {
@@ -47813,7 +47846,7 @@ var useMessageAudio = function(t0) {
47813
47846
  } else {
47814
47847
  t17 = $[59];
47815
47848
  }
47816
- (0, import_react67.useEffect)(t16, t17);
47849
+ (0, import_react68.useEffect)(t16, t17);
47817
47850
  var t18;
47818
47851
  bb1: {
47819
47852
  if (!audioEngine) {
@@ -47901,7 +47934,7 @@ function _asyncToGenerator11(n) {
47901
47934
  };
47902
47935
  }
47903
47936
  var useTtsAudioRuntime = function(t0) {
47904
- var $ = (0, import_react_compiler_runtime89.c)(30);
47937
+ var $ = (0, import_react_compiler_runtime90.c)(30);
47905
47938
  var play = t0.play, passedOnEnd = t0.onEnd;
47906
47939
  var addToast = useToasts().addToast;
47907
47940
  var queryClient = (0, import_react_query10.useQueryClient)();
@@ -48085,9 +48118,9 @@ function _temp24() {
48085
48118
  return _temp24.apply(this, arguments);
48086
48119
  }
48087
48120
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
48088
- var import_jsx_runtime87 = require("react/jsx-runtime");
48121
+ var import_jsx_runtime88 = require("react/jsx-runtime");
48089
48122
  var TtsAudioRuntimeProvider = function(t0) {
48090
- var $ = (0, import_react_compiler_runtime90.c)(8);
48123
+ var $ = (0, import_react_compiler_runtime91.c)(8);
48091
48124
  var children = t0.children, play = t0.play, onEnd = t0.onEnd;
48092
48125
  var t1;
48093
48126
  if ($[0] !== onEnd || $[1] !== play) {
@@ -48114,7 +48147,7 @@ var TtsAudioRuntimeProvider = function(t0) {
48114
48147
  }
48115
48148
  var t3;
48116
48149
  if ($[5] !== children || $[6] !== t2) {
48117
- t3 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AudioThreadContext.Provider, {
48150
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AudioThreadContext.Provider, {
48118
48151
  value: t2,
48119
48152
  children: children
48120
48153
  });
@@ -48127,7 +48160,7 @@ var TtsAudioRuntimeProvider = function(t0) {
48127
48160
  return t3;
48128
48161
  };
48129
48162
  // src/components/threads/AudioThread/Root/index.tsx
48130
- var import_jsx_runtime88 = require("react/jsx-runtime");
48163
+ var import_jsx_runtime89 = require("react/jsx-runtime");
48131
48164
  var _excluded5 = [
48132
48165
  "children"
48133
48166
  ];
@@ -48200,11 +48233,11 @@ function _objectWithoutPropertiesLoose5(r, e) {
48200
48233
  return t;
48201
48234
  }
48202
48235
  var Content9 = function(t0) {
48203
- var $ = (0, import_react_compiler_runtime91.c)(4);
48236
+ var $ = (0, import_react_compiler_runtime92.c)(4);
48204
48237
  var children = t0.children, className = t0.className, style = t0.style;
48205
48238
  var t1;
48206
48239
  if ($[0] !== children || $[1] !== className || $[2] !== style) {
48207
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_themes58.Flex, {
48240
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes58.Flex, {
48208
48241
  direction: "column",
48209
48242
  flexGrow: "1",
48210
48243
  p: "9",
@@ -48222,7 +48255,7 @@ var Content9 = function(t0) {
48222
48255
  return t1;
48223
48256
  };
48224
48257
  var AudioRuntimeProvider = function(t0) {
48225
- var $ = (0, import_react_compiler_runtime91.c)(4);
48258
+ var $ = (0, import_react_compiler_runtime92.c)(4);
48226
48259
  var children = t0.children, play = t0.play, onEnd = t0.onEnd;
48227
48260
  var audioThreadContext = useAudioThreadContext();
48228
48261
  if (audioThreadContext.audioRuntime) {
@@ -48230,7 +48263,7 @@ var AudioRuntimeProvider = function(t0) {
48230
48263
  }
48231
48264
  var t1;
48232
48265
  if ($[0] !== children || $[1] !== onEnd || $[2] !== play) {
48233
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(TtsAudioRuntimeProvider, {
48266
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TtsAudioRuntimeProvider, {
48234
48267
  play: play,
48235
48268
  onEnd: onEnd,
48236
48269
  children: children
@@ -48245,7 +48278,7 @@ var AudioRuntimeProvider = function(t0) {
48245
48278
  return t1;
48246
48279
  };
48247
48280
  var Provider5 = function(t0) {
48248
- var $ = (0, import_react_compiler_runtime91.c)(9);
48281
+ var $ = (0, import_react_compiler_runtime92.c)(9);
48249
48282
  var children;
48250
48283
  var rest;
48251
48284
  if ($[0] !== t0) {
@@ -48272,7 +48305,7 @@ var Provider5 = function(t0) {
48272
48305
  }
48273
48306
  var t2;
48274
48307
  if ($[6] !== children || $[7] !== t1) {
48275
- t2 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AudioThreadContext.Provider, {
48308
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AudioThreadContext.Provider, {
48276
48309
  value: t1,
48277
48310
  children: children
48278
48311
  });
@@ -48285,7 +48318,7 @@ var Provider5 = function(t0) {
48285
48318
  return t2;
48286
48319
  };
48287
48320
  var Root16 = function(t0) {
48288
- var $ = (0, import_react_compiler_runtime91.c)(18);
48321
+ var $ = (0, import_react_compiler_runtime92.c)(18);
48289
48322
  var children;
48290
48323
  var className;
48291
48324
  var onEnd;
@@ -48315,8 +48348,8 @@ var Root16 = function(t0) {
48315
48348
  }
48316
48349
  var t1;
48317
48350
  if ($[7] !== children || $[8] !== className || $[9] !== style) {
48318
- t1 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ToastsProvider, {
48319
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Content9, {
48351
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ToastsProvider, {
48352
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Content9, {
48320
48353
  className: className,
48321
48354
  style: style,
48322
48355
  children: children
@@ -48331,7 +48364,7 @@ var Root16 = function(t0) {
48331
48364
  }
48332
48365
  var t2;
48333
48366
  if ($[11] !== onEnd || $[12] !== play || $[13] !== t1) {
48334
- t2 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AudioRuntimeProvider, {
48367
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AudioRuntimeProvider, {
48335
48368
  play: play,
48336
48369
  onEnd: onEnd,
48337
48370
  children: t1
@@ -48345,7 +48378,7 @@ var Root16 = function(t0) {
48345
48378
  }
48346
48379
  var t3;
48347
48380
  if ($[15] !== rest || $[16] !== t2) {
48348
- t3 = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Provider5, _objectSpread48(_objectSpread48({}, rest), {}, {
48381
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Provider5, _objectSpread48(_objectSpread48({}, rest), {}, {
48349
48382
  children: t2
48350
48383
  }));
48351
48384
  $[15] = rest;
@@ -48357,21 +48390,21 @@ var Root16 = function(t0) {
48357
48390
  return t3;
48358
48391
  };
48359
48392
  // src/components/threads/AudioThread/Visualization/index.tsx
48360
- var import_react_compiler_runtime93 = require("react-compiler-runtime");
48361
- var import_react71 = require("react");
48393
+ var import_react_compiler_runtime94 = require("react-compiler-runtime");
48394
+ var import_react72 = require("react");
48362
48395
  var import_lodash9 = __toESM(require("lodash"), 1);
48363
48396
  var import_themes60 = require("@radix-ui/themes");
48364
48397
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
48365
48398
  var import_lodash8 = __toESM(require("lodash"), 1);
48366
48399
  var import_themes59 = require("@radix-ui/themes");
48367
- var import_react69 = require("react");
48400
+ var import_react70 = require("react");
48368
48401
  var import_radash17 = require("radash");
48369
- var import_jsx_runtime89 = require("react/jsx-runtime");
48402
+ var import_jsx_runtime90 = require("react/jsx-runtime");
48370
48403
  var barCount = 4;
48371
48404
  var BarsVisualizer = function(_ref) {
48372
48405
  var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
48373
- var _$_ref = _sliced_to_array((0, import_react69.useState)([]), 2), barHeights = _$_ref[0], setBarHeights = _$_ref[1];
48374
- var draw = (0, import_react69.useCallback)(function(_ref2) {
48406
+ var _$_ref = _sliced_to_array((0, import_react70.useState)([]), 2), barHeights = _$_ref[0], setBarHeights = _$_ref[1];
48407
+ var draw = (0, import_react70.useCallback)(function(_ref2) {
48375
48408
  var visualizationAnalyser_0 = _ref2.visualizationAnalyser;
48376
48409
  if (!visualizationAnalyser_0) {
48377
48410
  setBarHeights(Array(barCount).fill(0));
@@ -48389,7 +48422,7 @@ var BarsVisualizer = function(_ref) {
48389
48422
  });
48390
48423
  });
48391
48424
  }, []);
48392
- (0, import_react69.useEffect)(function() {
48425
+ (0, import_react70.useEffect)(function() {
48393
48426
  draw({
48394
48427
  visualizationAnalyser: visualizationAnalyser
48395
48428
  });
@@ -48397,7 +48430,7 @@ var BarsVisualizer = function(_ref) {
48397
48430
  draw,
48398
48431
  visualizationAnalyser
48399
48432
  ]);
48400
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes59.Grid, {
48433
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes59.Grid, {
48401
48434
  columns: "".concat(barCount),
48402
48435
  gap: "1",
48403
48436
  width: "auto",
@@ -48406,12 +48439,12 @@ var BarsVisualizer = function(_ref) {
48406
48439
  gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
48407
48440
  },
48408
48441
  children: barHeights.map(function(barHeight, index) {
48409
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes59.Flex, {
48442
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes59.Flex, {
48410
48443
  direction: "column",
48411
48444
  align: "center",
48412
48445
  justify: "center",
48413
48446
  height: height,
48414
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes59.Flex, {
48447
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes59.Flex, {
48415
48448
  minHeight: "50%",
48416
48449
  maxHeight: "100%",
48417
48450
  height: "".concat(barHeight + 20, "%"),
@@ -48426,10 +48459,10 @@ var BarsVisualizer = function(_ref) {
48426
48459
  });
48427
48460
  };
48428
48461
  // src/hooks/audioThreads/useStatus/index.ts
48429
- var import_react_compiler_runtime92 = require("react-compiler-runtime");
48430
- var import_react70 = require("react");
48462
+ var import_react_compiler_runtime93 = require("react-compiler-runtime");
48463
+ var import_react71 = require("react");
48431
48464
  var useStatus = function() {
48432
- var $ = (0, import_react_compiler_runtime92.c)(2);
48465
+ var $ = (0, import_react_compiler_runtime93.c)(2);
48433
48466
  var audioRuntime = useAudioThreadContext().audioRuntime;
48434
48467
  var t0;
48435
48468
  bb0: {
@@ -48477,7 +48510,7 @@ var useStatus = function() {
48477
48510
  return t1;
48478
48511
  };
48479
48512
  // src/components/threads/AudioThread/Visualization/index.tsx
48480
- var import_jsx_runtime90 = require("react/jsx-runtime");
48513
+ var import_jsx_runtime91 = require("react/jsx-runtime");
48481
48514
  var _excluded6 = [
48482
48515
  "children"
48483
48516
  ];
@@ -48551,14 +48584,14 @@ function _objectWithoutPropertiesLoose6(r, e) {
48551
48584
  }
48552
48585
  return t;
48553
48586
  }
48554
- var AudioThreadVisualizationContext = /* @__PURE__ */ (0, import_react71.createContext)({
48587
+ var AudioThreadVisualizationContext = /* @__PURE__ */ (0, import_react72.createContext)({
48555
48588
  scale: 0
48556
48589
  });
48557
48590
  var Provider6 = function(_ref) {
48558
48591
  var children = _ref.children;
48559
48592
  var audioThreadContext = useAudioThreadContext();
48560
- var _$_ref = _sliced_to_array((0, import_react71.useState)(0), 2), scale = _$_ref[0], setScale = _$_ref[1];
48561
- var draw = (0, import_react71.useCallback)(function(_ref2) {
48593
+ var _$_ref = _sliced_to_array((0, import_react72.useState)(0), 2), scale = _$_ref[0], setScale = _$_ref[1];
48594
+ var draw = (0, import_react72.useCallback)(function(_ref2) {
48562
48595
  var visualizationAnalyser = _ref2.visualizationAnalyser;
48563
48596
  if (!visualizationAnalyser) {
48564
48597
  setScale(1);
@@ -48573,7 +48606,7 @@ var Provider6 = function(_ref) {
48573
48606
  });
48574
48607
  });
48575
48608
  }, []);
48576
- (0, import_react71.useEffect)(function() {
48609
+ (0, import_react72.useEffect)(function() {
48577
48610
  draw({
48578
48611
  visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser
48579
48612
  });
@@ -48581,7 +48614,7 @@ var Provider6 = function(_ref) {
48581
48614
  draw,
48582
48615
  audioThreadContext
48583
48616
  ]);
48584
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(AudioThreadVisualizationContext.Provider, {
48617
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(AudioThreadVisualizationContext.Provider, {
48585
48618
  value: {
48586
48619
  scale: scale
48587
48620
  },
@@ -48589,7 +48622,7 @@ var Provider6 = function(_ref) {
48589
48622
  });
48590
48623
  };
48591
48624
  var Root17 = function(t0) {
48592
- var $ = (0, import_react_compiler_runtime93.c)(6);
48625
+ var $ = (0, import_react_compiler_runtime94.c)(6);
48593
48626
  var children;
48594
48627
  var rest;
48595
48628
  if ($[0] !== t0) {
@@ -48606,8 +48639,8 @@ var Root17 = function(t0) {
48606
48639
  }
48607
48640
  var t1;
48608
48641
  if ($[3] !== children || $[4] !== rest) {
48609
- t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Provider6, {
48610
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes60.Flex, _objectSpread49(_objectSpread49({
48642
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Provider6, {
48643
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes60.Flex, _objectSpread49(_objectSpread49({
48611
48644
  direction: "column",
48612
48645
  align: "center",
48613
48646
  justify: "center",
@@ -48626,7 +48659,7 @@ var Root17 = function(t0) {
48626
48659
  return t1;
48627
48660
  };
48628
48661
  var BarsVisualizer2 = function(t0) {
48629
- var $ = (0, import_react_compiler_runtime93.c)(10);
48662
+ var $ = (0, import_react_compiler_runtime94.c)(10);
48630
48663
  var rest;
48631
48664
  var t1;
48632
48665
  var t2;
@@ -48652,7 +48685,7 @@ var BarsVisualizer2 = function(t0) {
48652
48685
  var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
48653
48686
  var t4;
48654
48687
  if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
48655
- t4 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(BarsVisualizer, _objectSpread49({
48688
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(BarsVisualizer, _objectSpread49({
48656
48689
  visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
48657
48690
  backgroundColor: t3,
48658
48691
  height: height,
@@ -48670,7 +48703,7 @@ var BarsVisualizer2 = function(t0) {
48670
48703
  return t4;
48671
48704
  };
48672
48705
  var AssistantVisualizationRoot = function(t0) {
48673
- var $ = (0, import_react_compiler_runtime93.c)(17);
48706
+ var $ = (0, import_react_compiler_runtime94.c)(17);
48674
48707
  var children;
48675
48708
  var rest;
48676
48709
  var t1;
@@ -48695,7 +48728,7 @@ var AssistantVisualizationRoot = function(t0) {
48695
48728
  var height = t1 === void 0 ? "200px" : t1;
48696
48729
  var width2 = t2 === void 0 ? "200px" : t2;
48697
48730
  var status = useStatus().status;
48698
- var scale = (0, import_react71.useContext)(AudioThreadVisualizationContext).scale;
48731
+ var scale = (0, import_react72.useContext)(AudioThreadVisualizationContext).scale;
48699
48732
  var t3 = status === "playing" ? "var(--accent-4)" : "var(--gray-4)";
48700
48733
  var t4;
48701
48734
  if ($[5] !== rest.style) {
@@ -48722,7 +48755,7 @@ var AssistantVisualizationRoot = function(t0) {
48722
48755
  }
48723
48756
  var t6;
48724
48757
  if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
48725
- t6 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes60.Flex, _objectSpread49(_objectSpread49({
48758
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes60.Flex, _objectSpread49(_objectSpread49({
48726
48759
  align: "center",
48727
48760
  justify: "center",
48728
48761
  height: height,
@@ -48743,17 +48776,17 @@ var AssistantVisualizationRoot = function(t0) {
48743
48776
  return t6;
48744
48777
  };
48745
48778
  var AssistantVisualization = function(props) {
48746
- var $ = (0, import_react_compiler_runtime93.c)(3);
48779
+ var $ = (0, import_react_compiler_runtime94.c)(3);
48747
48780
  var t0;
48748
48781
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48749
- t0 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(BarsVisualizer2, {});
48782
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(BarsVisualizer2, {});
48750
48783
  $[0] = t0;
48751
48784
  } else {
48752
48785
  t0 = $[0];
48753
48786
  }
48754
48787
  var t1;
48755
48788
  if ($[1] !== props) {
48756
- t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(AssistantVisualizationRoot, _objectSpread49(_objectSpread49({}, props), {}, {
48789
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(AssistantVisualizationRoot, _objectSpread49(_objectSpread49({}, props), {}, {
48757
48790
  children: t0
48758
48791
  }));
48759
48792
  $[1] = props;
@@ -48766,18 +48799,18 @@ var AssistantVisualization = function(props) {
48766
48799
  AssistantVisualization.Root = AssistantVisualizationRoot;
48767
48800
  AssistantVisualization.BarsVisualizer = BarsVisualizer2;
48768
48801
  var AssistantInfo = function(props) {
48769
- var $ = (0, import_react_compiler_runtime93.c)(6);
48770
- var assistantNameContext = (0, import_react71.useContext)(AssistantNameContext);
48802
+ var $ = (0, import_react_compiler_runtime94.c)(6);
48803
+ var assistantNameContext = (0, import_react72.useContext)(AssistantNameContext);
48771
48804
  var t0;
48772
48805
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48773
- t0 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(MessageGroup.AssistantAvatar, {});
48806
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(MessageGroup.AssistantAvatar, {});
48774
48807
  $[0] = t0;
48775
48808
  } else {
48776
48809
  t0 = $[0];
48777
48810
  }
48778
48811
  var t1;
48779
48812
  if ($[1] !== assistantNameContext) {
48780
- t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(MessageGroup.Name, {
48813
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(MessageGroup.Name, {
48781
48814
  children: assistantNameContext
48782
48815
  });
48783
48816
  $[1] = assistantNameContext;
@@ -48787,7 +48820,7 @@ var AssistantInfo = function(props) {
48787
48820
  }
48788
48821
  var t2;
48789
48822
  if ($[3] !== props || $[4] !== t1) {
48790
- t2 = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_themes60.Flex, _objectSpread49(_objectSpread49({
48823
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes60.Flex, _objectSpread49(_objectSpread49({
48791
48824
  ml: "-22.5px",
48792
48825
  gap: "3",
48793
48826
  pt: "5"
@@ -48806,12 +48839,12 @@ var AssistantInfo = function(props) {
48806
48839
  return t2;
48807
48840
  };
48808
48841
  var Visualization = function(props) {
48809
- var $ = (0, import_react_compiler_runtime93.c)(4);
48842
+ var $ = (0, import_react_compiler_runtime94.c)(4);
48810
48843
  var t0;
48811
48844
  var t1;
48812
48845
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48813
- t0 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(AssistantVisualization, {});
48814
- t1 = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(AssistantInfo, {});
48846
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(AssistantVisualization, {});
48847
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(AssistantInfo, {});
48815
48848
  $[0] = t0;
48816
48849
  $[1] = t1;
48817
48850
  } else {
@@ -48820,7 +48853,7 @@ var Visualization = function(props) {
48820
48853
  }
48821
48854
  var t2;
48822
48855
  if ($[2] !== props) {
48823
- t2 = /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Root17, _objectSpread49(_objectSpread49({}, props), {}, {
48856
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(Root17, _objectSpread49(_objectSpread49({}, props), {}, {
48824
48857
  children: [
48825
48858
  t0,
48826
48859
  t1
@@ -48838,11 +48871,11 @@ Visualization.Provider = Provider6;
48838
48871
  Visualization.AssistantVisualization = AssistantVisualization;
48839
48872
  Visualization.AssistantInfo = AssistantInfo;
48840
48873
  // src/components/threads/AudioThread/Status/index.tsx
48841
- var import_react_compiler_runtime95 = require("react-compiler-runtime");
48874
+ var import_react_compiler_runtime96 = require("react-compiler-runtime");
48842
48875
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
48843
- var import_react_compiler_runtime94 = require("react-compiler-runtime");
48876
+ var import_react_compiler_runtime95 = require("react-compiler-runtime");
48844
48877
  var import_themes61 = require("@radix-ui/themes");
48845
- var import_jsx_runtime91 = require("react/jsx-runtime");
48878
+ var import_jsx_runtime92 = require("react/jsx-runtime");
48846
48879
  var html = function(_ref) {
48847
48880
  var texts = _ref.texts;
48848
48881
  return "\n .status-messages-texts:after {\n content: '".concat(texts[0], "';\n animation: texts ").concat(texts.length * 5, "s linear infinite;\n }\n\n @keyframes texts {\n ").concat(texts.map(function(_10, i) {
@@ -48850,11 +48883,11 @@ var html = function(_ref) {
48850
48883
  }).join(""), "\n }");
48851
48884
  };
48852
48885
  var StatusMessages = function(t0) {
48853
- var $ = (0, import_react_compiler_runtime94.c)(9);
48886
+ var $ = (0, import_react_compiler_runtime95.c)(9);
48854
48887
  var texts = t0.texts, className = t0.className, style = t0.style;
48855
48888
  var t1;
48856
48889
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48857
- t1 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes61.Text, {
48890
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_themes61.Text, {
48858
48891
  size: "2",
48859
48892
  weight: "regular",
48860
48893
  color: "gray",
@@ -48877,7 +48910,7 @@ var StatusMessages = function(t0) {
48877
48910
  }
48878
48911
  var t3;
48879
48912
  if ($[3] !== t2) {
48880
- t3 = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("style", {
48913
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("style", {
48881
48914
  dangerouslySetInnerHTML: {
48882
48915
  __html: t2
48883
48916
  }
@@ -48889,7 +48922,7 @@ var StatusMessages = function(t0) {
48889
48922
  }
48890
48923
  var t4;
48891
48924
  if ($[5] !== className || $[6] !== style || $[7] !== t3) {
48892
- t4 = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes61.Flex, {
48925
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_themes61.Flex, {
48893
48926
  justify: "center",
48894
48927
  pb: "5",
48895
48928
  className: className,
@@ -48909,7 +48942,7 @@ var StatusMessages = function(t0) {
48909
48942
  return t4;
48910
48943
  };
48911
48944
  // src/components/threads/AudioThread/Status/index.tsx
48912
- var import_jsx_runtime92 = require("react/jsx-runtime");
48945
+ var import_jsx_runtime93 = require("react/jsx-runtime");
48913
48946
  function ownKeys50(e, r) {
48914
48947
  var t = Object.keys(e);
48915
48948
  if (Object.getOwnPropertySymbols) {
@@ -48954,7 +48987,7 @@ function _toPrimitive50(t, r) {
48954
48987
  return ("string" === r ? String : Number)(t);
48955
48988
  }
48956
48989
  var Status = function(props) {
48957
- var $ = (0, import_react_compiler_runtime95.c)(12);
48990
+ var $ = (0, import_react_compiler_runtime96.c)(12);
48958
48991
  var status = useStatus().status;
48959
48992
  if (status === "recording") {
48960
48993
  var _t;
@@ -48971,7 +49004,7 @@ var Status = function(props) {
48971
49004
  }
48972
49005
  var _t2;
48973
49006
  if ($[1] !== props) {
48974
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(StatusMessages, _objectSpread50({
49007
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(StatusMessages, _objectSpread50({
48975
49008
  texts: _t
48976
49009
  }, props));
48977
49010
  $[1] = props;
@@ -48997,7 +49030,7 @@ var Status = function(props) {
48997
49030
  }
48998
49031
  var _t4;
48999
49032
  if ($[4] !== props) {
49000
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(StatusMessages, _objectSpread50({
49033
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(StatusMessages, _objectSpread50({
49001
49034
  texts: _t3
49002
49035
  }, props));
49003
49036
  $[4] = props;
@@ -49019,7 +49052,7 @@ var Status = function(props) {
49019
49052
  }
49020
49053
  var _t6;
49021
49054
  if ($[7] !== props) {
49022
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(StatusMessages, _objectSpread50({
49055
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(StatusMessages, _objectSpread50({
49023
49056
  texts: _t5
49024
49057
  }, props));
49025
49058
  $[7] = props;
@@ -49040,7 +49073,7 @@ var Status = function(props) {
49040
49073
  }
49041
49074
  var t1;
49042
49075
  if ($[10] !== props) {
49043
- t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(StatusMessages, _objectSpread50({
49076
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(StatusMessages, _objectSpread50({
49044
49077
  texts: t0
49045
49078
  }, props));
49046
49079
  $[10] = props;
@@ -49051,11 +49084,11 @@ var Status = function(props) {
49051
49084
  return t1;
49052
49085
  };
49053
49086
  // src/components/threads/AudioThread/Form/index.tsx
49054
- var import_react_compiler_runtime98 = require("react-compiler-runtime");
49087
+ var import_react_compiler_runtime99 = require("react-compiler-runtime");
49055
49088
  var import_themes63 = require("@radix-ui/themes");
49056
49089
  // src/components/threads/AudioThread/Form/MicIcon.tsx
49057
- var import_react_compiler_runtime96 = require("react-compiler-runtime");
49058
- var import_jsx_runtime93 = require("react/jsx-runtime");
49090
+ var import_react_compiler_runtime97 = require("react-compiler-runtime");
49091
+ var import_jsx_runtime94 = require("react/jsx-runtime");
49059
49092
  function ownKeys51(e, r) {
49060
49093
  var t = Object.keys(e);
49061
49094
  if (Object.getOwnPropertySymbols) {
@@ -49100,10 +49133,10 @@ function _toPrimitive51(t, r) {
49100
49133
  return ("string" === r ? String : Number)(t);
49101
49134
  }
49102
49135
  var MicIcon = function(props) {
49103
- var $ = (0, import_react_compiler_runtime96.c)(3);
49136
+ var $ = (0, import_react_compiler_runtime97.c)(3);
49104
49137
  var t0;
49105
49138
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49106
- t0 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("path", {
49139
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", {
49107
49140
  stroke: "none",
49108
49141
  d: "M192 0c-53 0-96 43-96 96v160c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1 66.2 162.7 152 174.4V464h-48c-13.3 0-24 10.7-24 24s10.7 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24h-48v-33.6c85.8-11.7 152-85.3 152-174.4v-40c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 70.7-57.3 128-128 128S64 326.7 64 256v-40z"
49109
49142
  });
@@ -49113,7 +49146,7 @@ var MicIcon = function(props) {
49113
49146
  }
49114
49147
  var t1;
49115
49148
  if ($[1] !== props) {
49116
- t1 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("svg", _objectSpread51(_objectSpread51({
49149
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("svg", _objectSpread51(_objectSpread51({
49117
49150
  xmlns: "http://www.w3.org/2000/svg",
49118
49151
  fill: "currentColor",
49119
49152
  stroke: "currentColor",
@@ -49132,29 +49165,29 @@ var MicIcon = function(props) {
49132
49165
  return t1;
49133
49166
  };
49134
49167
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
49135
- var import_react_compiler_runtime97 = require("react-compiler-runtime");
49168
+ var import_react_compiler_runtime98 = require("react-compiler-runtime");
49136
49169
  var import_themes62 = require("@radix-ui/themes");
49137
49170
  var import_react_icons17 = require("@radix-ui/react-icons");
49138
- var import_jsx_runtime94 = require("react/jsx-runtime");
49171
+ var import_jsx_runtime95 = require("react/jsx-runtime");
49139
49172
  var ActionButton = function() {
49140
- var $ = (0, import_react_compiler_runtime97.c)(27);
49173
+ var $ = (0, import_react_compiler_runtime98.c)(27);
49141
49174
  var status = useStatus().status;
49142
49175
  var audioThreadContext = useAudioThreadContext();
49143
49176
  var superinterfaceContext = useSuperinterfaceContext();
49144
49177
  if (status === "recording") {
49145
49178
  var _t;
49146
49179
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49147
- _t = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons17.PauseIcon, {});
49180
+ _t = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons17.PauseIcon, {});
49148
49181
  $[0] = _t;
49149
49182
  } else {
49150
49183
  _t = $[0];
49151
49184
  }
49152
49185
  var t1;
49153
49186
  if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
49154
- t1 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.Flex, {
49187
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.Flex, {
49155
49188
  mr: "3",
49156
49189
  ml: "-7",
49157
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.IconButton, {
49190
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.IconButton, {
49158
49191
  onClick: audioThreadContext.audioRuntime.user.pause,
49159
49192
  color: "gray",
49160
49193
  variant: "soft",
@@ -49169,14 +49202,14 @@ var ActionButton = function() {
49169
49202
  }
49170
49203
  var t2;
49171
49204
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
49172
- t2 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons17.ArrowUpIcon, {});
49205
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons17.ArrowUpIcon, {});
49173
49206
  $[3] = t2;
49174
49207
  } else {
49175
49208
  t2 = $[3];
49176
49209
  }
49177
49210
  var t3;
49178
49211
  if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
49179
- t3 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.IconButton, {
49212
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.IconButton, {
49180
49213
  onClick: audioThreadContext.audioRuntime.user.stop,
49181
49214
  highContrast: true,
49182
49215
  variant: "soft",
@@ -49190,7 +49223,7 @@ var ActionButton = function() {
49190
49223
  }
49191
49224
  var t4;
49192
49225
  if ($[6] !== t1 || $[7] !== t3) {
49193
- t4 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes62.Flex, {
49226
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes62.Flex, {
49194
49227
  align: "center",
49195
49228
  children: [
49196
49229
  t1,
@@ -49208,14 +49241,14 @@ var ActionButton = function() {
49208
49241
  if (status === "recorderPaused") {
49209
49242
  var _t2;
49210
49243
  if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
49211
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons17.ResumeIcon, {});
49244
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons17.ResumeIcon, {});
49212
49245
  $[9] = _t2;
49213
49246
  } else {
49214
49247
  _t2 = $[9];
49215
49248
  }
49216
49249
  var _t3;
49217
49250
  if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
49218
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.IconButton, {
49251
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.IconButton, {
49219
49252
  onClick: audioThreadContext.audioRuntime.user.resume,
49220
49253
  color: "red",
49221
49254
  size: "4",
@@ -49231,7 +49264,7 @@ var ActionButton = function() {
49231
49264
  if (status === "idle") {
49232
49265
  var _t4;
49233
49266
  if ($[12] !== audioThreadContext.audioRuntime.user) {
49234
- _t4 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.IconButton, {
49267
+ _t4 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.IconButton, {
49235
49268
  onClick: function() {
49236
49269
  return audioThreadContext.audioRuntime.user.start();
49237
49270
  },
@@ -49263,14 +49296,14 @@ var ActionButton = function() {
49263
49296
  }
49264
49297
  var _t6;
49265
49298
  if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
49266
- _t6 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons17.StopIcon, {});
49299
+ _t6 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons17.StopIcon, {});
49267
49300
  $[18] = _t6;
49268
49301
  } else {
49269
49302
  _t6 = $[18];
49270
49303
  }
49271
49304
  var _t7;
49272
49305
  if ($[19] !== _t5) {
49273
- _t7 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.IconButton, {
49306
+ _t7 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.IconButton, {
49274
49307
  onClick: _t5,
49275
49308
  size: "4",
49276
49309
  color: "gray",
@@ -49297,14 +49330,14 @@ var ActionButton = function() {
49297
49330
  }
49298
49331
  var _t9;
49299
49332
  if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
49300
- _t9 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons17.ResumeIcon, {});
49333
+ _t9 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons17.ResumeIcon, {});
49301
49334
  $[23] = _t9;
49302
49335
  } else {
49303
49336
  _t9 = $[23];
49304
49337
  }
49305
49338
  var _t0;
49306
49339
  if ($[24] !== _t8) {
49307
- _t0 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.IconButton, {
49340
+ _t0 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.IconButton, {
49308
49341
  onClick: _t8,
49309
49342
  size: "4",
49310
49343
  children: _t9
@@ -49318,7 +49351,7 @@ var ActionButton = function() {
49318
49351
  }
49319
49352
  var t0;
49320
49353
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
49321
- t0 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes62.IconButton, {
49354
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes62.IconButton, {
49322
49355
  size: "4",
49323
49356
  variant: "soft",
49324
49357
  disabled: true
@@ -49330,7 +49363,7 @@ var ActionButton = function() {
49330
49363
  return t0;
49331
49364
  };
49332
49365
  // src/components/threads/AudioThread/Form/index.tsx
49333
- var import_jsx_runtime95 = require("react/jsx-runtime");
49366
+ var import_jsx_runtime96 = require("react/jsx-runtime");
49334
49367
  function ownKeys52(e, r) {
49335
49368
  var t = Object.keys(e);
49336
49369
  if (Object.getOwnPropertySymbols) {
@@ -49375,17 +49408,17 @@ function _toPrimitive52(t, r) {
49375
49408
  return ("string" === r ? String : Number)(t);
49376
49409
  }
49377
49410
  var Form = function(props) {
49378
- var $ = (0, import_react_compiler_runtime98.c)(17);
49411
+ var $ = (0, import_react_compiler_runtime99.c)(17);
49379
49412
  var status = useStatus().status;
49380
49413
  var audioThreadContext = useAudioThreadContext();
49381
49414
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
49382
49415
  var t1;
49383
49416
  if ($[0] !== t0) {
49384
- t1 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes63.Flex, {
49417
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes63.Flex, {
49385
49418
  ml: "-22.5px",
49386
49419
  mr: "2",
49387
49420
  align: "center",
49388
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(MicIcon, {
49421
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(MicIcon, {
49389
49422
  style: {
49390
49423
  color: t0
49391
49424
  }
@@ -49411,7 +49444,7 @@ var Form = function(props) {
49411
49444
  var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
49412
49445
  var t5;
49413
49446
  if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
49414
- t5 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(BarsVisualizer, {
49447
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(BarsVisualizer, {
49415
49448
  visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
49416
49449
  backgroundColor: t4,
49417
49450
  height: "20px",
@@ -49425,7 +49458,7 @@ var Form = function(props) {
49425
49458
  }
49426
49459
  var t6;
49427
49460
  if ($[7] !== t3 || $[8] !== t5) {
49428
- t6 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes63.Flex, {
49461
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes63.Flex, {
49429
49462
  px: "2",
49430
49463
  py: "1",
49431
49464
  style: t3,
@@ -49439,7 +49472,7 @@ var Form = function(props) {
49439
49472
  }
49440
49473
  var t7;
49441
49474
  if ($[10] !== t1 || $[11] !== t6) {
49442
- t7 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes63.Flex, {
49475
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes63.Flex, {
49443
49476
  pb: "3",
49444
49477
  align: "center",
49445
49478
  children: [
@@ -49455,14 +49488,14 @@ var Form = function(props) {
49455
49488
  }
49456
49489
  var t8;
49457
49490
  if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
49458
- t8 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ActionButton, {});
49491
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ActionButton, {});
49459
49492
  $[13] = t8;
49460
49493
  } else {
49461
49494
  t8 = $[13];
49462
49495
  }
49463
49496
  var t9;
49464
49497
  if ($[14] !== props || $[15] !== t7) {
49465
- t9 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes63.Flex, _objectSpread52(_objectSpread52({
49498
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes63.Flex, _objectSpread52(_objectSpread52({
49466
49499
  direction: "column",
49467
49500
  align: "center"
49468
49501
  }, props), {}, {
@@ -49480,7 +49513,7 @@ var Form = function(props) {
49480
49513
  return t9;
49481
49514
  };
49482
49515
  // src/components/threads/AudioThread/index.tsx
49483
- var import_jsx_runtime96 = require("react/jsx-runtime");
49516
+ var import_jsx_runtime97 = require("react/jsx-runtime");
49484
49517
  function ownKeys53(e, r) {
49485
49518
  var t = Object.keys(e);
49486
49519
  if (Object.getOwnPropertySymbols) {
@@ -49525,14 +49558,14 @@ function _toPrimitive53(t, r) {
49525
49558
  return ("string" === r ? String : Number)(t);
49526
49559
  }
49527
49560
  var AudioThread = function(props) {
49528
- var $ = (0, import_react_compiler_runtime99.c)(5);
49561
+ var $ = (0, import_react_compiler_runtime100.c)(5);
49529
49562
  var t0;
49530
49563
  var t1;
49531
49564
  var t2;
49532
49565
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49533
- t0 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Visualization, {});
49534
- t1 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Status, {});
49535
- t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Form, {});
49566
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Visualization, {});
49567
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Status, {});
49568
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Form, {});
49536
49569
  $[0] = t0;
49537
49570
  $[1] = t1;
49538
49571
  $[2] = t2;
@@ -49543,7 +49576,7 @@ var AudioThread = function(props) {
49543
49576
  }
49544
49577
  var t3;
49545
49578
  if ($[3] !== props) {
49546
- t3 = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Root16, _objectSpread53(_objectSpread53({}, props), {}, {
49579
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Root16, _objectSpread53(_objectSpread53({}, props), {}, {
49547
49580
  children: [
49548
49581
  t0,
49549
49582
  t1,
@@ -49562,7 +49595,7 @@ AudioThread.Visualization = Visualization;
49562
49595
  AudioThread.Status = Status;
49563
49596
  AudioThread.Form = Form;
49564
49597
  // src/components/threads/AudioThreadDialog/index.tsx
49565
- var import_jsx_runtime97 = require("react/jsx-runtime");
49598
+ var import_jsx_runtime98 = require("react/jsx-runtime");
49566
49599
  function ownKeys54(e, r) {
49567
49600
  var t = Object.keys(e);
49568
49601
  if (Object.getOwnPropertySymbols) {
@@ -49607,14 +49640,14 @@ function _toPrimitive54(t, r) {
49607
49640
  return ("string" === r ? String : Number)(t);
49608
49641
  }
49609
49642
  var AudioThreadDialog = function(props) {
49610
- var $ = (0, import_react_compiler_runtime100.c)(4);
49643
+ var $ = (0, import_react_compiler_runtime101.c)(4);
49611
49644
  var t0;
49612
49645
  var t1;
49613
49646
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49614
- t0 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Content8.Root, {
49615
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(AudioThread, {})
49647
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Content8.Root, {
49648
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(AudioThread, {})
49616
49649
  });
49617
- t1 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Trigger, {});
49650
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Trigger, {});
49618
49651
  $[0] = t0;
49619
49652
  $[1] = t1;
49620
49653
  } else {
@@ -49623,7 +49656,7 @@ var AudioThreadDialog = function(props) {
49623
49656
  }
49624
49657
  var t2;
49625
49658
  if ($[2] !== props) {
49626
- t2 = /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(Root13, _objectSpread54(_objectSpread54({}, props), {}, {
49659
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(Root13, _objectSpread54(_objectSpread54({}, props), {}, {
49627
49660
  children: [
49628
49661
  t0,
49629
49662
  t1
@@ -49640,7 +49673,7 @@ AudioThreadDialog.Root = Root13;
49640
49673
  AudioThreadDialog.Trigger = Trigger;
49641
49674
  AudioThreadDialog.Content = Content8;
49642
49675
  // src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
49643
- var import_react72 = require("react");
49676
+ var import_react73 = require("react");
49644
49677
  function asyncGeneratorStep12(n, t, e, r, o, a, c) {
49645
49678
  try {
49646
49679
  var i = n[a](c), u = i.value;
@@ -49729,22 +49762,22 @@ var useWebrtcAudioRuntime = function() {
49729
49762
  console.warn("Could not build analyzers:", err_0);
49730
49763
  }
49731
49764
  };
49732
- var _ref = _sliced_to_array((0, import_react72.useState)("idle"), 2), recorderStatus = _ref[0], setRecorderStatus = _ref[1];
49765
+ var _ref = _sliced_to_array((0, import_react73.useState)("idle"), 2), recorderStatus = _ref[0], setRecorderStatus = _ref[1];
49733
49766
  var superinterfaceContext = useSuperinterfaceContext();
49734
- var _ref1 = _sliced_to_array((0, import_react72.useState)(false), 2), userIsPending = _ref1[0], setUserIsPending = _ref1[1];
49735
- var _ref2 = _sliced_to_array((0, import_react72.useState)(false), 2), assistantPlaying = _ref2[0], setAssistantPlaying = _ref2[1];
49736
- var _ref3 = _sliced_to_array((0, import_react72.useState)(false), 2), assistantPaused = _ref3[0], setAssistantPaused = _ref3[1];
49737
- var _ref4 = _sliced_to_array((0, import_react72.useState)(true), 2), assistantIsPending = _ref4[0], setAssistantIsPending = _ref4[1];
49738
- var _ref5 = _sliced_to_array((0, import_react72.useState)(false), 2), assistantIsReady = _ref5[0], setAssistantIsReady = _ref5[1];
49739
- var _ref6 = _sliced_to_array((0, import_react72.useState)(false), 2), assistantAudioPlayed = _ref6[0], setAssistantAudioPlayed = _ref6[1];
49740
- var sessionStartedRef = (0, import_react72.useRef)(false);
49741
- var pcRef = (0, import_react72.useRef)(null);
49742
- var localStreamRef = (0, import_react72.useRef)(null);
49743
- var remoteStreamRef = (0, import_react72.useRef)(null);
49744
- var userAnalyserRef = (0, import_react72.useRef)(null);
49745
- var assistantAnalyserRef = (0, import_react72.useRef)(null);
49746
- var assistantAudioElRef = (0, import_react72.useRef)(null);
49747
- (0, import_react72.useEffect)(function() {
49767
+ var _ref1 = _sliced_to_array((0, import_react73.useState)(false), 2), userIsPending = _ref1[0], setUserIsPending = _ref1[1];
49768
+ var _ref2 = _sliced_to_array((0, import_react73.useState)(false), 2), assistantPlaying = _ref2[0], setAssistantPlaying = _ref2[1];
49769
+ var _ref3 = _sliced_to_array((0, import_react73.useState)(false), 2), assistantPaused = _ref3[0], setAssistantPaused = _ref3[1];
49770
+ var _ref4 = _sliced_to_array((0, import_react73.useState)(true), 2), assistantIsPending = _ref4[0], setAssistantIsPending = _ref4[1];
49771
+ var _ref5 = _sliced_to_array((0, import_react73.useState)(false), 2), assistantIsReady = _ref5[0], setAssistantIsReady = _ref5[1];
49772
+ var _ref6 = _sliced_to_array((0, import_react73.useState)(false), 2), assistantAudioPlayed = _ref6[0], setAssistantAudioPlayed = _ref6[1];
49773
+ var sessionStartedRef = (0, import_react73.useRef)(false);
49774
+ var pcRef = (0, import_react73.useRef)(null);
49775
+ var localStreamRef = (0, import_react73.useRef)(null);
49776
+ var remoteStreamRef = (0, import_react73.useRef)(null);
49777
+ var userAnalyserRef = (0, import_react73.useRef)(null);
49778
+ var assistantAnalyserRef = (0, import_react73.useRef)(null);
49779
+ var assistantAudioElRef = (0, import_react73.useRef)(null);
49780
+ (0, import_react73.useEffect)(function() {
49748
49781
  return function() {
49749
49782
  if (pcRef.current) {
49750
49783
  pcRef.current.close();
@@ -50080,7 +50113,7 @@ var useWebrtcAudioRuntime = function() {
50080
50113
  return _ref7.apply(this, arguments);
50081
50114
  };
50082
50115
  }();
50083
- return (0, import_react72.useMemo)(function() {
50116
+ return (0, import_react73.useMemo)(function() {
50084
50117
  return {
50085
50118
  webrtcAudioRuntime: {
50086
50119
  user: {
@@ -50129,10 +50162,10 @@ var useWebrtcAudioRuntime = function() {
50129
50162
  ]);
50130
50163
  };
50131
50164
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
50132
- var import_react_compiler_runtime101 = require("react-compiler-runtime");
50133
- var import_jsx_runtime98 = require("react/jsx-runtime");
50165
+ var import_react_compiler_runtime102 = require("react-compiler-runtime");
50166
+ var import_jsx_runtime99 = require("react/jsx-runtime");
50134
50167
  var WebrtcAudioRuntimeProvider = function(t0) {
50135
- var $ = (0, import_react_compiler_runtime101.c)(5);
50168
+ var $ = (0, import_react_compiler_runtime102.c)(5);
50136
50169
  var children = t0.children;
50137
50170
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
50138
50171
  var t1;
@@ -50147,7 +50180,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
50147
50180
  }
50148
50181
  var t2;
50149
50182
  if ($[2] !== children || $[3] !== t1) {
50150
- t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(AudioThreadContext.Provider, {
50183
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AudioThreadContext.Provider, {
50151
50184
  value: t1,
50152
50185
  children: children
50153
50186
  });
@@ -50160,14 +50193,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
50160
50193
  return t2;
50161
50194
  };
50162
50195
  // src/components/gui/Gui/index.tsx
50163
- var import_react_compiler_runtime104 = require("react-compiler-runtime");
50164
- var import_react75 = require("react");
50196
+ var import_react_compiler_runtime105 = require("react-compiler-runtime");
50197
+ var import_react76 = require("react");
50165
50198
  var import_themes64 = require("@radix-ui/themes");
50166
50199
  // src/hooks/messages/useLatestAssistantMessage/index.ts
50167
- var import_react_compiler_runtime102 = require("react-compiler-runtime");
50168
- var import_react73 = require("react");
50200
+ var import_react_compiler_runtime103 = require("react-compiler-runtime");
50201
+ var import_react74 = require("react");
50169
50202
  var useLatestAssistantMessage = function() {
50170
- var $ = (0, import_react_compiler_runtime102.c)(4);
50203
+ var $ = (0, import_react_compiler_runtime103.c)(4);
50171
50204
  var _useMessages = useMessages(), messages2 = _useMessages.messages;
50172
50205
  var t0;
50173
50206
  var t1;
@@ -50196,11 +50229,11 @@ function _temp11(message) {
50196
50229
  return message.role === "assistant";
50197
50230
  }
50198
50231
  // src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
50199
- var import_react_compiler_runtime103 = require("react-compiler-runtime");
50232
+ var import_react_compiler_runtime104 = require("react-compiler-runtime");
50200
50233
  var import_radash18 = require("radash");
50201
- var import_react74 = require("react");
50234
+ var import_react75 = require("react");
50202
50235
  var useLatestAssistantMessageWithContent = function() {
50203
- var $ = (0, import_react_compiler_runtime103.c)(4);
50236
+ var $ = (0, import_react_compiler_runtime104.c)(4);
50204
50237
  var _useMessages = useMessages(), messages2 = _useMessages.messages;
50205
50238
  var t0;
50206
50239
  var t1;
@@ -50232,14 +50265,14 @@ function _temp25(message) {
50232
50265
  return message.role === "assistant" && message.content.some(_temp12);
50233
50266
  }
50234
50267
  // src/components/gui/Gui/index.tsx
50235
- var import_jsx_runtime99 = require("react/jsx-runtime");
50268
+ var import_jsx_runtime100 = require("react/jsx-runtime");
50236
50269
  var StartingToolCalls3 = function() {
50237
- var $ = (0, import_react_compiler_runtime104.c)(2);
50270
+ var $ = (0, import_react_compiler_runtime105.c)(2);
50238
50271
  var _useComponents = useComponents(), t0 = _useComponents.components;
50239
50272
  var StartingToolCalls4 = t0.StartingToolCalls;
50240
50273
  var t1;
50241
50274
  if ($[0] !== StartingToolCalls4) {
50242
- t1 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(StartingToolCalls4, {});
50275
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(StartingToolCalls4, {});
50243
50276
  $[0] = StartingToolCalls4;
50244
50277
  $[1] = t1;
50245
50278
  } else {
@@ -50248,7 +50281,7 @@ var StartingToolCalls3 = function() {
50248
50281
  return t1;
50249
50282
  };
50250
50283
  var Content10 = function(t0) {
50251
- var $ = (0, import_react_compiler_runtime104.c)(5);
50284
+ var $ = (0, import_react_compiler_runtime105.c)(5);
50252
50285
  var latestRunStep = t0.latestRunStep;
50253
50286
  var t1;
50254
50287
  bb0: {
@@ -50270,7 +50303,7 @@ var Content10 = function(t0) {
50270
50303
  if (!latestRunStep || latestRunStep.step_details.type !== "tool_calls") {
50271
50304
  var _t;
50272
50305
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
50273
- _t = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Spinner, {});
50306
+ _t = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes64.Spinner, {});
50274
50307
  $[0] = _t;
50275
50308
  } else {
50276
50309
  _t = $[0];
@@ -50280,7 +50313,7 @@ var Content10 = function(t0) {
50280
50313
  if (!latestToolCall) {
50281
50314
  var _t2;
50282
50315
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
50283
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(StartingToolCalls3, {});
50316
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(StartingToolCalls3, {});
50284
50317
  $[1] = _t2;
50285
50318
  } else {
50286
50319
  _t2 = $[1];
@@ -50289,7 +50322,7 @@ var Content10 = function(t0) {
50289
50322
  }
50290
50323
  var t2;
50291
50324
  if ($[2] !== latestRunStep || $[3] !== latestToolCall) {
50292
- t2 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ToolCall, {
50325
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ToolCall, {
50293
50326
  runStep: latestRunStep,
50294
50327
  toolCall: latestToolCall
50295
50328
  });
@@ -50302,7 +50335,7 @@ var Content10 = function(t0) {
50302
50335
  return t2;
50303
50336
  };
50304
50337
  var Progress2 = function(t0) {
50305
- var $ = (0, import_react_compiler_runtime104.c)(5);
50338
+ var $ = (0, import_react_compiler_runtime105.c)(5);
50306
50339
  var latestAssistantMessage = t0.latestAssistantMessage;
50307
50340
  var isMutatingMessage = useIsMutatingMessage();
50308
50341
  var t1;
@@ -50336,10 +50369,10 @@ var Progress2 = function(t0) {
50336
50369
  }
50337
50370
  var t4;
50338
50371
  if ($[3] !== latestRunStep) {
50339
- t4 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Flex, {
50372
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes64.Flex, {
50340
50373
  style: t3,
50341
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Card, {
50342
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Content10, {
50374
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes64.Card, {
50375
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Content10, {
50343
50376
  latestRunStep: latestRunStep
50344
50377
  })
50345
50378
  })
@@ -50352,20 +50385,20 @@ var Progress2 = function(t0) {
50352
50385
  return t4;
50353
50386
  };
50354
50387
  var Gui = function() {
50355
- var $ = (0, import_react_compiler_runtime104.c)(8);
50388
+ var $ = (0, import_react_compiler_runtime105.c)(8);
50356
50389
  var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
50357
50390
  var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
50358
50391
  if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
50359
50392
  var _t3;
50360
50393
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
50361
- _t3 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Flex, {
50394
+ _t3 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes64.Flex, {
50362
50395
  direction: "column",
50363
50396
  flexGrow: "1",
50364
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Flex, {
50397
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes64.Flex, {
50365
50398
  align: "center",
50366
50399
  justify: "center",
50367
50400
  flexGrow: "1",
50368
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_themes64.Spinner, {
50401
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes64.Spinner, {
50369
50402
  size: "3"
50370
50403
  })
50371
50404
  })
@@ -50378,7 +50411,7 @@ var Gui = function() {
50378
50411
  }
50379
50412
  var t0;
50380
50413
  if ($[1] !== latestAssistantMessageWithContent) {
50381
- t0 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(MessageContent, {
50414
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(MessageContent, {
50382
50415
  message: latestAssistantMessageWithContent
50383
50416
  });
50384
50417
  $[1] = latestAssistantMessageWithContent;
@@ -50388,7 +50421,7 @@ var Gui = function() {
50388
50421
  }
50389
50422
  var t1;
50390
50423
  if ($[3] !== latestAssistantMessage) {
50391
- t1 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Progress2, {
50424
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Progress2, {
50392
50425
  latestAssistantMessage: latestAssistantMessage
50393
50426
  });
50394
50427
  $[3] = latestAssistantMessage;
@@ -50398,7 +50431,7 @@ var Gui = function() {
50398
50431
  }
50399
50432
  var t2;
50400
50433
  if ($[5] !== t0 || $[6] !== t1) {
50401
- t2 = /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes64.Flex, {
50434
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_themes64.Flex, {
50402
50435
  direction: "column",
50403
50436
  flexGrow: "1",
50404
50437
  children: [
@@ -50418,9 +50451,9 @@ function _temp13(rs) {
50418
50451
  return rs.status === "in_progress";
50419
50452
  }
50420
50453
  // src/components/markdown/MarkdownProvider/index.tsx
50421
- var import_react_compiler_runtime105 = require("react-compiler-runtime");
50422
- var import_react76 = require("react");
50423
- var import_jsx_runtime100 = require("react/jsx-runtime");
50454
+ var import_react_compiler_runtime106 = require("react-compiler-runtime");
50455
+ var import_react77 = require("react");
50456
+ var import_jsx_runtime101 = require("react/jsx-runtime");
50424
50457
  var _excluded7 = [
50425
50458
  "children"
50426
50459
  ];
@@ -50443,7 +50476,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
50443
50476
  return t;
50444
50477
  }
50445
50478
  var MarkdownProvider = function(t0) {
50446
- var $ = (0, import_react_compiler_runtime105.c)(9);
50479
+ var $ = (0, import_react_compiler_runtime106.c)(9);
50447
50480
  var children;
50448
50481
  var rest;
50449
50482
  if ($[0] !== t0) {
@@ -50473,7 +50506,7 @@ var MarkdownProvider = function(t0) {
50473
50506
  var value = t1;
50474
50507
  var t3;
50475
50508
  if ($[6] !== children || $[7] !== value) {
50476
- t3 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(MarkdownContext.Provider, {
50509
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(MarkdownContext.Provider, {
50477
50510
  value: value,
50478
50511
  children: children
50479
50512
  });
@@ -50486,18 +50519,18 @@ var MarkdownProvider = function(t0) {
50486
50519
  return t3;
50487
50520
  };
50488
50521
  // src/components/annotations/SourceAnnotation/index.tsx
50489
- var import_react_compiler_runtime108 = require("react-compiler-runtime");
50522
+ var import_react_compiler_runtime109 = require("react-compiler-runtime");
50490
50523
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50491
- var import_react_compiler_runtime107 = require("react-compiler-runtime");
50492
- var import_react77 = require("react");
50524
+ var import_react_compiler_runtime108 = require("react-compiler-runtime");
50525
+ var import_react78 = require("react");
50493
50526
  var import_react_icons18 = require("@radix-ui/react-icons");
50494
50527
  var import_themes66 = require("@radix-ui/themes");
50495
50528
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
50496
- var import_react_compiler_runtime106 = require("react-compiler-runtime");
50529
+ var import_react_compiler_runtime107 = require("react-compiler-runtime");
50497
50530
  var import_themes65 = require("@radix-ui/themes");
50498
- var import_jsx_runtime101 = require("react/jsx-runtime");
50531
+ var import_jsx_runtime102 = require("react/jsx-runtime");
50499
50532
  var Content11 = function(t0) {
50500
- var $ = (0, import_react_compiler_runtime106.c)(5);
50533
+ var $ = (0, import_react_compiler_runtime107.c)(5);
50501
50534
  var fileId = t0.fileId;
50502
50535
  var superinterfaceContext = useSuperinterfaceContext();
50503
50536
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -50534,18 +50567,18 @@ var Content11 = function(t0) {
50534
50567
  }
50535
50568
  var t5;
50536
50569
  if ($[3] !== t3) {
50537
- t5 = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes65.Flex, {
50570
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes65.Flex, {
50538
50571
  direction: "column",
50539
50572
  flexGrow: "1",
50540
50573
  gap: "3",
50541
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes65.Card, {
50574
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes65.Card, {
50542
50575
  style: t1,
50543
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes65.Inset, {
50576
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes65.Inset, {
50544
50577
  clip: "padding-box",
50545
50578
  style: t2,
50546
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes65.Flex, {
50579
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes65.Flex, {
50547
50580
  flexGrow: "1",
50548
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("embed", {
50581
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("embed", {
50549
50582
  src: t3,
50550
50583
  style: t4
50551
50584
  })
@@ -50561,11 +50594,11 @@ var Content11 = function(t0) {
50561
50594
  return t5;
50562
50595
  };
50563
50596
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
50564
- var import_jsx_runtime102 = require("react/jsx-runtime");
50597
+ var import_jsx_runtime103 = require("react/jsx-runtime");
50565
50598
  var FileCitation = function(t0) {
50566
- var $ = (0, import_react_compiler_runtime107.c)(18);
50599
+ var $ = (0, import_react_compiler_runtime108.c)(18);
50567
50600
  var annotation = t0.annotation;
50568
- var _ref = _sliced_to_array((0, import_react77.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
50601
+ var _ref = _sliced_to_array((0, import_react78.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
50569
50602
  var t1;
50570
50603
  if ($[0] !== annotation.file_citation.file_id) {
50571
50604
  t1 = function() {
@@ -50578,14 +50611,14 @@ var FileCitation = function(t0) {
50578
50611
  }
50579
50612
  var t2;
50580
50613
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
50581
- t2 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_icons18.QuoteIcon, {});
50614
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_icons18.QuoteIcon, {});
50582
50615
  $[2] = t2;
50583
50616
  } else {
50584
50617
  t2 = $[2];
50585
50618
  }
50586
50619
  var t3;
50587
50620
  if ($[3] !== t1) {
50588
- t3 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes66.IconButton, {
50621
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes66.IconButton, {
50589
50622
  variant: "soft",
50590
50623
  color: "gray",
50591
50624
  size: "1",
@@ -50621,9 +50654,9 @@ var FileCitation = function(t0) {
50621
50654
  }
50622
50655
  var t7;
50623
50656
  if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
50624
- t7 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes66.VisuallyHidden, {
50657
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes66.VisuallyHidden, {
50625
50658
  asChild: true,
50626
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes66.Dialog.Title, {
50659
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes66.Dialog.Title, {
50627
50660
  children: "Source"
50628
50661
  })
50629
50662
  });
@@ -50633,7 +50666,7 @@ var FileCitation = function(t0) {
50633
50666
  }
50634
50667
  var t8;
50635
50668
  if ($[8] !== activeFileId) {
50636
- t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Content11, {
50669
+ t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Content11, {
50637
50670
  fileId: activeFileId
50638
50671
  });
50639
50672
  $[8] = activeFileId;
@@ -50643,7 +50676,7 @@ var FileCitation = function(t0) {
50643
50676
  }
50644
50677
  var t9;
50645
50678
  if ($[10] !== t8) {
50646
- t9 = /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_themes66.Dialog.Content, {
50679
+ t9 = /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_themes66.Dialog.Content, {
50647
50680
  width: "1000px",
50648
50681
  height: "90vh",
50649
50682
  maxWidth: "calc(100vw - 2 * var(--space-4))",
@@ -50661,7 +50694,7 @@ var FileCitation = function(t0) {
50661
50694
  }
50662
50695
  var t10;
50663
50696
  if ($[12] !== t4 || $[13] !== t9) {
50664
- t10 = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_themes66.Dialog.Root, {
50697
+ t10 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_themes66.Dialog.Root, {
50665
50698
  open: t4,
50666
50699
  onOpenChange: t5,
50667
50700
  children: t9
@@ -50674,7 +50707,7 @@ var FileCitation = function(t0) {
50674
50707
  }
50675
50708
  var t11;
50676
50709
  if ($[15] !== t10 || $[16] !== t3) {
50677
- t11 = /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, {
50710
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, {
50678
50711
  children: [
50679
50712
  t3,
50680
50713
  t10
@@ -50689,7 +50722,7 @@ var FileCitation = function(t0) {
50689
50722
  return t11;
50690
50723
  };
50691
50724
  // src/components/annotations/SourceAnnotation/index.tsx
50692
- var import_jsx_runtime103 = require("react/jsx-runtime");
50725
+ var import_jsx_runtime104 = require("react/jsx-runtime");
50693
50726
  var _excluded8 = [
50694
50727
  "children"
50695
50728
  ];
@@ -50712,7 +50745,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
50712
50745
  return t;
50713
50746
  }
50714
50747
  var SourceAnnotation = function(t0) {
50715
- var $ = (0, import_react_compiler_runtime108.c)(10);
50748
+ var $ = (0, import_react_compiler_runtime109.c)(10);
50716
50749
  var children;
50717
50750
  var rest;
50718
50751
  if ($[0] !== t0) {
@@ -50740,7 +50773,7 @@ var SourceAnnotation = function(t0) {
50740
50773
  if (annotation.type === "file_citation") {
50741
50774
  var t2;
50742
50775
  if ($[5] !== annotation) {
50743
- t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(FileCitation, {
50776
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FileCitation, {
50744
50777
  annotation: annotation
50745
50778
  });
50746
50779
  $[5] = annotation;
@@ -50753,7 +50786,7 @@ var SourceAnnotation = function(t0) {
50753
50786
  if (annotation.type === "file_path") {
50754
50787
  var _t2;
50755
50788
  if ($[7] !== annotation || $[8] !== children) {
50756
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(FilePathAnnotation, {
50789
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FilePathAnnotation, {
50757
50790
  annotation: annotation,
50758
50791
  children: children
50759
50792
  });
@@ -50769,7 +50802,7 @@ var SourceAnnotation = function(t0) {
50769
50802
  return null;
50770
50803
  };
50771
50804
  // src/components/avatars/Avatar.tsx
50772
- var import_react_compiler_runtime111 = require("react-compiler-runtime");
50805
+ var import_react_compiler_runtime112 = require("react-compiler-runtime");
50773
50806
  // src/enums/index.ts
50774
50807
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
50775
50808
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -50794,7 +50827,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
50794
50827
  // src/components/avatars/Avatar.tsx
50795
50828
  var import_themes69 = require("@radix-ui/themes");
50796
50829
  // src/components/imageAvatars/ImageAvatar/index.tsx
50797
- var import_react_compiler_runtime109 = require("react-compiler-runtime");
50830
+ var import_react_compiler_runtime110 = require("react-compiler-runtime");
50798
50831
  var import_themes67 = require("@radix-ui/themes");
50799
50832
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
50800
50833
  var width = function(_ref) {
@@ -50846,9 +50879,9 @@ var optimizedSrc = function(_ref) {
50846
50879
  }));
50847
50880
  };
50848
50881
  // src/components/imageAvatars/ImageAvatar/index.tsx
50849
- var import_jsx_runtime104 = require("react/jsx-runtime");
50882
+ var import_jsx_runtime105 = require("react/jsx-runtime");
50850
50883
  var ImageAvatar = function(t0) {
50851
- var $ = (0, import_react_compiler_runtime109.c)(9);
50884
+ var $ = (0, import_react_compiler_runtime110.c)(9);
50852
50885
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
50853
50886
  var superinterfaceContext = useSuperinterfaceContext();
50854
50887
  var t1;
@@ -50867,7 +50900,7 @@ var ImageAvatar = function(t0) {
50867
50900
  }
50868
50901
  var t2;
50869
50902
  if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
50870
- t2 = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_themes67.Avatar, {
50903
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes67.Avatar, {
50871
50904
  className: className,
50872
50905
  style: style,
50873
50906
  fallback: "",
@@ -50885,24 +50918,24 @@ var ImageAvatar = function(t0) {
50885
50918
  return t2;
50886
50919
  };
50887
50920
  // src/components/iconAvatars/IconAvatar.tsx
50888
- var import_react_compiler_runtime110 = require("react-compiler-runtime");
50889
- var import_react78 = require("react");
50921
+ var import_react_compiler_runtime111 = require("react-compiler-runtime");
50922
+ var import_react79 = require("react");
50890
50923
  var import_themes68 = require("@radix-ui/themes");
50891
50924
  // src/lib/iconAvatars/iconAvatarComponents.ts
50892
50925
  var import_react_icons19 = require("@radix-ui/react-icons");
50893
50926
  var _obj;
50894
50927
  var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, import_react_icons19.BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, import_react_icons19.RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, import_react_icons19.MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, import_react_icons19.CubeIcon), _define_property(_obj, IconAvatarName.TARGET, import_react_icons19.TargetIcon), _define_property(_obj, IconAvatarName.DISC, import_react_icons19.DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, import_react_icons19.GlobeIcon), _define_property(_obj, IconAvatarName.STAR, import_react_icons19.StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, import_react_icons19.LightningBoltIcon), _define_property(_obj, IconAvatarName.FACE, import_react_icons19.FaceIcon), _define_property(_obj, IconAvatarName.PERSON, import_react_icons19.PersonIcon), _define_property(_obj, IconAvatarName.HEART, import_react_icons19.HeartIcon), _obj);
50895
50928
  // src/components/iconAvatars/IconAvatar.tsx
50896
- var import_jsx_runtime105 = require("react/jsx-runtime");
50929
+ var import_jsx_runtime106 = require("react/jsx-runtime");
50897
50930
  var IconAvatar = function(t0) {
50898
- var $ = (0, import_react_compiler_runtime110.c)(7);
50931
+ var $ = (0, import_react_compiler_runtime111.c)(7);
50899
50932
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
50900
50933
  var t1;
50901
50934
  t1 = iconAvatarComponents[iconAvatar.name];
50902
50935
  var Component2 = t1;
50903
50936
  var t2;
50904
50937
  if ($[0] !== Component2) {
50905
- t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Component2, {}) : "";
50938
+ t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Component2, {}) : "";
50906
50939
  $[0] = Component2;
50907
50940
  $[1] = t2;
50908
50941
  } else {
@@ -50910,7 +50943,7 @@ var IconAvatar = function(t0) {
50910
50943
  }
50911
50944
  var t3;
50912
50945
  if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
50913
- t3 = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_themes68.Avatar, {
50946
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes68.Avatar, {
50914
50947
  className: className,
50915
50948
  style: style,
50916
50949
  size: size,
@@ -50927,16 +50960,16 @@ var IconAvatar = function(t0) {
50927
50960
  return t3;
50928
50961
  };
50929
50962
  // src/components/avatars/Avatar.tsx
50930
- var import_jsx_runtime106 = require("react/jsx-runtime");
50963
+ var import_jsx_runtime107 = require("react/jsx-runtime");
50931
50964
  var Avatar6 = function(t0) {
50932
- var $ = (0, import_react_compiler_runtime111.c)(14);
50965
+ var $ = (0, import_react_compiler_runtime112.c)(14);
50933
50966
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
50934
50967
  var size = t1 === void 0 ? "1" : t1;
50935
50968
  if (avatar) {
50936
50969
  if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
50937
50970
  var _t;
50938
50971
  if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
50939
- _t = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ImageAvatar, {
50972
+ _t = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ImageAvatar, {
50940
50973
  imageAvatar: avatar.imageAvatar,
50941
50974
  size: size,
50942
50975
  className: className,
@@ -50955,7 +50988,7 @@ var Avatar6 = function(t0) {
50955
50988
  if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
50956
50989
  var _t2;
50957
50990
  if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
50958
- _t2 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(IconAvatar, {
50991
+ _t2 = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(IconAvatar, {
50959
50992
  iconAvatar: avatar.iconAvatar,
50960
50993
  size: size,
50961
50994
  className: className,
@@ -50974,7 +51007,7 @@ var Avatar6 = function(t0) {
50974
51007
  }
50975
51008
  var t2;
50976
51009
  if ($[10] !== className || $[11] !== size || $[12] !== style) {
50977
- t2 = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_themes69.Avatar, {
51010
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_themes69.Avatar, {
50978
51011
  fallback: "",
50979
51012
  size: size,
50980
51013
  className: className,
@@ -50990,9 +51023,9 @@ var Avatar6 = function(t0) {
50990
51023
  return t2;
50991
51024
  };
50992
51025
  // src/components/components/ComponentsProvider.tsx
50993
- var import_react_compiler_runtime112 = require("react-compiler-runtime");
50994
- var import_react79 = require("react");
50995
- var import_jsx_runtime107 = require("react/jsx-runtime");
51026
+ var import_react_compiler_runtime113 = require("react-compiler-runtime");
51027
+ var import_react80 = require("react");
51028
+ var import_jsx_runtime108 = require("react/jsx-runtime");
50996
51029
  var _excluded9 = [
50997
51030
  "children"
50998
51031
  ];
@@ -51015,7 +51048,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
51015
51048
  return t;
51016
51049
  }
51017
51050
  var ComponentsProvider = function(t0) {
51018
- var $ = (0, import_react_compiler_runtime112.c)(9);
51051
+ var $ = (0, import_react_compiler_runtime113.c)(9);
51019
51052
  var children;
51020
51053
  var rest;
51021
51054
  if ($[0] !== t0) {
@@ -51045,7 +51078,7 @@ var ComponentsProvider = function(t0) {
51045
51078
  var value = t1;
51046
51079
  var t3;
51047
51080
  if ($[6] !== children || $[7] !== value) {
51048
- t3 = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ComponentsContext.Provider, {
51081
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(ComponentsContext.Provider, {
51049
51082
  value: value,
51050
51083
  children: children
51051
51084
  });
@@ -51058,11 +51091,11 @@ var ComponentsProvider = function(t0) {
51058
51091
  return t3;
51059
51092
  };
51060
51093
  // src/components/assistants/AssistantProvider/index.tsx
51061
- var import_react_compiler_runtime113 = require("react-compiler-runtime");
51062
- var import_jsx_runtime108 = require("react/jsx-runtime");
51094
+ var import_react_compiler_runtime114 = require("react-compiler-runtime");
51095
+ var import_jsx_runtime109 = require("react/jsx-runtime");
51063
51096
  var AssistantProvider = function(t0) {
51064
51097
  var _assistant$name;
51065
- var $ = (0, import_react_compiler_runtime113.c)(10);
51098
+ var $ = (0, import_react_compiler_runtime114.c)(10);
51066
51099
  var children = t0.children;
51067
51100
  var superinterfaceContext = useSuperinterfaceContext();
51068
51101
  var t1;
@@ -51080,7 +51113,7 @@ var AssistantProvider = function(t0) {
51080
51113
  var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
51081
51114
  var t4;
51082
51115
  if ($[2] !== t3) {
51083
- t4 = /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Avatar6, {
51116
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Avatar6, {
51084
51117
  avatar: t3
51085
51118
  });
51086
51119
  $[2] = t3;
@@ -51090,7 +51123,7 @@ var AssistantProvider = function(t0) {
51090
51123
  }
51091
51124
  var t5;
51092
51125
  if ($[4] !== children || $[5] !== t4) {
51093
- t5 = /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(AssistantAvatarContext.Provider, {
51126
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(AssistantAvatarContext.Provider, {
51094
51127
  value: t4,
51095
51128
  children: children
51096
51129
  });
@@ -51102,7 +51135,7 @@ var AssistantProvider = function(t0) {
51102
51135
  }
51103
51136
  var t6;
51104
51137
  if ($[7] !== t2 || $[8] !== t5) {
51105
- t6 = /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(AssistantNameContext.Provider, {
51138
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(AssistantNameContext.Provider, {
51106
51139
  value: t2,
51107
51140
  children: t5
51108
51141
  });