@convai/web-sdk 0.1.0 → 0.1.1-beta.0
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/README.md +277 -185
- package/dist/components/ConvaiWidget.d.ts.map +1 -1
- package/dist/components/ConvaiWidget.js +13 -0
- package/dist/components/ConvaiWidget.js.map +1 -1
- package/dist/components/rtc-widget/components/AudioSettingsPanel.js +1 -1
- package/dist/components/rtc-widget/components/AudioSettingsPanel.js.map +1 -1
- package/dist/components/rtc-widget/styles/styledComponents.d.ts.map +1 -1
- package/dist/components/rtc-widget/styles/styledComponents.js +72 -51
- package/dist/components/rtc-widget/styles/styledComponents.js.map +1 -1
- package/dist/core/AudioManager.d.ts +75 -0
- package/dist/core/AudioManager.d.ts.map +1 -0
- package/dist/core/AudioManager.js +219 -0
- package/dist/core/AudioManager.js.map +1 -0
- package/dist/core/ConvaiClient.d.ts +122 -0
- package/dist/core/ConvaiClient.d.ts.map +1 -0
- package/dist/core/ConvaiClient.js +509 -0
- package/dist/core/ConvaiClient.js.map +1 -0
- package/dist/core/EventEmitter.d.ts +38 -0
- package/dist/core/EventEmitter.d.ts.map +1 -0
- package/dist/core/EventEmitter.js +68 -0
- package/dist/core/EventEmitter.js.map +1 -0
- package/dist/core/MessageHandler.d.ts +52 -0
- package/dist/core/MessageHandler.d.ts.map +1 -0
- package/dist/core/MessageHandler.js +281 -0
- package/dist/core/MessageHandler.js.map +1 -0
- package/dist/core/ScreenShareManager.d.ts +57 -0
- package/dist/core/ScreenShareManager.d.ts.map +1 -0
- package/dist/core/ScreenShareManager.js +206 -0
- package/dist/core/ScreenShareManager.js.map +1 -0
- package/dist/core/VideoManager.d.ts +69 -0
- package/dist/core/VideoManager.d.ts.map +1 -0
- package/dist/core/VideoManager.js +207 -0
- package/dist/core/VideoManager.js.map +1 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +12 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/types.d.ts +311 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/hooks/useConvaiClient.d.ts.map +1 -1
- package/dist/hooks/useConvaiClient.js +16 -0
- package/dist/hooks/useConvaiClient.js.map +1 -1
- package/dist/hooks/useMessageHandler.d.ts.map +1 -1
- package/dist/hooks/useMessageHandler.js +39 -14
- package/dist/hooks/useMessageHandler.js.map +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/react/components/ConvaiWidget.d.ts +59 -0
- package/dist/react/components/ConvaiWidget.d.ts.map +1 -0
- package/dist/react/components/ConvaiWidget.js +421 -0
- package/dist/react/components/ConvaiWidget.js.map +1 -0
- package/dist/react/components/index.d.ts +3 -0
- package/dist/react/components/index.d.ts.map +1 -0
- package/dist/react/components/index.js +5 -0
- package/dist/react/components/index.js.map +1 -0
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.d.ts +10 -0
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.js +316 -0
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.js.map +1 -0
- package/dist/react/components/rtc-widget/components/ConviMessage.d.ts +10 -0
- package/dist/react/components/rtc-widget/components/ConviMessage.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/ConviMessage.js +14 -0
- package/dist/react/components/rtc-widget/components/ConviMessage.js.map +1 -0
- package/dist/react/components/rtc-widget/components/FloatingVideo.d.ts +9 -0
- package/dist/react/components/rtc-widget/components/FloatingVideo.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/FloatingVideo.js +122 -0
- package/dist/react/components/rtc-widget/components/FloatingVideo.js.map +1 -0
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.d.ts +7 -0
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.js +68 -0
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.js.map +1 -0
- package/dist/react/components/rtc-widget/components/MessageBubble.d.ts +10 -0
- package/dist/react/components/rtc-widget/components/MessageBubble.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/MessageBubble.js +23 -0
- package/dist/react/components/rtc-widget/components/MessageBubble.js.map +1 -0
- package/dist/react/components/rtc-widget/components/MessageList.d.ts +11 -0
- package/dist/react/components/rtc-widget/components/MessageList.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/MessageList.js +89 -0
- package/dist/react/components/rtc-widget/components/MessageList.js.map +1 -0
- package/dist/react/components/rtc-widget/components/UserMessage.d.ts +9 -0
- package/dist/react/components/rtc-widget/components/UserMessage.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/UserMessage.js +15 -0
- package/dist/react/components/rtc-widget/components/UserMessage.js.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts +6 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js +15 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts +25 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js +172 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts +17 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js +66 -0
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts +12 -0
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js +68 -0
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts +8 -0
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js +199 -0
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/index.d.ts +6 -0
- package/dist/react/components/rtc-widget/components/conviComponents/index.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/conviComponents/index.js +6 -0
- package/dist/react/components/rtc-widget/components/conviComponents/index.js.map +1 -0
- package/dist/react/components/rtc-widget/components/index.d.ts +8 -0
- package/dist/react/components/rtc-widget/components/index.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/components/index.js +13 -0
- package/dist/react/components/rtc-widget/components/index.js.map +1 -0
- package/dist/react/components/rtc-widget/index.d.ts +6 -0
- package/dist/react/components/rtc-widget/index.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/index.js +9 -0
- package/dist/react/components/rtc-widget/index.js.map +1 -0
- package/dist/react/components/rtc-widget/styles/framerConfig.d.ts +116 -0
- package/dist/react/components/rtc-widget/styles/framerConfig.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/styles/framerConfig.js +73 -0
- package/dist/react/components/rtc-widget/styles/framerConfig.js.map +1 -0
- package/dist/react/components/rtc-widget/styles/icons.d.ts +28 -0
- package/dist/react/components/rtc-widget/styles/icons.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/styles/icons.js +257 -0
- package/dist/react/components/rtc-widget/styles/icons.js.map +1 -0
- package/dist/react/components/rtc-widget/styles/index.d.ts +6 -0
- package/dist/react/components/rtc-widget/styles/index.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/styles/index.js +9 -0
- package/dist/react/components/rtc-widget/styles/index.js.map +1 -0
- package/dist/react/components/rtc-widget/styles/styledComponents.d.ts +90 -0
- package/dist/react/components/rtc-widget/styles/styledComponents.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/styles/styledComponents.js +661 -0
- package/dist/react/components/rtc-widget/styles/styledComponents.js.map +1 -0
- package/dist/react/components/rtc-widget/styles/theme.d.ts +188 -0
- package/dist/react/components/rtc-widget/styles/theme.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/styles/theme.js +290 -0
- package/dist/react/components/rtc-widget/styles/theme.js.map +1 -0
- package/dist/react/components/rtc-widget/types/index.d.ts +60 -0
- package/dist/react/components/rtc-widget/types/index.d.ts.map +1 -0
- package/dist/react/components/rtc-widget/types/index.js +2 -0
- package/dist/react/components/rtc-widget/types/index.js.map +1 -0
- package/dist/react/hooks/index.d.ts +4 -0
- package/dist/react/hooks/index.d.ts.map +1 -0
- package/dist/react/hooks/index.js +6 -0
- package/dist/react/hooks/index.js.map +1 -0
- package/dist/react/hooks/useCharacterInfo.d.ts +17 -0
- package/dist/react/hooks/useCharacterInfo.d.ts.map +1 -0
- package/dist/react/hooks/useCharacterInfo.js +60 -0
- package/dist/react/hooks/useCharacterInfo.js.map +1 -0
- package/dist/react/hooks/useConvaiClient.d.ts +32 -0
- package/dist/react/hooks/useConvaiClient.d.ts.map +1 -0
- package/dist/react/hooks/useConvaiClient.js +140 -0
- package/dist/react/hooks/useConvaiClient.js.map +1 -0
- package/dist/react/hooks/useLocalCameraTrack.d.ts +22 -0
- package/dist/react/hooks/useLocalCameraTrack.d.ts.map +1 -0
- package/dist/react/hooks/useLocalCameraTrack.js +34 -0
- package/dist/react/hooks/useLocalCameraTrack.js.map +1 -0
- package/dist/react/index.d.ts +8 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +15 -0
- package/dist/react/index.js.map +1 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/speakerManagement.d.ts +22 -0
- package/dist/utils/speakerManagement.d.ts.map +1 -0
- package/dist/utils/speakerManagement.js +71 -0
- package/dist/utils/speakerManagement.js.map +1 -0
- package/dist/vanilla/index.d.ts +3 -0
- package/dist/vanilla/index.d.ts.map +1 -0
- package/dist/vanilla/index.js +5 -0
- package/dist/vanilla/index.js.map +1 -0
- package/package.json +22 -5
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
|
+
import { aeroTheme } from "../../styles/theme";
|
|
5
|
+
export const VoiceModeOverlay = ({ isActive, isTalking, convaiClient, }) => {
|
|
6
|
+
const barsCount = 40; // Increased from 5 to 40
|
|
7
|
+
const isAnimating = isActive || isTalking;
|
|
8
|
+
const [audioLevels, setAudioLevels] = useState(Array(barsCount).fill(0));
|
|
9
|
+
const analyzerRef = useRef(null);
|
|
10
|
+
const animationFrameRef = useRef(undefined);
|
|
11
|
+
const audioContextRef = useRef(null);
|
|
12
|
+
const characterAudioContextRef = useRef(null);
|
|
13
|
+
const characterAnalyzerRef = useRef(null);
|
|
14
|
+
const mediaSourceNodeRef = useRef(null);
|
|
15
|
+
// Setup audio analysis for microphone input
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!isActive) {
|
|
18
|
+
// Clean up when not active
|
|
19
|
+
if (animationFrameRef.current) {
|
|
20
|
+
cancelAnimationFrame(animationFrameRef.current);
|
|
21
|
+
}
|
|
22
|
+
setAudioLevels(Array(barsCount).fill(0));
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
let stream = null;
|
|
26
|
+
const setupAudioAnalysis = async () => {
|
|
27
|
+
try {
|
|
28
|
+
// Get microphone stream
|
|
29
|
+
stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
30
|
+
// Create audio context and analyzer
|
|
31
|
+
const audioContext = new (window.AudioContext ||
|
|
32
|
+
window.webkitAudioContext)();
|
|
33
|
+
audioContextRef.current = audioContext;
|
|
34
|
+
const analyzer = audioContext.createAnalyser();
|
|
35
|
+
analyzer.fftSize = 256; // Better resolution for time domain
|
|
36
|
+
analyzer.smoothingTimeConstant = 0.7;
|
|
37
|
+
analyzerRef.current = analyzer;
|
|
38
|
+
const source = audioContext.createMediaStreamSource(stream);
|
|
39
|
+
source.connect(analyzer);
|
|
40
|
+
const dataArray = new Uint8Array(analyzer.fftSize);
|
|
41
|
+
const updateLevels = () => {
|
|
42
|
+
if (!analyzerRef.current)
|
|
43
|
+
return;
|
|
44
|
+
// Use time domain data (waveform) instead of frequency
|
|
45
|
+
analyzer.getByteTimeDomainData(dataArray);
|
|
46
|
+
// Calculate RMS (Root Mean Square) for volume
|
|
47
|
+
let sum = 0;
|
|
48
|
+
for (let i = 0; i < dataArray.length; i++) {
|
|
49
|
+
const normalized = (dataArray[i] - 128) / 128; // Center around 0
|
|
50
|
+
sum += normalized * normalized;
|
|
51
|
+
}
|
|
52
|
+
const rms = Math.sqrt(sum / dataArray.length);
|
|
53
|
+
// Apply some scaling and clamping
|
|
54
|
+
const volume = Math.min(1, rms * 3); // Boost sensitivity
|
|
55
|
+
// Create left-to-right wave effect
|
|
56
|
+
const levels = Array(barsCount)
|
|
57
|
+
.fill(0)
|
|
58
|
+
.map((_, i) => {
|
|
59
|
+
// Progressive wave from left to right
|
|
60
|
+
const position = i / barsCount; // 0 to 1 from left to right
|
|
61
|
+
const wavePhase = Date.now() / 300 + position * Math.PI * 2;
|
|
62
|
+
const waveVariation = Math.sin(wavePhase) * 0.15 + 0.85; // 0.7 to 1.0
|
|
63
|
+
return volume * waveVariation;
|
|
64
|
+
});
|
|
65
|
+
setAudioLevels(levels);
|
|
66
|
+
animationFrameRef.current = requestAnimationFrame(updateLevels);
|
|
67
|
+
};
|
|
68
|
+
updateLevels();
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
console.error("Error setting up audio analysis:", error);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
setupAudioAnalysis();
|
|
75
|
+
return () => {
|
|
76
|
+
if (animationFrameRef.current) {
|
|
77
|
+
cancelAnimationFrame(animationFrameRef.current);
|
|
78
|
+
}
|
|
79
|
+
if (stream) {
|
|
80
|
+
stream.getTracks().forEach((track) => track.stop());
|
|
81
|
+
}
|
|
82
|
+
if (audioContextRef.current) {
|
|
83
|
+
audioContextRef.current.close();
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}, [isActive, barsCount]);
|
|
87
|
+
// Setup audio analysis for character speech
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
if (!isTalking) {
|
|
90
|
+
if (!isActive) {
|
|
91
|
+
setAudioLevels(Array(barsCount).fill(0));
|
|
92
|
+
}
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
// Start low and build up naturally like real speech
|
|
96
|
+
let startTime = Date.now();
|
|
97
|
+
let currentLevels = Array(barsCount).fill(0.05); // Start very low
|
|
98
|
+
let targetLevels = Array(barsCount).fill(0.05);
|
|
99
|
+
const updateLevels = () => {
|
|
100
|
+
if (!isTalking)
|
|
101
|
+
return;
|
|
102
|
+
const elapsed = (Date.now() - startTime) / 1000; // seconds
|
|
103
|
+
// Generate new random target levels occasionally (simulating syllables/words)
|
|
104
|
+
if (Math.random() < 0.08) {
|
|
105
|
+
// 8% chance per frame = ~5 times per second
|
|
106
|
+
targetLevels = Array(barsCount)
|
|
107
|
+
.fill(0)
|
|
108
|
+
.map((_, i) => {
|
|
109
|
+
// More variation in the middle bars, less on edges for natural spread
|
|
110
|
+
const position = i / barsCount;
|
|
111
|
+
const centerWeight = 1 - Math.abs(position - 0.5) * 0.5;
|
|
112
|
+
// Random peaks and valleys like speech patterns
|
|
113
|
+
const randomPeak = 0.2 + Math.random() * 0.7; // 0.2 to 0.9
|
|
114
|
+
// Add some neighbor correlation so bars don't jump independently
|
|
115
|
+
const prevTarget = targetLevels[i] || 0.3;
|
|
116
|
+
const correlation = prevTarget * 0.4 + randomPeak * 0.6;
|
|
117
|
+
return correlation * centerWeight;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
// Smoothly interpolate current levels toward targets (organic movement)
|
|
121
|
+
currentLevels = currentLevels.map((current, i) => {
|
|
122
|
+
const target = targetLevels[i];
|
|
123
|
+
const speed = 0.2; // Smooth but responsive
|
|
124
|
+
return current + (target - current) * speed;
|
|
125
|
+
});
|
|
126
|
+
// Apply a gentle fade-in for the first 0.3 seconds
|
|
127
|
+
const fadeIn = Math.min(1, elapsed / 0.3);
|
|
128
|
+
const levels = currentLevels.map((level) => {
|
|
129
|
+
// Small random jitter for micro-variation
|
|
130
|
+
const microJitter = 0.95 + Math.random() * 0.1; // 0.95 to 1.05
|
|
131
|
+
return Math.max(0.05, Math.min(1, level * fadeIn * microJitter));
|
|
132
|
+
});
|
|
133
|
+
setAudioLevels(levels);
|
|
134
|
+
animationFrameRef.current = requestAnimationFrame(updateLevels);
|
|
135
|
+
};
|
|
136
|
+
updateLevels();
|
|
137
|
+
return () => {
|
|
138
|
+
if (animationFrameRef.current) {
|
|
139
|
+
cancelAnimationFrame(animationFrameRef.current);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}, [isTalking, isActive, barsCount]);
|
|
143
|
+
return (_jsxs("div", { style: {
|
|
144
|
+
position: "absolute",
|
|
145
|
+
top: "50%",
|
|
146
|
+
left: "50%",
|
|
147
|
+
transform: "translate(-50%, -50%)",
|
|
148
|
+
textAlign: "center",
|
|
149
|
+
padding: "1rem",
|
|
150
|
+
zIndex: 10,
|
|
151
|
+
pointerEvents: "auto",
|
|
152
|
+
display: "flex",
|
|
153
|
+
flexDirection: "column",
|
|
154
|
+
alignItems: "center",
|
|
155
|
+
gap: "1.5rem",
|
|
156
|
+
}, children: [_jsx("div", { style: {
|
|
157
|
+
display: "flex",
|
|
158
|
+
alignItems: "center",
|
|
159
|
+
justifyContent: "center",
|
|
160
|
+
gap: "2px",
|
|
161
|
+
height: "80px",
|
|
162
|
+
maxWidth: "300px",
|
|
163
|
+
}, children: Array.from({ length: barsCount }).map((_, i) => {
|
|
164
|
+
const level = audioLevels[i] || 0;
|
|
165
|
+
const minHeight = 8;
|
|
166
|
+
const maxHeight = 70;
|
|
167
|
+
const height = minHeight + level * (maxHeight - minHeight);
|
|
168
|
+
return (_jsx(motion.div, { animate: {
|
|
169
|
+
height: isAnimating ? height : 15,
|
|
170
|
+
}, transition: {
|
|
171
|
+
duration: 0.08,
|
|
172
|
+
ease: "easeOut",
|
|
173
|
+
}, style: {
|
|
174
|
+
width: "3px",
|
|
175
|
+
backgroundColor: isTalking
|
|
176
|
+
? aeroTheme.colors.convai.light
|
|
177
|
+
: isActive
|
|
178
|
+
? aeroTheme.colors.text.primary
|
|
179
|
+
: aeroTheme.colors.neutral[400],
|
|
180
|
+
borderRadius: "1.5px",
|
|
181
|
+
transformOrigin: "center",
|
|
182
|
+
} }, i));
|
|
183
|
+
}) }), _jsxs("div", { children: [_jsx("div", { style: {
|
|
184
|
+
fontSize: "14px",
|
|
185
|
+
fontWeight: 500,
|
|
186
|
+
color: aeroTheme.colors.text.primary,
|
|
187
|
+
marginBottom: "0.5rem",
|
|
188
|
+
}, children: isTalking
|
|
189
|
+
? "Character Speaking..."
|
|
190
|
+
: isActive
|
|
191
|
+
? "Listening..."
|
|
192
|
+
: "Voice Only Mode" }), _jsx("div", { style: {
|
|
193
|
+
fontSize: "12px",
|
|
194
|
+
color: aeroTheme.colors.text.secondary,
|
|
195
|
+
}, children: isActive || isTalking
|
|
196
|
+
? "Audio active"
|
|
197
|
+
: "Press and hold the microphone to talk" })] })] }));
|
|
198
|
+
};
|
|
199
|
+
//# sourceMappingURL=VoiceModeOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceModeOverlay.js","sourceRoot":"","sources":["../../../../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
|
|
3
|
+
export { ConviFooter } from "./ConviFooter";
|
|
4
|
+
export { SettingsTray } from "./SettingsTray";
|
|
5
|
+
export { VoiceModeOverlay } from "./VoiceModeOverlay";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/conviComponents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ConviButton } from "./ConviButton";
|
|
2
|
+
export { ConviHeader } from "./ConviHeader";
|
|
3
|
+
export { ConviFooter } from "./ConviFooter";
|
|
4
|
+
export { SettingsTray } from "./SettingsTray";
|
|
5
|
+
export { VoiceModeOverlay } from "./VoiceModeOverlay";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/conviComponents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { MessageBubble } from "./MessageBubble";
|
|
2
|
+
export { MessageList } from "./MessageList";
|
|
3
|
+
export { UserMessage } from "./UserMessage";
|
|
4
|
+
export { ConviMessage } from "./ConviMessage";
|
|
5
|
+
export { MarkdownRenderer } from "./MarkdownRenderer";
|
|
6
|
+
export { FloatingVideo } from "./FloatingVideo";
|
|
7
|
+
export { ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./conviComponents";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/react/components/rtc-widget/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Export message components
|
|
2
|
+
export { MessageBubble } from "./MessageBubble";
|
|
3
|
+
export { MessageList } from "./MessageList";
|
|
4
|
+
export { UserMessage } from "./UserMessage";
|
|
5
|
+
export { ConviMessage } from "./ConviMessage";
|
|
6
|
+
export { MarkdownRenderer } from "./MarkdownRenderer";
|
|
7
|
+
// Export floating video component
|
|
8
|
+
export { FloatingVideo } from "./FloatingVideo";
|
|
9
|
+
// Note: AudioSettingsPanel is internal only - audio settings are fixed
|
|
10
|
+
// export { AudioSettingsPanel } from "./AudioSettingsPanel";
|
|
11
|
+
// Export convi sub-components
|
|
12
|
+
export { ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./conviComponents";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/react/components/rtc-widget/components/index.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,uEAAuE;AACvE,6DAA6D;AAE7D,8BAA8B;AAC9B,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { MessageBubble, MessageList, UserMessage, ConviMessage, FloatingVideo, ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./components";
|
|
2
|
+
export { aeroTheme, glassStyles, iconSizes, variants, iosTransitions, animationVariants, ConvaiLogo, ChevronDown, } from "./styles";
|
|
3
|
+
export { ConvaiContainer, MorphingContainer, ButtonContent, Logo, ChatContent, Header, Title, HeaderLogo, CloseButton, SettingsButton, Content, Footer, InputContainer, Input, ActionButton, } from "./styles";
|
|
4
|
+
export type { RTCChatMessage, CharacterVerbosityConfig, ConviUIProps, } from "./types";
|
|
5
|
+
export type { LogoState } from "./styles";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/components/rtc-widget/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EAEb,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,WAAW,GACZ,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,WAAW,EACX,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,cAAc,EACd,OAAO,EACP,MAAM,EACN,cAAc,EACd,KAAK,EACL,YAAY,GACb,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Export all components
|
|
2
|
+
export { MessageBubble, MessageList, UserMessage, ConviMessage, FloatingVideo,
|
|
3
|
+
// AudioSettingsPanel, // Internal only - audio settings are fixed
|
|
4
|
+
ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./components";
|
|
5
|
+
// Export styles and theme
|
|
6
|
+
export { aeroTheme, glassStyles, iconSizes, variants, iosTransitions, animationVariants, ConvaiLogo, ChevronDown, } from "./styles";
|
|
7
|
+
// Export styled components for custom layouts
|
|
8
|
+
export { ConvaiContainer, MorphingContainer, ButtonContent, Logo, ChatContent, Header, Title, HeaderLogo, CloseButton, SettingsButton, Content, Footer, InputContainer, Input, ActionButton, } from "./styles";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/react/components/rtc-widget/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EACL,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa;AACb,kEAAkE;AAClE,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB,0BAA0B;AAC1B,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,WAAW,GACZ,MAAM,UAAU,CAAC;AAElB,8CAA8C;AAC9C,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,WAAW,EACX,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,cAAc,EACd,OAAO,EACP,MAAM,EACN,cAAc,EACd,KAAK,EACL,YAAY,GACb,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const iosTransitions: {
|
|
2
|
+
snappy: {
|
|
3
|
+
type: "spring";
|
|
4
|
+
stiffness: number;
|
|
5
|
+
damping: number;
|
|
6
|
+
};
|
|
7
|
+
fadePop: {
|
|
8
|
+
type: "spring";
|
|
9
|
+
stiffness: number;
|
|
10
|
+
damping: number;
|
|
11
|
+
};
|
|
12
|
+
layoutMorph: {
|
|
13
|
+
type: "spring";
|
|
14
|
+
stiffness: number;
|
|
15
|
+
damping: number;
|
|
16
|
+
};
|
|
17
|
+
modalSlide: {
|
|
18
|
+
type: "spring";
|
|
19
|
+
stiffness: number;
|
|
20
|
+
damping: number;
|
|
21
|
+
};
|
|
22
|
+
scale: {
|
|
23
|
+
type: "spring";
|
|
24
|
+
stiffness: number;
|
|
25
|
+
damping: number;
|
|
26
|
+
};
|
|
27
|
+
slide: {
|
|
28
|
+
type: "spring";
|
|
29
|
+
stiffness: number;
|
|
30
|
+
damping: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const animationVariants: {
|
|
34
|
+
fadeIn: {
|
|
35
|
+
initial: {
|
|
36
|
+
opacity: number;
|
|
37
|
+
};
|
|
38
|
+
animate: {
|
|
39
|
+
opacity: number;
|
|
40
|
+
};
|
|
41
|
+
exit: {
|
|
42
|
+
opacity: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
slideUp: {
|
|
46
|
+
initial: {
|
|
47
|
+
y: number;
|
|
48
|
+
opacity: number;
|
|
49
|
+
};
|
|
50
|
+
animate: {
|
|
51
|
+
y: number;
|
|
52
|
+
opacity: number;
|
|
53
|
+
};
|
|
54
|
+
exit: {
|
|
55
|
+
y: number;
|
|
56
|
+
opacity: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
slideDown: {
|
|
60
|
+
initial: {
|
|
61
|
+
y: number;
|
|
62
|
+
opacity: number;
|
|
63
|
+
};
|
|
64
|
+
animate: {
|
|
65
|
+
y: number;
|
|
66
|
+
opacity: number;
|
|
67
|
+
};
|
|
68
|
+
exit: {
|
|
69
|
+
y: number;
|
|
70
|
+
opacity: number;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
scaleIn: {
|
|
74
|
+
initial: {
|
|
75
|
+
scale: number;
|
|
76
|
+
opacity: number;
|
|
77
|
+
};
|
|
78
|
+
animate: {
|
|
79
|
+
scale: number;
|
|
80
|
+
opacity: number;
|
|
81
|
+
};
|
|
82
|
+
exit: {
|
|
83
|
+
scale: number;
|
|
84
|
+
opacity: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
slideInFromRight: {
|
|
88
|
+
initial: {
|
|
89
|
+
x: string;
|
|
90
|
+
opacity: number;
|
|
91
|
+
};
|
|
92
|
+
animate: {
|
|
93
|
+
x: number;
|
|
94
|
+
opacity: number;
|
|
95
|
+
};
|
|
96
|
+
exit: {
|
|
97
|
+
x: string;
|
|
98
|
+
opacity: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
slideInFromLeft: {
|
|
102
|
+
initial: {
|
|
103
|
+
x: string;
|
|
104
|
+
opacity: number;
|
|
105
|
+
};
|
|
106
|
+
animate: {
|
|
107
|
+
x: number;
|
|
108
|
+
opacity: number;
|
|
109
|
+
};
|
|
110
|
+
exit: {
|
|
111
|
+
x: string;
|
|
112
|
+
opacity: number;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=framerConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framerConfig.d.ts","sourceRoot":"","sources":["../../../../../src/react/components/rtc-widget/styles/framerConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C1B,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC7B,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Framer Motion transition configurations for iOS-like animations
|
|
2
|
+
export const iosTransitions = {
|
|
3
|
+
// Fast and snappy transitions for buttons and small elements
|
|
4
|
+
snappy: {
|
|
5
|
+
type: "spring",
|
|
6
|
+
stiffness: 400,
|
|
7
|
+
damping: 30,
|
|
8
|
+
},
|
|
9
|
+
// Smooth fade with pop effect
|
|
10
|
+
fadePop: {
|
|
11
|
+
type: "spring",
|
|
12
|
+
stiffness: 300,
|
|
13
|
+
damping: 25,
|
|
14
|
+
},
|
|
15
|
+
// Layout morphing animations
|
|
16
|
+
layoutMorph: {
|
|
17
|
+
type: "spring",
|
|
18
|
+
stiffness: 200,
|
|
19
|
+
damping: 20,
|
|
20
|
+
},
|
|
21
|
+
// Modal slide from bottom
|
|
22
|
+
modalSlide: {
|
|
23
|
+
type: "spring",
|
|
24
|
+
stiffness: 260,
|
|
25
|
+
damping: 22,
|
|
26
|
+
},
|
|
27
|
+
// Smooth scale animation
|
|
28
|
+
scale: {
|
|
29
|
+
type: "spring",
|
|
30
|
+
stiffness: 350,
|
|
31
|
+
damping: 28,
|
|
32
|
+
},
|
|
33
|
+
// Slide animations
|
|
34
|
+
slide: {
|
|
35
|
+
type: "spring",
|
|
36
|
+
stiffness: 300,
|
|
37
|
+
damping: 30,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
// Common animation variants
|
|
41
|
+
export const animationVariants = {
|
|
42
|
+
fadeIn: {
|
|
43
|
+
initial: { opacity: 0 },
|
|
44
|
+
animate: { opacity: 1 },
|
|
45
|
+
exit: { opacity: 0 },
|
|
46
|
+
},
|
|
47
|
+
slideUp: {
|
|
48
|
+
initial: { y: 20, opacity: 0 },
|
|
49
|
+
animate: { y: 0, opacity: 1 },
|
|
50
|
+
exit: { y: -20, opacity: 0 },
|
|
51
|
+
},
|
|
52
|
+
slideDown: {
|
|
53
|
+
initial: { y: -20, opacity: 0 },
|
|
54
|
+
animate: { y: 0, opacity: 1 },
|
|
55
|
+
exit: { y: 20, opacity: 0 },
|
|
56
|
+
},
|
|
57
|
+
scaleIn: {
|
|
58
|
+
initial: { scale: 0.8, opacity: 0 },
|
|
59
|
+
animate: { scale: 1, opacity: 1 },
|
|
60
|
+
exit: { scale: 0.8, opacity: 0 },
|
|
61
|
+
},
|
|
62
|
+
slideInFromRight: {
|
|
63
|
+
initial: { x: "100%", opacity: 0 },
|
|
64
|
+
animate: { x: 0, opacity: 1 },
|
|
65
|
+
exit: { x: "100%", opacity: 0 },
|
|
66
|
+
},
|
|
67
|
+
slideInFromLeft: {
|
|
68
|
+
initial: { x: "-100%", opacity: 0 },
|
|
69
|
+
animate: { x: 0, opacity: 1 },
|
|
70
|
+
exit: { x: "-100%", opacity: 0 },
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=framerConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framerConfig.js","sourceRoot":"","sources":["../../../../../src/react/components/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AAS,EAAE;QACT,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;QAC/B,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QAC7B,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;KAC5B;IAED,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE;QACnC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACjC,IAAI,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE;KACjC;IAED,gBAAgB,EAAE;QAChB,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE;QAClC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QAC7B,IAAI,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE;KAChC;IAED,eAAe,EAAE;QACf,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE;QACnC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QAC7B,IAAI,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE;KACjC;CACF,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { iconSizes } from "./theme";
|
|
2
|
+
export type LogoState = "idle" | "connecting" | "connected" | "disconnected" | "typing" | "listening" | "processing";
|
|
3
|
+
export declare const AeroIcons: {
|
|
4
|
+
ChevronDown: ({ size, color, }: {
|
|
5
|
+
size?: keyof typeof iconSizes;
|
|
6
|
+
color?: string;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
ConvaiLogo: ({ size, color, animate, state, }: {
|
|
9
|
+
size?: keyof typeof iconSizes;
|
|
10
|
+
color?: string;
|
|
11
|
+
animate?: boolean;
|
|
12
|
+
state?: LogoState;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export declare const IconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
16
|
+
$size?: keyof typeof iconSizes;
|
|
17
|
+
$variant?: "ghost" | "glass";
|
|
18
|
+
}>> & string;
|
|
19
|
+
export declare const ChevronDown: ({ size, color, }: {
|
|
20
|
+
size?: keyof typeof iconSizes;
|
|
21
|
+
color?: string;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element, ConvaiLogo: ({ size, color, animate, state, }: {
|
|
23
|
+
size?: keyof typeof iconSizes;
|
|
24
|
+
color?: string;
|
|
25
|
+
animate?: boolean;
|
|
26
|
+
state?: LogoState;
|
|
27
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../src/react/components/rtc-widget/styles/icons.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,SAAS,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,YAAY,GACZ,WAAW,GACX,cAAc,GACd,QAAQ,GACR,WAAW,GACX,YAAY,CAAC;AAmLjB,eAAO,MAAM,SAAS;oCAKjB;QACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;mDAqBE;QACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB;CAqGF,CAAC;AAGF,eAAO,MAAM,UAAU;YACb,MAAM,OAAO,SAAS;eACnB,OAAO,GAAG,OAAO;YAmC7B,CAAC;AAGF,eAAO,MAAQ,WAAW,qBA7KrB;IACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,8CA0KyB,UAAU,qCArJjC;IACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,4CAgJiD,CAAC"}
|