@superinterface/react 3.20.2 → 3.21.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 +420 -126
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +420 -126
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -357,7 +357,7 @@ var require_lib = __commonJS({
|
|
|
357
357
|
Object.defineProperty(exports, "__esModule", {
|
|
358
358
|
value: true
|
|
359
359
|
});
|
|
360
|
-
function
|
|
360
|
+
function _objectWithoutPropertiesLoose10(r, e) {
|
|
361
361
|
if (null == r) return {};
|
|
362
362
|
var t = {};
|
|
363
363
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -717,7 +717,7 @@ var require_lib = __commonJS({
|
|
|
717
717
|
PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.",
|
|
718
718
|
PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'
|
|
719
719
|
});
|
|
720
|
-
var
|
|
720
|
+
var _excluded10 = [
|
|
721
721
|
"message"
|
|
722
722
|
];
|
|
723
723
|
function defineHidden(obj, key2, value) {
|
|
@@ -792,7 +792,7 @@ var require_lib = __commonJS({
|
|
|
792
792
|
}
|
|
793
793
|
} : typeof template === "function" ? {
|
|
794
794
|
message: template
|
|
795
|
-
} : template, message = _ref.message, rest =
|
|
795
|
+
} : template, message = _ref.message, rest = _objectWithoutPropertiesLoose10(_ref, _excluded10);
|
|
796
796
|
var toMessage = typeof message === "string" ? function() {
|
|
797
797
|
return message;
|
|
798
798
|
} : message;
|
|
@@ -42323,11 +42323,10 @@ var remarkAnnotation = function(_ref2) {
|
|
|
42323
42323
|
node: node,
|
|
42324
42324
|
content: content2
|
|
42325
42325
|
});
|
|
42326
|
-
} else {
|
|
42327
|
-
return [
|
|
42328
|
-
node
|
|
42329
|
-
];
|
|
42330
42326
|
}
|
|
42327
|
+
return [
|
|
42328
|
+
node
|
|
42329
|
+
];
|
|
42331
42330
|
});
|
|
42332
42331
|
};
|
|
42333
42332
|
};
|
|
@@ -42335,12 +42334,7 @@ var remarkAnnotation = function(_ref2) {
|
|
|
42335
42334
|
var processNodeWithAnnotations = function(_ref3) {
|
|
42336
42335
|
var _content$text;
|
|
42337
42336
|
var node = _ref3.node, content2 = _ref3.content;
|
|
42338
|
-
if (!((_content$text = content2.text) !== null && _content$text !== void 0 && (_content$text = _content$text.annotations) !== null && _content$text !== void 0 && _content$text.length)) {
|
|
42339
|
-
return [
|
|
42340
|
-
node
|
|
42341
|
-
];
|
|
42342
|
-
}
|
|
42343
|
-
if (!node.position) {
|
|
42337
|
+
if (!((_content$text = content2.text) !== null && _content$text !== void 0 && (_content$text = _content$text.annotations) !== null && _content$text !== void 0 && _content$text.length) || !node.position) {
|
|
42344
42338
|
return [
|
|
42345
42339
|
node
|
|
42346
42340
|
];
|
|
@@ -42355,21 +42349,76 @@ var processNodeWithAnnotations = function(_ref3) {
|
|
|
42355
42349
|
});
|
|
42356
42350
|
} else if (node.type === "link") {
|
|
42357
42351
|
var linkNode = node;
|
|
42358
|
-
linkNode.children = flatMap(linkNode.children, function(
|
|
42359
|
-
if (
|
|
42352
|
+
linkNode.children = flatMap(linkNode.children, function(child2) {
|
|
42353
|
+
if (child2.type === "text") {
|
|
42360
42354
|
return processTextNode({
|
|
42361
|
-
node:
|
|
42355
|
+
node: child2,
|
|
42362
42356
|
annotations: annotations
|
|
42363
42357
|
});
|
|
42364
|
-
} else {
|
|
42365
|
-
return [
|
|
42366
|
-
childNode
|
|
42367
|
-
];
|
|
42368
42358
|
}
|
|
42359
|
+
return [
|
|
42360
|
+
child2
|
|
42361
|
+
];
|
|
42369
42362
|
});
|
|
42370
|
-
return [
|
|
42363
|
+
if (!linkNode.position) return [
|
|
42371
42364
|
linkNode
|
|
42372
42365
|
];
|
|
42366
|
+
var labelLength = 0;
|
|
42367
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
42368
|
+
try {
|
|
42369
|
+
for(var _iterator = linkNode.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
42370
|
+
var child = _step.value;
|
|
42371
|
+
if (child.type === "text" && typeof child.value === "string") {
|
|
42372
|
+
labelLength += child.value.length;
|
|
42373
|
+
}
|
|
42374
|
+
}
|
|
42375
|
+
} catch (err) {
|
|
42376
|
+
_didIteratorError = true;
|
|
42377
|
+
_iteratorError = err;
|
|
42378
|
+
} finally{
|
|
42379
|
+
try {
|
|
42380
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
42381
|
+
_iterator.return();
|
|
42382
|
+
}
|
|
42383
|
+
} finally{
|
|
42384
|
+
if (_didIteratorError) {
|
|
42385
|
+
throw _iteratorError;
|
|
42386
|
+
}
|
|
42387
|
+
}
|
|
42388
|
+
}
|
|
42389
|
+
var linkStart = linkNode.position.start.offset;
|
|
42390
|
+
var urlStartOffset = linkStart + 1 + labelLength + 1 + 1;
|
|
42391
|
+
var urlEndOffset = linkNode.position.end.offset - 1;
|
|
42392
|
+
var matchingURLAnnotations = annotations.filter(function(annotation2) {
|
|
42393
|
+
return annotation2.start_index >= urlStartOffset && annotation2.end_index <= urlEndOffset;
|
|
42394
|
+
});
|
|
42395
|
+
if (matchingURLAnnotations.length > 0) {
|
|
42396
|
+
var annotation = matchingURLAnnotations[0];
|
|
42397
|
+
var newAnnotationNode = {
|
|
42398
|
+
type: "annotation",
|
|
42399
|
+
value: linkNode.url,
|
|
42400
|
+
children: linkNode.children,
|
|
42401
|
+
position: {
|
|
42402
|
+
start: _objectSpread23(_objectSpread23({}, linkNode.position.start), {}, {
|
|
42403
|
+
offset: urlStartOffset
|
|
42404
|
+
}),
|
|
42405
|
+
end: _objectSpread23(_objectSpread23({}, linkNode.position.end), {}, {
|
|
42406
|
+
offset: urlEndOffset
|
|
42407
|
+
})
|
|
42408
|
+
},
|
|
42409
|
+
data: {
|
|
42410
|
+
hName: "annotation",
|
|
42411
|
+
hProperties: _define_property({}, "data-annotation", JSON.stringify(annotation))
|
|
42412
|
+
}
|
|
42413
|
+
};
|
|
42414
|
+
return [
|
|
42415
|
+
newAnnotationNode
|
|
42416
|
+
];
|
|
42417
|
+
} else {
|
|
42418
|
+
return [
|
|
42419
|
+
linkNode
|
|
42420
|
+
];
|
|
42421
|
+
}
|
|
42373
42422
|
} else {
|
|
42374
42423
|
return [
|
|
42375
42424
|
node
|
|
@@ -42378,26 +42427,20 @@ var processNodeWithAnnotations = function(_ref3) {
|
|
|
42378
42427
|
};
|
|
42379
42428
|
var processTextNode = function(_ref4) {
|
|
42380
42429
|
var node = _ref4.node, annotations = _ref4.annotations;
|
|
42381
|
-
if (!node.position || !node.value)
|
|
42382
|
-
|
|
42383
|
-
|
|
42384
|
-
];
|
|
42385
|
-
}
|
|
42430
|
+
if (!node.position || !node.value) return [
|
|
42431
|
+
node
|
|
42432
|
+
];
|
|
42386
42433
|
var nodeStart = node.position.start.offset;
|
|
42387
42434
|
var nodeEnd = node.position.end.offset;
|
|
42388
|
-
if (!isNumber(nodeStart) || !isNumber(nodeEnd))
|
|
42389
|
-
|
|
42390
|
-
|
|
42391
|
-
];
|
|
42392
|
-
}
|
|
42435
|
+
if (!isNumber(nodeStart) || !isNumber(nodeEnd)) return [
|
|
42436
|
+
node
|
|
42437
|
+
];
|
|
42393
42438
|
var newNodes = [];
|
|
42394
42439
|
var lastIndex = nodeStart;
|
|
42395
42440
|
annotations.forEach(function(annotation) {
|
|
42396
42441
|
var annotationStart = annotation.start_index;
|
|
42397
42442
|
var annotationEnd = annotation.end_index;
|
|
42398
|
-
if (nodeEnd <= annotationStart || nodeStart >= annotationEnd)
|
|
42399
|
-
return;
|
|
42400
|
-
}
|
|
42443
|
+
if (nodeEnd <= annotationStart || nodeStart >= annotationEnd) return;
|
|
42401
42444
|
var start = Math.max(nodeStart, annotationStart);
|
|
42402
42445
|
var end = Math.min(nodeEnd, annotationEnd);
|
|
42403
42446
|
if (lastIndex < start) {
|
|
@@ -47006,9 +47049,9 @@ ThreadDialog.Root = Root9;
|
|
|
47006
47049
|
ThreadDialog.Trigger = Trigger;
|
|
47007
47050
|
ThreadDialog.Content = Content7;
|
|
47008
47051
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47009
|
-
import { c as
|
|
47052
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
47010
47053
|
// src/components/threads/AudioThread/index.tsx
|
|
47011
|
-
import { c as
|
|
47054
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
47012
47055
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47013
47056
|
import { c as _c86 } from "react-compiler-runtime";
|
|
47014
47057
|
import { Flex as Flex30 } from "@radix-ui/themes";
|
|
@@ -48256,7 +48299,8 @@ var Root12 = function(t0) {
|
|
|
48256
48299
|
return t3;
|
|
48257
48300
|
};
|
|
48258
48301
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48259
|
-
import {
|
|
48302
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
48303
|
+
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext17, createContext as createContext14 } from "react";
|
|
48260
48304
|
import _9 from "lodash";
|
|
48261
48305
|
import { Flex as Flex32 } from "@radix-ui/themes";
|
|
48262
48306
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
@@ -48376,6 +48420,18 @@ var useStatus = function() {
|
|
|
48376
48420
|
};
|
|
48377
48421
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48378
48422
|
import { jsx as _jsx86, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
48423
|
+
var _excluded6 = [
|
|
48424
|
+
"children"
|
|
48425
|
+
];
|
|
48426
|
+
var _excluded23 = [
|
|
48427
|
+
"height",
|
|
48428
|
+
"barWidth"
|
|
48429
|
+
];
|
|
48430
|
+
var _excluded32 = [
|
|
48431
|
+
"children",
|
|
48432
|
+
"height",
|
|
48433
|
+
"width"
|
|
48434
|
+
];
|
|
48379
48435
|
function ownKeys47(e, r) {
|
|
48380
48436
|
var t = Object.keys(e);
|
|
48381
48437
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -48419,13 +48475,33 @@ function _toPrimitive47(t, r) {
|
|
|
48419
48475
|
}
|
|
48420
48476
|
return ("string" === r ? String : Number)(t);
|
|
48421
48477
|
}
|
|
48422
|
-
|
|
48423
|
-
|
|
48478
|
+
function _objectWithoutProperties6(e, t) {
|
|
48479
|
+
if (null == e) return {};
|
|
48480
|
+
var o, r, i = _objectWithoutPropertiesLoose6(e, t);
|
|
48481
|
+
if (Object.getOwnPropertySymbols) {
|
|
48482
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
48483
|
+
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
48484
|
+
}
|
|
48485
|
+
return i;
|
|
48486
|
+
}
|
|
48487
|
+
function _objectWithoutPropertiesLoose6(r, e) {
|
|
48488
|
+
if (null == r) return {};
|
|
48489
|
+
var t = {};
|
|
48490
|
+
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
48491
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
48492
|
+
t[n] = r[n];
|
|
48493
|
+
}
|
|
48494
|
+
return t;
|
|
48495
|
+
}
|
|
48496
|
+
var AudioThreadVisualizationContext = /* @__PURE__ */ createContext14({
|
|
48497
|
+
scale: 0
|
|
48498
|
+
});
|
|
48499
|
+
var Provider6 = function(_ref) {
|
|
48500
|
+
var children = _ref.children;
|
|
48424
48501
|
var audioThreadContext = useAudioThreadContext();
|
|
48425
|
-
var assistantNameContext = useContext17(AssistantNameContext);
|
|
48426
48502
|
var _useState11 = _sliced_to_array(useState11(0), 2), scale = _useState11[0], setScale = _useState11[1];
|
|
48427
|
-
var draw = useCallback8(function(
|
|
48428
|
-
var visualizationAnalyser =
|
|
48503
|
+
var draw = useCallback8(function(_ref2) {
|
|
48504
|
+
var visualizationAnalyser = _ref2.visualizationAnalyser;
|
|
48429
48505
|
if (!visualizationAnalyser) {
|
|
48430
48506
|
setScale(1);
|
|
48431
48507
|
return;
|
|
@@ -48447,49 +48523,266 @@ var Visualization = function(props) {
|
|
|
48447
48523
|
draw,
|
|
48448
48524
|
audioThreadContext
|
|
48449
48525
|
]);
|
|
48450
|
-
return /* @__PURE__ */
|
|
48451
|
-
|
|
48452
|
-
|
|
48453
|
-
|
|
48454
|
-
|
|
48455
|
-
|
|
48456
|
-
|
|
48457
|
-
|
|
48458
|
-
|
|
48526
|
+
return /* @__PURE__ */ _jsx86(AudioThreadVisualizationContext.Provider, {
|
|
48527
|
+
value: {
|
|
48528
|
+
scale: scale
|
|
48529
|
+
},
|
|
48530
|
+
children: children
|
|
48531
|
+
});
|
|
48532
|
+
};
|
|
48533
|
+
var Root13 = function(t0) {
|
|
48534
|
+
var $ = _c88(6);
|
|
48535
|
+
var children;
|
|
48536
|
+
var rest;
|
|
48537
|
+
if ($[0] !== t0) {
|
|
48538
|
+
var _t = t0;
|
|
48539
|
+
children = _t.children;
|
|
48540
|
+
rest = _objectWithoutProperties6(_t, _excluded6);
|
|
48541
|
+
_t;
|
|
48542
|
+
$[0] = t0;
|
|
48543
|
+
$[1] = children;
|
|
48544
|
+
$[2] = rest;
|
|
48545
|
+
} else {
|
|
48546
|
+
children = $[1];
|
|
48547
|
+
rest = $[2];
|
|
48548
|
+
}
|
|
48549
|
+
var t1;
|
|
48550
|
+
if ($[3] !== children || $[4] !== rest) {
|
|
48551
|
+
t1 = /* @__PURE__ */ _jsx86(Provider6, {
|
|
48552
|
+
children: /* @__PURE__ */ _jsx86(Flex32, _objectSpread47(_objectSpread47({
|
|
48553
|
+
direction: "column",
|
|
48459
48554
|
align: "center",
|
|
48460
48555
|
justify: "center",
|
|
48461
|
-
|
|
48462
|
-
|
|
48463
|
-
|
|
48464
|
-
|
|
48465
|
-
|
|
48466
|
-
|
|
48467
|
-
|
|
48468
|
-
|
|
48469
|
-
|
|
48470
|
-
|
|
48471
|
-
|
|
48472
|
-
|
|
48473
|
-
|
|
48474
|
-
|
|
48475
|
-
|
|
48476
|
-
|
|
48477
|
-
|
|
48478
|
-
|
|
48479
|
-
|
|
48480
|
-
|
|
48481
|
-
|
|
48482
|
-
|
|
48483
|
-
|
|
48484
|
-
|
|
48485
|
-
|
|
48486
|
-
]
|
|
48487
|
-
|
|
48556
|
+
mb: "3",
|
|
48557
|
+
flexGrow: "1"
|
|
48558
|
+
}, rest), {}, {
|
|
48559
|
+
children: children
|
|
48560
|
+
}))
|
|
48561
|
+
});
|
|
48562
|
+
$[3] = children;
|
|
48563
|
+
$[4] = rest;
|
|
48564
|
+
$[5] = t1;
|
|
48565
|
+
} else {
|
|
48566
|
+
t1 = $[5];
|
|
48567
|
+
}
|
|
48568
|
+
return t1;
|
|
48569
|
+
};
|
|
48570
|
+
var BarsVisualizer2 = function(t0) {
|
|
48571
|
+
var $ = _c88(10);
|
|
48572
|
+
var rest;
|
|
48573
|
+
var t1;
|
|
48574
|
+
var t2;
|
|
48575
|
+
if ($[0] !== t0) {
|
|
48576
|
+
var _t2 = t0;
|
|
48577
|
+
var ref;
|
|
48578
|
+
ref = _t2, t1 = ref.height, t2 = ref.barWidth, ref;
|
|
48579
|
+
rest = _objectWithoutProperties6(_t2, _excluded23);
|
|
48580
|
+
_t2;
|
|
48581
|
+
$[0] = t0;
|
|
48582
|
+
$[1] = rest;
|
|
48583
|
+
$[2] = t1;
|
|
48584
|
+
$[3] = t2;
|
|
48585
|
+
} else {
|
|
48586
|
+
rest = $[1];
|
|
48587
|
+
t1 = $[2];
|
|
48588
|
+
t2 = $[3];
|
|
48589
|
+
}
|
|
48590
|
+
var height = t1 === void 0 ? "40px" : t1;
|
|
48591
|
+
var barWidth = t2 === void 0 ? "24px" : t2;
|
|
48592
|
+
var status = useStatus().status;
|
|
48593
|
+
var audioThreadContext = useAudioThreadContext();
|
|
48594
|
+
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48595
|
+
var t4;
|
|
48596
|
+
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
48597
|
+
t4 = /* @__PURE__ */ _jsx86(BarsVisualizer, _objectSpread47({
|
|
48598
|
+
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
48599
|
+
backgroundColor: t3,
|
|
48600
|
+
height: height,
|
|
48601
|
+
barWidth: barWidth
|
|
48602
|
+
}, rest));
|
|
48603
|
+
$[4] = audioThreadContext.audioRuntime.assistant.visualizationAnalyser;
|
|
48604
|
+
$[5] = barWidth;
|
|
48605
|
+
$[6] = height;
|
|
48606
|
+
$[7] = rest;
|
|
48607
|
+
$[8] = t3;
|
|
48608
|
+
$[9] = t4;
|
|
48609
|
+
} else {
|
|
48610
|
+
t4 = $[9];
|
|
48611
|
+
}
|
|
48612
|
+
return t4;
|
|
48613
|
+
};
|
|
48614
|
+
var AssistantVisualizationRoot = function(t0) {
|
|
48615
|
+
var $ = _c88(17);
|
|
48616
|
+
var children;
|
|
48617
|
+
var rest;
|
|
48618
|
+
var t1;
|
|
48619
|
+
var t2;
|
|
48620
|
+
if ($[0] !== t0) {
|
|
48621
|
+
var _t3 = t0;
|
|
48622
|
+
var ref;
|
|
48623
|
+
ref = _t3, children = ref.children, t1 = ref.height, t2 = ref.width, ref;
|
|
48624
|
+
rest = _objectWithoutProperties6(_t3, _excluded32);
|
|
48625
|
+
_t3;
|
|
48626
|
+
$[0] = t0;
|
|
48627
|
+
$[1] = children;
|
|
48628
|
+
$[2] = rest;
|
|
48629
|
+
$[3] = t1;
|
|
48630
|
+
$[4] = t2;
|
|
48631
|
+
} else {
|
|
48632
|
+
children = $[1];
|
|
48633
|
+
rest = $[2];
|
|
48634
|
+
t1 = $[3];
|
|
48635
|
+
t2 = $[4];
|
|
48636
|
+
}
|
|
48637
|
+
var height = t1 === void 0 ? "200px" : t1;
|
|
48638
|
+
var width2 = t2 === void 0 ? "200px" : t2;
|
|
48639
|
+
var status = useStatus().status;
|
|
48640
|
+
var scale = useContext17(AudioThreadVisualizationContext).scale;
|
|
48641
|
+
var t3 = status === "playing" ? "var(--accent-4)" : "var(--gray-4)";
|
|
48642
|
+
var t4;
|
|
48643
|
+
if ($[5] !== rest.style) {
|
|
48644
|
+
var _rest$style;
|
|
48645
|
+
t4 = (_rest$style = rest.style) !== null && _rest$style !== void 0 ? _rest$style : {};
|
|
48646
|
+
$[5] = rest.style;
|
|
48647
|
+
$[6] = t4;
|
|
48648
|
+
} else {
|
|
48649
|
+
t4 = $[6];
|
|
48650
|
+
}
|
|
48651
|
+
var t5;
|
|
48652
|
+
if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
|
|
48653
|
+
t5 = _objectSpread47({
|
|
48654
|
+
backgroundColor: t3,
|
|
48655
|
+
borderRadius: "9999px",
|
|
48656
|
+
scale: scale
|
|
48657
|
+
}, t4);
|
|
48658
|
+
$[7] = scale;
|
|
48659
|
+
$[8] = t3;
|
|
48660
|
+
$[9] = t4;
|
|
48661
|
+
$[10] = t5;
|
|
48662
|
+
} else {
|
|
48663
|
+
t5 = $[10];
|
|
48664
|
+
}
|
|
48665
|
+
var t6;
|
|
48666
|
+
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
48667
|
+
t6 = /* @__PURE__ */ _jsx86(Flex32, _objectSpread47(_objectSpread47({
|
|
48668
|
+
align: "center",
|
|
48669
|
+
justify: "center",
|
|
48670
|
+
height: height,
|
|
48671
|
+
width: width2,
|
|
48672
|
+
style: t5
|
|
48673
|
+
}, rest), {}, {
|
|
48674
|
+
children: children
|
|
48675
|
+
}));
|
|
48676
|
+
$[11] = children;
|
|
48677
|
+
$[12] = height;
|
|
48678
|
+
$[13] = rest;
|
|
48679
|
+
$[14] = t5;
|
|
48680
|
+
$[15] = width2;
|
|
48681
|
+
$[16] = t6;
|
|
48682
|
+
} else {
|
|
48683
|
+
t6 = $[16];
|
|
48684
|
+
}
|
|
48685
|
+
return t6;
|
|
48686
|
+
};
|
|
48687
|
+
var AssistantVisualization = function(props) {
|
|
48688
|
+
var $ = _c88(3);
|
|
48689
|
+
var t0;
|
|
48690
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48691
|
+
t0 = /* @__PURE__ */ _jsx86(BarsVisualizer2, {});
|
|
48692
|
+
$[0] = t0;
|
|
48693
|
+
} else {
|
|
48694
|
+
t0 = $[0];
|
|
48695
|
+
}
|
|
48696
|
+
var t1;
|
|
48697
|
+
if ($[1] !== props) {
|
|
48698
|
+
t1 = /* @__PURE__ */ _jsx86(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
|
|
48699
|
+
children: t0
|
|
48700
|
+
}));
|
|
48701
|
+
$[1] = props;
|
|
48702
|
+
$[2] = t1;
|
|
48703
|
+
} else {
|
|
48704
|
+
t1 = $[2];
|
|
48705
|
+
}
|
|
48706
|
+
return t1;
|
|
48707
|
+
};
|
|
48708
|
+
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
48709
|
+
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
48710
|
+
var AssistantInfo = function(props) {
|
|
48711
|
+
var $ = _c88(6);
|
|
48712
|
+
var assistantNameContext = useContext17(AssistantNameContext);
|
|
48713
|
+
var t0;
|
|
48714
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48715
|
+
t0 = /* @__PURE__ */ _jsx86(AssistantAvatar, {});
|
|
48716
|
+
$[0] = t0;
|
|
48717
|
+
} else {
|
|
48718
|
+
t0 = $[0];
|
|
48719
|
+
}
|
|
48720
|
+
var t1;
|
|
48721
|
+
if ($[1] !== assistantNameContext) {
|
|
48722
|
+
t1 = /* @__PURE__ */ _jsx86(Name, {
|
|
48723
|
+
children: assistantNameContext
|
|
48724
|
+
});
|
|
48725
|
+
$[1] = assistantNameContext;
|
|
48726
|
+
$[2] = t1;
|
|
48727
|
+
} else {
|
|
48728
|
+
t1 = $[2];
|
|
48729
|
+
}
|
|
48730
|
+
var t2;
|
|
48731
|
+
if ($[3] !== props || $[4] !== t1) {
|
|
48732
|
+
t2 = /* @__PURE__ */ _jsxs32(Flex32, _objectSpread47(_objectSpread47({
|
|
48733
|
+
ml: "-22.5px",
|
|
48734
|
+
gap: "3",
|
|
48735
|
+
pt: "5"
|
|
48736
|
+
}, props), {}, {
|
|
48737
|
+
children: [
|
|
48738
|
+
t0,
|
|
48739
|
+
t1
|
|
48740
|
+
]
|
|
48741
|
+
}));
|
|
48742
|
+
$[3] = props;
|
|
48743
|
+
$[4] = t1;
|
|
48744
|
+
$[5] = t2;
|
|
48745
|
+
} else {
|
|
48746
|
+
t2 = $[5];
|
|
48747
|
+
}
|
|
48748
|
+
return t2;
|
|
48488
48749
|
};
|
|
48750
|
+
var Visualization = function(props) {
|
|
48751
|
+
var $ = _c88(4);
|
|
48752
|
+
var t0;
|
|
48753
|
+
var t1;
|
|
48754
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48755
|
+
t0 = /* @__PURE__ */ _jsx86(AssistantVisualization, {});
|
|
48756
|
+
t1 = /* @__PURE__ */ _jsx86(AssistantInfo, {});
|
|
48757
|
+
$[0] = t0;
|
|
48758
|
+
$[1] = t1;
|
|
48759
|
+
} else {
|
|
48760
|
+
t0 = $[0];
|
|
48761
|
+
t1 = $[1];
|
|
48762
|
+
}
|
|
48763
|
+
var t2;
|
|
48764
|
+
if ($[2] !== props) {
|
|
48765
|
+
t2 = /* @__PURE__ */ _jsxs32(Root13, _objectSpread47(_objectSpread47({}, props), {}, {
|
|
48766
|
+
children: [
|
|
48767
|
+
t0,
|
|
48768
|
+
t1
|
|
48769
|
+
]
|
|
48770
|
+
}));
|
|
48771
|
+
$[2] = props;
|
|
48772
|
+
$[3] = t2;
|
|
48773
|
+
} else {
|
|
48774
|
+
t2 = $[3];
|
|
48775
|
+
}
|
|
48776
|
+
return t2;
|
|
48777
|
+
};
|
|
48778
|
+
Visualization.Root = Root13;
|
|
48779
|
+
Visualization.Provider = Provider6;
|
|
48780
|
+
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48781
|
+
Visualization.AssistantInfo = AssistantInfo;
|
|
48489
48782
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
48490
|
-
import { c as
|
|
48783
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
48491
48784
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
48492
|
-
import { c as
|
|
48785
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
48493
48786
|
import { Flex as Flex33, Text as Text9 } from "@radix-ui/themes";
|
|
48494
48787
|
import { jsx as _jsx87, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
48495
48788
|
var html = function(_ref) {
|
|
@@ -48499,7 +48792,7 @@ var html = function(_ref) {
|
|
|
48499
48792
|
}).join(""), "\n }");
|
|
48500
48793
|
};
|
|
48501
48794
|
var StatusMessages = function(t0) {
|
|
48502
|
-
var $ =
|
|
48795
|
+
var $ = _c89(9);
|
|
48503
48796
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
48504
48797
|
var t1;
|
|
48505
48798
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -48507,7 +48800,8 @@ var StatusMessages = function(t0) {
|
|
|
48507
48800
|
size: "2",
|
|
48508
48801
|
weight: "regular",
|
|
48509
48802
|
color: "gray",
|
|
48510
|
-
className: "status-messages-texts"
|
|
48803
|
+
className: "status-messages-texts",
|
|
48804
|
+
align: "center"
|
|
48511
48805
|
});
|
|
48512
48806
|
$[0] = t1;
|
|
48513
48807
|
} else {
|
|
@@ -48602,7 +48896,7 @@ function _toPrimitive48(t, r) {
|
|
|
48602
48896
|
return ("string" === r ? String : Number)(t);
|
|
48603
48897
|
}
|
|
48604
48898
|
var Status = function(props) {
|
|
48605
|
-
var $ =
|
|
48899
|
+
var $ = _c90(12);
|
|
48606
48900
|
var status = useStatus().status;
|
|
48607
48901
|
if (status === "recording") {
|
|
48608
48902
|
var _t;
|
|
@@ -48699,10 +48993,10 @@ var Status = function(props) {
|
|
|
48699
48993
|
return t1;
|
|
48700
48994
|
};
|
|
48701
48995
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
48702
|
-
import { c as
|
|
48996
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
48703
48997
|
import { Flex as Flex35 } from "@radix-ui/themes";
|
|
48704
48998
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
48705
|
-
import { c as
|
|
48999
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
48706
49000
|
import { jsx as _jsx89 } from "react/jsx-runtime";
|
|
48707
49001
|
function ownKeys49(e, r) {
|
|
48708
49002
|
var t = Object.keys(e);
|
|
@@ -48748,7 +49042,7 @@ function _toPrimitive49(t, r) {
|
|
|
48748
49042
|
return ("string" === r ? String : Number)(t);
|
|
48749
49043
|
}
|
|
48750
49044
|
var MicIcon = function(props) {
|
|
48751
|
-
var $ =
|
|
49045
|
+
var $ = _c91(3);
|
|
48752
49046
|
var t0;
|
|
48753
49047
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48754
49048
|
t0 = /* @__PURE__ */ _jsx89("path", {
|
|
@@ -48780,12 +49074,12 @@ var MicIcon = function(props) {
|
|
|
48780
49074
|
return t1;
|
|
48781
49075
|
};
|
|
48782
49076
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
48783
|
-
import { c as
|
|
49077
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
48784
49078
|
import { Flex as Flex34, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
48785
49079
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
48786
49080
|
import { jsx as _jsx90, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
48787
49081
|
var ActionButton = function() {
|
|
48788
|
-
var $ =
|
|
49082
|
+
var $ = _c92(27);
|
|
48789
49083
|
var status = useStatus().status;
|
|
48790
49084
|
var audioThreadContext = useAudioThreadContext();
|
|
48791
49085
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -49023,7 +49317,7 @@ function _toPrimitive50(t, r) {
|
|
|
49023
49317
|
return ("string" === r ? String : Number)(t);
|
|
49024
49318
|
}
|
|
49025
49319
|
var Form = function(props) {
|
|
49026
|
-
var $ =
|
|
49320
|
+
var $ = _c93(17);
|
|
49027
49321
|
var status = useStatus().status;
|
|
49028
49322
|
var audioThreadContext = useAudioThreadContext();
|
|
49029
49323
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
@@ -49173,7 +49467,7 @@ function _toPrimitive51(t, r) {
|
|
|
49173
49467
|
return ("string" === r ? String : Number)(t);
|
|
49174
49468
|
}
|
|
49175
49469
|
var AudioThread = function(props) {
|
|
49176
|
-
var $ =
|
|
49470
|
+
var $ = _c94(5);
|
|
49177
49471
|
var t0;
|
|
49178
49472
|
var t1;
|
|
49179
49473
|
var t2;
|
|
@@ -49255,7 +49549,7 @@ function _toPrimitive52(t, r) {
|
|
|
49255
49549
|
return ("string" === r ? String : Number)(t);
|
|
49256
49550
|
}
|
|
49257
49551
|
var AudioThreadDialog = function(props) {
|
|
49258
|
-
var $ =
|
|
49552
|
+
var $ = _c95(4);
|
|
49259
49553
|
var t0;
|
|
49260
49554
|
var t1;
|
|
49261
49555
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49777,10 +50071,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
49777
50071
|
]);
|
|
49778
50072
|
};
|
|
49779
50073
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
49780
|
-
import { c as
|
|
50074
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
49781
50075
|
import { jsx as _jsx94 } from "react/jsx-runtime";
|
|
49782
50076
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
49783
|
-
var $ =
|
|
50077
|
+
var $ = _c96(5);
|
|
49784
50078
|
var children = t0.children;
|
|
49785
50079
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
49786
50080
|
var t1;
|
|
@@ -49808,22 +50102,22 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
49808
50102
|
return t2;
|
|
49809
50103
|
};
|
|
49810
50104
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
49811
|
-
import { c as
|
|
50105
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
49812
50106
|
import { useMemo as useMemo21 } from "react";
|
|
49813
50107
|
import { jsx as _jsx95 } from "react/jsx-runtime";
|
|
49814
|
-
var
|
|
50108
|
+
var _excluded7 = [
|
|
49815
50109
|
"children"
|
|
49816
50110
|
];
|
|
49817
|
-
function
|
|
50111
|
+
function _objectWithoutProperties7(e, t) {
|
|
49818
50112
|
if (null == e) return {};
|
|
49819
|
-
var o, r, i =
|
|
50113
|
+
var o, r, i = _objectWithoutPropertiesLoose7(e, t);
|
|
49820
50114
|
if (Object.getOwnPropertySymbols) {
|
|
49821
50115
|
var n = Object.getOwnPropertySymbols(e);
|
|
49822
50116
|
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
49823
50117
|
}
|
|
49824
50118
|
return i;
|
|
49825
50119
|
}
|
|
49826
|
-
function
|
|
50120
|
+
function _objectWithoutPropertiesLoose7(r, e) {
|
|
49827
50121
|
if (null == r) return {};
|
|
49828
50122
|
var t = {};
|
|
49829
50123
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -49833,13 +50127,13 @@ function _objectWithoutPropertiesLoose6(r, e) {
|
|
|
49833
50127
|
return t;
|
|
49834
50128
|
}
|
|
49835
50129
|
var MarkdownProvider = function(t0) {
|
|
49836
|
-
var $ =
|
|
50130
|
+
var $ = _c97(9);
|
|
49837
50131
|
var children;
|
|
49838
50132
|
var rest;
|
|
49839
50133
|
if ($[0] !== t0) {
|
|
49840
50134
|
var _t = t0;
|
|
49841
50135
|
children = _t.children;
|
|
49842
|
-
rest =
|
|
50136
|
+
rest = _objectWithoutProperties7(_t, _excluded7);
|
|
49843
50137
|
_t;
|
|
49844
50138
|
$[0] = t0;
|
|
49845
50139
|
$[1] = children;
|
|
@@ -49876,18 +50170,18 @@ var MarkdownProvider = function(t0) {
|
|
|
49876
50170
|
return t3;
|
|
49877
50171
|
};
|
|
49878
50172
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
49879
|
-
import { c as
|
|
50173
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
49880
50174
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
49881
|
-
import { c as
|
|
50175
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
49882
50176
|
import { useState as useState13 } from "react";
|
|
49883
50177
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
49884
50178
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
49885
50179
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
49886
|
-
import { c as
|
|
50180
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
49887
50181
|
import { Flex as Flex36, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
49888
50182
|
import { jsx as _jsx96 } from "react/jsx-runtime";
|
|
49889
50183
|
var Content9 = function(t0) {
|
|
49890
|
-
var $ =
|
|
50184
|
+
var $ = _c98(5);
|
|
49891
50185
|
var fileId = t0.fileId;
|
|
49892
50186
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
49893
50187
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -49953,7 +50247,7 @@ var Content9 = function(t0) {
|
|
|
49953
50247
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
49954
50248
|
import { jsx as _jsx97, jsxs as _jsxs38, Fragment as _Fragment5 } from "react/jsx-runtime";
|
|
49955
50249
|
var FileCitation = function(t0) {
|
|
49956
|
-
var $ =
|
|
50250
|
+
var $ = _c99(18);
|
|
49957
50251
|
var annotation = t0.annotation;
|
|
49958
50252
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
49959
50253
|
var t1;
|
|
@@ -50080,19 +50374,19 @@ var FileCitation = function(t0) {
|
|
|
50080
50374
|
};
|
|
50081
50375
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50082
50376
|
import { jsx as _jsx98 } from "react/jsx-runtime";
|
|
50083
|
-
var
|
|
50377
|
+
var _excluded8 = [
|
|
50084
50378
|
"children"
|
|
50085
50379
|
];
|
|
50086
|
-
function
|
|
50380
|
+
function _objectWithoutProperties8(e, t) {
|
|
50087
50381
|
if (null == e) return {};
|
|
50088
|
-
var o, r, i =
|
|
50382
|
+
var o, r, i = _objectWithoutPropertiesLoose8(e, t);
|
|
50089
50383
|
if (Object.getOwnPropertySymbols) {
|
|
50090
50384
|
var n = Object.getOwnPropertySymbols(e);
|
|
50091
50385
|
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
50092
50386
|
}
|
|
50093
50387
|
return i;
|
|
50094
50388
|
}
|
|
50095
|
-
function
|
|
50389
|
+
function _objectWithoutPropertiesLoose8(r, e) {
|
|
50096
50390
|
if (null == r) return {};
|
|
50097
50391
|
var t = {};
|
|
50098
50392
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -50102,13 +50396,13 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50102
50396
|
return t;
|
|
50103
50397
|
}
|
|
50104
50398
|
var SourceAnnotation = function(t0) {
|
|
50105
|
-
var $ =
|
|
50399
|
+
var $ = _c100(10);
|
|
50106
50400
|
var children;
|
|
50107
50401
|
var rest;
|
|
50108
50402
|
if ($[0] !== t0) {
|
|
50109
50403
|
var _t = t0;
|
|
50110
50404
|
children = _t.children;
|
|
50111
|
-
rest =
|
|
50405
|
+
rest = _objectWithoutProperties8(_t, _excluded8);
|
|
50112
50406
|
_t;
|
|
50113
50407
|
$[0] = t0;
|
|
50114
50408
|
$[1] = children;
|
|
@@ -50159,7 +50453,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50159
50453
|
return null;
|
|
50160
50454
|
};
|
|
50161
50455
|
// src/components/avatars/Avatar.tsx
|
|
50162
|
-
import { c as
|
|
50456
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50163
50457
|
// src/lib/enums/index.ts
|
|
50164
50458
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
50165
50459
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -50184,7 +50478,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
50184
50478
|
// src/components/avatars/Avatar.tsx
|
|
50185
50479
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
50186
50480
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50187
|
-
import { c as
|
|
50481
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50188
50482
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
50189
50483
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
50190
50484
|
var width = function(_ref) {
|
|
@@ -50238,7 +50532,7 @@ var optimizedSrc = function(_ref) {
|
|
|
50238
50532
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50239
50533
|
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50240
50534
|
var ImageAvatar = function(t0) {
|
|
50241
|
-
var $ =
|
|
50535
|
+
var $ = _c101(9);
|
|
50242
50536
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50243
50537
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50244
50538
|
var t1;
|
|
@@ -50275,7 +50569,7 @@ var ImageAvatar = function(t0) {
|
|
|
50275
50569
|
return t2;
|
|
50276
50570
|
};
|
|
50277
50571
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50278
|
-
import { c as
|
|
50572
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50279
50573
|
import { useMemo as useMemo22 } from "react";
|
|
50280
50574
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
50281
50575
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -50285,7 +50579,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
|
|
|
50285
50579
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50286
50580
|
import { jsx as _jsx100 } from "react/jsx-runtime";
|
|
50287
50581
|
var IconAvatar = function(t0) {
|
|
50288
|
-
var $ =
|
|
50582
|
+
var $ = _c102(7);
|
|
50289
50583
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50290
50584
|
var t1;
|
|
50291
50585
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
@@ -50319,7 +50613,7 @@ var IconAvatar = function(t0) {
|
|
|
50319
50613
|
// src/components/avatars/Avatar.tsx
|
|
50320
50614
|
import { jsx as _jsx101 } from "react/jsx-runtime";
|
|
50321
50615
|
var Avatar6 = function(t0) {
|
|
50322
|
-
var $ =
|
|
50616
|
+
var $ = _c103(14);
|
|
50323
50617
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
50324
50618
|
var size = t1 === void 0 ? "1" : t1;
|
|
50325
50619
|
if (avatar) {
|
|
@@ -50380,7 +50674,7 @@ var Avatar6 = function(t0) {
|
|
|
50380
50674
|
return t2;
|
|
50381
50675
|
};
|
|
50382
50676
|
// src/components/components/ComponentsProvider.tsx
|
|
50383
|
-
import { c as
|
|
50677
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50384
50678
|
import { useMemo as useMemo23 } from "react";
|
|
50385
50679
|
// src/hooks/components/useComponents.ts
|
|
50386
50680
|
import { useContext as useContext18 } from "react";
|
|
@@ -50389,19 +50683,19 @@ var useComponents = function() {
|
|
|
50389
50683
|
};
|
|
50390
50684
|
// src/components/components/ComponentsProvider.tsx
|
|
50391
50685
|
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
50392
|
-
var
|
|
50686
|
+
var _excluded9 = [
|
|
50393
50687
|
"children"
|
|
50394
50688
|
];
|
|
50395
|
-
function
|
|
50689
|
+
function _objectWithoutProperties9(e, t) {
|
|
50396
50690
|
if (null == e) return {};
|
|
50397
|
-
var o, r, i =
|
|
50691
|
+
var o, r, i = _objectWithoutPropertiesLoose9(e, t);
|
|
50398
50692
|
if (Object.getOwnPropertySymbols) {
|
|
50399
50693
|
var n = Object.getOwnPropertySymbols(e);
|
|
50400
50694
|
for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
50401
50695
|
}
|
|
50402
50696
|
return i;
|
|
50403
50697
|
}
|
|
50404
|
-
function
|
|
50698
|
+
function _objectWithoutPropertiesLoose9(r, e) {
|
|
50405
50699
|
if (null == r) return {};
|
|
50406
50700
|
var t = {};
|
|
50407
50701
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -50411,13 +50705,13 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
50411
50705
|
return t;
|
|
50412
50706
|
}
|
|
50413
50707
|
var ComponentsProvider = function(t0) {
|
|
50414
|
-
var $ =
|
|
50708
|
+
var $ = _c104(9);
|
|
50415
50709
|
var children;
|
|
50416
50710
|
var rest;
|
|
50417
50711
|
if ($[0] !== t0) {
|
|
50418
50712
|
var _t = t0;
|
|
50419
50713
|
children = _t.children;
|
|
50420
|
-
rest =
|
|
50714
|
+
rest = _objectWithoutProperties9(_t, _excluded9);
|
|
50421
50715
|
_t;
|
|
50422
50716
|
$[0] = t0;
|
|
50423
50717
|
$[1] = children;
|
|
@@ -50454,11 +50748,11 @@ var ComponentsProvider = function(t0) {
|
|
|
50454
50748
|
return t3;
|
|
50455
50749
|
};
|
|
50456
50750
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
50457
|
-
import { c as
|
|
50751
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50458
50752
|
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
50459
50753
|
var AssistantProvider = function(t0) {
|
|
50460
50754
|
var _assistant$name;
|
|
50461
|
-
var $ =
|
|
50755
|
+
var $ = _c105(10);
|
|
50462
50756
|
var children = t0.children;
|
|
50463
50757
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50464
50758
|
var t1;
|