@superinterface/react 3.19.1 → 3.20.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 +563 -595
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +475 -507
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -37811,27 +37811,11 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37811
37811
|
});
|
|
37812
37812
|
};
|
|
37813
37813
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37814
|
-
import { Flex as
|
|
37814
|
+
import { Flex as Flex19 } from "@radix-ui/themes";
|
|
37815
37815
|
// src/components/threads/Thread/Message/index.tsx
|
|
37816
37816
|
import { c as _c26 } from "react-compiler-runtime";
|
|
37817
37817
|
import { useMemo as useMemo10 } from "react";
|
|
37818
|
-
import { isEmpty as isEmpty2 } from "radash";
|
|
37819
37818
|
import { Box as Box9 } from "@radix-ui/themes";
|
|
37820
|
-
// src/components/skeletons/StartingContentSkeleton/index.tsx
|
|
37821
|
-
import { Skeleton } from "@radix-ui/themes";
|
|
37822
|
-
import { jsx as _jsx2 } from "react/jsx-runtime";
|
|
37823
|
-
var StartingContentSkeleton = function() {
|
|
37824
|
-
return /* @__PURE__ */ _jsx2(Skeleton, {
|
|
37825
|
-
loading: true,
|
|
37826
|
-
mt: "1",
|
|
37827
|
-
height: "var(--space-4)",
|
|
37828
|
-
width: "var(--space-4)",
|
|
37829
|
-
style: {
|
|
37830
|
-
borderRadius: "var(--radius-6)",
|
|
37831
|
-
flexShrink: 0
|
|
37832
|
-
}
|
|
37833
|
-
});
|
|
37834
|
-
};
|
|
37835
37819
|
// src/components/runSteps/RunSteps/index.tsx
|
|
37836
37820
|
import { c as _c8 } from "react-compiler-runtime";
|
|
37837
37821
|
import { Flex as Flex5 } from "@radix-ui/themes";
|
|
@@ -37853,7 +37837,7 @@ import { useContext as useContext2 } from "react";
|
|
|
37853
37837
|
import { createContext as createContext2 } from "react";
|
|
37854
37838
|
var FunctionComponentsContext = /* @__PURE__ */ createContext2({});
|
|
37855
37839
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/index.tsx
|
|
37856
|
-
import { jsx as
|
|
37840
|
+
import { jsx as _jsx2 } from "react/jsx-runtime";
|
|
37857
37841
|
var Fn = function(t0) {
|
|
37858
37842
|
var $ = _c(4);
|
|
37859
37843
|
var fn = t0.fn, runStep = t0.runStep;
|
|
@@ -37862,7 +37846,7 @@ var Fn = function(t0) {
|
|
|
37862
37846
|
var Component2 = functionComponentsContext[fn.name] || componentsContext.components.Function;
|
|
37863
37847
|
var t1;
|
|
37864
37848
|
if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep) {
|
|
37865
|
-
t1 = /* @__PURE__ */
|
|
37849
|
+
t1 = /* @__PURE__ */ _jsx2(Component2, {
|
|
37866
37850
|
fn: fn,
|
|
37867
37851
|
runStep: runStep
|
|
37868
37852
|
});
|
|
@@ -37879,13 +37863,13 @@ var Fn = function(t0) {
|
|
|
37879
37863
|
import { Popover, Flex as Flex2 } from "@radix-ui/themes";
|
|
37880
37864
|
// src/components/toolCalls/ToolCallBase/index.tsx
|
|
37881
37865
|
import { Flex, Button } from "@radix-ui/themes";
|
|
37882
|
-
import { jsx as
|
|
37866
|
+
import { jsx as _jsx3 } from "react/jsx-runtime";
|
|
37883
37867
|
var ToolCallBase = function(_ref) {
|
|
37884
37868
|
var children = _ref.children;
|
|
37885
|
-
return /* @__PURE__ */
|
|
37869
|
+
return /* @__PURE__ */ _jsx3(Flex, {
|
|
37886
37870
|
py: "1",
|
|
37887
37871
|
ml: "-2",
|
|
37888
|
-
children: /* @__PURE__ */
|
|
37872
|
+
children: /* @__PURE__ */ _jsx3(Button, {
|
|
37889
37873
|
size: "1",
|
|
37890
37874
|
color: "gold",
|
|
37891
37875
|
variant: "outline",
|
|
@@ -37898,10 +37882,10 @@ var ToolCallBase = function(_ref) {
|
|
|
37898
37882
|
};
|
|
37899
37883
|
// src/components/toolCalls/ToolCallBase/ToolCallTitle.tsx
|
|
37900
37884
|
import { Text } from "@radix-ui/themes";
|
|
37901
|
-
import { jsx as
|
|
37885
|
+
import { jsx as _jsx4 } from "react/jsx-runtime";
|
|
37902
37886
|
var ToolCallTitle = function(_ref) {
|
|
37903
37887
|
var children = _ref.children;
|
|
37904
|
-
return /* @__PURE__ */
|
|
37888
|
+
return /* @__PURE__ */ _jsx4(Text, {
|
|
37905
37889
|
weight: "regular",
|
|
37906
37890
|
children: children
|
|
37907
37891
|
});
|
|
@@ -37909,14 +37893,14 @@ var ToolCallTitle = function(_ref) {
|
|
|
37909
37893
|
// src/components/toolCalls/ToolCallBase/ToolCallIcon.tsx
|
|
37910
37894
|
import { c as _c2 } from "react-compiler-runtime";
|
|
37911
37895
|
import { CircleIcon, CircleBackslashIcon, CheckCircledIcon } from "@radix-ui/react-icons";
|
|
37912
|
-
import { jsx as
|
|
37896
|
+
import { jsx as _jsx5 } from "react/jsx-runtime";
|
|
37913
37897
|
var ToolCallIcon = function(t0) {
|
|
37914
37898
|
var $ = _c2(3);
|
|
37915
37899
|
var runStep = t0.runStep;
|
|
37916
37900
|
if (runStep.completed_at) {
|
|
37917
37901
|
var t1;
|
|
37918
37902
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
37919
|
-
t1 = /* @__PURE__ */
|
|
37903
|
+
t1 = /* @__PURE__ */ _jsx5(CheckCircledIcon, {});
|
|
37920
37904
|
$[0] = t1;
|
|
37921
37905
|
} else {
|
|
37922
37906
|
t1 = $[0];
|
|
@@ -37926,7 +37910,7 @@ var ToolCallIcon = function(t0) {
|
|
|
37926
37910
|
if (runStep.cancelled_at || runStep.failed_at || runStep.status === "expired") {
|
|
37927
37911
|
var _t;
|
|
37928
37912
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
37929
|
-
_t = /* @__PURE__ */
|
|
37913
|
+
_t = /* @__PURE__ */ _jsx5(CircleBackslashIcon, {});
|
|
37930
37914
|
$[1] = _t;
|
|
37931
37915
|
} else {
|
|
37932
37916
|
_t = $[1];
|
|
@@ -37935,7 +37919,7 @@ var ToolCallIcon = function(t0) {
|
|
|
37935
37919
|
} else {
|
|
37936
37920
|
var _t2;
|
|
37937
37921
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
37938
|
-
_t2 = /* @__PURE__ */
|
|
37922
|
+
_t2 = /* @__PURE__ */ _jsx5(CircleIcon, {});
|
|
37939
37923
|
$[2] = _t2;
|
|
37940
37924
|
} else {
|
|
37941
37925
|
_t2 = $[2];
|
|
@@ -37947,7 +37931,7 @@ var ToolCallIcon = function(t0) {
|
|
|
37947
37931
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/Content.tsx
|
|
37948
37932
|
import { c as _c3 } from "react-compiler-runtime";
|
|
37949
37933
|
import { Code, Box } from "@radix-ui/themes";
|
|
37950
|
-
import { jsx as
|
|
37934
|
+
import { jsx as _jsx6, jsxs as _jsxs } from "react/jsx-runtime";
|
|
37951
37935
|
var Content = function(t0) {
|
|
37952
37936
|
var $ = _c3(10);
|
|
37953
37937
|
var codeInterpreter = t0.codeInterpreter;
|
|
@@ -37966,7 +37950,7 @@ var Content = function(t0) {
|
|
|
37966
37950
|
}
|
|
37967
37951
|
var t2;
|
|
37968
37952
|
if ($[1] !== codeInterpreter.input) {
|
|
37969
|
-
t2 = /* @__PURE__ */
|
|
37953
|
+
t2 = /* @__PURE__ */ _jsx6(Box, {
|
|
37970
37954
|
children: codeInterpreter.input
|
|
37971
37955
|
});
|
|
37972
37956
|
$[1] = codeInterpreter.input;
|
|
@@ -37984,7 +37968,7 @@ var Content = function(t0) {
|
|
|
37984
37968
|
}
|
|
37985
37969
|
var t4;
|
|
37986
37970
|
if ($[5] !== t3) {
|
|
37987
|
-
t4 = /* @__PURE__ */
|
|
37971
|
+
t4 = /* @__PURE__ */ _jsx6(Box, {
|
|
37988
37972
|
children: t3
|
|
37989
37973
|
});
|
|
37990
37974
|
$[5] = t3;
|
|
@@ -38012,28 +37996,28 @@ var Content = function(t0) {
|
|
|
38012
37996
|
return t5;
|
|
38013
37997
|
};
|
|
38014
37998
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
|
|
38015
|
-
import { jsx as
|
|
37999
|
+
import { jsx as _jsx7, jsxs as _jsxs2 } from "react/jsx-runtime";
|
|
38016
38000
|
var CodeInterpreter = function(_ref) {
|
|
38017
38001
|
var codeInterpreter = _ref.codeInterpreter, runStep = _ref.runStep;
|
|
38018
38002
|
return /* @__PURE__ */ _jsxs2(Popover.Root, {
|
|
38019
38003
|
children: [
|
|
38020
|
-
/* @__PURE__ */
|
|
38021
|
-
children: /* @__PURE__ */
|
|
38004
|
+
/* @__PURE__ */ _jsx7(Popover.Trigger, {
|
|
38005
|
+
children: /* @__PURE__ */ _jsx7(Flex2, {
|
|
38022
38006
|
children: /* @__PURE__ */ _jsxs2(ToolCallBase, {
|
|
38023
38007
|
children: [
|
|
38024
|
-
/* @__PURE__ */
|
|
38008
|
+
/* @__PURE__ */ _jsx7(ToolCallIcon, {
|
|
38025
38009
|
runStep: runStep
|
|
38026
38010
|
}),
|
|
38027
|
-
/* @__PURE__ */
|
|
38011
|
+
/* @__PURE__ */ _jsx7(ToolCallTitle, {
|
|
38028
38012
|
children: "Using code interpreter"
|
|
38029
38013
|
})
|
|
38030
38014
|
]
|
|
38031
38015
|
})
|
|
38032
38016
|
})
|
|
38033
38017
|
}),
|
|
38034
|
-
/* @__PURE__ */
|
|
38018
|
+
/* @__PURE__ */ _jsx7(Popover.Content, {
|
|
38035
38019
|
maxHeight: "200px",
|
|
38036
|
-
children: /* @__PURE__ */
|
|
38020
|
+
children: /* @__PURE__ */ _jsx7(Content, {
|
|
38037
38021
|
codeInterpreter: codeInterpreter
|
|
38038
38022
|
})
|
|
38039
38023
|
})
|
|
@@ -38041,27 +38025,27 @@ var CodeInterpreter = function(_ref) {
|
|
|
38041
38025
|
});
|
|
38042
38026
|
};
|
|
38043
38027
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/FileSearch.tsx
|
|
38044
|
-
import { jsx as
|
|
38028
|
+
import { jsx as _jsx8, jsxs as _jsxs3 } from "react/jsx-runtime";
|
|
38045
38029
|
var FileSearch = function(_ref) {
|
|
38046
38030
|
var runStep = _ref.runStep, toolCall = _ref.toolCall;
|
|
38047
38031
|
return /* @__PURE__ */ _jsxs3(ToolCallBase, {
|
|
38048
38032
|
children: [
|
|
38049
|
-
/* @__PURE__ */
|
|
38033
|
+
/* @__PURE__ */ _jsx8(ToolCallIcon, {
|
|
38050
38034
|
runStep: runStep
|
|
38051
38035
|
}),
|
|
38052
|
-
/* @__PURE__ */
|
|
38036
|
+
/* @__PURE__ */ _jsx8(ToolCallTitle, {
|
|
38053
38037
|
children: "Searching files"
|
|
38054
38038
|
})
|
|
38055
38039
|
]
|
|
38056
38040
|
});
|
|
38057
38041
|
};
|
|
38058
38042
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/Fallback.tsx
|
|
38059
|
-
import { jsx as
|
|
38043
|
+
import { jsx as _jsx9, jsxs as _jsxs4 } from "react/jsx-runtime";
|
|
38060
38044
|
var Fallback = function(_ref) {
|
|
38061
38045
|
var runStep = _ref.runStep, toolCall = _ref.toolCall;
|
|
38062
38046
|
return /* @__PURE__ */ _jsxs4(ToolCallBase, {
|
|
38063
38047
|
children: [
|
|
38064
|
-
/* @__PURE__ */
|
|
38048
|
+
/* @__PURE__ */ _jsx9(ToolCallIcon, {
|
|
38065
38049
|
runStep: runStep
|
|
38066
38050
|
}),
|
|
38067
38051
|
/* @__PURE__ */ _jsxs4(ToolCallTitle, {
|
|
@@ -38074,14 +38058,14 @@ var Fallback = function(_ref) {
|
|
|
38074
38058
|
});
|
|
38075
38059
|
};
|
|
38076
38060
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
|
|
38077
|
-
import { jsx as
|
|
38061
|
+
import { jsx as _jsx10 } from "react/jsx-runtime";
|
|
38078
38062
|
var ToolCall = function(t0) {
|
|
38079
38063
|
var $ = _c4(12);
|
|
38080
38064
|
var toolCall = t0.toolCall, runStep = t0.runStep;
|
|
38081
38065
|
if (toolCall.type === "function") {
|
|
38082
38066
|
var _t;
|
|
38083
38067
|
if ($[0] !== runStep || $[1] !== toolCall.function) {
|
|
38084
|
-
_t = /* @__PURE__ */
|
|
38068
|
+
_t = /* @__PURE__ */ _jsx10(Fn, {
|
|
38085
38069
|
fn: toolCall.function,
|
|
38086
38070
|
runStep: runStep
|
|
38087
38071
|
});
|
|
@@ -38096,7 +38080,7 @@ var ToolCall = function(t0) {
|
|
|
38096
38080
|
if (toolCall.type === "code_interpreter") {
|
|
38097
38081
|
var _t2;
|
|
38098
38082
|
if ($[3] !== runStep || $[4] !== toolCall.code_interpreter) {
|
|
38099
|
-
_t2 = /* @__PURE__ */
|
|
38083
|
+
_t2 = /* @__PURE__ */ _jsx10(CodeInterpreter, {
|
|
38100
38084
|
codeInterpreter: toolCall.code_interpreter,
|
|
38101
38085
|
runStep: runStep
|
|
38102
38086
|
});
|
|
@@ -38111,7 +38095,7 @@ var ToolCall = function(t0) {
|
|
|
38111
38095
|
if (toolCall.type === "file_search") {
|
|
38112
38096
|
var _t3;
|
|
38113
38097
|
if ($[6] !== runStep || $[7] !== toolCall) {
|
|
38114
|
-
_t3 = /* @__PURE__ */
|
|
38098
|
+
_t3 = /* @__PURE__ */ _jsx10(FileSearch, {
|
|
38115
38099
|
toolCall: toolCall,
|
|
38116
38100
|
runStep: runStep
|
|
38117
38101
|
});
|
|
@@ -38125,7 +38109,7 @@ var ToolCall = function(t0) {
|
|
|
38125
38109
|
}
|
|
38126
38110
|
var t1;
|
|
38127
38111
|
if ($[9] !== runStep || $[10] !== toolCall) {
|
|
38128
|
-
t1 = /* @__PURE__ */
|
|
38112
|
+
t1 = /* @__PURE__ */ _jsx10(Fallback, {
|
|
38129
38113
|
toolCall: toolCall,
|
|
38130
38114
|
runStep: runStep
|
|
38131
38115
|
});
|
|
@@ -38138,10 +38122,10 @@ var ToolCall = function(t0) {
|
|
|
38138
38122
|
return t1;
|
|
38139
38123
|
};
|
|
38140
38124
|
// src/components/runSteps/RunStep/ToolCalls/index.tsx
|
|
38141
|
-
import { jsx as
|
|
38125
|
+
import { jsx as _jsx11, jsxs as _jsxs5 } from "react/jsx-runtime";
|
|
38142
38126
|
var Root = function(_ref) {
|
|
38143
38127
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
38144
|
-
return /* @__PURE__ */
|
|
38128
|
+
return /* @__PURE__ */ _jsx11(Flex3, {
|
|
38145
38129
|
direction: "column",
|
|
38146
38130
|
className: className,
|
|
38147
38131
|
style: style,
|
|
@@ -38154,7 +38138,7 @@ var StartingToolCalls = function() {
|
|
|
38154
38138
|
var StartingToolCalls3 = componentsContext.components.StartingToolCalls;
|
|
38155
38139
|
var t0;
|
|
38156
38140
|
if ($[0] !== StartingToolCalls3) {
|
|
38157
|
-
t0 = /* @__PURE__ */
|
|
38141
|
+
t0 = /* @__PURE__ */ _jsx11(StartingToolCalls3, {});
|
|
38158
38142
|
$[0] = StartingToolCalls3;
|
|
38159
38143
|
$[1] = t0;
|
|
38160
38144
|
} else {
|
|
@@ -38168,9 +38152,9 @@ var ToolCalls = function(_ref2) {
|
|
|
38168
38152
|
className: className,
|
|
38169
38153
|
style: style,
|
|
38170
38154
|
children: [
|
|
38171
|
-
!stepDetails.tool_calls.length && /* @__PURE__ */
|
|
38155
|
+
!stepDetails.tool_calls.length && /* @__PURE__ */ _jsx11(StartingToolCalls, {}),
|
|
38172
38156
|
stepDetails.tool_calls.map(function(toolCall) {
|
|
38173
|
-
return /* @__PURE__ */
|
|
38157
|
+
return /* @__PURE__ */ _jsx11(ToolCall, {
|
|
38174
38158
|
toolCall: toolCall,
|
|
38175
38159
|
runStep: runStep
|
|
38176
38160
|
}, toolCall.id);
|
|
@@ -38182,14 +38166,14 @@ ToolCalls.Root = Root;
|
|
|
38182
38166
|
ToolCalls.StartingToolCalls = StartingToolCalls;
|
|
38183
38167
|
ToolCalls.ToolCall = ToolCall;
|
|
38184
38168
|
// src/components/runSteps/RunStep/index.tsx
|
|
38185
|
-
import { jsx as
|
|
38169
|
+
import { jsx as _jsx12 } from "react/jsx-runtime";
|
|
38186
38170
|
var RunStep = function(t0) {
|
|
38187
38171
|
var $ = _c6(4);
|
|
38188
38172
|
var runStep = t0.runStep, className = t0.className, style = t0.style;
|
|
38189
38173
|
if (runStep.step_details.type === "tool_calls") {
|
|
38190
38174
|
var t1;
|
|
38191
38175
|
if ($[0] !== className || $[1] !== runStep || $[2] !== style) {
|
|
38192
|
-
t1 = /* @__PURE__ */
|
|
38176
|
+
t1 = /* @__PURE__ */ _jsx12(ToolCalls, {
|
|
38193
38177
|
className: className,
|
|
38194
38178
|
style: style,
|
|
38195
38179
|
stepDetails: runStep.step_details,
|
|
@@ -38230,7 +38214,7 @@ var formattedJsonOrRaw = function(_ref) {
|
|
|
38230
38214
|
}
|
|
38231
38215
|
};
|
|
38232
38216
|
// src/components/functions/FunctionBase/Content/index.tsx
|
|
38233
|
-
import { jsx as
|
|
38217
|
+
import { jsx as _jsx13, jsxs as _jsxs6 } from "react/jsx-runtime";
|
|
38234
38218
|
var Content2 = function(t0) {
|
|
38235
38219
|
var $ = _c7(12);
|
|
38236
38220
|
var fn = t0.fn;
|
|
@@ -38272,7 +38256,7 @@ var Content2 = function(t0) {
|
|
|
38272
38256
|
}
|
|
38273
38257
|
var t6;
|
|
38274
38258
|
if ($[5] !== args) {
|
|
38275
|
-
t6 = args && /* @__PURE__ */
|
|
38259
|
+
t6 = args && /* @__PURE__ */ _jsx13(Box2, {
|
|
38276
38260
|
children: args
|
|
38277
38261
|
});
|
|
38278
38262
|
$[5] = args;
|
|
@@ -38282,7 +38266,7 @@ var Content2 = function(t0) {
|
|
|
38282
38266
|
}
|
|
38283
38267
|
var t7;
|
|
38284
38268
|
if ($[7] !== output) {
|
|
38285
|
-
t7 = output && /* @__PURE__ */
|
|
38269
|
+
t7 = output && /* @__PURE__ */ _jsx13(Box2, {
|
|
38286
38270
|
children: output
|
|
38287
38271
|
});
|
|
38288
38272
|
$[7] = output;
|
|
@@ -38310,30 +38294,30 @@ var Content2 = function(t0) {
|
|
|
38310
38294
|
return t8;
|
|
38311
38295
|
};
|
|
38312
38296
|
// src/components/functions/FunctionBase/index.tsx
|
|
38313
|
-
import { jsx as
|
|
38297
|
+
import { jsx as _jsx14, jsxs as _jsxs7 } from "react/jsx-runtime";
|
|
38314
38298
|
var FunctionBase = function(_ref) {
|
|
38315
38299
|
var fn = _ref.fn, runStep = _ref.runStep, title2 = _ref.title;
|
|
38316
38300
|
return /* @__PURE__ */ _jsxs7(Popover2.Root, {
|
|
38317
38301
|
children: [
|
|
38318
|
-
/* @__PURE__ */
|
|
38319
|
-
children: /* @__PURE__ */
|
|
38302
|
+
/* @__PURE__ */ _jsx14(Popover2.Trigger, {
|
|
38303
|
+
children: /* @__PURE__ */ _jsx14(Flex4, {
|
|
38320
38304
|
children: /* @__PURE__ */ _jsxs7(ToolCallBase, {
|
|
38321
38305
|
children: [
|
|
38322
|
-
/* @__PURE__ */
|
|
38306
|
+
/* @__PURE__ */ _jsx14(ToolCallIcon, {
|
|
38323
38307
|
runStep: runStep
|
|
38324
38308
|
}),
|
|
38325
|
-
/* @__PURE__ */
|
|
38309
|
+
/* @__PURE__ */ _jsx14(ToolCallTitle, {
|
|
38326
38310
|
children: title2
|
|
38327
38311
|
})
|
|
38328
38312
|
]
|
|
38329
38313
|
})
|
|
38330
38314
|
})
|
|
38331
38315
|
}),
|
|
38332
|
-
/* @__PURE__ */
|
|
38316
|
+
/* @__PURE__ */ _jsx14(Popover2.Content, {
|
|
38333
38317
|
style: {
|
|
38334
38318
|
maxHeight: "200px"
|
|
38335
38319
|
},
|
|
38336
|
-
children: /* @__PURE__ */
|
|
38320
|
+
children: /* @__PURE__ */ _jsx14(Content2, {
|
|
38337
38321
|
fn: fn
|
|
38338
38322
|
})
|
|
38339
38323
|
})
|
|
@@ -38352,10 +38336,10 @@ var title = function(_ref) {
|
|
|
38352
38336
|
}
|
|
38353
38337
|
};
|
|
38354
38338
|
// src/components/functions/Function/index.tsx
|
|
38355
|
-
import { jsx as
|
|
38339
|
+
import { jsx as _jsx15 } from "react/jsx-runtime";
|
|
38356
38340
|
var Function2 = function(_ref) {
|
|
38357
38341
|
var fn = _ref.fn, runStep = _ref.runStep;
|
|
38358
|
-
return /* @__PURE__ */
|
|
38342
|
+
return /* @__PURE__ */ _jsx15(FunctionBase, {
|
|
38359
38343
|
fn: fn,
|
|
38360
38344
|
runStep: runStep,
|
|
38361
38345
|
title: title({
|
|
@@ -38367,23 +38351,23 @@ var Function2 = function(_ref) {
|
|
|
38367
38351
|
// src/components/toolCalls/StartingToolCalls/index.tsx
|
|
38368
38352
|
import { Popover as Popover3, Text as Text2 } from "@radix-ui/themes";
|
|
38369
38353
|
import { CircleIcon as CircleIcon2 } from "@radix-ui/react-icons";
|
|
38370
|
-
import { jsx as
|
|
38354
|
+
import { jsx as _jsx16, jsxs as _jsxs8 } from "react/jsx-runtime";
|
|
38371
38355
|
var StartingToolCalls2 = function() {
|
|
38372
38356
|
return /* @__PURE__ */ _jsxs8(Popover3.Root, {
|
|
38373
38357
|
children: [
|
|
38374
38358
|
/* @__PURE__ */ _jsxs8(ToolCallBase, {
|
|
38375
38359
|
children: [
|
|
38376
|
-
/* @__PURE__ */
|
|
38377
|
-
/* @__PURE__ */
|
|
38360
|
+
/* @__PURE__ */ _jsx16(CircleIcon2, {}),
|
|
38361
|
+
/* @__PURE__ */ _jsx16(ToolCallTitle, {
|
|
38378
38362
|
children: "Starting actions"
|
|
38379
38363
|
})
|
|
38380
38364
|
]
|
|
38381
38365
|
}),
|
|
38382
|
-
/* @__PURE__ */
|
|
38366
|
+
/* @__PURE__ */ _jsx16(Popover3.Content, {
|
|
38383
38367
|
style: {
|
|
38384
38368
|
maxHeight: "500px"
|
|
38385
38369
|
},
|
|
38386
|
-
children: /* @__PURE__ */
|
|
38370
|
+
children: /* @__PURE__ */ _jsx16(Text2, {
|
|
38387
38371
|
children: "Starting some actions"
|
|
38388
38372
|
})
|
|
38389
38373
|
})
|
|
@@ -38399,7 +38383,7 @@ var ComponentsContext = /* @__PURE__ */ createContext3({
|
|
|
38399
38383
|
}
|
|
38400
38384
|
});
|
|
38401
38385
|
// src/components/runSteps/RunSteps/index.tsx
|
|
38402
|
-
import { jsx as
|
|
38386
|
+
import { jsx as _jsx17 } from "react/jsx-runtime";
|
|
38403
38387
|
var RunSteps = function(t0) {
|
|
38404
38388
|
var $ = _c8(7);
|
|
38405
38389
|
var runSteps = t0.runSteps;
|
|
@@ -38410,7 +38394,7 @@ var RunSteps = function(t0) {
|
|
|
38410
38394
|
var _t;
|
|
38411
38395
|
if ($[3] !== Component2) {
|
|
38412
38396
|
_t = function(runStep) {
|
|
38413
|
-
return /* @__PURE__ */
|
|
38397
|
+
return /* @__PURE__ */ _jsx17(Component2, {
|
|
38414
38398
|
runStep: runStep
|
|
38415
38399
|
}, runStep.id);
|
|
38416
38400
|
};
|
|
@@ -38428,7 +38412,7 @@ var RunSteps = function(t0) {
|
|
|
38428
38412
|
}
|
|
38429
38413
|
var t2;
|
|
38430
38414
|
if ($[5] !== t1) {
|
|
38431
|
-
t2 = /* @__PURE__ */
|
|
38415
|
+
t2 = /* @__PURE__ */ _jsx17(Flex5, {
|
|
38432
38416
|
direction: "column-reverse",
|
|
38433
38417
|
children: t1
|
|
38434
38418
|
});
|
|
@@ -38439,32 +38423,6 @@ var RunSteps = function(t0) {
|
|
|
38439
38423
|
}
|
|
38440
38424
|
return t2;
|
|
38441
38425
|
};
|
|
38442
|
-
// src/hooks/messages/useIsMutatingMessage/index.ts
|
|
38443
|
-
import { c as _c9 } from "react-compiler-runtime";
|
|
38444
|
-
import { useMemo as useMemo2 } from "react";
|
|
38445
|
-
import { useIsMutating } from "@tanstack/react-query";
|
|
38446
|
-
var useIsMutatingMessage = function() {
|
|
38447
|
-
var $ = _c9(2);
|
|
38448
|
-
var threadContext = useSuperinterfaceContext();
|
|
38449
|
-
var t0;
|
|
38450
|
-
if ($[0] !== threadContext.variables) {
|
|
38451
|
-
t0 = {
|
|
38452
|
-
mutationKey: [
|
|
38453
|
-
"createMessage",
|
|
38454
|
-
threadContext.variables
|
|
38455
|
-
]
|
|
38456
|
-
};
|
|
38457
|
-
$[0] = threadContext.variables;
|
|
38458
|
-
$[1] = t0;
|
|
38459
|
-
} else {
|
|
38460
|
-
t0 = $[1];
|
|
38461
|
-
}
|
|
38462
|
-
var mutatingMessagesCount = useIsMutating(t0);
|
|
38463
|
-
var t1;
|
|
38464
|
-
t1 = mutatingMessagesCount > 0;
|
|
38465
|
-
var isMutatingMessage = t1;
|
|
38466
|
-
return isMutatingMessage;
|
|
38467
|
-
};
|
|
38468
38426
|
// src/contexts/messages/MessageContext/index.ts
|
|
38469
38427
|
import { createContext as createContext4 } from "react";
|
|
38470
38428
|
var MessageContext = /* @__PURE__ */ createContext4({
|
|
@@ -38473,20 +38431,20 @@ var MessageContext = /* @__PURE__ */ createContext4({
|
|
|
38473
38431
|
// src/components/threads/Thread/Message/Provider.tsx
|
|
38474
38432
|
var Provider = MessageContext.Provider;
|
|
38475
38433
|
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
38476
|
-
import { c as
|
|
38434
|
+
import { c as _c9 } from "react-compiler-runtime";
|
|
38477
38435
|
import { Flex as Flex6, Badge } from "@radix-ui/themes";
|
|
38478
38436
|
import { FileIcon } from "@radix-ui/react-icons";
|
|
38479
|
-
import { jsx as
|
|
38437
|
+
import { jsx as _jsx18, jsxs as _jsxs9 } from "react/jsx-runtime";
|
|
38480
38438
|
var Attachments = function(t0) {
|
|
38481
38439
|
var _message$attachments;
|
|
38482
|
-
var $ =
|
|
38440
|
+
var $ = _c9(4);
|
|
38483
38441
|
var message = t0.message;
|
|
38484
38442
|
if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
|
|
38485
38443
|
return null;
|
|
38486
38444
|
}
|
|
38487
38445
|
var t1;
|
|
38488
38446
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38489
|
-
t1 = /* @__PURE__ */
|
|
38447
|
+
t1 = /* @__PURE__ */ _jsx18(FileIcon, {});
|
|
38490
38448
|
$[0] = t1;
|
|
38491
38449
|
} else {
|
|
38492
38450
|
t1 = $[0];
|
|
@@ -38494,7 +38452,7 @@ var Attachments = function(t0) {
|
|
|
38494
38452
|
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
38495
38453
|
var t3;
|
|
38496
38454
|
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
38497
|
-
t3 = /* @__PURE__ */
|
|
38455
|
+
t3 = /* @__PURE__ */ _jsx18(Flex6, {
|
|
38498
38456
|
align: "start",
|
|
38499
38457
|
pb: "1",
|
|
38500
38458
|
children: /* @__PURE__ */ _jsxs9(Badge, {
|
|
@@ -38674,12 +38632,12 @@ import { createContext as createContext6 } from "react";
|
|
|
38674
38632
|
import { Heading, Table } from "@radix-ui/themes";
|
|
38675
38633
|
// src/contexts/markdown/MarkdownContext/lib/components/Paragraph.tsx
|
|
38676
38634
|
import { Box as Box3, Text as Text3 } from "@radix-ui/themes";
|
|
38677
|
-
import { jsx as
|
|
38635
|
+
import { jsx as _jsx19 } from "react/jsx-runtime";
|
|
38678
38636
|
var Paragraph = function(_ref) {
|
|
38679
38637
|
var children = _ref.children;
|
|
38680
|
-
return /* @__PURE__ */
|
|
38638
|
+
return /* @__PURE__ */ _jsx19(Box3, {
|
|
38681
38639
|
pb: "3",
|
|
38682
|
-
children: /* @__PURE__ */
|
|
38640
|
+
children: /* @__PURE__ */ _jsx19(Text3, {
|
|
38683
38641
|
size: "3",
|
|
38684
38642
|
style: {
|
|
38685
38643
|
whiteSpace: "pre-line",
|
|
@@ -38691,10 +38649,10 @@ var Paragraph = function(_ref) {
|
|
|
38691
38649
|
};
|
|
38692
38650
|
// src/contexts/markdown/MarkdownContext/lib/components/Link.tsx
|
|
38693
38651
|
import { Link as RadixLink } from "@radix-ui/themes";
|
|
38694
|
-
import { jsx as
|
|
38652
|
+
import { jsx as _jsx20 } from "react/jsx-runtime";
|
|
38695
38653
|
var Link = function(_ref) {
|
|
38696
38654
|
var children = _ref.children, href = _ref.href, download = _ref.download, _ref_target = _ref.target, target = _ref_target === void 0 ? "_blank" : _ref_target;
|
|
38697
|
-
return /* @__PURE__ */
|
|
38655
|
+
return /* @__PURE__ */ _jsx20(RadixLink, {
|
|
38698
38656
|
href: href,
|
|
38699
38657
|
target: target,
|
|
38700
38658
|
download: download,
|
|
@@ -38703,13 +38661,13 @@ var Link = function(_ref) {
|
|
|
38703
38661
|
};
|
|
38704
38662
|
// src/contexts/markdown/MarkdownContext/lib/components/UnorderedList.tsx
|
|
38705
38663
|
import { Box as Box4 } from "@radix-ui/themes";
|
|
38706
|
-
import { jsx as
|
|
38664
|
+
import { jsx as _jsx21 } from "react/jsx-runtime";
|
|
38707
38665
|
var UnorderedList = function(_ref) {
|
|
38708
38666
|
var children = _ref.children;
|
|
38709
|
-
return /* @__PURE__ */
|
|
38667
|
+
return /* @__PURE__ */ _jsx21(Box4, {
|
|
38710
38668
|
pb: "3",
|
|
38711
38669
|
asChild: true,
|
|
38712
|
-
children: /* @__PURE__ */
|
|
38670
|
+
children: /* @__PURE__ */ _jsx21("ul", {
|
|
38713
38671
|
style: {
|
|
38714
38672
|
listStylePosition: "inside"
|
|
38715
38673
|
},
|
|
@@ -38719,13 +38677,13 @@ var UnorderedList = function(_ref) {
|
|
|
38719
38677
|
};
|
|
38720
38678
|
// src/contexts/markdown/MarkdownContext/lib/components/OrderedList.tsx
|
|
38721
38679
|
import { Box as Box5 } from "@radix-ui/themes";
|
|
38722
|
-
import { jsx as
|
|
38680
|
+
import { jsx as _jsx22 } from "react/jsx-runtime";
|
|
38723
38681
|
var OrderedList = function(_ref) {
|
|
38724
38682
|
var children = _ref.children;
|
|
38725
|
-
return /* @__PURE__ */
|
|
38683
|
+
return /* @__PURE__ */ _jsx22(Box5, {
|
|
38726
38684
|
pb: "3",
|
|
38727
38685
|
asChild: true,
|
|
38728
|
-
children: /* @__PURE__ */
|
|
38686
|
+
children: /* @__PURE__ */ _jsx22("ol", {
|
|
38729
38687
|
style: {
|
|
38730
38688
|
listStylePosition: "inside"
|
|
38731
38689
|
},
|
|
@@ -38735,12 +38693,12 @@ var OrderedList = function(_ref) {
|
|
|
38735
38693
|
};
|
|
38736
38694
|
// src/contexts/markdown/MarkdownContext/lib/components/ListItem.tsx
|
|
38737
38695
|
import { Box as Box6 } from "@radix-ui/themes";
|
|
38738
|
-
import { jsx as
|
|
38696
|
+
import { jsx as _jsx23 } from "react/jsx-runtime";
|
|
38739
38697
|
var ListItem = function(_ref) {
|
|
38740
38698
|
var children = _ref.children;
|
|
38741
|
-
return /* @__PURE__ */
|
|
38699
|
+
return /* @__PURE__ */ _jsx23(Box6, {
|
|
38742
38700
|
pb: "1",
|
|
38743
|
-
children: /* @__PURE__ */
|
|
38701
|
+
children: /* @__PURE__ */ _jsx23("li", {
|
|
38744
38702
|
style: {
|
|
38745
38703
|
wordBreak: "break-word"
|
|
38746
38704
|
},
|
|
@@ -38750,19 +38708,19 @@ var ListItem = function(_ref) {
|
|
|
38750
38708
|
};
|
|
38751
38709
|
// src/contexts/markdown/MarkdownContext/lib/components/Strong.tsx
|
|
38752
38710
|
import { Strong as RadixStrong } from "@radix-ui/themes";
|
|
38753
|
-
import { jsx as
|
|
38711
|
+
import { jsx as _jsx24 } from "react/jsx-runtime";
|
|
38754
38712
|
var Strong = function(_ref) {
|
|
38755
38713
|
var children = _ref.children;
|
|
38756
|
-
return /* @__PURE__ */
|
|
38714
|
+
return /* @__PURE__ */ _jsx24(RadixStrong, {
|
|
38757
38715
|
children: children
|
|
38758
38716
|
});
|
|
38759
38717
|
};
|
|
38760
38718
|
// src/contexts/markdown/MarkdownContext/lib/components/Pre.tsx
|
|
38761
38719
|
import { Box as Box7 } from "@radix-ui/themes";
|
|
38762
|
-
import { jsx as
|
|
38720
|
+
import { jsx as _jsx25 } from "react/jsx-runtime";
|
|
38763
38721
|
var Pre = function(_ref) {
|
|
38764
38722
|
var children = _ref.children;
|
|
38765
|
-
return /* @__PURE__ */
|
|
38723
|
+
return /* @__PURE__ */ _jsx25(Box7, {
|
|
38766
38724
|
style: {
|
|
38767
38725
|
whiteSpace: "pre-wrap",
|
|
38768
38726
|
wordBreak: "break-word"
|
|
@@ -38777,11 +38735,11 @@ import { Code as RadixCode } from "@radix-ui/themes";
|
|
|
38777
38735
|
import { c as _c14 } from "react-compiler-runtime";
|
|
38778
38736
|
import { useMemo as useMemo6 } from "react";
|
|
38779
38737
|
// src/hooks/messages/useLatestMessage/index.ts
|
|
38780
|
-
import { c as _c12 } from "react-compiler-runtime";
|
|
38781
|
-
import { useMemo as useMemo4 } from "react";
|
|
38782
|
-
// src/hooks/messages/useMessages/index.tsx
|
|
38783
38738
|
import { c as _c11 } from "react-compiler-runtime";
|
|
38784
38739
|
import { useMemo as useMemo3 } from "react";
|
|
38740
|
+
// src/hooks/messages/useMessages/index.tsx
|
|
38741
|
+
import { c as _c10 } from "react-compiler-runtime";
|
|
38742
|
+
import { useMemo as useMemo2 } from "react";
|
|
38785
38743
|
import { useInfiniteQuery, useQueryClient } from "@tanstack/react-query";
|
|
38786
38744
|
// src/lib/threads/queryOptions/index.ts
|
|
38787
38745
|
import { infiniteQueryOptions } from "@tanstack/react-query";
|
|
@@ -39054,7 +39012,7 @@ var messages = function(_ref) {
|
|
|
39054
39012
|
}, []);
|
|
39055
39013
|
};
|
|
39056
39014
|
var useMessages = function() {
|
|
39057
|
-
var $ =
|
|
39015
|
+
var $ = _c10(9);
|
|
39058
39016
|
var queryClient = useQueryClient();
|
|
39059
39017
|
var threadContext = useSuperinterfaceContext();
|
|
39060
39018
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -39143,7 +39101,7 @@ function _toPrimitive5(t, r) {
|
|
|
39143
39101
|
return ("string" === r ? String : Number)(t);
|
|
39144
39102
|
}
|
|
39145
39103
|
var useLatestMessage = function() {
|
|
39146
|
-
var $ =
|
|
39104
|
+
var $ = _c11(3);
|
|
39147
39105
|
var props = useMessages();
|
|
39148
39106
|
var t0;
|
|
39149
39107
|
var t1 = props.messages[0] || null;
|
|
@@ -39165,6 +39123,33 @@ var useLatestMessage = function() {
|
|
|
39165
39123
|
import { useMemo as useMemo5 } from "react";
|
|
39166
39124
|
import { isEmpty } from "radash";
|
|
39167
39125
|
import { onlyText } from "react-children-utilities";
|
|
39126
|
+
// src/hooks/messages/useIsMutatingMessage/index.ts
|
|
39127
|
+
import { c as _c12 } from "react-compiler-runtime";
|
|
39128
|
+
import { useMemo as useMemo4 } from "react";
|
|
39129
|
+
import { useIsMutating } from "@tanstack/react-query";
|
|
39130
|
+
var useIsMutatingMessage = function() {
|
|
39131
|
+
var $ = _c12(2);
|
|
39132
|
+
var threadContext = useSuperinterfaceContext();
|
|
39133
|
+
var t0;
|
|
39134
|
+
if ($[0] !== threadContext.variables) {
|
|
39135
|
+
t0 = {
|
|
39136
|
+
mutationKey: [
|
|
39137
|
+
"createMessage",
|
|
39138
|
+
threadContext.variables
|
|
39139
|
+
]
|
|
39140
|
+
};
|
|
39141
|
+
$[0] = threadContext.variables;
|
|
39142
|
+
$[1] = t0;
|
|
39143
|
+
} else {
|
|
39144
|
+
t0 = $[1];
|
|
39145
|
+
}
|
|
39146
|
+
var mutatingMessagesCount = useIsMutating(t0);
|
|
39147
|
+
var t1;
|
|
39148
|
+
t1 = mutatingMessagesCount > 0;
|
|
39149
|
+
var isMutatingMessage = t1;
|
|
39150
|
+
return isMutatingMessage;
|
|
39151
|
+
};
|
|
39152
|
+
// src/components/suggestions/Suggestions/Content.tsx
|
|
39168
39153
|
import { Flex as Flex7 } from "@radix-ui/themes";
|
|
39169
39154
|
// src/components/suggestions/Suggestions/Item.tsx
|
|
39170
39155
|
import { c as _c13 } from "react-compiler-runtime";
|
|
@@ -40618,7 +40603,7 @@ var createMessageDefaultOnError = function(_ref) {
|
|
|
40618
40603
|
};
|
|
40619
40604
|
};
|
|
40620
40605
|
// src/components/suggestions/Suggestions/Item.tsx
|
|
40621
|
-
import { jsx as
|
|
40606
|
+
import { jsx as _jsx26, jsxs as _jsxs10 } from "react/jsx-runtime";
|
|
40622
40607
|
function ownKeys19(e, r) {
|
|
40623
40608
|
var t = Object.keys(e);
|
|
40624
40609
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -40708,7 +40693,7 @@ var Item = function(t0) {
|
|
|
40708
40693
|
}
|
|
40709
40694
|
var t4;
|
|
40710
40695
|
if ($[9] !== className || $[10] !== isDisabled || $[11] !== isPending || $[12] !== style || $[13] !== suggestion || $[14] !== t3) {
|
|
40711
|
-
t4 = /* @__PURE__ */
|
|
40696
|
+
t4 = /* @__PURE__ */ _jsx26(Content3, {
|
|
40712
40697
|
onClick: t3,
|
|
40713
40698
|
isDisabled: isDisabled,
|
|
40714
40699
|
isPending: isPending,
|
|
@@ -40741,14 +40726,14 @@ var Content3 = function(_ref) {
|
|
|
40741
40726
|
flexShrink: 1
|
|
40742
40727
|
}, style !== null && style !== void 0 ? style : {}),
|
|
40743
40728
|
children: [
|
|
40744
|
-
/* @__PURE__ */
|
|
40729
|
+
/* @__PURE__ */ _jsx26(Text4, {
|
|
40745
40730
|
size: "1",
|
|
40746
40731
|
weight: "regular",
|
|
40747
40732
|
children: children
|
|
40748
40733
|
}),
|
|
40749
|
-
/* @__PURE__ */
|
|
40734
|
+
/* @__PURE__ */ _jsx26(Spinner, {
|
|
40750
40735
|
loading: isPending,
|
|
40751
|
-
children: /* @__PURE__ */
|
|
40736
|
+
children: /* @__PURE__ */ _jsx26(ArrowUpIcon, {
|
|
40752
40737
|
style: {
|
|
40753
40738
|
flexShrink: 0
|
|
40754
40739
|
}
|
|
@@ -40759,7 +40744,7 @@ var Content3 = function(_ref) {
|
|
|
40759
40744
|
};
|
|
40760
40745
|
Item.Content = Content3;
|
|
40761
40746
|
// src/components/suggestions/Suggestions/Content.tsx
|
|
40762
|
-
import { jsx as
|
|
40747
|
+
import { jsx as _jsx27 } from "react/jsx-runtime";
|
|
40763
40748
|
var Content4 = function(_ref) {
|
|
40764
40749
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
40765
40750
|
var isMutatingMessage = useIsMutatingMessage();
|
|
@@ -40773,14 +40758,14 @@ var Content4 = function(_ref) {
|
|
|
40773
40758
|
children
|
|
40774
40759
|
]);
|
|
40775
40760
|
if (isEmpty(suggestions)) return null;
|
|
40776
|
-
return /* @__PURE__ */
|
|
40761
|
+
return /* @__PURE__ */ _jsx27(Flex7, {
|
|
40777
40762
|
gap: "2",
|
|
40778
40763
|
py: "2",
|
|
40779
40764
|
wrap: "wrap",
|
|
40780
40765
|
className: className,
|
|
40781
40766
|
style: style,
|
|
40782
40767
|
children: suggestions.map(function(suggestion) {
|
|
40783
|
-
return /* @__PURE__ */
|
|
40768
|
+
return /* @__PURE__ */ _jsx27(Item, {
|
|
40784
40769
|
suggestion: suggestion,
|
|
40785
40770
|
isDisabled: isMutatingMessage
|
|
40786
40771
|
}, suggestion);
|
|
@@ -40788,7 +40773,7 @@ var Content4 = function(_ref) {
|
|
|
40788
40773
|
});
|
|
40789
40774
|
};
|
|
40790
40775
|
// src/components/suggestions/Suggestions/index.tsx
|
|
40791
|
-
import { jsx as
|
|
40776
|
+
import { jsx as _jsx28 } from "react/jsx-runtime";
|
|
40792
40777
|
var Suggestions = function(t0) {
|
|
40793
40778
|
var _latestMessageProps$l;
|
|
40794
40779
|
var $ = _c14(4);
|
|
@@ -40805,7 +40790,7 @@ var Suggestions = function(t0) {
|
|
|
40805
40790
|
}
|
|
40806
40791
|
var t2;
|
|
40807
40792
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
40808
|
-
t2 = /* @__PURE__ */
|
|
40793
|
+
t2 = /* @__PURE__ */ _jsx28(Content4, {
|
|
40809
40794
|
className: className,
|
|
40810
40795
|
style: style,
|
|
40811
40796
|
children: children
|
|
@@ -40821,14 +40806,14 @@ var Suggestions = function(t0) {
|
|
|
40821
40806
|
};
|
|
40822
40807
|
Suggestions.Item = Item;
|
|
40823
40808
|
// src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
|
|
40824
|
-
import { jsx as
|
|
40809
|
+
import { jsx as _jsx29 } from "react/jsx-runtime";
|
|
40825
40810
|
var Code3 = function(t0) {
|
|
40826
40811
|
var $ = _c15(5);
|
|
40827
40812
|
var children = t0.children, className = t0.className;
|
|
40828
40813
|
if (className === "language-suggestions") {
|
|
40829
40814
|
var _t;
|
|
40830
40815
|
if ($[0] !== children) {
|
|
40831
|
-
_t = /* @__PURE__ */
|
|
40816
|
+
_t = /* @__PURE__ */ _jsx29(Suggestions, {
|
|
40832
40817
|
children: children
|
|
40833
40818
|
});
|
|
40834
40819
|
$[0] = children;
|
|
@@ -40849,7 +40834,7 @@ var Code3 = function(t0) {
|
|
|
40849
40834
|
}
|
|
40850
40835
|
var t2;
|
|
40851
40836
|
if ($[3] !== children) {
|
|
40852
|
-
t2 = /* @__PURE__ */
|
|
40837
|
+
t2 = /* @__PURE__ */ _jsx29(RadixCode, {
|
|
40853
40838
|
style: t1,
|
|
40854
40839
|
children: children
|
|
40855
40840
|
});
|
|
@@ -40864,7 +40849,7 @@ var Code3 = function(t0) {
|
|
|
40864
40849
|
import { c as _c20 } from "react-compiler-runtime";
|
|
40865
40850
|
// src/components/images/Image.tsx
|
|
40866
40851
|
import { Box as Box8 } from "@radix-ui/themes";
|
|
40867
|
-
import { jsx as
|
|
40852
|
+
import { jsx as _jsx30 } from "react/jsx-runtime";
|
|
40868
40853
|
function ownKeys20(e, r) {
|
|
40869
40854
|
var t = Object.keys(e);
|
|
40870
40855
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -40909,9 +40894,9 @@ function _toPrimitive20(t, r) {
|
|
|
40909
40894
|
return ("string" === r ? String : Number)(t);
|
|
40910
40895
|
}
|
|
40911
40896
|
var Image = function(props) {
|
|
40912
|
-
return /* @__PURE__ */
|
|
40897
|
+
return /* @__PURE__ */ _jsx30(Box8, {
|
|
40913
40898
|
pb: "3",
|
|
40914
|
-
children: /* @__PURE__ */
|
|
40899
|
+
children: /* @__PURE__ */ _jsx30("img", _objectSpread20(_objectSpread20({}, props), {}, {
|
|
40915
40900
|
style: {
|
|
40916
40901
|
maxWidth: "100%",
|
|
40917
40902
|
height: "auto"
|
|
@@ -40974,17 +40959,17 @@ import { c as _c16 } from "react-compiler-runtime";
|
|
|
40974
40959
|
import { PlayButton as VidstackPlayButton, useMediaState } from "@vidstack/react";
|
|
40975
40960
|
import { IconButton } from "@radix-ui/themes";
|
|
40976
40961
|
import { PlayIcon, PauseIcon } from "@radix-ui/react-icons";
|
|
40977
|
-
import { jsx as
|
|
40962
|
+
import { jsx as _jsx31 } from "react/jsx-runtime";
|
|
40978
40963
|
var PlayButton = function() {
|
|
40979
40964
|
var $ = _c16(2);
|
|
40980
40965
|
var isPaused = useMediaState("paused");
|
|
40981
40966
|
var t0;
|
|
40982
40967
|
if ($[0] !== isPaused) {
|
|
40983
|
-
t0 = /* @__PURE__ */
|
|
40968
|
+
t0 = /* @__PURE__ */ _jsx31(IconButton, {
|
|
40984
40969
|
variant: "ghost",
|
|
40985
40970
|
asChild: true,
|
|
40986
|
-
children: /* @__PURE__ */
|
|
40987
|
-
children: isPaused ? /* @__PURE__ */
|
|
40971
|
+
children: /* @__PURE__ */ _jsx31(VidstackPlayButton, {
|
|
40972
|
+
children: isPaused ? /* @__PURE__ */ _jsx31(PlayIcon, {}) : /* @__PURE__ */ _jsx31(PauseIcon, {})
|
|
40988
40973
|
})
|
|
40989
40974
|
});
|
|
40990
40975
|
$[0] = isPaused;
|
|
@@ -40999,7 +40984,7 @@ import { c as _c17 } from "react-compiler-runtime";
|
|
|
40999
40984
|
import { MuteButton, useMediaState as useMediaState2, useMediaRemote } from "@vidstack/react";
|
|
41000
40985
|
import { IconButton as IconButton2, HoverCard, Slider } from "@radix-ui/themes";
|
|
41001
40986
|
import { SpeakerModerateIcon, SpeakerOffIcon } from "@radix-ui/react-icons";
|
|
41002
|
-
import { jsx as
|
|
40987
|
+
import { jsx as _jsx32, jsxs as _jsxs11 } from "react/jsx-runtime";
|
|
41003
40988
|
var VolumeButton = function() {
|
|
41004
40989
|
var $ = _c17(13);
|
|
41005
40990
|
var volume = useMediaState2("volume");
|
|
@@ -41007,12 +40992,12 @@ var VolumeButton = function() {
|
|
|
41007
40992
|
var remote = useMediaRemote();
|
|
41008
40993
|
var t0;
|
|
41009
40994
|
if ($[0] !== isMuted || $[1] !== volume) {
|
|
41010
|
-
t0 = /* @__PURE__ */
|
|
41011
|
-
children: /* @__PURE__ */
|
|
40995
|
+
t0 = /* @__PURE__ */ _jsx32(HoverCard.Trigger, {
|
|
40996
|
+
children: /* @__PURE__ */ _jsx32(IconButton2, {
|
|
41012
40997
|
variant: "ghost",
|
|
41013
40998
|
asChild: true,
|
|
41014
|
-
children: /* @__PURE__ */
|
|
41015
|
-
children: isMuted || volume === 0 ? /* @__PURE__ */
|
|
40999
|
+
children: /* @__PURE__ */ _jsx32(MuteButton, {
|
|
41000
|
+
children: isMuted || volume === 0 ? /* @__PURE__ */ _jsx32(SpeakerOffIcon, {}) : /* @__PURE__ */ _jsx32(SpeakerModerateIcon, {})
|
|
41016
41001
|
})
|
|
41017
41002
|
})
|
|
41018
41003
|
});
|
|
@@ -41046,11 +41031,11 @@ var VolumeButton = function() {
|
|
|
41046
41031
|
}
|
|
41047
41032
|
var t4;
|
|
41048
41033
|
if ($[7] !== t2 || $[8] !== t3) {
|
|
41049
|
-
t4 = /* @__PURE__ */
|
|
41034
|
+
t4 = /* @__PURE__ */ _jsx32(HoverCard.Content, {
|
|
41050
41035
|
size: "1",
|
|
41051
41036
|
side: "top",
|
|
41052
41037
|
height: "100px",
|
|
41053
|
-
children: /* @__PURE__ */
|
|
41038
|
+
children: /* @__PURE__ */ _jsx32(Slider, {
|
|
41054
41039
|
size: "1",
|
|
41055
41040
|
variant: "soft",
|
|
41056
41041
|
orientation: "vertical",
|
|
@@ -41085,7 +41070,7 @@ import { c as _c18 } from "react-compiler-runtime";
|
|
|
41085
41070
|
import { useState, useEffect, useMemo as useMemo7 } from "react";
|
|
41086
41071
|
import { useMediaState as useMediaState3, useMediaRemote as useMediaRemote2 } from "@vidstack/react";
|
|
41087
41072
|
import { Slider as Slider2 } from "@radix-ui/themes";
|
|
41088
|
-
import { jsx as
|
|
41073
|
+
import { jsx as _jsx33 } from "react/jsx-runtime";
|
|
41089
41074
|
var Time = function() {
|
|
41090
41075
|
var $ = _c18(17);
|
|
41091
41076
|
var time = useMediaState3("currentTime");
|
|
@@ -41155,7 +41140,7 @@ var Time = function() {
|
|
|
41155
41140
|
}
|
|
41156
41141
|
var t8;
|
|
41157
41142
|
if ($[11] !== t3 || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
|
|
41158
|
-
t8 = /* @__PURE__ */
|
|
41143
|
+
t8 = /* @__PURE__ */ _jsx33(Slider2, {
|
|
41159
41144
|
size: "1",
|
|
41160
41145
|
variant: "soft",
|
|
41161
41146
|
value: t3,
|
|
@@ -41177,12 +41162,12 @@ var Time = function() {
|
|
|
41177
41162
|
};
|
|
41178
41163
|
// src/components/media/MediaContainer.tsx
|
|
41179
41164
|
import { Card, Inset } from "@radix-ui/themes";
|
|
41180
|
-
import { jsx as
|
|
41165
|
+
import { jsx as _jsx34 } from "react/jsx-runtime";
|
|
41181
41166
|
var MediaContainer = function(_ref) {
|
|
41182
41167
|
var children = _ref.children;
|
|
41183
|
-
return /* @__PURE__ */
|
|
41168
|
+
return /* @__PURE__ */ _jsx34(Card, {
|
|
41184
41169
|
mb: "3",
|
|
41185
|
-
children: /* @__PURE__ */
|
|
41170
|
+
children: /* @__PURE__ */ _jsx34(Inset, {
|
|
41186
41171
|
clip: "padding-box",
|
|
41187
41172
|
style: {
|
|
41188
41173
|
display: "flex",
|
|
@@ -41197,17 +41182,17 @@ import { c as _c19 } from "react-compiler-runtime";
|
|
|
41197
41182
|
import { FullscreenButton as VidstackFullscreenButton, useMediaState as useMediaState4 } from "@vidstack/react";
|
|
41198
41183
|
import { IconButton as IconButton3 } from "@radix-ui/themes";
|
|
41199
41184
|
import { EnterFullScreenIcon, ExitFullScreenIcon } from "@radix-ui/react-icons";
|
|
41200
|
-
import { jsx as
|
|
41185
|
+
import { jsx as _jsx35 } from "react/jsx-runtime";
|
|
41201
41186
|
var FullscreenButton = function() {
|
|
41202
41187
|
var $ = _c19(2);
|
|
41203
41188
|
var isFullscreen = useMediaState4("fullscreen");
|
|
41204
41189
|
var t0;
|
|
41205
41190
|
if ($[0] !== isFullscreen) {
|
|
41206
|
-
t0 = /* @__PURE__ */
|
|
41191
|
+
t0 = /* @__PURE__ */ _jsx35(IconButton3, {
|
|
41207
41192
|
variant: "ghost",
|
|
41208
41193
|
asChild: true,
|
|
41209
|
-
children: /* @__PURE__ */
|
|
41210
|
-
children: isFullscreen ? /* @__PURE__ */
|
|
41194
|
+
children: /* @__PURE__ */ _jsx35(VidstackFullscreenButton, {
|
|
41195
|
+
children: isFullscreen ? /* @__PURE__ */ _jsx35(ExitFullScreenIcon, {}) : /* @__PURE__ */ _jsx35(EnterFullScreenIcon, {})
|
|
41211
41196
|
})
|
|
41212
41197
|
});
|
|
41213
41198
|
$[0] = isFullscreen;
|
|
@@ -41218,10 +41203,10 @@ var FullscreenButton = function() {
|
|
|
41218
41203
|
return t0;
|
|
41219
41204
|
};
|
|
41220
41205
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/Video/index.tsx
|
|
41221
|
-
import { jsx as
|
|
41206
|
+
import { jsx as _jsx36, jsxs as _jsxs12 } from "react/jsx-runtime";
|
|
41222
41207
|
var Video = function(_ref) {
|
|
41223
41208
|
var src = _ref.src;
|
|
41224
|
-
return /* @__PURE__ */
|
|
41209
|
+
return /* @__PURE__ */ _jsx36(MediaContainer, {
|
|
41225
41210
|
children: /* @__PURE__ */ _jsxs12(MediaPlayer, {
|
|
41226
41211
|
src: {
|
|
41227
41212
|
src: src,
|
|
@@ -41231,11 +41216,11 @@ var Video = function(_ref) {
|
|
|
41231
41216
|
hideControlsOnMouseLeave: true,
|
|
41232
41217
|
crossOrigin: true,
|
|
41233
41218
|
children: [
|
|
41234
|
-
/* @__PURE__ */
|
|
41235
|
-
/* @__PURE__ */
|
|
41219
|
+
/* @__PURE__ */ _jsx36(MediaProvider, {}),
|
|
41220
|
+
/* @__PURE__ */ _jsx36("style", {
|
|
41236
41221
|
children: "\n .superinterface-video-controls {\n opacity: 0;\n transition: opacity 0.2s ease-out;\n }\n\n .superinterface-video-controls[data-visible] {\n opacity: 1;\n }\n "
|
|
41237
41222
|
}),
|
|
41238
|
-
/* @__PURE__ */
|
|
41223
|
+
/* @__PURE__ */ _jsx36(Flex8, {
|
|
41239
41224
|
asChild: true,
|
|
41240
41225
|
position: "absolute",
|
|
41241
41226
|
bottom: "0",
|
|
@@ -41247,18 +41232,18 @@ var Video = function(_ref) {
|
|
|
41247
41232
|
zIndex: 10,
|
|
41248
41233
|
background: "var(--accent-4)"
|
|
41249
41234
|
},
|
|
41250
|
-
children: /* @__PURE__ */
|
|
41251
|
-
children: /* @__PURE__ */
|
|
41235
|
+
children: /* @__PURE__ */ _jsx36(Controls.Root, {
|
|
41236
|
+
children: /* @__PURE__ */ _jsx36(Flex8, {
|
|
41252
41237
|
asChild: true,
|
|
41253
41238
|
align: "center",
|
|
41254
41239
|
gap: "3",
|
|
41255
41240
|
flexGrow: "1",
|
|
41256
41241
|
children: /* @__PURE__ */ _jsxs12(Controls.Group, {
|
|
41257
41242
|
children: [
|
|
41258
|
-
/* @__PURE__ */
|
|
41259
|
-
/* @__PURE__ */
|
|
41260
|
-
/* @__PURE__ */
|
|
41261
|
-
/* @__PURE__ */
|
|
41243
|
+
/* @__PURE__ */ _jsx36(PlayButton, {}),
|
|
41244
|
+
/* @__PURE__ */ _jsx36(Time, {}),
|
|
41245
|
+
/* @__PURE__ */ _jsx36(VolumeButton, {}),
|
|
41246
|
+
/* @__PURE__ */ _jsx36(FullscreenButton, {})
|
|
41262
41247
|
]
|
|
41263
41248
|
})
|
|
41264
41249
|
})
|
|
@@ -41272,10 +41257,10 @@ var Video = function(_ref) {
|
|
|
41272
41257
|
import { Flex as Flex9 } from "@radix-ui/themes";
|
|
41273
41258
|
import "@vidstack/react/player/styles/base.css";
|
|
41274
41259
|
import { MediaPlayer as MediaPlayer2, MediaProvider as MediaProvider2, Controls as Controls2 } from "@vidstack/react";
|
|
41275
|
-
import { jsx as
|
|
41260
|
+
import { jsx as _jsx37, jsxs as _jsxs13 } from "react/jsx-runtime";
|
|
41276
41261
|
var Audio = function(_ref) {
|
|
41277
41262
|
var src = _ref.src;
|
|
41278
|
-
return /* @__PURE__ */
|
|
41263
|
+
return /* @__PURE__ */ _jsx37(MediaContainer, {
|
|
41279
41264
|
children: /* @__PURE__ */ _jsxs13(MediaPlayer2, {
|
|
41280
41265
|
src: {
|
|
41281
41266
|
src: src,
|
|
@@ -41285,8 +41270,8 @@ var Audio = function(_ref) {
|
|
|
41285
41270
|
crossOrigin: true,
|
|
41286
41271
|
playsInline: true,
|
|
41287
41272
|
children: [
|
|
41288
|
-
/* @__PURE__ */
|
|
41289
|
-
/* @__PURE__ */
|
|
41273
|
+
/* @__PURE__ */ _jsx37(MediaProvider2, {}),
|
|
41274
|
+
/* @__PURE__ */ _jsx37(Flex9, {
|
|
41290
41275
|
asChild: true,
|
|
41291
41276
|
p: "3",
|
|
41292
41277
|
flexGrow: "1",
|
|
@@ -41294,17 +41279,17 @@ var Audio = function(_ref) {
|
|
|
41294
41279
|
zIndex: 10,
|
|
41295
41280
|
background: "var(--accent-4)"
|
|
41296
41281
|
},
|
|
41297
|
-
children: /* @__PURE__ */
|
|
41298
|
-
children: /* @__PURE__ */
|
|
41282
|
+
children: /* @__PURE__ */ _jsx37(Controls2.Root, {
|
|
41283
|
+
children: /* @__PURE__ */ _jsx37(Flex9, {
|
|
41299
41284
|
asChild: true,
|
|
41300
41285
|
align: "center",
|
|
41301
41286
|
gap: "3",
|
|
41302
41287
|
flexGrow: "1",
|
|
41303
41288
|
children: /* @__PURE__ */ _jsxs13(Controls2.Group, {
|
|
41304
41289
|
children: [
|
|
41305
|
-
/* @__PURE__ */
|
|
41306
|
-
/* @__PURE__ */
|
|
41307
|
-
/* @__PURE__ */
|
|
41290
|
+
/* @__PURE__ */ _jsx37(PlayButton, {}),
|
|
41291
|
+
/* @__PURE__ */ _jsx37(Time, {}),
|
|
41292
|
+
/* @__PURE__ */ _jsx37(VolumeButton, {})
|
|
41308
41293
|
]
|
|
41309
41294
|
})
|
|
41310
41295
|
})
|
|
@@ -41315,7 +41300,7 @@ var Audio = function(_ref) {
|
|
|
41315
41300
|
});
|
|
41316
41301
|
};
|
|
41317
41302
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
|
|
41318
|
-
import { jsx as
|
|
41303
|
+
import { jsx as _jsx38 } from "react/jsx-runtime";
|
|
41319
41304
|
function ownKeys21(e, r) {
|
|
41320
41305
|
var t = Object.keys(e);
|
|
41321
41306
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -41364,7 +41349,7 @@ var Img = function(props) {
|
|
|
41364
41349
|
if (!props.src) {
|
|
41365
41350
|
var t0;
|
|
41366
41351
|
if ($[0] !== props) {
|
|
41367
|
-
t0 = /* @__PURE__ */
|
|
41352
|
+
t0 = /* @__PURE__ */ _jsx38(Image, _objectSpread21({}, props));
|
|
41368
41353
|
$[0] = props;
|
|
41369
41354
|
$[1] = t0;
|
|
41370
41355
|
} else {
|
|
@@ -41377,7 +41362,7 @@ var Img = function(props) {
|
|
|
41377
41362
|
})) {
|
|
41378
41363
|
var _t;
|
|
41379
41364
|
if ($[2] !== props.src) {
|
|
41380
|
-
_t = /* @__PURE__ */
|
|
41365
|
+
_t = /* @__PURE__ */ _jsx38(Video, {
|
|
41381
41366
|
src: props.src
|
|
41382
41367
|
});
|
|
41383
41368
|
$[2] = props.src;
|
|
@@ -41392,7 +41377,7 @@ var Img = function(props) {
|
|
|
41392
41377
|
})) {
|
|
41393
41378
|
var _t2;
|
|
41394
41379
|
if ($[4] !== props.src) {
|
|
41395
|
-
_t2 = /* @__PURE__ */
|
|
41380
|
+
_t2 = /* @__PURE__ */ _jsx38(Audio, {
|
|
41396
41381
|
src: props.src
|
|
41397
41382
|
});
|
|
41398
41383
|
$[4] = props.src;
|
|
@@ -41404,7 +41389,7 @@ var Img = function(props) {
|
|
|
41404
41389
|
} else {
|
|
41405
41390
|
var _t3;
|
|
41406
41391
|
if ($[6] !== props) {
|
|
41407
|
-
_t3 = /* @__PURE__ */
|
|
41392
|
+
_t3 = /* @__PURE__ */ _jsx38(Image, _objectSpread21({}, props));
|
|
41408
41393
|
$[6] = props;
|
|
41409
41394
|
$[7] = _t3;
|
|
41410
41395
|
} else {
|
|
@@ -41420,7 +41405,7 @@ import { c as _c22 } from "react-compiler-runtime";
|
|
|
41420
41405
|
import { QuoteIcon } from "@radix-ui/react-icons";
|
|
41421
41406
|
// src/components/annotations/FilePathAnnotation.tsx
|
|
41422
41407
|
import { c as _c21 } from "react-compiler-runtime";
|
|
41423
|
-
import { jsx as
|
|
41408
|
+
import { jsx as _jsx39 } from "react/jsx-runtime";
|
|
41424
41409
|
var FilePathAnnotation = function(t0) {
|
|
41425
41410
|
var $ = _c21(3);
|
|
41426
41411
|
var annotation = t0.annotation, children = t0.children;
|
|
@@ -41429,7 +41414,7 @@ var FilePathAnnotation = function(t0) {
|
|
|
41429
41414
|
var t1 = "".concat(superinterfaceContext.baseUrl, "/files/").concat(annotation.file_path.file_id, "/contents?").concat(nextSearchParams);
|
|
41430
41415
|
var t2;
|
|
41431
41416
|
if ($[0] !== children || $[1] !== t1) {
|
|
41432
|
-
t2 = /* @__PURE__ */
|
|
41417
|
+
t2 = /* @__PURE__ */ _jsx39(Link, {
|
|
41433
41418
|
href: t1,
|
|
41434
41419
|
target: "_self",
|
|
41435
41420
|
download: true,
|
|
@@ -41445,24 +41430,24 @@ var FilePathAnnotation = function(t0) {
|
|
|
41445
41430
|
};
|
|
41446
41431
|
// src/contexts/markdown/MarkdownContext/lib/components/Annotation/AnnotationBase.tsx
|
|
41447
41432
|
import { IconButton as IconButton4, Popover as Popover4, Flex as Flex10, Text as Text5 } from "@radix-ui/themes";
|
|
41448
|
-
import { jsx as
|
|
41433
|
+
import { jsx as _jsx40, jsxs as _jsxs14 } from "react/jsx-runtime";
|
|
41449
41434
|
var AnnotationBase = function(_ref) {
|
|
41450
41435
|
var icon = _ref.icon, content2 = _ref.content;
|
|
41451
41436
|
return /* @__PURE__ */ _jsxs14(Popover4.Root, {
|
|
41452
41437
|
children: [
|
|
41453
|
-
/* @__PURE__ */
|
|
41454
|
-
children: /* @__PURE__ */
|
|
41438
|
+
/* @__PURE__ */ _jsx40(Popover4.Trigger, {
|
|
41439
|
+
children: /* @__PURE__ */ _jsx40(IconButton4, {
|
|
41455
41440
|
variant: "soft",
|
|
41456
41441
|
color: "gray",
|
|
41457
41442
|
size: "1",
|
|
41458
41443
|
children: icon
|
|
41459
41444
|
})
|
|
41460
41445
|
}),
|
|
41461
|
-
/* @__PURE__ */
|
|
41446
|
+
/* @__PURE__ */ _jsx40(Popover4.Content, {
|
|
41462
41447
|
size: "1",
|
|
41463
|
-
children: /* @__PURE__ */
|
|
41448
|
+
children: /* @__PURE__ */ _jsx40(Flex10, {
|
|
41464
41449
|
direction: "column",
|
|
41465
|
-
children: /* @__PURE__ */
|
|
41450
|
+
children: /* @__PURE__ */ _jsx40(Text5, {
|
|
41466
41451
|
size: "1",
|
|
41467
41452
|
color: "gray",
|
|
41468
41453
|
children: content2
|
|
@@ -41473,7 +41458,7 @@ var AnnotationBase = function(_ref) {
|
|
|
41473
41458
|
});
|
|
41474
41459
|
};
|
|
41475
41460
|
// src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
|
|
41476
|
-
import { jsx as
|
|
41461
|
+
import { jsx as _jsx41 } from "react/jsx-runtime";
|
|
41477
41462
|
var _excluded = [
|
|
41478
41463
|
"children"
|
|
41479
41464
|
];
|
|
@@ -41524,8 +41509,8 @@ var Annotation = function(t0) {
|
|
|
41524
41509
|
if (annotation.type === "file_citation") {
|
|
41525
41510
|
var t2;
|
|
41526
41511
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41527
|
-
t2 = /* @__PURE__ */
|
|
41528
|
-
icon: /* @__PURE__ */
|
|
41512
|
+
t2 = /* @__PURE__ */ _jsx41(AnnotationBase, {
|
|
41513
|
+
icon: /* @__PURE__ */ _jsx41(QuoteIcon, {}),
|
|
41529
41514
|
content: "File cited."
|
|
41530
41515
|
});
|
|
41531
41516
|
$[5] = t2;
|
|
@@ -41537,7 +41522,7 @@ var Annotation = function(t0) {
|
|
|
41537
41522
|
if (annotation.type === "file_path") {
|
|
41538
41523
|
var _t2;
|
|
41539
41524
|
if ($[6] !== annotation || $[7] !== children) {
|
|
41540
|
-
_t2 = /* @__PURE__ */
|
|
41525
|
+
_t2 = /* @__PURE__ */ _jsx41(FilePathAnnotation, {
|
|
41541
41526
|
annotation: annotation,
|
|
41542
41527
|
children: children
|
|
41543
41528
|
});
|
|
@@ -41553,7 +41538,7 @@ var Annotation = function(t0) {
|
|
|
41553
41538
|
return null;
|
|
41554
41539
|
};
|
|
41555
41540
|
// src/contexts/markdown/MarkdownContext/lib/components/index.tsx
|
|
41556
|
-
import { jsx as
|
|
41541
|
+
import { jsx as _jsx42, Fragment as _Fragment, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
41557
41542
|
var _excluded2 = [
|
|
41558
41543
|
"width"
|
|
41559
41544
|
];
|
|
@@ -41630,41 +41615,41 @@ var components = {
|
|
|
41630
41615
|
img: Img,
|
|
41631
41616
|
annotation: Annotation,
|
|
41632
41617
|
h1: function(props) {
|
|
41633
|
-
return /* @__PURE__ */
|
|
41618
|
+
return /* @__PURE__ */ _jsx42(Heading, {
|
|
41634
41619
|
as: "h1",
|
|
41635
41620
|
children: props.children
|
|
41636
41621
|
});
|
|
41637
41622
|
},
|
|
41638
41623
|
h2: function(props) {
|
|
41639
|
-
return /* @__PURE__ */
|
|
41624
|
+
return /* @__PURE__ */ _jsx42(Heading, {
|
|
41640
41625
|
as: "h2",
|
|
41641
41626
|
size: "5",
|
|
41642
41627
|
children: props.children
|
|
41643
41628
|
});
|
|
41644
41629
|
},
|
|
41645
41630
|
h3: function(props) {
|
|
41646
|
-
return /* @__PURE__ */
|
|
41631
|
+
return /* @__PURE__ */ _jsx42(Heading, {
|
|
41647
41632
|
as: "h3",
|
|
41648
41633
|
size: "4",
|
|
41649
41634
|
children: props.children
|
|
41650
41635
|
});
|
|
41651
41636
|
},
|
|
41652
41637
|
h4: function(props) {
|
|
41653
|
-
return /* @__PURE__ */
|
|
41638
|
+
return /* @__PURE__ */ _jsx42(Heading, {
|
|
41654
41639
|
as: "h4",
|
|
41655
41640
|
size: "3",
|
|
41656
41641
|
children: props.children
|
|
41657
41642
|
});
|
|
41658
41643
|
},
|
|
41659
41644
|
h5: function(props) {
|
|
41660
|
-
return /* @__PURE__ */
|
|
41645
|
+
return /* @__PURE__ */ _jsx42(Heading, {
|
|
41661
41646
|
as: "h5",
|
|
41662
41647
|
size: "3",
|
|
41663
41648
|
children: props.children
|
|
41664
41649
|
});
|
|
41665
41650
|
},
|
|
41666
41651
|
h6: function(props) {
|
|
41667
|
-
return /* @__PURE__ */
|
|
41652
|
+
return /* @__PURE__ */ _jsx42(Heading, {
|
|
41668
41653
|
as: "h6",
|
|
41669
41654
|
size: "3",
|
|
41670
41655
|
children: props.children
|
|
@@ -41673,10 +41658,10 @@ var components = {
|
|
|
41673
41658
|
table: function(props) {
|
|
41674
41659
|
return /* @__PURE__ */ _jsxs15(_Fragment, {
|
|
41675
41660
|
children: [
|
|
41676
|
-
/* @__PURE__ */
|
|
41661
|
+
/* @__PURE__ */ _jsx42("style", {
|
|
41677
41662
|
children: ".rt-TableRootTable { overflow: inherit; }"
|
|
41678
41663
|
}),
|
|
41679
|
-
/* @__PURE__ */
|
|
41664
|
+
/* @__PURE__ */ _jsx42(Table.Root, _objectSpread22(_objectSpread22({}, props), {}, {
|
|
41680
41665
|
variant: "surface",
|
|
41681
41666
|
mb: "3"
|
|
41682
41667
|
}))
|
|
@@ -41684,22 +41669,22 @@ var components = {
|
|
|
41684
41669
|
});
|
|
41685
41670
|
},
|
|
41686
41671
|
thead: function(props) {
|
|
41687
|
-
return /* @__PURE__ */
|
|
41672
|
+
return /* @__PURE__ */ _jsx42(Table.Header, _objectSpread22({}, props));
|
|
41688
41673
|
},
|
|
41689
41674
|
tbody: function(props) {
|
|
41690
|
-
return /* @__PURE__ */
|
|
41675
|
+
return /* @__PURE__ */ _jsx42(Table.Body, _objectSpread22({}, props));
|
|
41691
41676
|
},
|
|
41692
41677
|
tr: function(props) {
|
|
41693
|
-
return /* @__PURE__ */
|
|
41678
|
+
return /* @__PURE__ */ _jsx42(Table.Row, _objectSpread22({}, props));
|
|
41694
41679
|
},
|
|
41695
41680
|
td: function(_ref) {
|
|
41696
41681
|
var width2 = _ref.width, rest = _objectWithoutProperties2(_ref, _excluded2);
|
|
41697
|
-
return /* @__PURE__ */
|
|
41682
|
+
return /* @__PURE__ */ _jsx42(Table.Cell, _objectSpread22(_objectSpread22({}, rest), {}, {
|
|
41698
41683
|
width: width2
|
|
41699
41684
|
}));
|
|
41700
41685
|
},
|
|
41701
41686
|
th: function(props) {
|
|
41702
|
-
return /* @__PURE__ */
|
|
41687
|
+
return /* @__PURE__ */ _jsx42(Table.ColumnHeaderCell, _objectSpread22({}, props));
|
|
41703
41688
|
}
|
|
41704
41689
|
};
|
|
41705
41690
|
// src/contexts/markdown/MarkdownContext/lib/getRemarkPlugins.ts
|
|
@@ -42126,7 +42111,7 @@ function hasArrayChanged() {
|
|
|
42126
42111
|
});
|
|
42127
42112
|
}
|
|
42128
42113
|
// src/components/messages/MessageContent/ContentPart/TextContent.tsx
|
|
42129
|
-
import { jsx as
|
|
42114
|
+
import { jsx as _jsx43 } from "react/jsx-runtime";
|
|
42130
42115
|
function ownKeys24(e, r) {
|
|
42131
42116
|
var t = Object.keys(e);
|
|
42132
42117
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -42314,7 +42299,7 @@ var TextContent = function(t0) {
|
|
|
42314
42299
|
}
|
|
42315
42300
|
var t5;
|
|
42316
42301
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42317
|
-
t5 = /* @__PURE__ */
|
|
42302
|
+
t5 = /* @__PURE__ */ _jsx43(Badge2, {
|
|
42318
42303
|
color: "red",
|
|
42319
42304
|
mb: "2",
|
|
42320
42305
|
children: "Could not render message."
|
|
@@ -42325,7 +42310,7 @@ var TextContent = function(t0) {
|
|
|
42325
42310
|
}
|
|
42326
42311
|
var t6;
|
|
42327
42312
|
if ($[8] !== MDXComponent) {
|
|
42328
|
-
t6 = /* @__PURE__ */
|
|
42313
|
+
t6 = /* @__PURE__ */ _jsx43(MDXComponent, {});
|
|
42329
42314
|
$[8] = MDXComponent;
|
|
42330
42315
|
$[9] = t6;
|
|
42331
42316
|
} else {
|
|
@@ -42333,9 +42318,9 @@ var TextContent = function(t0) {
|
|
|
42333
42318
|
}
|
|
42334
42319
|
var t7;
|
|
42335
42320
|
if ($[10] !== components2 || $[11] !== t6) {
|
|
42336
|
-
t7 = /* @__PURE__ */
|
|
42321
|
+
t7 = /* @__PURE__ */ _jsx43(ErrorBoundary, {
|
|
42337
42322
|
fallback: t5,
|
|
42338
|
-
children: /* @__PURE__ */
|
|
42323
|
+
children: /* @__PURE__ */ _jsx43(MDXProvider, {
|
|
42339
42324
|
components: components2,
|
|
42340
42325
|
children: t6
|
|
42341
42326
|
})
|
|
@@ -42350,7 +42335,7 @@ var TextContent = function(t0) {
|
|
|
42350
42335
|
};
|
|
42351
42336
|
// src/components/messages/MessageContent/ContentPart/ImageFileContent.tsx
|
|
42352
42337
|
import { c as _c24 } from "react-compiler-runtime";
|
|
42353
|
-
import { jsx as
|
|
42338
|
+
import { jsx as _jsx44 } from "react/jsx-runtime";
|
|
42354
42339
|
var ImageFileContent = function(t0) {
|
|
42355
42340
|
var $ = _c24(2);
|
|
42356
42341
|
var content2 = t0.content;
|
|
@@ -42359,7 +42344,7 @@ var ImageFileContent = function(t0) {
|
|
|
42359
42344
|
var t1 = "".concat(superinterfaceContext.baseUrl, "/files/").concat(content2.image_file.file_id, "/contents?").concat(nextSearchParams);
|
|
42360
42345
|
var t2;
|
|
42361
42346
|
if ($[0] !== t1) {
|
|
42362
|
-
t2 = /* @__PURE__ */
|
|
42347
|
+
t2 = /* @__PURE__ */ _jsx44(Image, {
|
|
42363
42348
|
alt: "",
|
|
42364
42349
|
src: t1
|
|
42365
42350
|
});
|
|
@@ -42371,14 +42356,14 @@ var ImageFileContent = function(t0) {
|
|
|
42371
42356
|
return t2;
|
|
42372
42357
|
};
|
|
42373
42358
|
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
42374
|
-
import { jsx as
|
|
42359
|
+
import { jsx as _jsx45 } from "react/jsx-runtime";
|
|
42375
42360
|
var ContentPart = function(t0) {
|
|
42376
42361
|
var $ = _c25(4);
|
|
42377
42362
|
var content2 = t0.content;
|
|
42378
42363
|
if (content2.type === "text") {
|
|
42379
42364
|
var t1;
|
|
42380
42365
|
if ($[0] !== content2) {
|
|
42381
|
-
t1 = /* @__PURE__ */
|
|
42366
|
+
t1 = /* @__PURE__ */ _jsx45(TextContent, {
|
|
42382
42367
|
content: content2
|
|
42383
42368
|
});
|
|
42384
42369
|
$[0] = content2;
|
|
@@ -42391,7 +42376,7 @@ var ContentPart = function(t0) {
|
|
|
42391
42376
|
if (content2.type === "image_file") {
|
|
42392
42377
|
var _t;
|
|
42393
42378
|
if ($[2] !== content2) {
|
|
42394
|
-
_t = /* @__PURE__ */
|
|
42379
|
+
_t = /* @__PURE__ */ _jsx45(ImageFileContent, {
|
|
42395
42380
|
content: content2
|
|
42396
42381
|
});
|
|
42397
42382
|
$[2] = content2;
|
|
@@ -42404,21 +42389,21 @@ var ContentPart = function(t0) {
|
|
|
42404
42389
|
return null;
|
|
42405
42390
|
};
|
|
42406
42391
|
// src/components/messages/MessageContent/index.tsx
|
|
42407
|
-
import { jsx as
|
|
42392
|
+
import { jsx as _jsx46, Fragment as _Fragment2 } from "react/jsx-runtime";
|
|
42408
42393
|
var MessageContent = function(_ref) {
|
|
42409
42394
|
var message = _ref.message;
|
|
42410
|
-
return /* @__PURE__ */
|
|
42395
|
+
return /* @__PURE__ */ _jsx46(_Fragment2, {
|
|
42411
42396
|
children: message.content.map(function(content2, index) {
|
|
42412
|
-
return /* @__PURE__ */
|
|
42397
|
+
return /* @__PURE__ */ _jsx46(ContentPart, {
|
|
42413
42398
|
content: content2
|
|
42414
42399
|
}, index);
|
|
42415
42400
|
})
|
|
42416
42401
|
});
|
|
42417
42402
|
};
|
|
42418
42403
|
// src/components/threads/Thread/Message/index.tsx
|
|
42419
|
-
import { jsx as
|
|
42404
|
+
import { jsx as _jsx47, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
42420
42405
|
var Message = function(t0) {
|
|
42421
|
-
var $ = _c26(
|
|
42406
|
+
var $ = _c26(37);
|
|
42422
42407
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
42423
42408
|
var t1;
|
|
42424
42409
|
bb0: {
|
|
@@ -42514,155 +42499,96 @@ var Message = function(t0) {
|
|
|
42514
42499
|
t1 = _t7;
|
|
42515
42500
|
}
|
|
42516
42501
|
var _t1 = _sliced_to_array(t1, 2), olderRunSteps_0 = _t1[0], laterRunSteps_0 = _t1[1];
|
|
42517
|
-
var isMutatingMessage = useIsMutatingMessage();
|
|
42518
42502
|
var t2;
|
|
42519
|
-
|
|
42520
|
-
|
|
42521
|
-
t2 = false;
|
|
42522
|
-
break bb1;
|
|
42523
|
-
}
|
|
42524
|
-
if (message.status === "in_progress") {
|
|
42525
|
-
t2 = true;
|
|
42526
|
-
break bb1;
|
|
42527
|
-
}
|
|
42528
|
-
var _t8;
|
|
42529
|
-
if ($[19] !== message.runSteps) {
|
|
42530
|
-
_t8 = message.runSteps.some(_temp3);
|
|
42531
|
-
$[19] = message.runSteps;
|
|
42532
|
-
$[20] = _t8;
|
|
42533
|
-
} else {
|
|
42534
|
-
_t8 = $[20];
|
|
42535
|
-
}
|
|
42536
|
-
t2 = _t8;
|
|
42537
|
-
}
|
|
42538
|
-
var isInProgress = t2;
|
|
42539
|
-
var t3;
|
|
42540
|
-
if ($[21] !== message) {
|
|
42541
|
-
t3 = {
|
|
42503
|
+
if ($[19] !== message) {
|
|
42504
|
+
t2 = {
|
|
42542
42505
|
message: message
|
|
42543
42506
|
};
|
|
42544
|
-
$[
|
|
42545
|
-
$[
|
|
42507
|
+
$[19] = message;
|
|
42508
|
+
$[20] = t2;
|
|
42546
42509
|
} else {
|
|
42547
|
-
|
|
42510
|
+
t2 = $[20];
|
|
42548
42511
|
}
|
|
42549
|
-
var
|
|
42550
|
-
if ($[
|
|
42551
|
-
|
|
42512
|
+
var t3;
|
|
42513
|
+
if ($[21] !== olderRunSteps_0) {
|
|
42514
|
+
t3 = /* @__PURE__ */ _jsx47(RunSteps, {
|
|
42552
42515
|
runSteps: olderRunSteps_0
|
|
42553
42516
|
});
|
|
42554
|
-
$[
|
|
42555
|
-
$[
|
|
42517
|
+
$[21] = olderRunSteps_0;
|
|
42518
|
+
$[22] = t3;
|
|
42556
42519
|
} else {
|
|
42557
|
-
|
|
42520
|
+
t3 = $[22];
|
|
42558
42521
|
}
|
|
42559
|
-
var
|
|
42560
|
-
if ($[
|
|
42561
|
-
|
|
42522
|
+
var t4;
|
|
42523
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42524
|
+
t4 = {
|
|
42562
42525
|
wordBreak: "break-word"
|
|
42563
42526
|
};
|
|
42564
|
-
$[
|
|
42527
|
+
$[23] = t4;
|
|
42565
42528
|
} else {
|
|
42566
|
-
|
|
42529
|
+
t4 = $[23];
|
|
42567
42530
|
}
|
|
42568
|
-
var
|
|
42569
|
-
|
|
42570
|
-
|
|
42571
|
-
|
|
42572
|
-
message: message
|
|
42573
|
-
});
|
|
42574
|
-
t7 = /* @__PURE__ */ _jsx48(MessageContent, {
|
|
42575
|
-
message: message
|
|
42576
|
-
});
|
|
42577
|
-
$[26] = message;
|
|
42578
|
-
$[27] = t6;
|
|
42579
|
-
$[28] = t7;
|
|
42580
|
-
} else {
|
|
42581
|
-
t6 = $[27];
|
|
42582
|
-
t7 = $[28];
|
|
42583
|
-
}
|
|
42584
|
-
var t8;
|
|
42585
|
-
if ($[29] !== isInProgress || $[30] !== laterRunSteps_0) {
|
|
42586
|
-
t8 = isInProgress && isEmpty2(laterRunSteps_0) && /* @__PURE__ */ _jsx48(StartingContentSkeleton, {});
|
|
42587
|
-
$[29] = isInProgress;
|
|
42588
|
-
$[30] = laterRunSteps_0;
|
|
42589
|
-
$[31] = t8;
|
|
42590
|
-
} else {
|
|
42591
|
-
t8 = $[31];
|
|
42592
|
-
}
|
|
42593
|
-
var t9;
|
|
42594
|
-
if ($[32] !== t6 || $[33] !== t7 || $[34] !== t8) {
|
|
42595
|
-
t9 = /* @__PURE__ */ _jsxs16(Box9, {
|
|
42596
|
-
style: t5,
|
|
42531
|
+
var t5;
|
|
42532
|
+
if ($[24] !== message) {
|
|
42533
|
+
t5 = /* @__PURE__ */ _jsxs16(Box9, {
|
|
42534
|
+
style: t4,
|
|
42597
42535
|
children: [
|
|
42598
|
-
|
|
42599
|
-
|
|
42600
|
-
|
|
42536
|
+
/* @__PURE__ */ _jsx47(Attachments, {
|
|
42537
|
+
message: message
|
|
42538
|
+
}),
|
|
42539
|
+
/* @__PURE__ */ _jsx47(MessageContent, {
|
|
42540
|
+
message: message
|
|
42541
|
+
})
|
|
42601
42542
|
]
|
|
42602
42543
|
});
|
|
42603
|
-
$[
|
|
42604
|
-
$[
|
|
42605
|
-
$[34] = t8;
|
|
42606
|
-
$[35] = t9;
|
|
42544
|
+
$[24] = message;
|
|
42545
|
+
$[25] = t5;
|
|
42607
42546
|
} else {
|
|
42608
|
-
|
|
42547
|
+
t5 = $[25];
|
|
42609
42548
|
}
|
|
42610
|
-
var
|
|
42611
|
-
if ($[
|
|
42612
|
-
|
|
42549
|
+
var t6;
|
|
42550
|
+
if ($[26] !== laterRunSteps_0) {
|
|
42551
|
+
t6 = /* @__PURE__ */ _jsx47(RunSteps, {
|
|
42613
42552
|
runSteps: laterRunSteps_0
|
|
42614
42553
|
});
|
|
42615
|
-
$[
|
|
42616
|
-
$[
|
|
42617
|
-
} else {
|
|
42618
|
-
t10 = $[37];
|
|
42619
|
-
}
|
|
42620
|
-
var t11;
|
|
42621
|
-
if ($[38] !== isInProgress || $[39] !== laterRunSteps_0) {
|
|
42622
|
-
t11 = isInProgress && !isEmpty2(laterRunSteps_0) && /* @__PURE__ */ _jsx48(Box9, {
|
|
42623
|
-
children: /* @__PURE__ */ _jsx48(StartingContentSkeleton, {})
|
|
42624
|
-
});
|
|
42625
|
-
$[38] = isInProgress;
|
|
42626
|
-
$[39] = laterRunSteps_0;
|
|
42627
|
-
$[40] = t11;
|
|
42554
|
+
$[26] = laterRunSteps_0;
|
|
42555
|
+
$[27] = t6;
|
|
42628
42556
|
} else {
|
|
42629
|
-
|
|
42557
|
+
t6 = $[27];
|
|
42630
42558
|
}
|
|
42631
|
-
var
|
|
42632
|
-
if ($[
|
|
42633
|
-
|
|
42559
|
+
var t7;
|
|
42560
|
+
if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
|
|
42561
|
+
t7 = /* @__PURE__ */ _jsxs16(Box9, {
|
|
42634
42562
|
className: className,
|
|
42635
42563
|
style: style,
|
|
42636
42564
|
children: [
|
|
42637
|
-
|
|
42638
|
-
|
|
42639
|
-
|
|
42640
|
-
t11
|
|
42565
|
+
t3,
|
|
42566
|
+
t5,
|
|
42567
|
+
t6
|
|
42641
42568
|
]
|
|
42642
42569
|
});
|
|
42643
|
-
$[
|
|
42644
|
-
$[
|
|
42645
|
-
$[
|
|
42646
|
-
$[
|
|
42647
|
-
$[
|
|
42648
|
-
$[
|
|
42649
|
-
$[47] = t12;
|
|
42570
|
+
$[28] = className;
|
|
42571
|
+
$[29] = style;
|
|
42572
|
+
$[30] = t3;
|
|
42573
|
+
$[31] = t5;
|
|
42574
|
+
$[32] = t6;
|
|
42575
|
+
$[33] = t7;
|
|
42650
42576
|
} else {
|
|
42651
|
-
|
|
42577
|
+
t7 = $[33];
|
|
42652
42578
|
}
|
|
42653
|
-
var
|
|
42654
|
-
if ($[
|
|
42655
|
-
|
|
42656
|
-
value:
|
|
42657
|
-
children:
|
|
42579
|
+
var t8;
|
|
42580
|
+
if ($[34] !== t2 || $[35] !== t7) {
|
|
42581
|
+
t8 = /* @__PURE__ */ _jsx47(Provider, {
|
|
42582
|
+
value: t2,
|
|
42583
|
+
children: t7
|
|
42658
42584
|
});
|
|
42659
|
-
$[
|
|
42660
|
-
$[
|
|
42661
|
-
$[
|
|
42585
|
+
$[34] = t2;
|
|
42586
|
+
$[35] = t7;
|
|
42587
|
+
$[36] = t8;
|
|
42662
42588
|
} else {
|
|
42663
|
-
|
|
42589
|
+
t8 = $[36];
|
|
42664
42590
|
}
|
|
42665
|
-
return
|
|
42591
|
+
return t8;
|
|
42666
42592
|
};
|
|
42667
42593
|
function _temp(runStep_0) {
|
|
42668
42594
|
return runStep_0.step_details.type === "message_creation";
|
|
@@ -42670,9 +42596,6 @@ function _temp(runStep_0) {
|
|
|
42670
42596
|
function _temp2(runStep_1) {
|
|
42671
42597
|
return runStep_1.step_details.type === "message_creation";
|
|
42672
42598
|
}
|
|
42673
|
-
function _temp3(rs) {
|
|
42674
|
-
return rs.status === "in_progress";
|
|
42675
|
-
}
|
|
42676
42599
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
42677
42600
|
import { c as _c33 } from "react-compiler-runtime";
|
|
42678
42601
|
import { useEffect as useEffect3 } from "react";
|
|
@@ -42811,18 +42734,18 @@ var useMessageGroups = function(t0) {
|
|
|
42811
42734
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
42812
42735
|
import { c as _c29 } from "react-compiler-runtime";
|
|
42813
42736
|
import { forwardRef as forwardRef3 } from "react";
|
|
42814
|
-
import { Flex as Flex13, Avatar, Box as Box10, Skeleton
|
|
42737
|
+
import { Flex as Flex13, Avatar, Box as Box10, Skeleton } from "@radix-ui/themes";
|
|
42815
42738
|
// src/components/messageGroups/MessageGroupBase/index.tsx
|
|
42816
42739
|
import { c as _c28 } from "react-compiler-runtime";
|
|
42817
42740
|
import { forwardRef as forwardRef2 } from "react";
|
|
42818
42741
|
import { Flex as Flex11, Container } from "@radix-ui/themes";
|
|
42819
|
-
import { jsx as
|
|
42742
|
+
import { jsx as _jsx48 } from "react/jsx-runtime";
|
|
42820
42743
|
var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0, ref) {
|
|
42821
42744
|
var $ = _c28(5);
|
|
42822
42745
|
var children = t0.children;
|
|
42823
42746
|
var t1;
|
|
42824
42747
|
if ($[0] !== children) {
|
|
42825
|
-
t1 = /* @__PURE__ */
|
|
42748
|
+
t1 = /* @__PURE__ */ _jsx48(Flex11, {
|
|
42826
42749
|
flexShrink: "0",
|
|
42827
42750
|
gap: "3",
|
|
42828
42751
|
children: children
|
|
@@ -42834,7 +42757,7 @@ var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0
|
|
|
42834
42757
|
}
|
|
42835
42758
|
var t2;
|
|
42836
42759
|
if ($[2] !== ref || $[3] !== t1) {
|
|
42837
|
-
t2 = /* @__PURE__ */
|
|
42760
|
+
t2 = /* @__PURE__ */ _jsx48(Container, {
|
|
42838
42761
|
ref: ref,
|
|
42839
42762
|
size: "2",
|
|
42840
42763
|
flexGrow: "0",
|
|
@@ -42850,13 +42773,13 @@ var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0
|
|
|
42850
42773
|
});
|
|
42851
42774
|
// src/components/messageGroups/MessageGroupBase/Name.tsx
|
|
42852
42775
|
import { Flex as Flex12, Text as Text6 } from "@radix-ui/themes";
|
|
42853
|
-
import { jsx as
|
|
42776
|
+
import { jsx as _jsx49 } from "react/jsx-runtime";
|
|
42854
42777
|
var Name = function(_ref) {
|
|
42855
42778
|
var children = _ref.children;
|
|
42856
|
-
return /* @__PURE__ */
|
|
42779
|
+
return /* @__PURE__ */ _jsx49(Flex12, {
|
|
42857
42780
|
align: "center",
|
|
42858
42781
|
height: "var(--space-5)",
|
|
42859
|
-
children: /* @__PURE__ */
|
|
42782
|
+
children: /* @__PURE__ */ _jsx49(Text6, {
|
|
42860
42783
|
size: "2",
|
|
42861
42784
|
weight: "bold",
|
|
42862
42785
|
children: children
|
|
@@ -42864,15 +42787,15 @@ var Name = function(_ref) {
|
|
|
42864
42787
|
});
|
|
42865
42788
|
};
|
|
42866
42789
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
42867
|
-
import { jsx as
|
|
42790
|
+
import { jsx as _jsx50, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
42868
42791
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
42869
42792
|
var $ = _c29(7);
|
|
42870
42793
|
var t0;
|
|
42871
42794
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42872
|
-
t0 = /* @__PURE__ */
|
|
42795
|
+
t0 = /* @__PURE__ */ _jsx50(Skeleton, {
|
|
42873
42796
|
loading: true,
|
|
42874
|
-
children: /* @__PURE__ */
|
|
42875
|
-
fallback: /* @__PURE__ */
|
|
42797
|
+
children: /* @__PURE__ */ _jsx50(Avatar, {
|
|
42798
|
+
fallback: /* @__PURE__ */ _jsx50(Flex13, {}),
|
|
42876
42799
|
size: "1"
|
|
42877
42800
|
})
|
|
42878
42801
|
});
|
|
@@ -42882,8 +42805,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
42882
42805
|
}
|
|
42883
42806
|
var t1;
|
|
42884
42807
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42885
|
-
t1 = /* @__PURE__ */
|
|
42886
|
-
children: /* @__PURE__ */
|
|
42808
|
+
t1 = /* @__PURE__ */ _jsx50(Name, {
|
|
42809
|
+
children: /* @__PURE__ */ _jsx50(Skeleton, {
|
|
42887
42810
|
loading: true,
|
|
42888
42811
|
style: {
|
|
42889
42812
|
width: "128px"
|
|
@@ -42896,7 +42819,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
42896
42819
|
}
|
|
42897
42820
|
var t2;
|
|
42898
42821
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42899
|
-
t2 = /* @__PURE__ */
|
|
42822
|
+
t2 = /* @__PURE__ */ _jsx50(Skeleton, {
|
|
42900
42823
|
loading: true,
|
|
42901
42824
|
style: {
|
|
42902
42825
|
width: "256px"
|
|
@@ -42908,7 +42831,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
42908
42831
|
}
|
|
42909
42832
|
var t3;
|
|
42910
42833
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42911
|
-
t3 = /* @__PURE__ */
|
|
42834
|
+
t3 = /* @__PURE__ */ _jsx50(Skeleton, {
|
|
42912
42835
|
loading: true,
|
|
42913
42836
|
style: {
|
|
42914
42837
|
width: "256px",
|
|
@@ -42927,7 +42850,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
42927
42850
|
t1,
|
|
42928
42851
|
t2,
|
|
42929
42852
|
t3,
|
|
42930
|
-
/* @__PURE__ */
|
|
42853
|
+
/* @__PURE__ */ _jsx50(Skeleton, {
|
|
42931
42854
|
loading: true,
|
|
42932
42855
|
style: {
|
|
42933
42856
|
width: "256px",
|
|
@@ -42968,13 +42891,13 @@ import { Flex as Flex14 } from "@radix-ui/themes";
|
|
|
42968
42891
|
import { createContext as createContext8 } from "react";
|
|
42969
42892
|
import { Avatar as Avatar2 } from "@radix-ui/themes";
|
|
42970
42893
|
import { LightningBoltIcon } from "@radix-ui/react-icons";
|
|
42971
|
-
import { jsx as
|
|
42972
|
-
var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */
|
|
42973
|
-
fallback: /* @__PURE__ */
|
|
42894
|
+
import { jsx as _jsx51 } from "react/jsx-runtime";
|
|
42895
|
+
var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx51(Avatar2, {
|
|
42896
|
+
fallback: /* @__PURE__ */ _jsx51(LightningBoltIcon, {}),
|
|
42974
42897
|
size: "1"
|
|
42975
42898
|
}));
|
|
42976
42899
|
// src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
|
|
42977
|
-
import { jsx as
|
|
42900
|
+
import { jsx as _jsx52 } from "react/jsx-runtime";
|
|
42978
42901
|
var AssistantAvatar = function() {
|
|
42979
42902
|
var $ = _c30(3);
|
|
42980
42903
|
var AssistantAvatarContextValue = useContext8(AssistantAvatarContext);
|
|
@@ -42990,7 +42913,7 @@ var AssistantAvatar = function() {
|
|
|
42990
42913
|
}
|
|
42991
42914
|
var t1;
|
|
42992
42915
|
if ($[1] !== AssistantAvatarContextValue) {
|
|
42993
|
-
t1 = /* @__PURE__ */
|
|
42916
|
+
t1 = /* @__PURE__ */ _jsx52(Flex14, {
|
|
42994
42917
|
flexShrink: "0",
|
|
42995
42918
|
height: "24px",
|
|
42996
42919
|
width: "24px",
|
|
@@ -43015,13 +42938,13 @@ import { Flex as Flex15 } from "@radix-ui/themes";
|
|
|
43015
42938
|
import { createContext as createContext10 } from "react";
|
|
43016
42939
|
import { Avatar as Avatar3 } from "@radix-ui/themes";
|
|
43017
42940
|
import { PersonIcon } from "@radix-ui/react-icons";
|
|
43018
|
-
import { jsx as
|
|
43019
|
-
var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */
|
|
43020
|
-
fallback: /* @__PURE__ */
|
|
42941
|
+
import { jsx as _jsx53 } from "react/jsx-runtime";
|
|
42942
|
+
var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */ _jsx53(Avatar3, {
|
|
42943
|
+
fallback: /* @__PURE__ */ _jsx53(PersonIcon, {}),
|
|
43021
42944
|
size: "1"
|
|
43022
42945
|
}));
|
|
43023
42946
|
// src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
|
|
43024
|
-
import { jsx as
|
|
42947
|
+
import { jsx as _jsx54 } from "react/jsx-runtime";
|
|
43025
42948
|
var UserAvatar = function() {
|
|
43026
42949
|
var $ = _c31(3);
|
|
43027
42950
|
var UserAvatarContextValue = useContext9(UserAvatarContext);
|
|
@@ -43037,7 +42960,7 @@ var UserAvatar = function() {
|
|
|
43037
42960
|
}
|
|
43038
42961
|
var t1;
|
|
43039
42962
|
if ($[1] !== UserAvatarContextValue) {
|
|
43040
|
-
t1 = /* @__PURE__ */
|
|
42963
|
+
t1 = /* @__PURE__ */ _jsx54(Flex15, {
|
|
43041
42964
|
flexShrink: "0",
|
|
43042
42965
|
height: "24px",
|
|
43043
42966
|
width: "24px",
|
|
@@ -43053,27 +42976,27 @@ var UserAvatar = function() {
|
|
|
43053
42976
|
};
|
|
43054
42977
|
// src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
|
|
43055
42978
|
import { Flex as Flex16 } from "@radix-ui/themes";
|
|
43056
|
-
import { jsx as
|
|
42979
|
+
import { jsx as _jsx55 } from "react/jsx-runtime";
|
|
43057
42980
|
var Content5 = function(_ref) {
|
|
43058
42981
|
var messageGroup = _ref.messageGroup;
|
|
43059
|
-
return /* @__PURE__ */
|
|
42982
|
+
return /* @__PURE__ */ _jsx55(Flex16, {
|
|
43060
42983
|
direction: "column-reverse",
|
|
43061
42984
|
children: messageGroup.messages.map(function(message) {
|
|
43062
|
-
return /* @__PURE__ */
|
|
42985
|
+
return /* @__PURE__ */ _jsx55(Message, {
|
|
43063
42986
|
message: message
|
|
43064
42987
|
}, message.id);
|
|
43065
42988
|
})
|
|
43066
42989
|
});
|
|
43067
42990
|
};
|
|
43068
42991
|
// src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
|
|
43069
|
-
import { jsx as
|
|
42992
|
+
import { jsx as _jsx56, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43070
42993
|
var MessageGroup = function(t0) {
|
|
43071
42994
|
var $ = _c32(12);
|
|
43072
42995
|
var messageGroup = t0.messageGroup;
|
|
43073
42996
|
var assistantNameContext = useContext10(AssistantNameContext);
|
|
43074
42997
|
var t1;
|
|
43075
42998
|
if ($[0] !== messageGroup.role) {
|
|
43076
|
-
t1 = messageGroup.role === "user" ? /* @__PURE__ */
|
|
42999
|
+
t1 = messageGroup.role === "user" ? /* @__PURE__ */ _jsx56(UserAvatar, {}) : /* @__PURE__ */ _jsx56(AssistantAvatar, {});
|
|
43077
43000
|
$[0] = messageGroup.role;
|
|
43078
43001
|
$[1] = t1;
|
|
43079
43002
|
} else {
|
|
@@ -43082,7 +43005,7 @@ var MessageGroup = function(t0) {
|
|
|
43082
43005
|
var t2 = messageGroup.role === "user" ? "You" : assistantNameContext;
|
|
43083
43006
|
var t3;
|
|
43084
43007
|
if ($[2] !== t2) {
|
|
43085
|
-
t3 = /* @__PURE__ */
|
|
43008
|
+
t3 = /* @__PURE__ */ _jsx56(Name, {
|
|
43086
43009
|
children: t2
|
|
43087
43010
|
});
|
|
43088
43011
|
$[2] = t2;
|
|
@@ -43092,7 +43015,7 @@ var MessageGroup = function(t0) {
|
|
|
43092
43015
|
}
|
|
43093
43016
|
var t4;
|
|
43094
43017
|
if ($[4] !== messageGroup) {
|
|
43095
|
-
t4 = /* @__PURE__ */
|
|
43018
|
+
t4 = /* @__PURE__ */ _jsx56(Content5, {
|
|
43096
43019
|
messageGroup: messageGroup
|
|
43097
43020
|
});
|
|
43098
43021
|
$[4] = messageGroup;
|
|
@@ -43132,7 +43055,7 @@ var MessageGroup = function(t0) {
|
|
|
43132
43055
|
return t6;
|
|
43133
43056
|
};
|
|
43134
43057
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43135
|
-
import { jsx as
|
|
43058
|
+
import { jsx as _jsx57, Fragment as _Fragment3 } from "react/jsx-runtime";
|
|
43136
43059
|
var Content6 = function() {
|
|
43137
43060
|
var $ = _c33(11);
|
|
43138
43061
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
@@ -43175,7 +43098,7 @@ var Content6 = function() {
|
|
|
43175
43098
|
if (isLoading || isLoadingError) {
|
|
43176
43099
|
var _t;
|
|
43177
43100
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43178
|
-
_t = /* @__PURE__ */
|
|
43101
|
+
_t = /* @__PURE__ */ _jsx57(MessagesSkeleton, {});
|
|
43179
43102
|
$[6] = _t;
|
|
43180
43103
|
} else {
|
|
43181
43104
|
_t = $[6];
|
|
@@ -43184,7 +43107,7 @@ var Content6 = function() {
|
|
|
43184
43107
|
}
|
|
43185
43108
|
var t3;
|
|
43186
43109
|
if ($[7] !== messageGroups2) {
|
|
43187
|
-
t3 = messageGroups2.map(
|
|
43110
|
+
t3 = messageGroups2.map(_temp3);
|
|
43188
43111
|
$[7] = messageGroups2;
|
|
43189
43112
|
$[8] = t3;
|
|
43190
43113
|
} else {
|
|
@@ -43192,7 +43115,7 @@ var Content6 = function() {
|
|
|
43192
43115
|
}
|
|
43193
43116
|
var t4;
|
|
43194
43117
|
if ($[9] !== t3) {
|
|
43195
|
-
t4 = /* @__PURE__ */
|
|
43118
|
+
t4 = /* @__PURE__ */ _jsx57(_Fragment3, {
|
|
43196
43119
|
children: t3
|
|
43197
43120
|
});
|
|
43198
43121
|
$[9] = t3;
|
|
@@ -43202,18 +43125,35 @@ var Content6 = function() {
|
|
|
43202
43125
|
}
|
|
43203
43126
|
return t4;
|
|
43204
43127
|
};
|
|
43205
|
-
function
|
|
43206
|
-
return /* @__PURE__ */
|
|
43128
|
+
function _temp3(messageGroup) {
|
|
43129
|
+
return /* @__PURE__ */ _jsx57(MessageGroup, {
|
|
43207
43130
|
messageGroup: messageGroup
|
|
43208
43131
|
}, messageGroup.id);
|
|
43209
43132
|
}
|
|
43210
43133
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
43211
43134
|
import { c as _c35 } from "react-compiler-runtime";
|
|
43212
43135
|
import { useMemo as useMemo12 } from "react";
|
|
43136
|
+
import { Flex as Flex17, Box as Box13 } from "@radix-ui/themes";
|
|
43213
43137
|
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43214
43138
|
import { c as _c34 } from "react-compiler-runtime";
|
|
43215
43139
|
import { useContext as useContext11 } from "react";
|
|
43216
43140
|
import { Box as Box12 } from "@radix-ui/themes";
|
|
43141
|
+
// src/components/skeletons/StartingContentSkeleton/index.tsx
|
|
43142
|
+
import { Skeleton as Skeleton2 } from "@radix-ui/themes";
|
|
43143
|
+
import { jsx as _jsx58 } from "react/jsx-runtime";
|
|
43144
|
+
var StartingContentSkeleton = function() {
|
|
43145
|
+
return /* @__PURE__ */ _jsx58(Skeleton2, {
|
|
43146
|
+
loading: true,
|
|
43147
|
+
mt: "1",
|
|
43148
|
+
height: "var(--space-4)",
|
|
43149
|
+
width: "var(--space-4)",
|
|
43150
|
+
style: {
|
|
43151
|
+
borderRadius: "var(--radius-6)",
|
|
43152
|
+
flexShrink: 0
|
|
43153
|
+
}
|
|
43154
|
+
});
|
|
43155
|
+
};
|
|
43156
|
+
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43217
43157
|
import { jsx as _jsx59, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
43218
43158
|
var StartingSkeleton = function(t0) {
|
|
43219
43159
|
var $ = _c34(7);
|
|
@@ -43266,9 +43206,9 @@ var StartingSkeleton = function(t0) {
|
|
|
43266
43206
|
return t4;
|
|
43267
43207
|
};
|
|
43268
43208
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
43269
|
-
import { jsx as _jsx60 } from "react/jsx-runtime";
|
|
43209
|
+
import { jsx as _jsx60, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
43270
43210
|
var Progress = function() {
|
|
43271
|
-
var $ = _c35(
|
|
43211
|
+
var $ = _c35(3);
|
|
43272
43212
|
var latestMessage = useLatestMessage().latestMessage;
|
|
43273
43213
|
var isMutatingMessage = useIsMutatingMessage();
|
|
43274
43214
|
var t0;
|
|
@@ -43297,22 +43237,50 @@ var Progress = function() {
|
|
|
43297
43237
|
}
|
|
43298
43238
|
t0 = true;
|
|
43299
43239
|
}
|
|
43300
|
-
var
|
|
43301
|
-
if (
|
|
43302
|
-
|
|
43240
|
+
var isStartingSkeletonVisible = t0;
|
|
43241
|
+
if (isStartingSkeletonVisible) {
|
|
43242
|
+
var t1;
|
|
43243
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43244
|
+
t1 = /* @__PURE__ */ _jsx60(StartingSkeleton, {});
|
|
43245
|
+
$[0] = t1;
|
|
43246
|
+
} else {
|
|
43247
|
+
t1 = $[0];
|
|
43248
|
+
}
|
|
43249
|
+
return t1;
|
|
43303
43250
|
}
|
|
43304
|
-
|
|
43305
|
-
|
|
43306
|
-
|
|
43307
|
-
|
|
43308
|
-
|
|
43309
|
-
|
|
43251
|
+
if (isMutatingMessage) {
|
|
43252
|
+
var _t;
|
|
43253
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43254
|
+
_t = /* @__PURE__ */ _jsx60(Flex17, {
|
|
43255
|
+
flexShrink: "0",
|
|
43256
|
+
height: "24px",
|
|
43257
|
+
width: "24px"
|
|
43258
|
+
});
|
|
43259
|
+
$[1] = _t;
|
|
43260
|
+
} else {
|
|
43261
|
+
_t = $[1];
|
|
43262
|
+
}
|
|
43263
|
+
var t2;
|
|
43264
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43265
|
+
t2 = /* @__PURE__ */ _jsxs20(MessageGroupBase, {
|
|
43266
|
+
children: [
|
|
43267
|
+
_t,
|
|
43268
|
+
/* @__PURE__ */ _jsx60(Box13, {
|
|
43269
|
+
children: /* @__PURE__ */ _jsx60(StartingContentSkeleton, {})
|
|
43270
|
+
})
|
|
43271
|
+
]
|
|
43272
|
+
});
|
|
43273
|
+
$[2] = t2;
|
|
43274
|
+
} else {
|
|
43275
|
+
t2 = $[2];
|
|
43276
|
+
}
|
|
43277
|
+
return t2;
|
|
43310
43278
|
}
|
|
43311
|
-
return
|
|
43279
|
+
return null;
|
|
43312
43280
|
};
|
|
43313
43281
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
43314
43282
|
import { c as _c36 } from "react-compiler-runtime";
|
|
43315
|
-
import { Flex as
|
|
43283
|
+
import { Flex as Flex18 } from "@radix-ui/themes";
|
|
43316
43284
|
// src/hooks/misc/useInfiniteScroll/index.tsx
|
|
43317
43285
|
import { useRef as useRef3 } from "react";
|
|
43318
43286
|
import { useInView } from "react-intersection-observer";
|
|
@@ -43364,7 +43332,7 @@ var useInfiniteScroll = function(_ref) {
|
|
|
43364
43332
|
};
|
|
43365
43333
|
};
|
|
43366
43334
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
43367
|
-
import { jsx as _jsx61, jsxs as
|
|
43335
|
+
import { jsx as _jsx61, jsxs as _jsxs21 } from "react/jsx-runtime";
|
|
43368
43336
|
function ownKeys26(e, r) {
|
|
43369
43337
|
var t = Object.keys(e);
|
|
43370
43338
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -43447,7 +43415,7 @@ var Root2 = function(t0) {
|
|
|
43447
43415
|
}
|
|
43448
43416
|
var t4;
|
|
43449
43417
|
if ($[8] !== hasNextPage || $[9] !== loaderRef) {
|
|
43450
|
-
t4 = hasNextPage && /* @__PURE__ */ _jsx61(
|
|
43418
|
+
t4 = hasNextPage && /* @__PURE__ */ _jsx61(Flex18, {
|
|
43451
43419
|
ref: loaderRef
|
|
43452
43420
|
});
|
|
43453
43421
|
$[8] = hasNextPage;
|
|
@@ -43458,7 +43426,7 @@ var Root2 = function(t0) {
|
|
|
43458
43426
|
}
|
|
43459
43427
|
var t5;
|
|
43460
43428
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43461
|
-
t5 = /* @__PURE__ */ _jsx61(
|
|
43429
|
+
t5 = /* @__PURE__ */ _jsx61(Flex18, {
|
|
43462
43430
|
flexShrink: "0",
|
|
43463
43431
|
flexGrow: "1"
|
|
43464
43432
|
});
|
|
@@ -43468,7 +43436,7 @@ var Root2 = function(t0) {
|
|
|
43468
43436
|
}
|
|
43469
43437
|
var t6;
|
|
43470
43438
|
if ($[12] !== children || $[13] !== className || $[14] !== containerRef || $[15] !== t3 || $[16] !== t4) {
|
|
43471
|
-
t6 = /* @__PURE__ */
|
|
43439
|
+
t6 = /* @__PURE__ */ _jsxs21(Flex18, {
|
|
43472
43440
|
ref: containerRef,
|
|
43473
43441
|
direction: "column-reverse",
|
|
43474
43442
|
flexGrow: "1",
|
|
@@ -43510,14 +43478,14 @@ var NextPageSkeleton = function() {
|
|
|
43510
43478
|
return t0;
|
|
43511
43479
|
};
|
|
43512
43480
|
// src/components/threads/Thread/Messages/index.tsx
|
|
43513
|
-
import { jsx as _jsx63, jsxs as
|
|
43481
|
+
import { jsx as _jsx63, jsxs as _jsxs22 } from "react/jsx-runtime";
|
|
43514
43482
|
var Messages = function(_ref) {
|
|
43515
43483
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
43516
|
-
return /* @__PURE__ */
|
|
43484
|
+
return /* @__PURE__ */ _jsxs22(Root2, {
|
|
43517
43485
|
style: style,
|
|
43518
43486
|
className: className,
|
|
43519
43487
|
children: [
|
|
43520
|
-
/* @__PURE__ */ _jsx63(
|
|
43488
|
+
/* @__PURE__ */ _jsx63(Flex19, {
|
|
43521
43489
|
flexShrink: "0",
|
|
43522
43490
|
height: "var(--space-3)"
|
|
43523
43491
|
}),
|
|
@@ -43525,7 +43493,7 @@ var Messages = function(_ref) {
|
|
|
43525
43493
|
children,
|
|
43526
43494
|
/* @__PURE__ */ _jsx63(Content6, {}),
|
|
43527
43495
|
/* @__PURE__ */ _jsx63(NextPageSkeleton, {}),
|
|
43528
|
-
/* @__PURE__ */ _jsx63(
|
|
43496
|
+
/* @__PURE__ */ _jsx63(Flex19, {
|
|
43529
43497
|
flexShrink: "0",
|
|
43530
43498
|
flexGrow: "1",
|
|
43531
43499
|
minHeight: "var(--space-5)"
|
|
@@ -43539,7 +43507,7 @@ Messages.NextPageSkeleton = NextPageSkeleton;
|
|
|
43539
43507
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
43540
43508
|
import { c as _c38 } from "react-compiler-runtime";
|
|
43541
43509
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
43542
|
-
import { IconButton as IconButton5, Flex as
|
|
43510
|
+
import { IconButton as IconButton5, Flex as Flex20 } from "@radix-ui/themes";
|
|
43543
43511
|
// src/hooks/messages/useMessageFormContext/index.ts
|
|
43544
43512
|
import { useContext as useContext12 } from "react";
|
|
43545
43513
|
// src/contexts/messages/MessageFormContext/index.ts
|
|
@@ -43603,7 +43571,7 @@ function _toPrimitive27(t, r) {
|
|
|
43603
43571
|
}
|
|
43604
43572
|
var Root3 = function(_ref) {
|
|
43605
43573
|
var children = _ref.children, style = _ref.style, className = _ref.className;
|
|
43606
|
-
return /* @__PURE__ */ _jsx64(
|
|
43574
|
+
return /* @__PURE__ */ _jsx64(Flex20, {
|
|
43607
43575
|
flexShrink: "0",
|
|
43608
43576
|
align: "end",
|
|
43609
43577
|
style: style,
|
|
@@ -43685,7 +43653,7 @@ Submit.Button = Button3;
|
|
|
43685
43653
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
43686
43654
|
import { useMemo as useMemo13, useState as useState4 } from "react";
|
|
43687
43655
|
import { useForm, FormProvider } from "react-hook-form";
|
|
43688
|
-
import { Box as
|
|
43656
|
+
import { Box as Box14 } from "@radix-ui/themes";
|
|
43689
43657
|
// src/components/threads/Thread/MessageForm/Root/lib/formOptions.ts
|
|
43690
43658
|
import { z } from "zod";
|
|
43691
43659
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
@@ -43867,7 +43835,7 @@ var Root4 = function(_ref) {
|
|
|
43867
43835
|
content: content2
|
|
43868
43836
|
},
|
|
43869
43837
|
children: /* @__PURE__ */ _jsx65(FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
|
|
43870
|
-
children: /* @__PURE__ */ _jsx65(
|
|
43838
|
+
children: /* @__PURE__ */ _jsx65(Box14, {
|
|
43871
43839
|
asChild: true,
|
|
43872
43840
|
flexShrink: "0",
|
|
43873
43841
|
style: style,
|
|
@@ -43882,9 +43850,9 @@ var Root4 = function(_ref) {
|
|
|
43882
43850
|
};
|
|
43883
43851
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
43884
43852
|
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
43885
|
-
import { Container as RadixContainer, Flex as
|
|
43853
|
+
import { Container as RadixContainer, Flex as Flex24 } from "@radix-ui/themes";
|
|
43886
43854
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
43887
|
-
import { Flex as
|
|
43855
|
+
import { Flex as Flex21 } from "@radix-ui/themes";
|
|
43888
43856
|
import { useFormContext } from "react-hook-form";
|
|
43889
43857
|
// src/hooks/misc/usePrevious.ts
|
|
43890
43858
|
import { useEffect as useEffect5, useRef as useRef4 } from "react";
|
|
@@ -43901,7 +43869,7 @@ import { useContext as useContext13, useMemo as useMemo14, useRef as useRef5, us
|
|
|
43901
43869
|
import { c as _c39 } from "react-compiler-runtime";
|
|
43902
43870
|
import { forwardRef as forwardRef4 } from "react";
|
|
43903
43871
|
import TextareaAutosize from "react-textarea-autosize";
|
|
43904
|
-
import { jsx as _jsx66, Fragment as _Fragment4, jsxs as
|
|
43872
|
+
import { jsx as _jsx66, Fragment as _Fragment4, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
43905
43873
|
var _excluded3 = [
|
|
43906
43874
|
"style",
|
|
43907
43875
|
"className"
|
|
@@ -44023,7 +43991,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44023
43991
|
}
|
|
44024
43992
|
var t5;
|
|
44025
43993
|
if ($[9] !== ref || $[10] !== rest || $[11] !== t2 || $[12] !== t4) {
|
|
44026
|
-
t5 = /* @__PURE__ */
|
|
43994
|
+
t5 = /* @__PURE__ */ _jsxs23(_Fragment4, {
|
|
44027
43995
|
children: [
|
|
44028
43996
|
t1,
|
|
44029
43997
|
/* @__PURE__ */ _jsx66(TextareaAutosize, _objectSpread29({
|
|
@@ -44090,7 +44058,7 @@ function _toPrimitive30(t, r) {
|
|
|
44090
44058
|
}
|
|
44091
44059
|
var Root5 = function(_ref) {
|
|
44092
44060
|
var children = _ref.children, style = _ref.style, className = _ref.className;
|
|
44093
|
-
return /* @__PURE__ */ _jsx67(
|
|
44061
|
+
return /* @__PURE__ */ _jsx67(Flex21, {
|
|
44094
44062
|
flexGrow: "1",
|
|
44095
44063
|
pt: "4px",
|
|
44096
44064
|
style: style,
|
|
@@ -44151,9 +44119,9 @@ Control.Root = Root5;
|
|
|
44151
44119
|
Control.Input = Input;
|
|
44152
44120
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
44153
44121
|
import { c as _c40 } from "react-compiler-runtime";
|
|
44154
|
-
import { Flex as
|
|
44122
|
+
import { Flex as Flex22, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
44155
44123
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
44156
|
-
import { jsx as _jsx68, jsxs as
|
|
44124
|
+
import { jsx as _jsx68, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
44157
44125
|
function ownKeys31(e, r) {
|
|
44158
44126
|
var t = Object.keys(e);
|
|
44159
44127
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44210,19 +44178,19 @@ var Preview = function(props) {
|
|
|
44210
44178
|
_t = function(file) {
|
|
44211
44179
|
return /* @__PURE__ */ _jsx68(Card2, {
|
|
44212
44180
|
variant: "ghost",
|
|
44213
|
-
children: /* @__PURE__ */
|
|
44181
|
+
children: /* @__PURE__ */ _jsxs24(Flex22, {
|
|
44214
44182
|
align: "center",
|
|
44215
44183
|
justify: "between",
|
|
44216
44184
|
gap: "1",
|
|
44217
44185
|
children: [
|
|
44218
|
-
/* @__PURE__ */
|
|
44186
|
+
/* @__PURE__ */ _jsxs24(Flex22, {
|
|
44219
44187
|
align: "center",
|
|
44220
44188
|
gap: "1",
|
|
44221
44189
|
flexShrink: "1",
|
|
44222
44190
|
minWidth: "0",
|
|
44223
44191
|
maxWidth: "250px",
|
|
44224
44192
|
children: [
|
|
44225
|
-
/* @__PURE__ */ _jsx68(
|
|
44193
|
+
/* @__PURE__ */ _jsx68(Flex22, {
|
|
44226
44194
|
flexShrink: "0",
|
|
44227
44195
|
children: /* @__PURE__ */ _jsx68(Spinner2, {
|
|
44228
44196
|
loading: isOptimistic({
|
|
@@ -44239,7 +44207,7 @@ var Preview = function(props) {
|
|
|
44239
44207
|
})
|
|
44240
44208
|
]
|
|
44241
44209
|
}),
|
|
44242
|
-
/* @__PURE__ */ _jsx68(
|
|
44210
|
+
/* @__PURE__ */ _jsx68(Flex22, {
|
|
44243
44211
|
flexShrink: "0",
|
|
44244
44212
|
children: /* @__PURE__ */ _jsx68(IconButton6, {
|
|
44245
44213
|
onClick: function() {
|
|
@@ -44273,7 +44241,7 @@ var Preview = function(props) {
|
|
|
44273
44241
|
}
|
|
44274
44242
|
var t1;
|
|
44275
44243
|
if ($[5] !== props || $[6] !== t0) {
|
|
44276
|
-
t1 = /* @__PURE__ */ _jsx68(
|
|
44244
|
+
t1 = /* @__PURE__ */ _jsx68(Flex22, _objectSpread31(_objectSpread31({
|
|
44277
44245
|
flexBasis: "100%",
|
|
44278
44246
|
direction: "column",
|
|
44279
44247
|
pb: "2",
|
|
@@ -44294,7 +44262,7 @@ import { useCallback as useCallback3 } from "react";
|
|
|
44294
44262
|
import { omit as omit4 } from "radash";
|
|
44295
44263
|
import dayjs2 from "dayjs";
|
|
44296
44264
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
44297
|
-
import { IconButton as IconButton7, Flex as
|
|
44265
|
+
import { IconButton as IconButton7, Flex as Flex23 } from "@radix-ui/themes";
|
|
44298
44266
|
// src/hooks/files/useCreateFile/index.ts
|
|
44299
44267
|
import { c as _c41 } from "react-compiler-runtime";
|
|
44300
44268
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
@@ -44536,7 +44504,7 @@ var useCreateFile = function(t0) {
|
|
|
44536
44504
|
var t1;
|
|
44537
44505
|
if ($[0] !== t0) {
|
|
44538
44506
|
t1 = t0 === void 0 ? {
|
|
44539
|
-
onError:
|
|
44507
|
+
onError: _temp4
|
|
44540
44508
|
} : t0;
|
|
44541
44509
|
$[0] = t0;
|
|
44542
44510
|
$[1] = t1;
|
|
@@ -44605,10 +44573,10 @@ var useCreateFile = function(t0) {
|
|
|
44605
44573
|
}
|
|
44606
44574
|
return t6;
|
|
44607
44575
|
};
|
|
44608
|
-
function
|
|
44576
|
+
function _temp4() {}
|
|
44609
44577
|
function _temp22() {}
|
|
44610
44578
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
44611
|
-
import { jsx as _jsx69, jsxs as
|
|
44579
|
+
import { jsx as _jsx69, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
44612
44580
|
function ownKeys35(e, r) {
|
|
44613
44581
|
var t = Object.keys(e);
|
|
44614
44582
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44889,12 +44857,12 @@ var Control2 = function(props) {
|
|
|
44889
44857
|
createFile,
|
|
44890
44858
|
setFiles
|
|
44891
44859
|
]);
|
|
44892
|
-
return /* @__PURE__ */ _jsx69(
|
|
44860
|
+
return /* @__PURE__ */ _jsx69(Flex23, _objectSpread35(_objectSpread35({
|
|
44893
44861
|
pt: "2",
|
|
44894
44862
|
pr: "2",
|
|
44895
44863
|
flexGrow: "0"
|
|
44896
44864
|
}, props), {}, {
|
|
44897
|
-
children: /* @__PURE__ */
|
|
44865
|
+
children: /* @__PURE__ */ _jsxs25(IconButton7, {
|
|
44898
44866
|
type: "button",
|
|
44899
44867
|
variant: "ghost",
|
|
44900
44868
|
color: "gray",
|
|
@@ -44983,13 +44951,13 @@ var Root6 = function(_ref) {
|
|
|
44983
44951
|
flexGrow: "0",
|
|
44984
44952
|
className: className,
|
|
44985
44953
|
style: style,
|
|
44986
|
-
children: /* @__PURE__ */ _jsx70(
|
|
44954
|
+
children: /* @__PURE__ */ _jsx70(Flex24, {
|
|
44987
44955
|
direction: "column",
|
|
44988
44956
|
flexShrink: "0",
|
|
44989
|
-
children: /* @__PURE__ */ _jsx70(
|
|
44957
|
+
children: /* @__PURE__ */ _jsx70(Flex24, {
|
|
44990
44958
|
direction: "column",
|
|
44991
44959
|
flexShrink: "0",
|
|
44992
|
-
children: /* @__PURE__ */ _jsx70(
|
|
44960
|
+
children: /* @__PURE__ */ _jsx70(Flex24, {
|
|
44993
44961
|
style: _objectSpread36({
|
|
44994
44962
|
borderRadius: "var(--radius-2)",
|
|
44995
44963
|
borderWidth: "1px",
|
|
@@ -45013,7 +44981,7 @@ var Field = {
|
|
|
45013
44981
|
Files: Files
|
|
45014
44982
|
};
|
|
45015
44983
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
45016
|
-
import { jsx as _jsx71, jsxs as
|
|
44984
|
+
import { jsx as _jsx71, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
45017
44985
|
function ownKeys37(e, r) {
|
|
45018
44986
|
var t = Object.keys(e);
|
|
45019
44987
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45059,7 +45027,7 @@ function _toPrimitive37(t, r) {
|
|
|
45059
45027
|
}
|
|
45060
45028
|
var MessageForm = function(props) {
|
|
45061
45029
|
return /* @__PURE__ */ _jsx71(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
|
|
45062
|
-
children: /* @__PURE__ */
|
|
45030
|
+
children: /* @__PURE__ */ _jsxs26(Field.Root, {
|
|
45063
45031
|
children: [
|
|
45064
45032
|
/* @__PURE__ */ _jsx71(Field.Control, {}),
|
|
45065
45033
|
/* @__PURE__ */ _jsx71(Submit, {})
|
|
@@ -45071,7 +45039,7 @@ MessageForm.Root = Root4;
|
|
|
45071
45039
|
MessageForm.Field = Field;
|
|
45072
45040
|
MessageForm.Submit = Submit;
|
|
45073
45041
|
// src/components/threads/Thread/Root/index.tsx
|
|
45074
|
-
import { Flex as
|
|
45042
|
+
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
45075
45043
|
// src/components/threads/Thread/Provider/index.tsx
|
|
45076
45044
|
var Provider2 = SuperinterfaceProvider;
|
|
45077
45045
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
@@ -45080,17 +45048,17 @@ import { useState as useState5, useCallback as useCallback4 } from "react";
|
|
|
45080
45048
|
import * as Toast2 from "@radix-ui/react-toast";
|
|
45081
45049
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
45082
45050
|
import * as Toast from "@radix-ui/react-toast";
|
|
45083
|
-
import { Card as Card3, Text as Text8, Flex as
|
|
45051
|
+
import { Card as Card3, Text as Text8, Flex as Flex25 } from "@radix-ui/themes";
|
|
45084
45052
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
45085
|
-
import { jsx as _jsx72, jsxs as
|
|
45053
|
+
import { jsx as _jsx72, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
45086
45054
|
var CustomToast = function(_ref) {
|
|
45087
45055
|
var toast = _ref.toast;
|
|
45088
45056
|
return /* @__PURE__ */ _jsx72(Toast.Root, {
|
|
45089
45057
|
children: /* @__PURE__ */ _jsx72(Card3, {
|
|
45090
45058
|
children: /* @__PURE__ */ _jsx72(Toast.Title, {
|
|
45091
|
-
children: /* @__PURE__ */
|
|
45059
|
+
children: /* @__PURE__ */ _jsxs27(Flex25, {
|
|
45092
45060
|
children: [
|
|
45093
|
-
/* @__PURE__ */ _jsx72(
|
|
45061
|
+
/* @__PURE__ */ _jsx72(Flex25, {
|
|
45094
45062
|
pr: "2",
|
|
45095
45063
|
height: "14px",
|
|
45096
45064
|
align: "center",
|
|
@@ -45112,7 +45080,7 @@ var CustomToast = function(_ref) {
|
|
|
45112
45080
|
});
|
|
45113
45081
|
};
|
|
45114
45082
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
45115
|
-
import { jsx as _jsx73, jsxs as
|
|
45083
|
+
import { jsx as _jsx73, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
45116
45084
|
var ToastsProvider = function(t0) {
|
|
45117
45085
|
var $ = _c42(15);
|
|
45118
45086
|
var children = t0.children, t1 = t0.bottom;
|
|
@@ -45152,7 +45120,7 @@ var ToastsProvider = function(t0) {
|
|
|
45152
45120
|
}
|
|
45153
45121
|
var t5;
|
|
45154
45122
|
if ($[4] !== toasts) {
|
|
45155
|
-
t5 = Array.from(toasts).map(
|
|
45123
|
+
t5 = Array.from(toasts).map(_temp5);
|
|
45156
45124
|
$[4] = toasts;
|
|
45157
45125
|
$[5] = t5;
|
|
45158
45126
|
} else {
|
|
@@ -45184,7 +45152,7 @@ var ToastsProvider = function(t0) {
|
|
|
45184
45152
|
}
|
|
45185
45153
|
var t7;
|
|
45186
45154
|
if ($[8] !== children || $[9] !== t5 || $[10] !== t6) {
|
|
45187
|
-
t7 = /* @__PURE__ */
|
|
45155
|
+
t7 = /* @__PURE__ */ _jsxs28(Toast2.Provider, {
|
|
45188
45156
|
children: [
|
|
45189
45157
|
children,
|
|
45190
45158
|
t5,
|
|
@@ -45212,7 +45180,7 @@ var ToastsProvider = function(t0) {
|
|
|
45212
45180
|
}
|
|
45213
45181
|
return t8;
|
|
45214
45182
|
};
|
|
45215
|
-
function
|
|
45183
|
+
function _temp5(toast_0, index) {
|
|
45216
45184
|
return /* @__PURE__ */ _jsx73(CustomToast, {
|
|
45217
45185
|
toast: toast_0
|
|
45218
45186
|
}, index);
|
|
@@ -45290,7 +45258,7 @@ var Root8 = function(_ref) {
|
|
|
45290
45258
|
return /* @__PURE__ */ _jsx74(ToastsProvider, {
|
|
45291
45259
|
bottom: "var(--space-9)",
|
|
45292
45260
|
children: /* @__PURE__ */ _jsx74(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
|
|
45293
|
-
children: /* @__PURE__ */ _jsx74(
|
|
45261
|
+
children: /* @__PURE__ */ _jsx74(Flex26, {
|
|
45294
45262
|
direction: "column",
|
|
45295
45263
|
flexGrow: "1",
|
|
45296
45264
|
className: className,
|
|
@@ -45301,7 +45269,7 @@ var Root8 = function(_ref) {
|
|
|
45301
45269
|
});
|
|
45302
45270
|
};
|
|
45303
45271
|
// src/components/threads/Thread/index.tsx
|
|
45304
|
-
import { jsx as _jsx75, jsxs as
|
|
45272
|
+
import { jsx as _jsx75, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
45305
45273
|
function ownKeys39(e, r) {
|
|
45306
45274
|
var t = Object.keys(e);
|
|
45307
45275
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45346,7 +45314,7 @@ function _toPrimitive39(t, r) {
|
|
|
45346
45314
|
return ("string" === r ? String : Number)(t);
|
|
45347
45315
|
}
|
|
45348
45316
|
var Thread = function(props) {
|
|
45349
|
-
return /* @__PURE__ */
|
|
45317
|
+
return /* @__PURE__ */ _jsxs29(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
|
|
45350
45318
|
children: [
|
|
45351
45319
|
/* @__PURE__ */ _jsx75(Messages, {}),
|
|
45352
45320
|
/* @__PURE__ */ _jsx75(MessageForm, {})
|
|
@@ -45600,7 +45568,7 @@ var Root9 = function(_ref) {
|
|
|
45600
45568
|
};
|
|
45601
45569
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
45602
45570
|
import { c as _c45 } from "react-compiler-runtime";
|
|
45603
|
-
import { Flex as
|
|
45571
|
+
import { Flex as Flex27 } from "@radix-ui/themes";
|
|
45604
45572
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
45605
45573
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
45606
45574
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
@@ -45720,7 +45688,7 @@ var Root10 = function(t0) {
|
|
|
45720
45688
|
var t3;
|
|
45721
45689
|
if ($[2] !== setIsOpen) {
|
|
45722
45690
|
t3 = function() {
|
|
45723
|
-
return setIsOpen(
|
|
45691
|
+
return setIsOpen(_temp6);
|
|
45724
45692
|
};
|
|
45725
45693
|
$[2] = setIsOpen;
|
|
45726
45694
|
$[3] = t3;
|
|
@@ -45747,7 +45715,7 @@ var Root10 = function(t0) {
|
|
|
45747
45715
|
}
|
|
45748
45716
|
var t6;
|
|
45749
45717
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
45750
|
-
t6 = /* @__PURE__ */ _jsx79(
|
|
45718
|
+
t6 = /* @__PURE__ */ _jsx79(Flex27, {
|
|
45751
45719
|
display: t2,
|
|
45752
45720
|
onClick: t3,
|
|
45753
45721
|
direction: "column",
|
|
@@ -45779,16 +45747,16 @@ var Trigger = function(args) {
|
|
|
45779
45747
|
};
|
|
45780
45748
|
Trigger.Root = Root10;
|
|
45781
45749
|
Trigger.Button = Button4;
|
|
45782
|
-
function
|
|
45750
|
+
function _temp6(prev) {
|
|
45783
45751
|
return !prev;
|
|
45784
45752
|
}
|
|
45785
45753
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
45786
45754
|
import { c as _c47 } from "react-compiler-runtime";
|
|
45787
|
-
import { Card as Card4, Inset as Inset2, Flex as
|
|
45755
|
+
import { Card as Card4, Inset as Inset2, Flex as Flex29 } from "@radix-ui/themes";
|
|
45788
45756
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
45789
45757
|
import { c as _c46 } from "react-compiler-runtime";
|
|
45790
45758
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
45791
|
-
import { IconButton as IconButton9, Flex as
|
|
45759
|
+
import { IconButton as IconButton9, Flex as Flex28 } from "@radix-ui/themes";
|
|
45792
45760
|
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
45793
45761
|
var Close = function() {
|
|
45794
45762
|
var $ = _c46(9);
|
|
@@ -45808,7 +45776,7 @@ var Close = function() {
|
|
|
45808
45776
|
var t2;
|
|
45809
45777
|
if ($[2] !== setIsOpen) {
|
|
45810
45778
|
t2 = function() {
|
|
45811
|
-
return setIsOpen(
|
|
45779
|
+
return setIsOpen(_temp7);
|
|
45812
45780
|
};
|
|
45813
45781
|
$[2] = setIsOpen;
|
|
45814
45782
|
$[3] = t2;
|
|
@@ -45837,7 +45805,7 @@ var Close = function() {
|
|
|
45837
45805
|
}
|
|
45838
45806
|
var t5;
|
|
45839
45807
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
45840
|
-
t5 = /* @__PURE__ */ _jsx80(
|
|
45808
|
+
t5 = /* @__PURE__ */ _jsx80(Flex28, {
|
|
45841
45809
|
display: t1,
|
|
45842
45810
|
onClick: t2,
|
|
45843
45811
|
direction: "column",
|
|
@@ -45858,11 +45826,11 @@ var Close = function() {
|
|
|
45858
45826
|
}
|
|
45859
45827
|
return t5;
|
|
45860
45828
|
};
|
|
45861
|
-
function
|
|
45829
|
+
function _temp7(prev) {
|
|
45862
45830
|
return !prev;
|
|
45863
45831
|
}
|
|
45864
45832
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
45865
|
-
import { jsx as _jsx81, jsxs as
|
|
45833
|
+
import { jsx as _jsx81, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
45866
45834
|
function ownKeys43(e, r) {
|
|
45867
45835
|
var t = Object.keys(e);
|
|
45868
45836
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46015,7 +45983,7 @@ var Root11 = function(t0) {
|
|
|
46015
45983
|
}
|
|
46016
45984
|
var t12;
|
|
46017
45985
|
if ($[13] !== t10) {
|
|
46018
|
-
t12 = /* @__PURE__ */
|
|
45986
|
+
t12 = /* @__PURE__ */ _jsxs30(Card4, {
|
|
46019
45987
|
mb: t7,
|
|
46020
45988
|
style: t8,
|
|
46021
45989
|
children: [
|
|
@@ -46030,7 +45998,7 @@ var Root11 = function(t0) {
|
|
|
46030
45998
|
}
|
|
46031
45999
|
var t13;
|
|
46032
46000
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
46033
|
-
t13 = /* @__PURE__ */ _jsx81(
|
|
46001
|
+
t13 = /* @__PURE__ */ _jsx81(Flex29, {
|
|
46034
46002
|
className: className,
|
|
46035
46003
|
direction: "column",
|
|
46036
46004
|
justify: "end",
|
|
@@ -46066,7 +46034,7 @@ var Messages2 = function(_ref) {
|
|
|
46066
46034
|
};
|
|
46067
46035
|
var FormContainer = function(_ref2) {
|
|
46068
46036
|
var children = _ref2.children, className = _ref2.className, style = _ref2.style;
|
|
46069
|
-
return /* @__PURE__ */ _jsx81(
|
|
46037
|
+
return /* @__PURE__ */ _jsx81(Flex29, {
|
|
46070
46038
|
direction: "column",
|
|
46071
46039
|
pl: "5",
|
|
46072
46040
|
pr: "5",
|
|
@@ -46079,7 +46047,7 @@ var FormContainer = function(_ref2) {
|
|
|
46079
46047
|
};
|
|
46080
46048
|
var Content7 = function(props) {
|
|
46081
46049
|
return /* @__PURE__ */ _jsx81(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
|
|
46082
|
-
children: /* @__PURE__ */
|
|
46050
|
+
children: /* @__PURE__ */ _jsxs30(Thread.Root, {
|
|
46083
46051
|
children: [
|
|
46084
46052
|
/* @__PURE__ */ _jsx81(Messages2, {}),
|
|
46085
46053
|
/* @__PURE__ */ _jsx81(FormContainer, {
|
|
@@ -46093,9 +46061,9 @@ Content7.Root = Root11;
|
|
|
46093
46061
|
Content7.Messages = Messages2;
|
|
46094
46062
|
Content7.FormContainer = FormContainer;
|
|
46095
46063
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46096
|
-
import { jsx as _jsx82, jsxs as
|
|
46064
|
+
import { jsx as _jsx82, jsxs as _jsxs31 } from "react/jsx-runtime";
|
|
46097
46065
|
var ThreadDialog = function() {
|
|
46098
|
-
return /* @__PURE__ */
|
|
46066
|
+
return /* @__PURE__ */ _jsxs31(Root9, {
|
|
46099
46067
|
children: [
|
|
46100
46068
|
/* @__PURE__ */ _jsx82(Content7, {}),
|
|
46101
46069
|
/* @__PURE__ */ _jsx82(Trigger, {})
|
|
@@ -46107,7 +46075,7 @@ ThreadDialog.Trigger = Trigger;
|
|
|
46107
46075
|
ThreadDialog.Content = Content7;
|
|
46108
46076
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
46109
46077
|
import { c as _c53 } from "react-compiler-runtime";
|
|
46110
|
-
import { Flex as
|
|
46078
|
+
import { Flex as Flex30 } from "@radix-ui/themes";
|
|
46111
46079
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
46112
46080
|
import { createContext as createContext13 } from "react";
|
|
46113
46081
|
var AudioThreadContext = /* @__PURE__ */ createContext13({
|
|
@@ -46201,7 +46169,7 @@ import { c as _c49 } from "react-compiler-runtime";
|
|
|
46201
46169
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
46202
46170
|
var useInterval = function(callback, delay) {
|
|
46203
46171
|
var $ = _c49(5);
|
|
46204
|
-
var savedCallback = useRef6(
|
|
46172
|
+
var savedCallback = useRef6(_temp8);
|
|
46205
46173
|
var t0;
|
|
46206
46174
|
if ($[0] !== callback) {
|
|
46207
46175
|
t0 = function() {
|
|
@@ -46238,7 +46206,7 @@ var useInterval = function(callback, delay) {
|
|
|
46238
46206
|
}
|
|
46239
46207
|
useEffect8(t1, t2);
|
|
46240
46208
|
};
|
|
46241
|
-
function
|
|
46209
|
+
function _temp8() {}
|
|
46242
46210
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
46243
46211
|
function ownKeys44(e, r) {
|
|
46244
46212
|
var t = Object.keys(e);
|
|
@@ -46459,7 +46427,7 @@ import nlp from "compromise";
|
|
|
46459
46427
|
import { Howler } from "howler";
|
|
46460
46428
|
import { useAudioPlayer as useAudioPlayer2 } from "react-use-audio-player";
|
|
46461
46429
|
// src/hooks/audioThreads/useMessageAudio/lib/input.ts
|
|
46462
|
-
import { isEmpty as
|
|
46430
|
+
import { isEmpty as isEmpty2 } from "radash";
|
|
46463
46431
|
var input = function(_ref) {
|
|
46464
46432
|
var message = _ref.message;
|
|
46465
46433
|
var textContents = message.content.filter(function(c) {
|
|
@@ -46468,7 +46436,7 @@ var input = function(_ref) {
|
|
|
46468
46436
|
var result = textContents.map(function(c) {
|
|
46469
46437
|
return c.text.value;
|
|
46470
46438
|
}).join(" ");
|
|
46471
|
-
if (
|
|
46439
|
+
if (isEmpty2(result)) return null;
|
|
46472
46440
|
return result;
|
|
46473
46441
|
};
|
|
46474
46442
|
// src/hooks/audioThreads/useMessageAudio/lib/isHtmlAudioSupported.ts
|
|
@@ -46787,7 +46755,7 @@ var useMessageAudio = function(t0) {
|
|
|
46787
46755
|
} else {
|
|
46788
46756
|
t8 = $[37];
|
|
46789
46757
|
}
|
|
46790
|
-
useEffect10(
|
|
46758
|
+
useEffect10(_temp9, t8);
|
|
46791
46759
|
var _useState94 = _sliced_to_array(useState9(null), 2), audioEngine = _useState94[0], setAudioEngine = _useState94[1];
|
|
46792
46760
|
var isAudioEngineInited = useRef8(false);
|
|
46793
46761
|
var t9;
|
|
@@ -46871,7 +46839,7 @@ var useMessageAudio = function(t0) {
|
|
|
46871
46839
|
}
|
|
46872
46840
|
return t13;
|
|
46873
46841
|
};
|
|
46874
|
-
function
|
|
46842
|
+
function _temp9() {
|
|
46875
46843
|
if (isHtmlAudioSupported) {
|
|
46876
46844
|
var _Howler$_howls$;
|
|
46877
46845
|
if (!(Howler !== null && Howler !== void 0 && (_Howler$_howls$ = Howler._howls[0]) !== null && _Howler$_howls$ !== void 0 && (_Howler$_howls$ = _Howler$_howls$._sounds[0]) !== null && _Howler$_howls$ !== void 0 && _Howler$_howls$._node)) {
|
|
@@ -46946,7 +46914,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
46946
46914
|
if ($[1] !== createMessageProps) {
|
|
46947
46915
|
t2 = {
|
|
46948
46916
|
isStopOnSilence: true,
|
|
46949
|
-
onStart:
|
|
46917
|
+
onStart: _temp10,
|
|
46950
46918
|
onStop: function() {
|
|
46951
46919
|
var _onStop = _asyncToGenerator11(function(_event, chunks) {
|
|
46952
46920
|
var blob, audioContent;
|
|
@@ -47083,7 +47051,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
47083
47051
|
t5 = t8;
|
|
47084
47052
|
return t5;
|
|
47085
47053
|
};
|
|
47086
|
-
function
|
|
47054
|
+
function _temp10() {
|
|
47087
47055
|
return _temp23.apply(this, arguments);
|
|
47088
47056
|
}
|
|
47089
47057
|
function _temp23() {
|
|
@@ -47210,7 +47178,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
47210
47178
|
}
|
|
47211
47179
|
var Content8 = function(_ref) {
|
|
47212
47180
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
47213
|
-
return /* @__PURE__ */ _jsx84(
|
|
47181
|
+
return /* @__PURE__ */ _jsx84(Flex30, {
|
|
47214
47182
|
direction: "column",
|
|
47215
47183
|
flexGrow: "1",
|
|
47216
47184
|
p: "9",
|
|
@@ -47298,10 +47266,10 @@ var Root12 = function(_ref2) {
|
|
|
47298
47266
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
47299
47267
|
import { useContext as useContext17, useState as useState11, useCallback as useCallback8, useEffect as useEffect12 } from "react";
|
|
47300
47268
|
import _9 from "lodash";
|
|
47301
|
-
import { Flex as
|
|
47269
|
+
import { Flex as Flex32 } from "@radix-ui/themes";
|
|
47302
47270
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
47303
47271
|
import _8 from "lodash";
|
|
47304
|
-
import { Flex as
|
|
47272
|
+
import { Flex as Flex31, Grid } from "@radix-ui/themes";
|
|
47305
47273
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback7 } from "react";
|
|
47306
47274
|
import { cluster } from "radash";
|
|
47307
47275
|
import { jsx as _jsx85 } from "react/jsx-runtime";
|
|
@@ -47344,12 +47312,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
47344
47312
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
47345
47313
|
},
|
|
47346
47314
|
children: barHeights.map(function(barHeight, index) {
|
|
47347
|
-
return /* @__PURE__ */ _jsx85(
|
|
47315
|
+
return /* @__PURE__ */ _jsx85(Flex31, {
|
|
47348
47316
|
direction: "column",
|
|
47349
47317
|
align: "center",
|
|
47350
47318
|
justify: "center",
|
|
47351
47319
|
height: height,
|
|
47352
|
-
children: /* @__PURE__ */ _jsx85(
|
|
47320
|
+
children: /* @__PURE__ */ _jsx85(Flex31, {
|
|
47353
47321
|
minHeight: "50%",
|
|
47354
47322
|
maxHeight: "100%",
|
|
47355
47323
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -47415,7 +47383,7 @@ var useStatus = function() {
|
|
|
47415
47383
|
return t1;
|
|
47416
47384
|
};
|
|
47417
47385
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
47418
|
-
import { jsx as _jsx86, jsxs as
|
|
47386
|
+
import { jsx as _jsx86, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
47419
47387
|
function ownKeys47(e, r) {
|
|
47420
47388
|
var t = Object.keys(e);
|
|
47421
47389
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -47487,7 +47455,7 @@ var Visualization = function(props) {
|
|
|
47487
47455
|
draw,
|
|
47488
47456
|
audioThreadContext
|
|
47489
47457
|
]);
|
|
47490
|
-
return /* @__PURE__ */
|
|
47458
|
+
return /* @__PURE__ */ _jsxs32(Flex32, _objectSpread47(_objectSpread47({
|
|
47491
47459
|
direction: "column",
|
|
47492
47460
|
align: "center",
|
|
47493
47461
|
justify: "center",
|
|
@@ -47495,7 +47463,7 @@ var Visualization = function(props) {
|
|
|
47495
47463
|
flexGrow: "1"
|
|
47496
47464
|
}, props), {}, {
|
|
47497
47465
|
children: [
|
|
47498
|
-
/* @__PURE__ */ _jsx86(
|
|
47466
|
+
/* @__PURE__ */ _jsx86(Flex32, {
|
|
47499
47467
|
align: "center",
|
|
47500
47468
|
justify: "center",
|
|
47501
47469
|
height: "200px",
|
|
@@ -47512,7 +47480,7 @@ var Visualization = function(props) {
|
|
|
47512
47480
|
barWidth: "24px"
|
|
47513
47481
|
})
|
|
47514
47482
|
}),
|
|
47515
|
-
/* @__PURE__ */
|
|
47483
|
+
/* @__PURE__ */ _jsxs32(Flex32, {
|
|
47516
47484
|
ml: "-22.5px",
|
|
47517
47485
|
gap: "3",
|
|
47518
47486
|
pt: "5",
|
|
@@ -47529,8 +47497,8 @@ var Visualization = function(props) {
|
|
|
47529
47497
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
47530
47498
|
import { c as _c55 } from "react-compiler-runtime";
|
|
47531
47499
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
47532
|
-
import { Flex as
|
|
47533
|
-
import { jsx as _jsx87, jsxs as
|
|
47500
|
+
import { Flex as Flex33, Text as Text9 } from "@radix-ui/themes";
|
|
47501
|
+
import { jsx as _jsx87, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
47534
47502
|
var html = function(_ref) {
|
|
47535
47503
|
var texts = _ref.texts;
|
|
47536
47504
|
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) {
|
|
@@ -47539,7 +47507,7 @@ var html = function(_ref) {
|
|
|
47539
47507
|
};
|
|
47540
47508
|
var StatusMessages = function(_ref2) {
|
|
47541
47509
|
var texts = _ref2.texts, className = _ref2.className, style = _ref2.style;
|
|
47542
|
-
return /* @__PURE__ */
|
|
47510
|
+
return /* @__PURE__ */ _jsxs33(Flex33, {
|
|
47543
47511
|
justify: "center",
|
|
47544
47512
|
pb: "5",
|
|
47545
47513
|
className: className,
|
|
@@ -47705,7 +47673,7 @@ var Status = function(props) {
|
|
|
47705
47673
|
};
|
|
47706
47674
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
47707
47675
|
import { c as _c57 } from "react-compiler-runtime";
|
|
47708
|
-
import { Flex as
|
|
47676
|
+
import { Flex as Flex35 } from "@radix-ui/themes";
|
|
47709
47677
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
47710
47678
|
import { jsx as _jsx89 } from "react/jsx-runtime";
|
|
47711
47679
|
function ownKeys49(e, r) {
|
|
@@ -47769,9 +47737,9 @@ var MicIcon = function(props) {
|
|
|
47769
47737
|
};
|
|
47770
47738
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
47771
47739
|
import { c as _c56 } from "react-compiler-runtime";
|
|
47772
|
-
import { Flex as
|
|
47740
|
+
import { Flex as Flex34, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
47773
47741
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
47774
|
-
import { jsx as _jsx90, jsxs as
|
|
47742
|
+
import { jsx as _jsx90, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
47775
47743
|
var ActionButton = function() {
|
|
47776
47744
|
var $ = _c56(27);
|
|
47777
47745
|
var status = useStatus().status;
|
|
@@ -47787,7 +47755,7 @@ var ActionButton = function() {
|
|
|
47787
47755
|
}
|
|
47788
47756
|
var t1;
|
|
47789
47757
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
47790
|
-
t1 = /* @__PURE__ */ _jsx90(
|
|
47758
|
+
t1 = /* @__PURE__ */ _jsx90(Flex34, {
|
|
47791
47759
|
mr: "3",
|
|
47792
47760
|
ml: "-7",
|
|
47793
47761
|
children: /* @__PURE__ */ _jsx90(IconButton10, {
|
|
@@ -47826,7 +47794,7 @@ var ActionButton = function() {
|
|
|
47826
47794
|
}
|
|
47827
47795
|
var t4;
|
|
47828
47796
|
if ($[6] !== t1 || $[7] !== t3) {
|
|
47829
|
-
t4 = /* @__PURE__ */
|
|
47797
|
+
t4 = /* @__PURE__ */ _jsxs34(Flex34, {
|
|
47830
47798
|
align: "center",
|
|
47831
47799
|
children: [
|
|
47832
47800
|
t1,
|
|
@@ -47966,7 +47934,7 @@ var ActionButton = function() {
|
|
|
47966
47934
|
return t0;
|
|
47967
47935
|
};
|
|
47968
47936
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
47969
|
-
import { jsx as _jsx91, jsxs as
|
|
47937
|
+
import { jsx as _jsx91, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
47970
47938
|
function ownKeys50(e, r) {
|
|
47971
47939
|
var t = Object.keys(e);
|
|
47972
47940
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -48017,7 +47985,7 @@ var Form = function(props) {
|
|
|
48017
47985
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48018
47986
|
var t1;
|
|
48019
47987
|
if ($[0] !== t0) {
|
|
48020
|
-
t1 = /* @__PURE__ */ _jsx91(
|
|
47988
|
+
t1 = /* @__PURE__ */ _jsx91(Flex35, {
|
|
48021
47989
|
ml: "-22.5px",
|
|
48022
47990
|
mr: "2",
|
|
48023
47991
|
align: "center",
|
|
@@ -48061,7 +48029,7 @@ var Form = function(props) {
|
|
|
48061
48029
|
}
|
|
48062
48030
|
var t6;
|
|
48063
48031
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
48064
|
-
t6 = /* @__PURE__ */ _jsx91(
|
|
48032
|
+
t6 = /* @__PURE__ */ _jsx91(Flex35, {
|
|
48065
48033
|
px: "2",
|
|
48066
48034
|
py: "1",
|
|
48067
48035
|
style: t3,
|
|
@@ -48075,7 +48043,7 @@ var Form = function(props) {
|
|
|
48075
48043
|
}
|
|
48076
48044
|
var t7;
|
|
48077
48045
|
if ($[10] !== t1 || $[11] !== t6) {
|
|
48078
|
-
t7 = /* @__PURE__ */
|
|
48046
|
+
t7 = /* @__PURE__ */ _jsxs35(Flex35, {
|
|
48079
48047
|
pb: "3",
|
|
48080
48048
|
align: "center",
|
|
48081
48049
|
children: [
|
|
@@ -48098,7 +48066,7 @@ var Form = function(props) {
|
|
|
48098
48066
|
}
|
|
48099
48067
|
var t9;
|
|
48100
48068
|
if ($[14] !== props || $[15] !== t7) {
|
|
48101
|
-
t9 = /* @__PURE__ */
|
|
48069
|
+
t9 = /* @__PURE__ */ _jsxs35(Flex35, _objectSpread50(_objectSpread50({
|
|
48102
48070
|
direction: "column",
|
|
48103
48071
|
align: "center"
|
|
48104
48072
|
}, props), {}, {
|
|
@@ -48116,7 +48084,7 @@ var Form = function(props) {
|
|
|
48116
48084
|
return t9;
|
|
48117
48085
|
};
|
|
48118
48086
|
// src/components/threads/AudioThread/index.tsx
|
|
48119
|
-
import { jsx as _jsx92, jsxs as
|
|
48087
|
+
import { jsx as _jsx92, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
48120
48088
|
function ownKeys51(e, r) {
|
|
48121
48089
|
var t = Object.keys(e);
|
|
48122
48090
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -48161,7 +48129,7 @@ function _toPrimitive51(t, r) {
|
|
|
48161
48129
|
return ("string" === r ? String : Number)(t);
|
|
48162
48130
|
}
|
|
48163
48131
|
var AudioThread = function(props) {
|
|
48164
|
-
return /* @__PURE__ */
|
|
48132
|
+
return /* @__PURE__ */ _jsxs36(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
|
|
48165
48133
|
children: [
|
|
48166
48134
|
/* @__PURE__ */ _jsx92(Visualization, {}),
|
|
48167
48135
|
/* @__PURE__ */ _jsx92(Status, {}),
|
|
@@ -48174,7 +48142,7 @@ AudioThread.Visualization = Visualization;
|
|
|
48174
48142
|
AudioThread.Status = Status;
|
|
48175
48143
|
AudioThread.Form = Form;
|
|
48176
48144
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
48177
|
-
import { jsx as _jsx93, jsxs as
|
|
48145
|
+
import { jsx as _jsx93, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
48178
48146
|
function ownKeys52(e, r) {
|
|
48179
48147
|
var t = Object.keys(e);
|
|
48180
48148
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -48219,7 +48187,7 @@ function _toPrimitive52(t, r) {
|
|
|
48219
48187
|
return ("string" === r ? String : Number)(t);
|
|
48220
48188
|
}
|
|
48221
48189
|
var AudioThreadDialog = function(props) {
|
|
48222
|
-
return /* @__PURE__ */
|
|
48190
|
+
return /* @__PURE__ */ _jsxs37(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
|
|
48223
48191
|
children: [
|
|
48224
48192
|
/* @__PURE__ */ _jsx93(Content7.Root, {
|
|
48225
48193
|
children: /* @__PURE__ */ _jsx93(AudioThread, {})
|
|
@@ -48828,7 +48796,7 @@ import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
|
48828
48796
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
48829
48797
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
48830
48798
|
import { c as _c60 } from "react-compiler-runtime";
|
|
48831
|
-
import { Flex as
|
|
48799
|
+
import { Flex as Flex36, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
48832
48800
|
import { jsx as _jsx96 } from "react/jsx-runtime";
|
|
48833
48801
|
var Content9 = function(t0) {
|
|
48834
48802
|
var $ = _c60(5);
|
|
@@ -48868,7 +48836,7 @@ var Content9 = function(t0) {
|
|
|
48868
48836
|
}
|
|
48869
48837
|
var t5;
|
|
48870
48838
|
if ($[3] !== t3) {
|
|
48871
|
-
t5 = /* @__PURE__ */ _jsx96(
|
|
48839
|
+
t5 = /* @__PURE__ */ _jsx96(Flex36, {
|
|
48872
48840
|
direction: "column",
|
|
48873
48841
|
flexGrow: "1",
|
|
48874
48842
|
gap: "3",
|
|
@@ -48877,7 +48845,7 @@ var Content9 = function(t0) {
|
|
|
48877
48845
|
children: /* @__PURE__ */ _jsx96(Inset3, {
|
|
48878
48846
|
clip: "padding-box",
|
|
48879
48847
|
style: t2,
|
|
48880
|
-
children: /* @__PURE__ */ _jsx96(
|
|
48848
|
+
children: /* @__PURE__ */ _jsx96(Flex36, {
|
|
48881
48849
|
flexGrow: "1",
|
|
48882
48850
|
children: /* @__PURE__ */ _jsx96("embed", {
|
|
48883
48851
|
src: t3,
|
|
@@ -48895,7 +48863,7 @@ var Content9 = function(t0) {
|
|
|
48895
48863
|
return t5;
|
|
48896
48864
|
};
|
|
48897
48865
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
48898
|
-
import { jsx as _jsx97, jsxs as
|
|
48866
|
+
import { jsx as _jsx97, jsxs as _jsxs38, Fragment as _Fragment5 } from "react/jsx-runtime";
|
|
48899
48867
|
var FileCitation = function(t0) {
|
|
48900
48868
|
var $ = _c61(18);
|
|
48901
48869
|
var annotation = t0.annotation;
|
|
@@ -48977,7 +48945,7 @@ var FileCitation = function(t0) {
|
|
|
48977
48945
|
}
|
|
48978
48946
|
var t9;
|
|
48979
48947
|
if ($[10] !== t8) {
|
|
48980
|
-
t9 = /* @__PURE__ */
|
|
48948
|
+
t9 = /* @__PURE__ */ _jsxs38(Dialog.Content, {
|
|
48981
48949
|
width: "1000px",
|
|
48982
48950
|
height: "90vh",
|
|
48983
48951
|
maxWidth: "calc(100vw - 2 * var(--space-4))",
|
|
@@ -49008,7 +48976,7 @@ var FileCitation = function(t0) {
|
|
|
49008
48976
|
}
|
|
49009
48977
|
var t11;
|
|
49010
48978
|
if ($[15] !== t10 || $[16] !== t3) {
|
|
49011
|
-
t11 = /* @__PURE__ */
|
|
48979
|
+
t11 = /* @__PURE__ */ _jsxs38(_Fragment5, {
|
|
49012
48980
|
children: [
|
|
49013
48981
|
t3,
|
|
49014
48982
|
t10
|