@agentiffai/design 1.3.6 → 1.3.7
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/copilotkit/index.cjs +267 -195
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.d.cts +32 -4
- package/dist/copilotkit/index.d.ts +32 -4
- package/dist/copilotkit/index.js +239 -167
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/index.cjs +1411 -424
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +137 -1
- package/dist/index.d.ts +137 -1
- package/dist/index.js +1471 -486
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +10 -4
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.js +10 -4
- package/dist/layout/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { memo, useRef,
|
|
2
|
-
import
|
|
1
|
+
import { memo, useRef, useEffect, useState, useCallback, useId, useMemo } from 'react';
|
|
2
|
+
import styled47, { keyframes, css, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { useButton } from '@react-aria/button';
|
|
5
5
|
import { useMeter } from '@react-aria/meter';
|
|
@@ -308,7 +308,7 @@ var getSizeValue = (size = "md") => {
|
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
|
-
var Container =
|
|
311
|
+
var Container = styled47.div`
|
|
312
312
|
display: inline-flex;
|
|
313
313
|
align-items: center;
|
|
314
314
|
gap: ${tokens.spacing.md};
|
|
@@ -320,7 +320,7 @@ var Container = styled11.div`
|
|
|
320
320
|
max-width: fit-content;
|
|
321
321
|
margin: 0 auto;
|
|
322
322
|
`;
|
|
323
|
-
var Avatar =
|
|
323
|
+
var Avatar = styled47.div`
|
|
324
324
|
width: ${(props) => getSizeValue(props.size).avatar};
|
|
325
325
|
height: ${(props) => getSizeValue(props.size).avatar};
|
|
326
326
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -331,23 +331,23 @@ var Avatar = styled11.div`
|
|
|
331
331
|
flex-shrink: 0;
|
|
332
332
|
box-shadow: ${tokens.shadows.glow.primary};
|
|
333
333
|
`;
|
|
334
|
-
var HeadphonesIcon =
|
|
334
|
+
var HeadphonesIcon = styled47.svg`
|
|
335
335
|
width: ${(props) => getSizeValue(props.size).icon};
|
|
336
336
|
height: ${(props) => getSizeValue(props.size).icon};
|
|
337
337
|
color: ${tokens.colors.text.primary};
|
|
338
338
|
`;
|
|
339
|
-
var Content =
|
|
339
|
+
var Content = styled47.div`
|
|
340
340
|
display: flex;
|
|
341
341
|
align-items: center;
|
|
342
342
|
gap: ${tokens.spacing.sm};
|
|
343
343
|
`;
|
|
344
|
-
var LoadingDots =
|
|
344
|
+
var LoadingDots = styled47.div`
|
|
345
345
|
display: flex;
|
|
346
346
|
align-items: center;
|
|
347
347
|
gap: ${(props) => props.variant === "wave" ? "2px" : `${tokens.spacing.xs}`};
|
|
348
348
|
padding: 0 ${tokens.spacing.xs};
|
|
349
349
|
`;
|
|
350
|
-
var Dot =
|
|
350
|
+
var Dot = styled47.span`
|
|
351
351
|
width: ${(props) => getSizeValue(props.size).dotSize};
|
|
352
352
|
height: ${(props) => getSizeValue(props.size).dotSize};
|
|
353
353
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -365,7 +365,7 @@ var Dot = styled11.span`
|
|
|
365
365
|
}}
|
|
366
366
|
1.4s ease-in-out infinite;
|
|
367
367
|
`;
|
|
368
|
-
var Message =
|
|
368
|
+
var Message = styled47.span`
|
|
369
369
|
font-size: ${(props) => getSizeValue(props.size).fontSize};
|
|
370
370
|
color: ${tokens.colors.text.secondary};
|
|
371
371
|
font-weight: ${tokens.typography.fontWeight.regular};
|
|
@@ -425,7 +425,7 @@ function AssistantThinking({
|
|
|
425
425
|
);
|
|
426
426
|
}
|
|
427
427
|
AssistantThinking.displayName = "AssistantThinking";
|
|
428
|
-
var ChatInputContainer =
|
|
428
|
+
var ChatInputContainer = styled47.div`
|
|
429
429
|
display: flex;
|
|
430
430
|
flex-direction: column;
|
|
431
431
|
width: 100%;
|
|
@@ -441,7 +441,7 @@ var ChatInputContainer = styled11.div`
|
|
|
441
441
|
padding: ${tokens.spacing.md};
|
|
442
442
|
}
|
|
443
443
|
`;
|
|
444
|
-
var SuggestionsWrapper =
|
|
444
|
+
var SuggestionsWrapper = styled47.div`
|
|
445
445
|
display: flex;
|
|
446
446
|
flex-direction: row;
|
|
447
447
|
flex-wrap: wrap;
|
|
@@ -450,7 +450,7 @@ var SuggestionsWrapper = styled11.div`
|
|
|
450
450
|
width: 100%;
|
|
451
451
|
box-sizing: border-box;
|
|
452
452
|
`;
|
|
453
|
-
var SuggestionButton =
|
|
453
|
+
var SuggestionButton = styled47.button`
|
|
454
454
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
455
455
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
456
456
|
font-size: 13px;
|
|
@@ -489,7 +489,7 @@ var SuggestionButton = styled11.button`
|
|
|
489
489
|
opacity: 0.4;
|
|
490
490
|
}
|
|
491
491
|
`;
|
|
492
|
-
var InputWrapper =
|
|
492
|
+
var InputWrapper = styled47.div`
|
|
493
493
|
display: flex;
|
|
494
494
|
align-items: flex-end; /* Align button to bottom when textarea expands */
|
|
495
495
|
gap: ${tokens.spacing.sm};
|
|
@@ -507,7 +507,7 @@ var InputWrapper = styled11.div`
|
|
|
507
507
|
background-color: rgba(50, 50, 52, 0.6);
|
|
508
508
|
}
|
|
509
509
|
`;
|
|
510
|
-
var InputField =
|
|
510
|
+
var InputField = styled47.textarea`
|
|
511
511
|
flex: 1;
|
|
512
512
|
border: none;
|
|
513
513
|
outline: none;
|
|
@@ -532,7 +532,7 @@ var InputField = styled11.textarea`
|
|
|
532
532
|
cursor: not-allowed;
|
|
533
533
|
}
|
|
534
534
|
`;
|
|
535
|
-
var SubmitButton =
|
|
535
|
+
var SubmitButton = styled47.button`
|
|
536
536
|
display: flex;
|
|
537
537
|
align-items: center;
|
|
538
538
|
justify-content: center;
|
|
@@ -713,7 +713,7 @@ var SubmitButtonComponent = ({
|
|
|
713
713
|
) });
|
|
714
714
|
};
|
|
715
715
|
ChatInput.displayName = "ChatInput";
|
|
716
|
-
var NavigationContainer =
|
|
716
|
+
var NavigationContainer = styled47.div`
|
|
717
717
|
display: flex;
|
|
718
718
|
flex-direction: column;
|
|
719
719
|
align-items: center;
|
|
@@ -730,7 +730,7 @@ var NavigationContainer = styled11.div`
|
|
|
730
730
|
box-shadow: none !important;
|
|
731
731
|
}
|
|
732
732
|
`;
|
|
733
|
-
var CategoryGroup =
|
|
733
|
+
var CategoryGroup = styled47.div`
|
|
734
734
|
display: flex;
|
|
735
735
|
flex-direction: column;
|
|
736
736
|
align-items: center;
|
|
@@ -742,7 +742,7 @@ var CategoryGroup = styled11.div`
|
|
|
742
742
|
border-radius: 0 !important;
|
|
743
743
|
}
|
|
744
744
|
`;
|
|
745
|
-
var CategoryButton =
|
|
745
|
+
var CategoryButton = styled47.button`
|
|
746
746
|
width: 48px;
|
|
747
747
|
height: 48px;
|
|
748
748
|
border: none;
|
|
@@ -767,7 +767,7 @@ var CategoryButton = styled11.button`
|
|
|
767
767
|
outline-offset: 2px;
|
|
768
768
|
}
|
|
769
769
|
`;
|
|
770
|
-
var CategoryLabel =
|
|
770
|
+
var CategoryLabel = styled47.span`
|
|
771
771
|
font-size: 9px;
|
|
772
772
|
color: ${tokens.colors.text.tertiary};
|
|
773
773
|
margin-top: ${tokens.spacing.xs};
|
|
@@ -777,7 +777,7 @@ var CategoryLabel = styled11.span`
|
|
|
777
777
|
text-overflow: ellipsis;
|
|
778
778
|
white-space: nowrap;
|
|
779
779
|
`;
|
|
780
|
-
var SubItemList =
|
|
780
|
+
var SubItemList = styled47.div`
|
|
781
781
|
display: ${({ $expanded }) => $expanded ? "flex" : "none"};
|
|
782
782
|
flex-direction: column;
|
|
783
783
|
align-items: center;
|
|
@@ -785,7 +785,7 @@ var SubItemList = styled11.div`
|
|
|
785
785
|
margin-top: ${tokens.spacing.xs};
|
|
786
786
|
width: 100%;
|
|
787
787
|
`;
|
|
788
|
-
var SubItemButton =
|
|
788
|
+
var SubItemButton = styled47.button`
|
|
789
789
|
width: 32px;
|
|
790
790
|
height: 32px;
|
|
791
791
|
border: none;
|
|
@@ -809,7 +809,7 @@ var SubItemButton = styled11.button`
|
|
|
809
809
|
outline-offset: 2px;
|
|
810
810
|
}
|
|
811
811
|
`;
|
|
812
|
-
var CountBadge =
|
|
812
|
+
var CountBadge = styled47.span`
|
|
813
813
|
position: absolute;
|
|
814
814
|
top: -2px;
|
|
815
815
|
right: -2px;
|
|
@@ -835,7 +835,7 @@ var filterBadgeIn = keyframes`
|
|
|
835
835
|
transform: scale(1);
|
|
836
836
|
}
|
|
837
837
|
`;
|
|
838
|
-
var FilterBadge =
|
|
838
|
+
var FilterBadge = styled47.div`
|
|
839
839
|
position: absolute;
|
|
840
840
|
bottom: -${tokens.spacing.xs};
|
|
841
841
|
right: -${tokens.spacing.xs};
|
|
@@ -854,13 +854,13 @@ var FilterBadge = styled11.div`
|
|
|
854
854
|
fill: ${tokens.colors.text.primary};
|
|
855
855
|
}
|
|
856
856
|
`;
|
|
857
|
-
var CategoryIconImg =
|
|
857
|
+
var CategoryIconImg = styled47.img`
|
|
858
858
|
width: ${({ $size }) => $size || 24}px;
|
|
859
859
|
height: ${({ $size }) => $size || 24}px;
|
|
860
860
|
object-fit: contain;
|
|
861
861
|
filter: ${({ $active }) => $active ? "brightness(0) invert(1)" : "none"};
|
|
862
862
|
`;
|
|
863
|
-
var SubItemIconImg =
|
|
863
|
+
var SubItemIconImg = styled47.img`
|
|
864
864
|
width: ${({ $size }) => $size}px;
|
|
865
865
|
height: ${({ $size }) => $size}px;
|
|
866
866
|
object-fit: contain;
|
|
@@ -975,7 +975,7 @@ function CategoryNav({
|
|
|
975
975
|
}) });
|
|
976
976
|
}
|
|
977
977
|
CategoryNav.displayName = "CategoryNav";
|
|
978
|
-
var IconWrapper =
|
|
978
|
+
var IconWrapper = styled47.span`
|
|
979
979
|
display: inline-flex;
|
|
980
980
|
align-items: center;
|
|
981
981
|
justify-content: center;
|
|
@@ -1055,7 +1055,7 @@ function Icon({
|
|
|
1055
1055
|
return /* @__PURE__ */ jsx(IconWrapper, { $size: size, $color: color, className, "aria-hidden": "true", children: /* @__PURE__ */ jsx("img", { src: iconPath, alt: "", width: size, height: size, ...imgProps }) });
|
|
1056
1056
|
}
|
|
1057
1057
|
Icon.displayName = "Icon";
|
|
1058
|
-
var Container2 =
|
|
1058
|
+
var Container2 = styled47.nav`
|
|
1059
1059
|
position: absolute;
|
|
1060
1060
|
bottom: 0;
|
|
1061
1061
|
left: 0;
|
|
@@ -1064,10 +1064,10 @@ var Container2 = styled11.nav`
|
|
|
1064
1064
|
border-top: 1px solid ${tokens.colors.border.subtle};
|
|
1065
1065
|
/* Add vertical padding to prevent content overlap */
|
|
1066
1066
|
padding-top: 4px;
|
|
1067
|
-
/* Use safe-area-
|
|
1068
|
-
|
|
1069
|
-
Fallback to 0 if
|
|
1070
|
-
padding-bottom:
|
|
1067
|
+
/* Use --safe-area-bottom CSS variable for Android navigation buttons.
|
|
1068
|
+
Android WebView doesn't support env(), so we use CSS custom properties
|
|
1069
|
+
injected by the native app. Fallback to 0 if not set. */
|
|
1070
|
+
padding-bottom: var(--safe-area-bottom, 0px);
|
|
1071
1071
|
z-index: ${tokens.zIndex.sticky};
|
|
1072
1072
|
|
|
1073
1073
|
/* Dark theme support */
|
|
@@ -1075,7 +1075,7 @@ var Container2 = styled11.nav`
|
|
|
1075
1075
|
background-color: ${tokens.colors.background.darkest};
|
|
1076
1076
|
}
|
|
1077
1077
|
`;
|
|
1078
|
-
var ContentWrapper =
|
|
1078
|
+
var ContentWrapper = styled47.div`
|
|
1079
1079
|
display: flex;
|
|
1080
1080
|
justify-content: space-between;
|
|
1081
1081
|
align-items: center;
|
|
@@ -1093,7 +1093,7 @@ var ContentWrapper = styled11.div`
|
|
|
1093
1093
|
padding: 0 ${tokens.spacing.xs} 0 6px;
|
|
1094
1094
|
}
|
|
1095
1095
|
`;
|
|
1096
|
-
var UserStatusSlot =
|
|
1096
|
+
var UserStatusSlot = styled47.div`
|
|
1097
1097
|
display: flex;
|
|
1098
1098
|
align-items: center;
|
|
1099
1099
|
min-width: 0; /* Allow flex item to shrink */
|
|
@@ -1106,7 +1106,7 @@ var UserStatusSlot = styled11.div`
|
|
|
1106
1106
|
white-space: nowrap;
|
|
1107
1107
|
}
|
|
1108
1108
|
`;
|
|
1109
|
-
var ActionButtonsSlot =
|
|
1109
|
+
var ActionButtonsSlot = styled47.div`
|
|
1110
1110
|
display: flex;
|
|
1111
1111
|
align-items: center;
|
|
1112
1112
|
gap: ${tokens.spacing.xs};
|
|
@@ -1129,7 +1129,7 @@ function NavHorizontal({
|
|
|
1129
1129
|
] }) });
|
|
1130
1130
|
}
|
|
1131
1131
|
NavHorizontal.displayName = "NavHorizontal";
|
|
1132
|
-
var Container3 =
|
|
1132
|
+
var Container3 = styled47.nav`
|
|
1133
1133
|
position: absolute;
|
|
1134
1134
|
top: 0;
|
|
1135
1135
|
left: 0;
|
|
@@ -1142,6 +1142,8 @@ var Container3 = styled11.nav`
|
|
|
1142
1142
|
overflow-y: auto;
|
|
1143
1143
|
overflow-x: hidden;
|
|
1144
1144
|
scrollbar-width: none; /* Firefox */
|
|
1145
|
+
/* Use CSS custom property for coordinated animations with MainPane */
|
|
1146
|
+
transition: transform var(--layout-transition-duration, 0.3s) var(--layout-transition-easing, ease-out);
|
|
1145
1147
|
|
|
1146
1148
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
1147
1149
|
&::-webkit-scrollbar {
|
|
@@ -1182,7 +1184,7 @@ var Container3 = styled11.nav`
|
|
|
1182
1184
|
}
|
|
1183
1185
|
}
|
|
1184
1186
|
`;
|
|
1185
|
-
var TopSection =
|
|
1187
|
+
var TopSection = styled47.div`
|
|
1186
1188
|
display: flex;
|
|
1187
1189
|
flex-direction: column;
|
|
1188
1190
|
align-items: center;
|
|
@@ -1195,7 +1197,7 @@ var TopSection = styled11.div`
|
|
|
1195
1197
|
height: 64px; /* Same as PaneSectionHeader on desktop */
|
|
1196
1198
|
}
|
|
1197
1199
|
`;
|
|
1198
|
-
var BackButton =
|
|
1200
|
+
var BackButton = styled47.button`
|
|
1199
1201
|
position: absolute;
|
|
1200
1202
|
top: 50%;
|
|
1201
1203
|
left: 50%;
|
|
@@ -1231,12 +1233,12 @@ var BackButton = styled11.button`
|
|
|
1231
1233
|
outline-offset: 2px;
|
|
1232
1234
|
}
|
|
1233
1235
|
`;
|
|
1234
|
-
|
|
1236
|
+
styled47.span`
|
|
1235
1237
|
font-size: ${tokens.typography.fontSize.xl};
|
|
1236
1238
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
1237
1239
|
font-weight: ${tokens.typography.fontWeight.bold};
|
|
1238
1240
|
`;
|
|
1239
|
-
var Separator =
|
|
1241
|
+
var Separator = styled47.div`
|
|
1240
1242
|
width: 32px;
|
|
1241
1243
|
height: 2px;
|
|
1242
1244
|
background-color: ${tokens.colors.background.light};
|
|
@@ -1244,7 +1246,7 @@ var Separator = styled11.div`
|
|
|
1244
1246
|
margin: ${tokens.spacing.sm} auto ${tokens.spacing.md};
|
|
1245
1247
|
border-radius: 1px;
|
|
1246
1248
|
`;
|
|
1247
|
-
var FolderGroupsSlot =
|
|
1249
|
+
var FolderGroupsSlot = styled47.div`
|
|
1248
1250
|
display: flex;
|
|
1249
1251
|
flex-direction: column;
|
|
1250
1252
|
align-items: center;
|
|
@@ -1277,7 +1279,7 @@ var FolderGroupsSlot = styled11.div`
|
|
|
1277
1279
|
flex: 0 0 auto; /* Don't flex-grow, allow natural height */
|
|
1278
1280
|
}
|
|
1279
1281
|
`;
|
|
1280
|
-
var BottomSection =
|
|
1282
|
+
var BottomSection = styled47.div`
|
|
1281
1283
|
position: absolute;
|
|
1282
1284
|
bottom: 0; /* At the bottom of the nav container */
|
|
1283
1285
|
left: 0;
|
|
@@ -1301,7 +1303,7 @@ var BottomSection = styled11.div`
|
|
|
1301
1303
|
flex-shrink: 0;
|
|
1302
1304
|
}
|
|
1303
1305
|
`;
|
|
1304
|
-
var BottomButton =
|
|
1306
|
+
var BottomButton = styled47.button`
|
|
1305
1307
|
width: 40px;
|
|
1306
1308
|
height: 40px;
|
|
1307
1309
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -1386,7 +1388,7 @@ function NavVertical({
|
|
|
1386
1388
|
] });
|
|
1387
1389
|
}
|
|
1388
1390
|
NavVertical.displayName = "NavVertical";
|
|
1389
|
-
var Container4 =
|
|
1391
|
+
var Container4 = styled47.div`
|
|
1390
1392
|
position: relative;
|
|
1391
1393
|
width: 100%;
|
|
1392
1394
|
height: 100vh;
|
|
@@ -1399,7 +1401,7 @@ var Container4 = styled11.div`
|
|
|
1399
1401
|
position: relative;
|
|
1400
1402
|
}
|
|
1401
1403
|
`;
|
|
1402
|
-
var BackgroundPane =
|
|
1404
|
+
var BackgroundPane = styled47.div`
|
|
1403
1405
|
position: absolute;
|
|
1404
1406
|
top: 0;
|
|
1405
1407
|
left: 72px; /* Width of vertical nav */
|
|
@@ -1409,6 +1411,8 @@ var BackgroundPane = styled11.div`
|
|
|
1409
1411
|
overflow: auto;
|
|
1410
1412
|
scrollbar-gutter: stable; /* Reserve space for scrollbar to prevent layout shift */
|
|
1411
1413
|
z-index: ${tokens.zIndex.base}; /* Lower than MainPane */
|
|
1414
|
+
/* Use CSS custom property for coordinated animations with NavVertical */
|
|
1415
|
+
transition: transform var(--layout-transition-duration, 0.3s) var(--layout-transition-easing, ease-out);
|
|
1412
1416
|
|
|
1413
1417
|
/* Custom scrollbar styling */
|
|
1414
1418
|
&::-webkit-scrollbar {
|
|
@@ -1438,7 +1442,7 @@ var BackgroundPane = styled11.div`
|
|
|
1438
1442
|
left: 60px; /* Smaller nav on mobile */
|
|
1439
1443
|
}
|
|
1440
1444
|
`;
|
|
1441
|
-
var MainPane =
|
|
1445
|
+
var MainPane = styled47.main`
|
|
1442
1446
|
position: absolute;
|
|
1443
1447
|
top: 0;
|
|
1444
1448
|
left: 72px; /* Width of vertical nav */
|
|
@@ -1448,6 +1452,8 @@ var MainPane = styled11.main`
|
|
|
1448
1452
|
overflow: auto;
|
|
1449
1453
|
scrollbar-gutter: stable; /* Reserve space for scrollbar to prevent layout shift */
|
|
1450
1454
|
z-index: ${tokens.zIndex.base + 1}; /* Higher than BackgroundPane */
|
|
1455
|
+
/* Use CSS custom property for coordinated animations with NavVertical */
|
|
1456
|
+
transition: transform var(--layout-transition-duration, 0.3s) var(--layout-transition-easing, ease-out);
|
|
1451
1457
|
|
|
1452
1458
|
/* Custom scrollbar styling */
|
|
1453
1459
|
&::-webkit-scrollbar {
|
|
@@ -1512,13 +1518,13 @@ function Layout({
|
|
|
1512
1518
|
] });
|
|
1513
1519
|
}
|
|
1514
1520
|
Layout.displayName = "Layout";
|
|
1515
|
-
var Container5 =
|
|
1521
|
+
var Container5 = styled47.div`
|
|
1516
1522
|
display: flex;
|
|
1517
1523
|
align-items: center;
|
|
1518
1524
|
justify-content: flex-end;
|
|
1519
1525
|
gap: ${tokens.spacing.xs};
|
|
1520
1526
|
`;
|
|
1521
|
-
var ActionButton =
|
|
1527
|
+
var ActionButton = styled47.button`
|
|
1522
1528
|
width: ${({ $size = 32 }) => $size}px;
|
|
1523
1529
|
height: ${({ $size = 32 }) => $size}px;
|
|
1524
1530
|
min-width: ${({ $size = 32 }) => $size}px;
|
|
@@ -1623,7 +1629,7 @@ var statusColors = {
|
|
|
1623
1629
|
busy: tokens.colors.status.busy,
|
|
1624
1630
|
offline: tokens.colors.status.offline
|
|
1625
1631
|
};
|
|
1626
|
-
var Container6 =
|
|
1632
|
+
var Container6 = styled47.button`
|
|
1627
1633
|
display: grid;
|
|
1628
1634
|
grid-template-columns: auto 1fr;
|
|
1629
1635
|
align-items: center;
|
|
@@ -1662,7 +1668,7 @@ var Container6 = styled11.button`
|
|
|
1662
1668
|
opacity: 0.9;
|
|
1663
1669
|
}
|
|
1664
1670
|
`;
|
|
1665
|
-
var IconWrapper2 =
|
|
1671
|
+
var IconWrapper2 = styled47.div`
|
|
1666
1672
|
position: relative;
|
|
1667
1673
|
width: 36px;
|
|
1668
1674
|
height: 36px;
|
|
@@ -1673,13 +1679,13 @@ var IconWrapper2 = styled11.div`
|
|
|
1673
1679
|
justify-content: center;
|
|
1674
1680
|
flex-shrink: 0;
|
|
1675
1681
|
`;
|
|
1676
|
-
var WorkflowInfo =
|
|
1682
|
+
var WorkflowInfo = styled47.div`
|
|
1677
1683
|
display: flex;
|
|
1678
1684
|
flex-direction: column;
|
|
1679
1685
|
gap: ${tokens.spacing.xs};
|
|
1680
1686
|
min-width: 0;
|
|
1681
1687
|
`;
|
|
1682
|
-
var WorkflowName =
|
|
1688
|
+
var WorkflowName = styled47.span`
|
|
1683
1689
|
color: ${tokens.colors.text.primary};
|
|
1684
1690
|
font-size: ${tokens.typography.fontSize.sm};
|
|
1685
1691
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
@@ -1688,14 +1694,14 @@ var WorkflowName = styled11.span`
|
|
|
1688
1694
|
text-overflow: ellipsis;
|
|
1689
1695
|
white-space: nowrap;
|
|
1690
1696
|
`;
|
|
1691
|
-
var WorkflowStatus =
|
|
1697
|
+
var WorkflowStatus = styled47.span`
|
|
1692
1698
|
color: ${tokens.colors.text.tertiary};
|
|
1693
1699
|
font-size: ${tokens.typography.fontSize.xs};
|
|
1694
1700
|
font-weight: ${tokens.typography.fontWeight.regular};
|
|
1695
1701
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
1696
1702
|
text-transform: capitalize;
|
|
1697
1703
|
`;
|
|
1698
|
-
var WorkflowSubtitle =
|
|
1704
|
+
var WorkflowSubtitle = styled47.span`
|
|
1699
1705
|
color: ${tokens.colors.text.tertiary};
|
|
1700
1706
|
font-size: ${tokens.typography.fontSize.xs};
|
|
1701
1707
|
font-weight: ${tokens.typography.fontWeight.regular};
|
|
@@ -1705,7 +1711,7 @@ var WorkflowSubtitle = styled11.span`
|
|
|
1705
1711
|
text-overflow: ellipsis;
|
|
1706
1712
|
white-space: nowrap;
|
|
1707
1713
|
`;
|
|
1708
|
-
var StatusIndicatorOuter =
|
|
1714
|
+
var StatusIndicatorOuter = styled47.span`
|
|
1709
1715
|
position: absolute;
|
|
1710
1716
|
bottom: -2px;
|
|
1711
1717
|
right: -2px;
|
|
@@ -1717,7 +1723,7 @@ var StatusIndicatorOuter = styled11.span`
|
|
|
1717
1723
|
align-items: center;
|
|
1718
1724
|
justify-content: center;
|
|
1719
1725
|
`;
|
|
1720
|
-
var StatusIndicatorInner =
|
|
1726
|
+
var StatusIndicatorInner = styled47.span`
|
|
1721
1727
|
width: 8px;
|
|
1722
1728
|
height: 8px;
|
|
1723
1729
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -1763,7 +1769,7 @@ function WorkflowStatusCard({
|
|
|
1763
1769
|
] });
|
|
1764
1770
|
}
|
|
1765
1771
|
WorkflowStatusCard.displayName = "WorkflowStatusCard";
|
|
1766
|
-
var DarkNotificationCardContainer =
|
|
1772
|
+
var DarkNotificationCardContainer = styled47.div`
|
|
1767
1773
|
display: flex;
|
|
1768
1774
|
flex-direction: column;
|
|
1769
1775
|
padding: ${tokens.spacing.xs};
|
|
@@ -1774,7 +1780,7 @@ var DarkNotificationCardContainer = styled11.div`
|
|
|
1774
1780
|
min-width: 0;
|
|
1775
1781
|
overflow: hidden;
|
|
1776
1782
|
`;
|
|
1777
|
-
var DarkSectionHeader =
|
|
1783
|
+
var DarkSectionHeader = styled47.button`
|
|
1778
1784
|
display: flex;
|
|
1779
1785
|
align-items: center;
|
|
1780
1786
|
justify-content: space-between;
|
|
@@ -1800,7 +1806,7 @@ var DarkSectionHeader = styled11.button`
|
|
|
1800
1806
|
border-radius: ${tokens.borderRadius.sm};
|
|
1801
1807
|
}
|
|
1802
1808
|
`;
|
|
1803
|
-
var DarkChevronIcon =
|
|
1809
|
+
var DarkChevronIcon = styled47.span`
|
|
1804
1810
|
display: inline-flex;
|
|
1805
1811
|
align-items: center;
|
|
1806
1812
|
justify-content: center;
|
|
@@ -1818,7 +1824,7 @@ var DarkChevronIcon = styled11.span`
|
|
|
1818
1824
|
height: 12px;
|
|
1819
1825
|
}
|
|
1820
1826
|
`;
|
|
1821
|
-
var DarkSectionContent =
|
|
1827
|
+
var DarkSectionContent = styled47.div`
|
|
1822
1828
|
display: flex;
|
|
1823
1829
|
flex-direction: column;
|
|
1824
1830
|
gap: ${tokens.spacing.xs};
|
|
@@ -1827,7 +1833,7 @@ var DarkSectionContent = styled11.div`
|
|
|
1827
1833
|
min-width: 0;
|
|
1828
1834
|
overflow: hidden;
|
|
1829
1835
|
`;
|
|
1830
|
-
var DarkNotificationItemWrapper =
|
|
1836
|
+
var DarkNotificationItemWrapper = styled47.button`
|
|
1831
1837
|
display: flex;
|
|
1832
1838
|
align-items: center;
|
|
1833
1839
|
gap: ${tokens.spacing.xs};
|
|
@@ -1866,7 +1872,7 @@ var DarkNotificationItemWrapper = styled11.button`
|
|
|
1866
1872
|
opacity: 0.5;
|
|
1867
1873
|
}
|
|
1868
1874
|
`;
|
|
1869
|
-
var DarkItemIcon =
|
|
1875
|
+
var DarkItemIcon = styled47.span`
|
|
1870
1876
|
display: inline-flex;
|
|
1871
1877
|
align-items: center;
|
|
1872
1878
|
justify-content: center;
|
|
@@ -1891,7 +1897,7 @@ var DarkItemIcon = styled11.span`
|
|
|
1891
1897
|
padding: ${tokens.spacing.xs};
|
|
1892
1898
|
`}
|
|
1893
1899
|
`;
|
|
1894
|
-
var DarkItemText =
|
|
1900
|
+
var DarkItemText = styled47.span`
|
|
1895
1901
|
flex: 1;
|
|
1896
1902
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
1897
1903
|
font-size: 11px;
|
|
@@ -1903,7 +1909,7 @@ var DarkItemText = styled11.span`
|
|
|
1903
1909
|
overflow: hidden;
|
|
1904
1910
|
text-overflow: ellipsis;
|
|
1905
1911
|
`;
|
|
1906
|
-
var DarkMenuButton =
|
|
1912
|
+
var DarkMenuButton = styled47.button`
|
|
1907
1913
|
display: inline-flex;
|
|
1908
1914
|
align-items: center;
|
|
1909
1915
|
justify-content: center;
|
|
@@ -1937,7 +1943,7 @@ var DarkMenuButton = styled11.button`
|
|
|
1937
1943
|
height: 14px;
|
|
1938
1944
|
}
|
|
1939
1945
|
`;
|
|
1940
|
-
var DarkTimestamp =
|
|
1946
|
+
var DarkTimestamp = styled47.span`
|
|
1941
1947
|
font-size: 10px;
|
|
1942
1948
|
color: ${tokens.colors.text.tertiary};
|
|
1943
1949
|
white-space: normal;
|
|
@@ -2122,7 +2128,7 @@ var DarkNotificationItemComponent = ({
|
|
|
2122
2128
|
);
|
|
2123
2129
|
};
|
|
2124
2130
|
DarkNotificationCard.displayName = "DarkNotificationCard";
|
|
2125
|
-
var Container7 =
|
|
2131
|
+
var Container7 = styled47.div`
|
|
2126
2132
|
width: 100%;
|
|
2127
2133
|
height: 100%;
|
|
2128
2134
|
background-color: transparent;
|
|
@@ -2132,7 +2138,7 @@ var Container7 = styled11.div`
|
|
|
2132
2138
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
2133
2139
|
overflow: hidden; // Prevent content from escaping container bounds
|
|
2134
2140
|
`;
|
|
2135
|
-
var TabListWrapper =
|
|
2141
|
+
var TabListWrapper = styled47.div`
|
|
2136
2142
|
display: flex;
|
|
2137
2143
|
border-bottom: 2px solid ${tokens.colors.border.default};
|
|
2138
2144
|
background-color: ${tokens.colors.surface.subtle};
|
|
@@ -2152,7 +2158,7 @@ var TabListWrapper = styled11.div`
|
|
|
2152
2158
|
gap: ${tokens.spacing.xs};
|
|
2153
2159
|
}
|
|
2154
2160
|
`;
|
|
2155
|
-
var TabButton =
|
|
2161
|
+
var TabButton = styled47.button`
|
|
2156
2162
|
padding: ${tokens.spacing.md} ${tokens.spacing.lg};
|
|
2157
2163
|
background: none;
|
|
2158
2164
|
border: none;
|
|
@@ -2196,7 +2202,7 @@ var TabButton = styled11.button`
|
|
|
2196
2202
|
}
|
|
2197
2203
|
`}
|
|
2198
2204
|
`;
|
|
2199
|
-
var TabPanelWrapper =
|
|
2205
|
+
var TabPanelWrapper = styled47.div`
|
|
2200
2206
|
flex: 1;
|
|
2201
2207
|
padding: ${tokens.spacing.lg};
|
|
2202
2208
|
overflow-y: auto;
|
|
@@ -2234,7 +2240,7 @@ var TabPanelWrapper = styled11.div`
|
|
|
2234
2240
|
background: ${tokens.colors.scrollbar.thumbHover};
|
|
2235
2241
|
}
|
|
2236
2242
|
`;
|
|
2237
|
-
var RunsContainer =
|
|
2243
|
+
var RunsContainer = styled47.div`
|
|
2238
2244
|
display: flex;
|
|
2239
2245
|
flex-direction: column;
|
|
2240
2246
|
gap: ${tokens.spacing.lg};
|
|
@@ -2247,7 +2253,7 @@ var RunsContainer = styled11.div`
|
|
|
2247
2253
|
gap: ${tokens.spacing.md};
|
|
2248
2254
|
}
|
|
2249
2255
|
`;
|
|
2250
|
-
|
|
2256
|
+
styled47.button`
|
|
2251
2257
|
display: flex;
|
|
2252
2258
|
align-items: center;
|
|
2253
2259
|
gap: ${tokens.spacing.md};
|
|
@@ -2284,7 +2290,7 @@ styled11.button`
|
|
|
2284
2290
|
outline-offset: 2px;
|
|
2285
2291
|
}
|
|
2286
2292
|
`;
|
|
2287
|
-
var StyledDisclosureGroup =
|
|
2293
|
+
var StyledDisclosureGroup = styled47(DisclosureGroup)`
|
|
2288
2294
|
display: flex;
|
|
2289
2295
|
flex-direction: column;
|
|
2290
2296
|
gap: ${tokens.spacing.sm};
|
|
@@ -2293,7 +2299,7 @@ var StyledDisclosureGroup = styled11(DisclosureGroup)`
|
|
|
2293
2299
|
min-width: 0;
|
|
2294
2300
|
overflow: hidden;
|
|
2295
2301
|
`;
|
|
2296
|
-
var CategoryDisclosure =
|
|
2302
|
+
var CategoryDisclosure = styled47(Disclosure)`
|
|
2297
2303
|
background-color: transparent;
|
|
2298
2304
|
display: flex;
|
|
2299
2305
|
flex-direction: column;
|
|
@@ -2311,7 +2317,7 @@ var CategoryDisclosure = styled11(Disclosure)`
|
|
|
2311
2317
|
cursor: not-allowed;
|
|
2312
2318
|
}
|
|
2313
2319
|
`;
|
|
2314
|
-
var CategoryHeader =
|
|
2320
|
+
var CategoryHeader = styled47(Button)`
|
|
2315
2321
|
width: 100%;
|
|
2316
2322
|
padding: ${tokens.spacing.xs} 0;
|
|
2317
2323
|
background: none;
|
|
@@ -2341,7 +2347,7 @@ var CategoryHeader = styled11(Button)`
|
|
|
2341
2347
|
border-radius: ${tokens.borderRadius.sm};
|
|
2342
2348
|
}
|
|
2343
2349
|
`;
|
|
2344
|
-
var CategoryTitle =
|
|
2350
|
+
var CategoryTitle = styled47.div`
|
|
2345
2351
|
display: flex;
|
|
2346
2352
|
align-items: center;
|
|
2347
2353
|
gap: ${tokens.spacing.sm};
|
|
@@ -2350,7 +2356,7 @@ var CategoryTitle = styled11.div`
|
|
|
2350
2356
|
gap: ${tokens.spacing.xs};
|
|
2351
2357
|
}
|
|
2352
2358
|
`;
|
|
2353
|
-
|
|
2359
|
+
styled47.img`
|
|
2354
2360
|
width: 16px;
|
|
2355
2361
|
height: 16px;
|
|
2356
2362
|
opacity: 0.6;
|
|
@@ -2361,7 +2367,7 @@ styled11.img`
|
|
|
2361
2367
|
height: 14px;
|
|
2362
2368
|
}
|
|
2363
2369
|
`;
|
|
2364
|
-
var HashtagIcon =
|
|
2370
|
+
var HashtagIcon = styled47.img`
|
|
2365
2371
|
width: 14px;
|
|
2366
2372
|
height: 14px;
|
|
2367
2373
|
opacity: 0.6;
|
|
@@ -2372,7 +2378,7 @@ var HashtagIcon = styled11.img`
|
|
|
2372
2378
|
height: 12px;
|
|
2373
2379
|
}
|
|
2374
2380
|
`;
|
|
2375
|
-
var ChevronIcon =
|
|
2381
|
+
var ChevronIcon = styled47.div`
|
|
2376
2382
|
display: flex;
|
|
2377
2383
|
align-items: center;
|
|
2378
2384
|
transition: transform ${tokens.transitions.normal};
|
|
@@ -2393,7 +2399,7 @@ var ChevronIcon = styled11.div`
|
|
|
2393
2399
|
}
|
|
2394
2400
|
}
|
|
2395
2401
|
`;
|
|
2396
|
-
var CategoryDisclosurePanel =
|
|
2402
|
+
var CategoryDisclosurePanel = styled47(DisclosurePanel)`
|
|
2397
2403
|
display: flex;
|
|
2398
2404
|
flex-direction: column;
|
|
2399
2405
|
gap: 2px;
|
|
@@ -2422,7 +2428,7 @@ var CategoryDisclosurePanel = styled11(DisclosurePanel)`
|
|
|
2422
2428
|
}
|
|
2423
2429
|
}
|
|
2424
2430
|
`;
|
|
2425
|
-
var ItemContainer =
|
|
2431
|
+
var ItemContainer = styled47.div`
|
|
2426
2432
|
display: flex;
|
|
2427
2433
|
align-items: center;
|
|
2428
2434
|
gap: ${tokens.spacing.sm};
|
|
@@ -2442,7 +2448,7 @@ var ItemContainer = styled11.div`
|
|
|
2442
2448
|
background-color: ${tokens.colors.surface.overlayHover};
|
|
2443
2449
|
}
|
|
2444
2450
|
`;
|
|
2445
|
-
var ItemDisclosure =
|
|
2451
|
+
var ItemDisclosure = styled47(Disclosure)`
|
|
2446
2452
|
background-color: transparent;
|
|
2447
2453
|
margin-bottom: ${tokens.spacing.xs};
|
|
2448
2454
|
display: flex;
|
|
@@ -2457,7 +2463,7 @@ var ItemDisclosure = styled11(Disclosure)`
|
|
|
2457
2463
|
border-radius: ${tokens.borderRadius.md};
|
|
2458
2464
|
}
|
|
2459
2465
|
`;
|
|
2460
|
-
var ItemHeader =
|
|
2466
|
+
var ItemHeader = styled47(Button)`
|
|
2461
2467
|
width: 100%;
|
|
2462
2468
|
padding: 0;
|
|
2463
2469
|
background: none;
|
|
@@ -2475,7 +2481,7 @@ var ItemHeader = styled11(Button)`
|
|
|
2475
2481
|
border-radius: ${tokens.borderRadius.sm};
|
|
2476
2482
|
}
|
|
2477
2483
|
`;
|
|
2478
|
-
var ItemDisclosurePanel =
|
|
2484
|
+
var ItemDisclosurePanel = styled47(DisclosurePanel)`
|
|
2479
2485
|
padding: ${tokens.spacing.xs};
|
|
2480
2486
|
background-color: ${tokens.colors.overlay};
|
|
2481
2487
|
border-radius: 0 0 ${tokens.borderRadius.md} ${tokens.borderRadius.md};
|
|
@@ -2505,7 +2511,7 @@ var ItemDisclosurePanel = styled11(DisclosurePanel)`
|
|
|
2505
2511
|
}
|
|
2506
2512
|
}
|
|
2507
2513
|
`;
|
|
2508
|
-
var ItemIcon =
|
|
2514
|
+
var ItemIcon = styled47.img`
|
|
2509
2515
|
width: 20px;
|
|
2510
2516
|
height: 20px;
|
|
2511
2517
|
opacity: 0.6;
|
|
@@ -2516,7 +2522,7 @@ var ItemIcon = styled11.img`
|
|
|
2516
2522
|
height: 18px;
|
|
2517
2523
|
}
|
|
2518
2524
|
`;
|
|
2519
|
-
var ItemName =
|
|
2525
|
+
var ItemName = styled47.span`
|
|
2520
2526
|
flex: 1;
|
|
2521
2527
|
font-size: ${tokens.typography.fontSize.sm};
|
|
2522
2528
|
color: ${(props) => props.$dimmed ? tokens.colors.text.tertiary : tokens.colors.text.secondary};
|
|
@@ -2534,7 +2540,7 @@ var ItemName = styled11.span`
|
|
|
2534
2540
|
color: ${(props) => props.$dimmed ? tokens.colors.text.secondary : tokens.colors.text.primary};
|
|
2535
2541
|
}
|
|
2536
2542
|
`;
|
|
2537
|
-
var RunStatus =
|
|
2543
|
+
var RunStatus = styled47.span`
|
|
2538
2544
|
display: flex;
|
|
2539
2545
|
align-items: center;
|
|
2540
2546
|
justify-content: center;
|
|
@@ -2566,13 +2572,13 @@ var RunStatus = styled11.span`
|
|
|
2566
2572
|
font-size: ${tokens.typography.fontSize.xs};
|
|
2567
2573
|
}
|
|
2568
2574
|
`;
|
|
2569
|
-
|
|
2575
|
+
styled47.div`
|
|
2570
2576
|
margin-bottom: ${tokens.spacing.md};
|
|
2571
2577
|
border-radius: ${tokens.borderRadius.lg};
|
|
2572
2578
|
background-color: ${tokens.colors.surface.overlay};
|
|
2573
2579
|
overflow: hidden;
|
|
2574
2580
|
`;
|
|
2575
|
-
|
|
2581
|
+
styled47.button`
|
|
2576
2582
|
width: 100%;
|
|
2577
2583
|
padding: ${tokens.spacing.md};
|
|
2578
2584
|
background: ${tokens.colors.surface.overlay};
|
|
@@ -2608,13 +2614,13 @@ styled11.button`
|
|
|
2608
2614
|
margin-bottom: ${tokens.spacing.xs};
|
|
2609
2615
|
}
|
|
2610
2616
|
`;
|
|
2611
|
-
|
|
2617
|
+
styled47.span`
|
|
2612
2618
|
font-size: ${tokens.typography.fontSize.xs};
|
|
2613
2619
|
color: ${tokens.colors.text.secondary};
|
|
2614
2620
|
transition: transform ${tokens.transitions.normal};
|
|
2615
2621
|
transform: ${(props) => props.$isExpanded ? "rotate(180deg)" : "rotate(0deg)"};
|
|
2616
2622
|
`;
|
|
2617
|
-
|
|
2623
|
+
styled47.div`
|
|
2618
2624
|
padding: ${tokens.spacing.md};
|
|
2619
2625
|
padding-top: 0;
|
|
2620
2626
|
background-color: ${tokens.colors.overlay};
|
|
@@ -2634,17 +2640,17 @@ styled11.div`
|
|
|
2634
2640
|
}
|
|
2635
2641
|
}
|
|
2636
2642
|
`;
|
|
2637
|
-
var MeterContainer =
|
|
2643
|
+
var MeterContainer = styled47.div`
|
|
2638
2644
|
max-width: 600px;
|
|
2639
2645
|
margin: 0 auto;
|
|
2640
2646
|
`;
|
|
2641
|
-
var MeterLabel =
|
|
2647
|
+
var MeterLabel = styled47.div`
|
|
2642
2648
|
font-size: ${tokens.typography.fontSize.base};
|
|
2643
2649
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
2644
2650
|
margin-bottom: ${tokens.spacing.md};
|
|
2645
2651
|
color: ${tokens.colors.text.primary};
|
|
2646
2652
|
`;
|
|
2647
|
-
var MeterBar =
|
|
2653
|
+
var MeterBar = styled47.div`
|
|
2648
2654
|
width: 100%;
|
|
2649
2655
|
height: 24px;
|
|
2650
2656
|
background-color: ${tokens.colors.background.darker};
|
|
@@ -2653,7 +2659,7 @@ var MeterBar = styled11.div`
|
|
|
2653
2659
|
position: relative;
|
|
2654
2660
|
margin-bottom: ${tokens.spacing.md};
|
|
2655
2661
|
`;
|
|
2656
|
-
var MeterFill =
|
|
2662
|
+
var MeterFill = styled47.div`
|
|
2657
2663
|
height: 100%;
|
|
2658
2664
|
width: ${(props) => props.$percentage}%;
|
|
2659
2665
|
background: linear-gradient(90deg, ${(props) => props.$color}dd, ${(props) => props.$color});
|
|
@@ -2681,7 +2687,7 @@ var MeterFill = styled11.div`
|
|
|
2681
2687
|
}
|
|
2682
2688
|
}
|
|
2683
2689
|
`;
|
|
2684
|
-
var MeterStats =
|
|
2690
|
+
var MeterStats = styled47.div`
|
|
2685
2691
|
font-size: ${tokens.typography.fontSize.sm};
|
|
2686
2692
|
color: ${tokens.colors.text.secondary};
|
|
2687
2693
|
text-align: center;
|
|
@@ -2692,18 +2698,18 @@ var MeterStats = styled11.div`
|
|
|
2692
2698
|
opacity: 0.8;
|
|
2693
2699
|
}
|
|
2694
2700
|
`;
|
|
2695
|
-
var ConnectionsContainer =
|
|
2701
|
+
var ConnectionsContainer = styled47.div`
|
|
2696
2702
|
max-width: 500px;
|
|
2697
2703
|
margin: 0 auto;
|
|
2698
2704
|
text-align: center;
|
|
2699
2705
|
`;
|
|
2700
|
-
var ConnectionDescription =
|
|
2706
|
+
var ConnectionDescription = styled47.p`
|
|
2701
2707
|
font-size: ${tokens.typography.fontSize.sm};
|
|
2702
2708
|
color: ${tokens.colors.text.secondary};
|
|
2703
2709
|
line-height: ${tokens.typography.lineHeight.relaxed};
|
|
2704
2710
|
margin-bottom: ${tokens.spacing.lg};
|
|
2705
2711
|
`;
|
|
2706
|
-
var GoogleButton =
|
|
2712
|
+
var GoogleButton = styled47.button`
|
|
2707
2713
|
width: 100%;
|
|
2708
2714
|
padding: ${tokens.spacing.md} ${tokens.spacing.lg};
|
|
2709
2715
|
font-size: ${tokens.typography.fontSize.sm};
|
|
@@ -3130,7 +3136,7 @@ function PaneMenus({
|
|
|
3130
3136
|
/* @__PURE__ */ jsx(TabPanel, { state }, state.selectedItem?.key)
|
|
3131
3137
|
] });
|
|
3132
3138
|
}
|
|
3133
|
-
var Container8 =
|
|
3139
|
+
var Container8 = styled47.header`
|
|
3134
3140
|
position: relative;
|
|
3135
3141
|
width: 100%;
|
|
3136
3142
|
height: 56px;
|
|
@@ -3193,7 +3199,7 @@ var Container8 = styled11.header`
|
|
|
3193
3199
|
background-color: ${tokens.colors.backdrop};
|
|
3194
3200
|
}
|
|
3195
3201
|
`;
|
|
3196
|
-
var BrandLogo =
|
|
3202
|
+
var BrandLogo = styled47.img`
|
|
3197
3203
|
position: relative;
|
|
3198
3204
|
z-index: 1;
|
|
3199
3205
|
max-height: 28px;
|
|
@@ -3208,7 +3214,7 @@ var BrandLogo = styled11.img`
|
|
|
3208
3214
|
max-height: 32px;
|
|
3209
3215
|
}
|
|
3210
3216
|
`;
|
|
3211
|
-
var SettingsButton =
|
|
3217
|
+
var SettingsButton = styled47.button`
|
|
3212
3218
|
position: absolute;
|
|
3213
3219
|
top: 50%;
|
|
3214
3220
|
right: ${tokens.spacing.md};
|
|
@@ -3262,7 +3268,7 @@ var SettingsButton = styled11.button`
|
|
|
3262
3268
|
right: ${tokens.spacing.lg};
|
|
3263
3269
|
}
|
|
3264
3270
|
`;
|
|
3265
|
-
var BackButton2 =
|
|
3271
|
+
var BackButton2 = styled47.button`
|
|
3266
3272
|
position: absolute;
|
|
3267
3273
|
top: 50%;
|
|
3268
3274
|
left: ${tokens.spacing.md};
|
|
@@ -3369,7 +3375,7 @@ function PaneSectionHeader({
|
|
|
3369
3375
|
] });
|
|
3370
3376
|
}
|
|
3371
3377
|
PaneSectionHeader.displayName = "PaneSectionHeader";
|
|
3372
|
-
var Container9 =
|
|
3378
|
+
var Container9 = styled47.button`
|
|
3373
3379
|
/* Base button styling */
|
|
3374
3380
|
width: 48px;
|
|
3375
3381
|
height: 48px;
|
|
@@ -3418,7 +3424,7 @@ var Container9 = styled11.button`
|
|
|
3418
3424
|
cursor: not-allowed;
|
|
3419
3425
|
}
|
|
3420
3426
|
`;
|
|
3421
|
-
var LogoImage =
|
|
3427
|
+
var LogoImage = styled47.img`
|
|
3422
3428
|
width: 100%;
|
|
3423
3429
|
height: 100%;
|
|
3424
3430
|
object-fit: contain;
|
|
@@ -3437,7 +3443,7 @@ function ServiceIcon({ brand, active = false, className, ...ariaProps }) {
|
|
|
3437
3443
|
return /* @__PURE__ */ jsx(Container9, { ...buttonProps, ref, $active: active, className, children: /* @__PURE__ */ jsx(LogoImage, { src: `/assets/icons/Brand/${brand}.svg`, alt: brand }) });
|
|
3438
3444
|
}
|
|
3439
3445
|
ServiceIcon.displayName = "ServiceIcon";
|
|
3440
|
-
var NotificationCardContainer =
|
|
3446
|
+
var NotificationCardContainer = styled47.div`
|
|
3441
3447
|
display: flex;
|
|
3442
3448
|
flex-direction: column;
|
|
3443
3449
|
width: 100%;
|
|
@@ -3448,7 +3454,7 @@ var NotificationCardContainer = styled11.div`
|
|
|
3448
3454
|
box-shadow: ${tokens.shadows.card};
|
|
3449
3455
|
gap: ${tokens.spacing.md};
|
|
3450
3456
|
`;
|
|
3451
|
-
var SectionHeader =
|
|
3457
|
+
var SectionHeader = styled47.button`
|
|
3452
3458
|
display: flex;
|
|
3453
3459
|
align-items: center;
|
|
3454
3460
|
justify-content: space-between;
|
|
@@ -3474,7 +3480,7 @@ var SectionHeader = styled11.button`
|
|
|
3474
3480
|
border-radius: ${tokens.borderRadius.md};
|
|
3475
3481
|
}
|
|
3476
3482
|
`;
|
|
3477
|
-
var ChevronIcon2 =
|
|
3483
|
+
var ChevronIcon2 = styled47.span`
|
|
3478
3484
|
display: inline-flex;
|
|
3479
3485
|
align-items: center;
|
|
3480
3486
|
justify-content: center;
|
|
@@ -3492,14 +3498,14 @@ var ChevronIcon2 = styled11.span`
|
|
|
3492
3498
|
height: 16px;
|
|
3493
3499
|
}
|
|
3494
3500
|
`;
|
|
3495
|
-
var SectionContent =
|
|
3501
|
+
var SectionContent = styled47.div`
|
|
3496
3502
|
display: flex;
|
|
3497
3503
|
flex-direction: column;
|
|
3498
3504
|
gap: ${tokens.spacing.sm};
|
|
3499
3505
|
padding-left: 0;
|
|
3500
3506
|
margin-top: ${tokens.spacing.xs};
|
|
3501
3507
|
`;
|
|
3502
|
-
var NotificationItemWrapper =
|
|
3508
|
+
var NotificationItemWrapper = styled47.button`
|
|
3503
3509
|
display: flex;
|
|
3504
3510
|
align-items: center;
|
|
3505
3511
|
gap: ${tokens.spacing.md};
|
|
@@ -3536,7 +3542,7 @@ var NotificationItemWrapper = styled11.button`
|
|
|
3536
3542
|
opacity: 0.5;
|
|
3537
3543
|
}
|
|
3538
3544
|
`;
|
|
3539
|
-
var ItemIcon2 =
|
|
3545
|
+
var ItemIcon2 = styled47.span`
|
|
3540
3546
|
display: inline-flex;
|
|
3541
3547
|
align-items: center;
|
|
3542
3548
|
justify-content: center;
|
|
@@ -3561,7 +3567,7 @@ var ItemIcon2 = styled11.span`
|
|
|
3561
3567
|
padding: ${tokens.spacing.xs};
|
|
3562
3568
|
`}
|
|
3563
3569
|
`;
|
|
3564
|
-
var ItemText =
|
|
3570
|
+
var ItemText = styled47.span`
|
|
3565
3571
|
flex: 1;
|
|
3566
3572
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
3567
3573
|
font-size: 15px;
|
|
@@ -3570,7 +3576,7 @@ var ItemText = styled11.span`
|
|
|
3570
3576
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
3571
3577
|
word-wrap: break-word;
|
|
3572
3578
|
`;
|
|
3573
|
-
var MenuButton =
|
|
3579
|
+
var MenuButton = styled47.button`
|
|
3574
3580
|
display: inline-flex;
|
|
3575
3581
|
align-items: center;
|
|
3576
3582
|
justify-content: center;
|
|
@@ -3780,7 +3786,7 @@ var NotificationItemComponent = ({
|
|
|
3780
3786
|
);
|
|
3781
3787
|
};
|
|
3782
3788
|
NotificationCard.displayName = "NotificationCard";
|
|
3783
|
-
var StyledUserMessage =
|
|
3789
|
+
var StyledUserMessage = styled47.button`
|
|
3784
3790
|
/* Base styles */
|
|
3785
3791
|
display: inline-flex;
|
|
3786
3792
|
align-items: center;
|
|
@@ -4120,7 +4126,7 @@ var ConnectionStatusBadge = ({
|
|
|
4120
4126
|
);
|
|
4121
4127
|
};
|
|
4122
4128
|
ConnectionStatusBadge.displayName = "ConnectionStatusBadge";
|
|
4123
|
-
var Badge =
|
|
4129
|
+
var Badge = styled47.span`
|
|
4124
4130
|
display: inline-flex;
|
|
4125
4131
|
align-items: center;
|
|
4126
4132
|
padding: ${({ $size }) => $size === "sm" ? `${tokens.spacing.xs} 6px` : `${tokens.spacing.xs} ${tokens.spacing.sm}`};
|
|
@@ -4156,7 +4162,7 @@ var IntegrationCard = ({
|
|
|
4156
4162
|
] });
|
|
4157
4163
|
};
|
|
4158
4164
|
IntegrationCard.displayName = "IntegrationCard";
|
|
4159
|
-
var Card =
|
|
4165
|
+
var Card = styled47.div`
|
|
4160
4166
|
display: flex;
|
|
4161
4167
|
flex-direction: column;
|
|
4162
4168
|
gap: ${tokens.spacing.sm};
|
|
@@ -4176,11 +4182,11 @@ var Card = styled11.div`
|
|
|
4176
4182
|
border-color: ${tokens.colors.border.hover};
|
|
4177
4183
|
}
|
|
4178
4184
|
`;
|
|
4179
|
-
var StatusRow =
|
|
4185
|
+
var StatusRow = styled47.div`
|
|
4180
4186
|
display: flex;
|
|
4181
4187
|
align-items: center;
|
|
4182
4188
|
`;
|
|
4183
|
-
var ContentHeader =
|
|
4189
|
+
var ContentHeader = styled47.div`
|
|
4184
4190
|
display: flex;
|
|
4185
4191
|
align-items: flex-start;
|
|
4186
4192
|
gap: ${tokens.spacing.sm};
|
|
@@ -4189,7 +4195,7 @@ var ContentHeader = styled11.div`
|
|
|
4189
4195
|
gap: ${tokens.spacing.xs};
|
|
4190
4196
|
}
|
|
4191
4197
|
`;
|
|
4192
|
-
var IconWrapper3 =
|
|
4198
|
+
var IconWrapper3 = styled47.div`
|
|
4193
4199
|
width: 40px;
|
|
4194
4200
|
height: 40px;
|
|
4195
4201
|
display: flex;
|
|
@@ -4199,32 +4205,32 @@ var IconWrapper3 = styled11.div`
|
|
|
4199
4205
|
background: ${tokens.colors.background.light};
|
|
4200
4206
|
flex-shrink: 0;
|
|
4201
4207
|
`;
|
|
4202
|
-
var IconImage =
|
|
4208
|
+
var IconImage = styled47.img`
|
|
4203
4209
|
width: 24px;
|
|
4204
4210
|
height: 24px;
|
|
4205
4211
|
object-fit: contain;
|
|
4206
4212
|
`;
|
|
4207
|
-
var Info =
|
|
4213
|
+
var Info = styled47.div`
|
|
4208
4214
|
display: flex;
|
|
4209
4215
|
flex-direction: column;
|
|
4210
4216
|
gap: 2px;
|
|
4211
4217
|
min-width: 0;
|
|
4212
4218
|
flex: 1;
|
|
4213
4219
|
`;
|
|
4214
|
-
var Name =
|
|
4220
|
+
var Name = styled47.h3`
|
|
4215
4221
|
margin: 0;
|
|
4216
4222
|
font-size: ${tokens.typography.fontSize.sm};
|
|
4217
4223
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
4218
4224
|
color: ${tokens.colors.text.primary};
|
|
4219
4225
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
4220
4226
|
`;
|
|
4221
|
-
var Description =
|
|
4227
|
+
var Description = styled47.p`
|
|
4222
4228
|
margin: 0;
|
|
4223
4229
|
font-size: ${tokens.typography.fontSize.xs};
|
|
4224
4230
|
color: ${tokens.colors.text.tertiary};
|
|
4225
4231
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
4226
4232
|
`;
|
|
4227
|
-
var ActionsRow =
|
|
4233
|
+
var ActionsRow = styled47.div`
|
|
4228
4234
|
display: flex;
|
|
4229
4235
|
flex-direction: column;
|
|
4230
4236
|
gap: ${tokens.spacing.sm};
|
|
@@ -4282,13 +4288,13 @@ var SecretInput = ({
|
|
|
4282
4288
|
] });
|
|
4283
4289
|
};
|
|
4284
4290
|
SecretInput.displayName = "SecretInput";
|
|
4285
|
-
var Container10 =
|
|
4291
|
+
var Container10 = styled47.div`
|
|
4286
4292
|
position: relative;
|
|
4287
4293
|
display: flex;
|
|
4288
4294
|
align-items: center;
|
|
4289
4295
|
width: 100%;
|
|
4290
4296
|
`;
|
|
4291
|
-
var Input =
|
|
4297
|
+
var Input = styled47.input`
|
|
4292
4298
|
width: 100%;
|
|
4293
4299
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
4294
4300
|
padding-right: 40px;
|
|
@@ -4314,7 +4320,7 @@ var Input = styled11.input`
|
|
|
4314
4320
|
cursor: not-allowed;
|
|
4315
4321
|
}
|
|
4316
4322
|
`;
|
|
4317
|
-
var VisibilityToggle =
|
|
4323
|
+
var VisibilityToggle = styled47.button`
|
|
4318
4324
|
position: absolute;
|
|
4319
4325
|
right: ${tokens.spacing.sm};
|
|
4320
4326
|
top: 50%;
|
|
@@ -4431,7 +4437,7 @@ var sizeStyles = {
|
|
|
4431
4437
|
height: 44px;
|
|
4432
4438
|
`
|
|
4433
4439
|
};
|
|
4434
|
-
var StyledButton =
|
|
4440
|
+
var StyledButton = styled47.button`
|
|
4435
4441
|
/* Base styles */
|
|
4436
4442
|
display: inline-flex;
|
|
4437
4443
|
align-items: center;
|
|
@@ -4514,7 +4520,7 @@ function Button2({
|
|
|
4514
4520
|
);
|
|
4515
4521
|
}
|
|
4516
4522
|
Button2.displayName = "Button";
|
|
4517
|
-
var ActionsContainer =
|
|
4523
|
+
var ActionsContainer = styled47.div`
|
|
4518
4524
|
display: flex;
|
|
4519
4525
|
gap: ${tokens.spacing.sm};
|
|
4520
4526
|
align-items: center;
|
|
@@ -4574,7 +4580,7 @@ var blink = keyframes`
|
|
|
4574
4580
|
opacity: 0;
|
|
4575
4581
|
}
|
|
4576
4582
|
`;
|
|
4577
|
-
var ResponseContainer =
|
|
4583
|
+
var ResponseContainer = styled47.div`
|
|
4578
4584
|
display: inline-flex;
|
|
4579
4585
|
align-items: center;
|
|
4580
4586
|
gap: ${tokens.spacing.sm};
|
|
@@ -4586,13 +4592,13 @@ var ResponseContainer = styled11.div`
|
|
|
4586
4592
|
max-width: fit-content;
|
|
4587
4593
|
margin: 0 auto;
|
|
4588
4594
|
`;
|
|
4589
|
-
var LoadingDots2 =
|
|
4595
|
+
var LoadingDots2 = styled47.div`
|
|
4590
4596
|
display: flex;
|
|
4591
4597
|
align-items: center;
|
|
4592
4598
|
gap: ${tokens.spacing.xs};
|
|
4593
4599
|
padding: 0 ${tokens.spacing.xs};
|
|
4594
4600
|
`;
|
|
4595
|
-
var Dot2 =
|
|
4601
|
+
var Dot2 = styled47.span`
|
|
4596
4602
|
width: ${tokens.spacing.xs};
|
|
4597
4603
|
height: ${tokens.spacing.xs};
|
|
4598
4604
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -4600,7 +4606,7 @@ var Dot2 = styled11.span`
|
|
|
4600
4606
|
animation: ${dotPulse2} 1.4s ease-in-out infinite;
|
|
4601
4607
|
animation-delay: ${(props) => props.delay}s;
|
|
4602
4608
|
`;
|
|
4603
|
-
var TypingIndicator =
|
|
4609
|
+
var TypingIndicator = styled47.div`
|
|
4604
4610
|
display: flex;
|
|
4605
4611
|
align-items: center;
|
|
4606
4612
|
gap: ${tokens.spacing.xs};
|
|
@@ -4613,14 +4619,14 @@ var TypingIndicator = styled11.div`
|
|
|
4613
4619
|
animation: ${dotPulse2} 1.4s ease-in-out infinite;
|
|
4614
4620
|
}
|
|
4615
4621
|
`;
|
|
4616
|
-
var Message2 =
|
|
4622
|
+
var Message2 = styled47.span`
|
|
4617
4623
|
font-size: ${tokens.typography.fontSize.sm};
|
|
4618
4624
|
color: ${tokens.colors.text.primary};
|
|
4619
4625
|
font-weight: ${tokens.typography.fontWeight.regular};
|
|
4620
4626
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
4621
4627
|
white-space: nowrap;
|
|
4622
4628
|
`;
|
|
4623
|
-
var StreamingText =
|
|
4629
|
+
var StreamingText = styled47.div`
|
|
4624
4630
|
font-size: ${tokens.typography.fontSize.sm};
|
|
4625
4631
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
4626
4632
|
color: ${tokens.colors.text.primary};
|
|
@@ -4692,7 +4698,7 @@ var shake = keyframes`
|
|
|
4692
4698
|
transform: translateX(5px);
|
|
4693
4699
|
}
|
|
4694
4700
|
`;
|
|
4695
|
-
var AgentStateContainer =
|
|
4701
|
+
var AgentStateContainer = styled47.div`
|
|
4696
4702
|
display: inline-flex;
|
|
4697
4703
|
flex-direction: column;
|
|
4698
4704
|
align-items: center;
|
|
@@ -4706,35 +4712,35 @@ var AgentStateContainer = styled11.div`
|
|
|
4706
4712
|
max-width: fit-content;
|
|
4707
4713
|
margin: 0 auto;
|
|
4708
4714
|
`;
|
|
4709
|
-
var StateContent =
|
|
4715
|
+
var StateContent = styled47.div`
|
|
4710
4716
|
display: flex;
|
|
4711
4717
|
flex-direction: column;
|
|
4712
4718
|
gap: ${tokens.spacing.sm};
|
|
4713
4719
|
align-items: center;
|
|
4714
4720
|
width: 100%;
|
|
4715
4721
|
`;
|
|
4716
|
-
var IdleIndicator =
|
|
4722
|
+
var IdleIndicator = styled47.div`
|
|
4717
4723
|
width: ${tokens.spacing.xs};
|
|
4718
4724
|
height: ${tokens.spacing.xs};
|
|
4719
4725
|
background-color: ${tokens.colors.status.idle};
|
|
4720
4726
|
border-radius: ${tokens.borderRadius.full};
|
|
4721
4727
|
animation: ${dotPulse3} 2s infinite ease-in-out;
|
|
4722
4728
|
`;
|
|
4723
|
-
var ErrorIndicator =
|
|
4729
|
+
var ErrorIndicator = styled47.div`
|
|
4724
4730
|
width: ${tokens.spacing.xs};
|
|
4725
4731
|
height: ${tokens.spacing.xs};
|
|
4726
4732
|
background-color: ${tokens.colors.error};
|
|
4727
4733
|
border-radius: ${tokens.borderRadius.full};
|
|
4728
4734
|
animation: ${shake} 0.5s ease-in-out;
|
|
4729
4735
|
`;
|
|
4730
|
-
var StateLabel =
|
|
4736
|
+
var StateLabel = styled47.span`
|
|
4731
4737
|
font-size: ${tokens.typography.fontSize.sm};
|
|
4732
4738
|
font-weight: ${tokens.typography.fontWeight.regular};
|
|
4733
4739
|
color: ${tokens.colors.text.primary};
|
|
4734
4740
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
4735
4741
|
white-space: nowrap;
|
|
4736
4742
|
`;
|
|
4737
|
-
|
|
4743
|
+
styled47.p`
|
|
4738
4744
|
font-size: ${tokens.typography.fontSize.sm};
|
|
4739
4745
|
color: ${tokens.colors.text.tertiary};
|
|
4740
4746
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
@@ -4742,7 +4748,7 @@ styled11.p`
|
|
|
4742
4748
|
text-align: center;
|
|
4743
4749
|
white-space: nowrap;
|
|
4744
4750
|
`;
|
|
4745
|
-
var ProgressBar =
|
|
4751
|
+
var ProgressBar = styled47.div`
|
|
4746
4752
|
width: 100%;
|
|
4747
4753
|
height: ${tokens.spacing.xs};
|
|
4748
4754
|
background-color: ${tokens.colors.surface.elevated};
|
|
@@ -4750,7 +4756,7 @@ var ProgressBar = styled11.div`
|
|
|
4750
4756
|
overflow: hidden;
|
|
4751
4757
|
margin-top: ${tokens.spacing.xs};
|
|
4752
4758
|
`;
|
|
4753
|
-
var ProgressBarFill =
|
|
4759
|
+
var ProgressBarFill = styled47.div`
|
|
4754
4760
|
height: 100%;
|
|
4755
4761
|
width: ${(props) => Math.min(Math.max(props.progress, 0), 100)}%;
|
|
4756
4762
|
background: linear-gradient(135deg, ${tokens.colors.accent} 0%, ${tokens.colors.primary} 100%);
|
|
@@ -4779,7 +4785,7 @@ var AgentState = ({ state, message, progress, className }) => {
|
|
|
4779
4785
|
}
|
|
4780
4786
|
return null;
|
|
4781
4787
|
};
|
|
4782
|
-
var FooterContainer =
|
|
4788
|
+
var FooterContainer = styled47.footer`
|
|
4783
4789
|
display: flex;
|
|
4784
4790
|
align-items: center;
|
|
4785
4791
|
justify-content: center;
|
|
@@ -4788,7 +4794,7 @@ var FooterContainer = styled11.footer`
|
|
|
4788
4794
|
border-top: 1px solid ${tokens.colors.border.default};
|
|
4789
4795
|
min-height: 44px;
|
|
4790
4796
|
`;
|
|
4791
|
-
var FooterContent =
|
|
4797
|
+
var FooterContent = styled47.div`
|
|
4792
4798
|
display: flex;
|
|
4793
4799
|
align-items: center;
|
|
4794
4800
|
justify-content: space-between;
|
|
@@ -4801,13 +4807,13 @@ var FooterContent = styled11.div`
|
|
|
4801
4807
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
4802
4808
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
4803
4809
|
`;
|
|
4804
|
-
var FooterBranding =
|
|
4810
|
+
var FooterBranding = styled47.div`
|
|
4805
4811
|
display: flex;
|
|
4806
4812
|
align-items: center;
|
|
4807
4813
|
gap: ${tokens.spacing.xs};
|
|
4808
4814
|
flex-shrink: 0;
|
|
4809
4815
|
`;
|
|
4810
|
-
var FooterStatus =
|
|
4816
|
+
var FooterStatus = styled47.div`
|
|
4811
4817
|
display: flex;
|
|
4812
4818
|
align-items: center;
|
|
4813
4819
|
gap: ${tokens.spacing.xs};
|
|
@@ -4817,7 +4823,7 @@ var FooterStatus = styled11.div`
|
|
|
4817
4823
|
font-size: ${tokens.typography.fontSize.xs};
|
|
4818
4824
|
opacity: 0.8;
|
|
4819
4825
|
`;
|
|
4820
|
-
var FooterLink =
|
|
4826
|
+
var FooterLink = styled47.a`
|
|
4821
4827
|
color: ${tokens.colors.primary};
|
|
4822
4828
|
text-decoration: none;
|
|
4823
4829
|
transition: opacity ${tokens.transitions.fast};
|
|
@@ -4875,7 +4881,7 @@ var pulse2 = keyframes`
|
|
|
4875
4881
|
transform: scale(1.1);
|
|
4876
4882
|
}
|
|
4877
4883
|
`;
|
|
4878
|
-
var Container11 =
|
|
4884
|
+
var Container11 = styled47.div`
|
|
4879
4885
|
display: inline-flex;
|
|
4880
4886
|
align-items: center;
|
|
4881
4887
|
gap: ${(props) => {
|
|
@@ -4891,7 +4897,7 @@ var Container11 = styled11.div`
|
|
|
4891
4897
|
}};
|
|
4892
4898
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
4893
4899
|
`;
|
|
4894
|
-
var StatusDot =
|
|
4900
|
+
var StatusDot = styled47.div`
|
|
4895
4901
|
width: ${(props) => {
|
|
4896
4902
|
if (props.variant === "badge") {
|
|
4897
4903
|
switch (props.size) {
|
|
@@ -4952,7 +4958,7 @@ var StatusDot = styled11.div`
|
|
|
4952
4958
|
animation: ${(props) => props.status === "streaming" ? pulse2 : "none"} 2s ease-in-out infinite;
|
|
4953
4959
|
flex-shrink: 0;
|
|
4954
4960
|
`;
|
|
4955
|
-
var Label =
|
|
4961
|
+
var Label = styled47.span`
|
|
4956
4962
|
font-size: ${(props) => {
|
|
4957
4963
|
if (props.variant === "badge") {
|
|
4958
4964
|
switch (props.size) {
|
|
@@ -4979,7 +4985,7 @@ var Label = styled11.span`
|
|
|
4979
4985
|
color: ${tokens.colors.text.secondary};
|
|
4980
4986
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
4981
4987
|
`;
|
|
4982
|
-
var BadgeContainer =
|
|
4988
|
+
var BadgeContainer = styled47.div`
|
|
4983
4989
|
display: inline-flex;
|
|
4984
4990
|
align-items: center;
|
|
4985
4991
|
gap: ${(props) => {
|
|
@@ -5056,7 +5062,7 @@ var StreamStatusIndicator = ({
|
|
|
5056
5062
|
return /* @__PURE__ */ jsx(Container11, { size, className, role: "status", "aria-label": getStatusLabel(status), children: content });
|
|
5057
5063
|
};
|
|
5058
5064
|
StreamStatusIndicator.displayName = "StreamStatusIndicator";
|
|
5059
|
-
var HeaderContainer =
|
|
5065
|
+
var HeaderContainer = styled47.header`
|
|
5060
5066
|
display: flex;
|
|
5061
5067
|
align-items: center;
|
|
5062
5068
|
justify-content: space-between;
|
|
@@ -5072,14 +5078,14 @@ var HeaderContainer = styled11.header`
|
|
|
5072
5078
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
5073
5079
|
}
|
|
5074
5080
|
`;
|
|
5075
|
-
var HeaderContent =
|
|
5081
|
+
var HeaderContent = styled47.div`
|
|
5076
5082
|
display: flex;
|
|
5077
5083
|
flex-direction: column;
|
|
5078
5084
|
gap: ${tokens.spacing.xs};
|
|
5079
5085
|
flex: 1;
|
|
5080
5086
|
min-width: 0;
|
|
5081
5087
|
`;
|
|
5082
|
-
var HeaderTitle =
|
|
5088
|
+
var HeaderTitle = styled47.h1`
|
|
5083
5089
|
margin: 0;
|
|
5084
5090
|
font-size: ${tokens.typography.fontSize.base};
|
|
5085
5091
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
@@ -5090,7 +5096,7 @@ var HeaderTitle = styled11.h1`
|
|
|
5090
5096
|
text-overflow: ellipsis;
|
|
5091
5097
|
white-space: nowrap;
|
|
5092
5098
|
`;
|
|
5093
|
-
var HeaderSubtitle =
|
|
5099
|
+
var HeaderSubtitle = styled47.p`
|
|
5094
5100
|
margin: 0;
|
|
5095
5101
|
font-size: ${tokens.typography.fontSize.sm};
|
|
5096
5102
|
color: ${tokens.colors.text.secondary};
|
|
@@ -5100,13 +5106,13 @@ var HeaderSubtitle = styled11.p`
|
|
|
5100
5106
|
text-overflow: ellipsis;
|
|
5101
5107
|
white-space: nowrap;
|
|
5102
5108
|
`;
|
|
5103
|
-
var HeaderActions =
|
|
5109
|
+
var HeaderActions = styled47.div`
|
|
5104
5110
|
display: flex;
|
|
5105
5111
|
align-items: center;
|
|
5106
5112
|
gap: ${tokens.spacing.xs};
|
|
5107
5113
|
margin-left: ${tokens.spacing.md};
|
|
5108
5114
|
`;
|
|
5109
|
-
var ActionButton2 =
|
|
5115
|
+
var ActionButton2 = styled47.button`
|
|
5110
5116
|
display: inline-flex;
|
|
5111
5117
|
align-items: center;
|
|
5112
5118
|
justify-content: center;
|
|
@@ -5223,13 +5229,13 @@ var Header = ({
|
|
|
5223
5229
|
] });
|
|
5224
5230
|
};
|
|
5225
5231
|
Header.displayName = "Header";
|
|
5226
|
-
var InputContainer =
|
|
5232
|
+
var InputContainer = styled47.div`
|
|
5227
5233
|
display: flex;
|
|
5228
5234
|
flex-direction: column;
|
|
5229
5235
|
width: 100%;
|
|
5230
5236
|
position: relative;
|
|
5231
5237
|
`;
|
|
5232
|
-
var InputWrapper2 =
|
|
5238
|
+
var InputWrapper2 = styled47.div`
|
|
5233
5239
|
display: flex;
|
|
5234
5240
|
align-items: flex-end;
|
|
5235
5241
|
gap: ${tokens.spacing.sm};
|
|
@@ -5249,7 +5255,7 @@ var InputWrapper2 = styled11.div`
|
|
|
5249
5255
|
border-color: ${tokens.colors.border.subtle};
|
|
5250
5256
|
}
|
|
5251
5257
|
`;
|
|
5252
|
-
var TextArea =
|
|
5258
|
+
var TextArea = styled47.textarea`
|
|
5253
5259
|
flex: 1;
|
|
5254
5260
|
min-height: ${tokens.spacing.lg};
|
|
5255
5261
|
max-height: ${(props) => `${(props.$maxRows || 5) * 24}px`};
|
|
@@ -5295,7 +5301,7 @@ var TextArea = styled11.textarea`
|
|
|
5295
5301
|
background: ${tokens.colors.scrollbar.thumbHover};
|
|
5296
5302
|
}
|
|
5297
5303
|
`;
|
|
5298
|
-
var SendButton =
|
|
5304
|
+
var SendButton = styled47.button`
|
|
5299
5305
|
display: flex;
|
|
5300
5306
|
align-items: center;
|
|
5301
5307
|
justify-content: center;
|
|
@@ -5425,7 +5431,7 @@ var Input2 = ({
|
|
|
5425
5431
|
)
|
|
5426
5432
|
] }) });
|
|
5427
5433
|
};
|
|
5428
|
-
var Container12 =
|
|
5434
|
+
var Container12 = styled47.div`
|
|
5429
5435
|
font-family: ${(props) => props.$variant === "code" ? tokens.typography.fontFamily.monospace : tokens.typography.fontFamily.primary};
|
|
5430
5436
|
white-space: pre-wrap;
|
|
5431
5437
|
word-break: break-word;
|
|
@@ -5434,7 +5440,7 @@ var Container12 = styled11.div`
|
|
|
5434
5440
|
text-rendering: optimizeSpeed;
|
|
5435
5441
|
contain: content;
|
|
5436
5442
|
`;
|
|
5437
|
-
var Cursor =
|
|
5443
|
+
var Cursor = styled47.span`
|
|
5438
5444
|
display: inline-block;
|
|
5439
5445
|
width: 2px;
|
|
5440
5446
|
height: 1em;
|
|
@@ -5458,17 +5464,15 @@ var StreamingTextBase = ({
|
|
|
5458
5464
|
content,
|
|
5459
5465
|
isStreaming = false,
|
|
5460
5466
|
typingSpeed: _typingSpeed = 50,
|
|
5461
|
-
//
|
|
5467
|
+
// Reserved for future use
|
|
5462
5468
|
cursor = true,
|
|
5463
5469
|
variant = "default",
|
|
5464
5470
|
onStreamComplete,
|
|
5465
5471
|
className
|
|
5466
5472
|
}) => {
|
|
5467
|
-
const [displayedText, setDisplayedText] = useState(content);
|
|
5468
5473
|
const wasStreamingRef = useRef(isStreaming);
|
|
5469
5474
|
const completionCalledRef = useRef(false);
|
|
5470
5475
|
useEffect(() => {
|
|
5471
|
-
setDisplayedText(content);
|
|
5472
5476
|
if (wasStreamingRef.current && !isStreaming && !completionCalledRef.current) {
|
|
5473
5477
|
completionCalledRef.current = true;
|
|
5474
5478
|
onStreamComplete?.();
|
|
@@ -5477,45 +5481,48 @@ var StreamingTextBase = ({
|
|
|
5477
5481
|
completionCalledRef.current = false;
|
|
5478
5482
|
}
|
|
5479
5483
|
wasStreamingRef.current = isStreaming;
|
|
5480
|
-
}, [
|
|
5484
|
+
}, [isStreaming, onStreamComplete]);
|
|
5481
5485
|
const showCursor = isStreaming && cursor;
|
|
5482
5486
|
return /* @__PURE__ */ jsxs(Container12, { $variant: variant, className, children: [
|
|
5483
|
-
|
|
5487
|
+
content,
|
|
5484
5488
|
showCursor && /* @__PURE__ */ jsx(Cursor, {})
|
|
5485
5489
|
] });
|
|
5486
5490
|
};
|
|
5487
5491
|
var StreamingText2 = memo(StreamingTextBase);
|
|
5488
5492
|
StreamingText2.displayName = "StreamingText";
|
|
5489
|
-
var MessageContainer =
|
|
5493
|
+
var MessageContainer = styled47.div`
|
|
5490
5494
|
display: flex;
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
padding: ${tokens.spacing.
|
|
5495
|
+
flex-direction: column;
|
|
5496
|
+
gap: ${tokens.spacing.xs};
|
|
5497
|
+
padding: ${tokens.spacing.xs} 0;
|
|
5494
5498
|
max-width: 100%;
|
|
5495
5499
|
/* GPU acceleration hint for smooth rendering during streaming */
|
|
5496
5500
|
will-change: contents;
|
|
5497
5501
|
contain: content;
|
|
5498
5502
|
`;
|
|
5499
|
-
var AvatarContainer =
|
|
5503
|
+
var AvatarContainer = styled47.div`
|
|
5504
|
+
display: flex;
|
|
5505
|
+
align-items: center;
|
|
5506
|
+
gap: ${tokens.spacing.xs};
|
|
5500
5507
|
flex-shrink: 0;
|
|
5501
5508
|
`;
|
|
5502
|
-
var Avatar2 =
|
|
5503
|
-
width:
|
|
5504
|
-
height:
|
|
5509
|
+
var Avatar2 = styled47.img`
|
|
5510
|
+
width: 20px;
|
|
5511
|
+
height: 20px;
|
|
5505
5512
|
border-radius: ${tokens.borderRadius.full};
|
|
5506
5513
|
object-fit: cover;
|
|
5507
5514
|
background-color: transparent;
|
|
5508
5515
|
`;
|
|
5509
|
-
var AvatarInitials =
|
|
5510
|
-
width:
|
|
5511
|
-
height:
|
|
5516
|
+
var AvatarInitials = styled47.div`
|
|
5517
|
+
width: 20px;
|
|
5518
|
+
height: 20px;
|
|
5512
5519
|
border-radius: ${tokens.borderRadius.full};
|
|
5513
5520
|
overflow: hidden;
|
|
5514
5521
|
display: flex;
|
|
5515
5522
|
align-items: center;
|
|
5516
5523
|
justify-content: center;
|
|
5517
5524
|
background-color: ${tokens.colors.secondary};
|
|
5518
|
-
padding:
|
|
5525
|
+
padding: 2px;
|
|
5519
5526
|
box-sizing: border-box;
|
|
5520
5527
|
|
|
5521
5528
|
img {
|
|
@@ -5524,16 +5531,20 @@ var AvatarInitials = styled11.div`
|
|
|
5524
5531
|
object-fit: contain;
|
|
5525
5532
|
}
|
|
5526
5533
|
`;
|
|
5527
|
-
var
|
|
5528
|
-
|
|
5534
|
+
var AvatarLabel = styled47.span`
|
|
5535
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
5536
|
+
font-weight: ${tokens.typography.fontWeight.medium};
|
|
5537
|
+
color: ${tokens.colors.text.secondary};
|
|
5538
|
+
`;
|
|
5539
|
+
var ContentContainer = styled47.div`
|
|
5540
|
+
width: 100%;
|
|
5529
5541
|
min-width: 0;
|
|
5530
5542
|
`;
|
|
5531
|
-
var MessageContent =
|
|
5543
|
+
var MessageContent = styled47.div`
|
|
5532
5544
|
/* Use solid color instead of backdrop-filter for performance during streaming */
|
|
5533
5545
|
background-color: ${tokens.colors.surface.elevated};
|
|
5534
|
-
padding: ${tokens.spacing.sm}
|
|
5546
|
+
padding: ${tokens.spacing.sm};
|
|
5535
5547
|
border-radius: ${tokens.borderRadius.lg};
|
|
5536
|
-
border-top-left-radius: ${tokens.borderRadius.sm};
|
|
5537
5548
|
color: ${tokens.colors.text.primary};
|
|
5538
5549
|
font-size: ${tokens.typography.fontSize.sm};
|
|
5539
5550
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
@@ -5543,14 +5554,13 @@ var MessageContent = styled11.div`
|
|
|
5543
5554
|
/* Optimize text rendering */
|
|
5544
5555
|
text-rendering: optimizeSpeed;
|
|
5545
5556
|
`;
|
|
5546
|
-
var LoadingDots3 =
|
|
5557
|
+
var LoadingDots3 = styled47.div`
|
|
5547
5558
|
display: flex;
|
|
5548
5559
|
gap: ${tokens.spacing.xs};
|
|
5549
|
-
padding: ${tokens.spacing.sm}
|
|
5560
|
+
padding: ${tokens.spacing.sm};
|
|
5550
5561
|
/* Use solid color instead of backdrop-filter for performance */
|
|
5551
5562
|
background-color: ${tokens.colors.surface.elevated};
|
|
5552
5563
|
border-radius: ${tokens.borderRadius.lg};
|
|
5553
|
-
border-top-left-radius: ${tokens.borderRadius.sm};
|
|
5554
5564
|
width: fit-content;
|
|
5555
5565
|
`;
|
|
5556
5566
|
var pulse3 = keyframes`
|
|
@@ -5561,7 +5571,7 @@ var pulse3 = keyframes`
|
|
|
5561
5571
|
opacity: 1;
|
|
5562
5572
|
}
|
|
5563
5573
|
`;
|
|
5564
|
-
var LoadingDot =
|
|
5574
|
+
var LoadingDot = styled47.div`
|
|
5565
5575
|
width: ${tokens.spacing.sm};
|
|
5566
5576
|
height: ${tokens.spacing.sm};
|
|
5567
5577
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -5570,7 +5580,7 @@ var LoadingDot = styled11.div`
|
|
|
5570
5580
|
animation: ${pulse3} 1.4s ease-in-out infinite;
|
|
5571
5581
|
animation-delay: ${(props) => props.delay}s;
|
|
5572
5582
|
`;
|
|
5573
|
-
var FileAttachmentContainer =
|
|
5583
|
+
var FileAttachmentContainer = styled47.div`
|
|
5574
5584
|
display: flex;
|
|
5575
5585
|
align-items: center;
|
|
5576
5586
|
gap: ${tokens.spacing.sm};
|
|
@@ -5606,7 +5616,7 @@ var FileAttachmentContainer = styled11.div`
|
|
|
5606
5616
|
}
|
|
5607
5617
|
`}
|
|
5608
5618
|
`;
|
|
5609
|
-
var FileIconContainer =
|
|
5619
|
+
var FileIconContainer = styled47.div`
|
|
5610
5620
|
flex-shrink: 0;
|
|
5611
5621
|
width: ${tokens.spacing.xl};
|
|
5612
5622
|
height: ${tokens.spacing.xl};
|
|
@@ -5616,14 +5626,14 @@ var FileIconContainer = styled11.div`
|
|
|
5616
5626
|
font-size: ${tokens.typography.fontSize["2xl"]};
|
|
5617
5627
|
line-height: 1;
|
|
5618
5628
|
`;
|
|
5619
|
-
var FileInfo =
|
|
5629
|
+
var FileInfo = styled47.div`
|
|
5620
5630
|
flex: 1;
|
|
5621
5631
|
min-width: 0;
|
|
5622
5632
|
display: flex;
|
|
5623
5633
|
flex-direction: column;
|
|
5624
5634
|
gap: 2px;
|
|
5625
5635
|
`;
|
|
5626
|
-
var FileTitle =
|
|
5636
|
+
var FileTitle = styled47.div`
|
|
5627
5637
|
font-size: ${tokens.typography.fontSize.sm};
|
|
5628
5638
|
font-weight: ${tokens.typography.fontWeight.medium};
|
|
5629
5639
|
color: ${tokens.colors.text.primary};
|
|
@@ -5633,7 +5643,7 @@ var FileTitle = styled11.div`
|
|
|
5633
5643
|
text-overflow: ellipsis;
|
|
5634
5644
|
white-space: nowrap;
|
|
5635
5645
|
`;
|
|
5636
|
-
var FileMetadata =
|
|
5646
|
+
var FileMetadata = styled47.div`
|
|
5637
5647
|
display: flex;
|
|
5638
5648
|
align-items: center;
|
|
5639
5649
|
gap: ${tokens.spacing.xs};
|
|
@@ -5643,7 +5653,7 @@ var FileMetadata = styled11.div`
|
|
|
5643
5653
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
5644
5654
|
overflow: hidden;
|
|
5645
5655
|
`;
|
|
5646
|
-
var FileSubtitle =
|
|
5656
|
+
var FileSubtitle = styled47.span`
|
|
5647
5657
|
color: ${tokens.colors.text.tertiary};
|
|
5648
5658
|
white-space: nowrap;
|
|
5649
5659
|
overflow: hidden;
|
|
@@ -5699,13 +5709,13 @@ var FileAttachment = ({
|
|
|
5699
5709
|
}
|
|
5700
5710
|
);
|
|
5701
5711
|
};
|
|
5702
|
-
var AttachmentsContainer =
|
|
5712
|
+
var AttachmentsContainer = styled47.div`
|
|
5703
5713
|
display: flex;
|
|
5704
5714
|
flex-direction: column;
|
|
5705
5715
|
gap: ${tokens.spacing.sm};
|
|
5706
5716
|
margin-top: ${tokens.spacing.sm};
|
|
5707
5717
|
`;
|
|
5708
|
-
var ActionButton3 =
|
|
5718
|
+
var ActionButton3 = styled47.button`
|
|
5709
5719
|
display: inline-flex;
|
|
5710
5720
|
align-items: center;
|
|
5711
5721
|
gap: ${tokens.spacing.xs};
|
|
@@ -5729,19 +5739,19 @@ var ActionButton3 = styled11.button`
|
|
|
5729
5739
|
transform: scale(0.98);
|
|
5730
5740
|
}
|
|
5731
5741
|
`;
|
|
5732
|
-
var ActionsContainer2 =
|
|
5742
|
+
var ActionsContainer2 = styled47.div`
|
|
5733
5743
|
display: flex;
|
|
5734
5744
|
gap: ${tokens.spacing.xs};
|
|
5735
5745
|
flex-wrap: wrap;
|
|
5736
5746
|
margin-top: ${tokens.spacing.sm};
|
|
5737
5747
|
`;
|
|
5738
|
-
var MessageTime =
|
|
5748
|
+
var MessageTime = styled47.time`
|
|
5739
5749
|
font-size: ${tokens.typography.fontSize.xs};
|
|
5740
5750
|
color: ${tokens.colors.text.tertiary};
|
|
5741
5751
|
margin-top: ${tokens.spacing.xs};
|
|
5742
5752
|
display: block;
|
|
5743
5753
|
`;
|
|
5744
|
-
var StreamingIndicator =
|
|
5754
|
+
var StreamingIndicator = styled47.span`
|
|
5745
5755
|
display: inline-block;
|
|
5746
5756
|
width: ${tokens.spacing.xs};
|
|
5747
5757
|
height: ${tokens.spacing.xs};
|
|
@@ -5805,13 +5815,16 @@ var AssistantMessageBase = ({
|
|
|
5805
5815
|
] });
|
|
5806
5816
|
};
|
|
5807
5817
|
return /* @__PURE__ */ jsxs(MessageContainer, { className, children: [
|
|
5808
|
-
/* @__PURE__ */
|
|
5818
|
+
/* @__PURE__ */ jsxs(AvatarContainer, { children: [
|
|
5819
|
+
avatarUrl ? /* @__PURE__ */ jsx(Avatar2, { src: avatarUrl, alt: "Assistant avatar" }) : /* @__PURE__ */ jsx(AvatarInitials, { children: /* @__PURE__ */ jsx(Avatar2, { src: "/assets/avatar-transparent-bg.png", alt: "AI Assistant" }) }),
|
|
5820
|
+
/* @__PURE__ */ jsx(AvatarLabel, { children: "Assistant" })
|
|
5821
|
+
] }),
|
|
5809
5822
|
/* @__PURE__ */ jsx(ContentContainer, { children: renderContent() })
|
|
5810
5823
|
] });
|
|
5811
5824
|
};
|
|
5812
5825
|
var AssistantMessage = memo(AssistantMessageBase);
|
|
5813
5826
|
AssistantMessage.displayName = "AssistantMessage";
|
|
5814
|
-
var MessagesContainer =
|
|
5827
|
+
var MessagesContainer = styled47.div`
|
|
5815
5828
|
display: flex;
|
|
5816
5829
|
flex-direction: column;
|
|
5817
5830
|
flex: 1;
|
|
@@ -5823,18 +5836,14 @@ var MessagesContainer = styled11.div`
|
|
|
5823
5836
|
${tokens.colors.background.darker},
|
|
5824
5837
|
${tokens.colors.background.darkest}
|
|
5825
5838
|
);
|
|
5826
|
-
padding
|
|
5827
|
-
|
|
5839
|
+
/* Minimal horizontal padding to maximize message width */
|
|
5840
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.xs};
|
|
5841
|
+
gap: ${tokens.spacing.sm};
|
|
5828
5842
|
box-sizing: border-box;
|
|
5829
5843
|
|
|
5830
5844
|
/* Ensure proper scrolling behavior for child components */
|
|
5831
5845
|
position: relative;
|
|
5832
5846
|
min-height: 0;
|
|
5833
|
-
|
|
5834
|
-
/* Desktop padding */
|
|
5835
|
-
@media (min-width: ${tokens.breakpoints.mobile}px) {
|
|
5836
|
-
padding: ${tokens.spacing.md};
|
|
5837
|
-
}
|
|
5838
5847
|
`;
|
|
5839
5848
|
var Messages = ({
|
|
5840
5849
|
children,
|
|
@@ -5844,7 +5853,7 @@ var Messages = ({
|
|
|
5844
5853
|
return /* @__PURE__ */ jsx(MessagesContainer, { className, role: "region", "aria-label": ariaLabel, children });
|
|
5845
5854
|
};
|
|
5846
5855
|
Messages.displayName = "Messages";
|
|
5847
|
-
var MessagesListContainer =
|
|
5856
|
+
var MessagesListContainer = styled47.div`
|
|
5848
5857
|
display: flex;
|
|
5849
5858
|
flex-direction: column;
|
|
5850
5859
|
width: 100%;
|
|
@@ -5884,7 +5893,7 @@ var MessagesListContainer = styled11.div`
|
|
|
5884
5893
|
/* Ensure proper rendering on mobile */
|
|
5885
5894
|
-webkit-overflow-scrolling: touch;
|
|
5886
5895
|
`;
|
|
5887
|
-
var MessagesListContent =
|
|
5896
|
+
var MessagesListContent = styled47.div`
|
|
5888
5897
|
display: flex;
|
|
5889
5898
|
flex-direction: column;
|
|
5890
5899
|
gap: ${tokens.spacing.sm};
|
|
@@ -6000,19 +6009,19 @@ var MessagesList = ({
|
|
|
6000
6009
|
}
|
|
6001
6010
|
);
|
|
6002
6011
|
};
|
|
6003
|
-
var StyledUserMessage2 =
|
|
6012
|
+
var StyledUserMessage2 = styled47.div`
|
|
6004
6013
|
display: flex;
|
|
6005
6014
|
justify-content: flex-end;
|
|
6006
6015
|
align-items: flex-start;
|
|
6007
|
-
margin: ${tokens.spacing.
|
|
6008
|
-
padding: 0
|
|
6016
|
+
margin: ${tokens.spacing.xs} 0;
|
|
6017
|
+
padding: 0;
|
|
6009
6018
|
width: 100%;
|
|
6010
6019
|
`;
|
|
6011
|
-
var MessageBubble =
|
|
6020
|
+
var MessageBubble = styled47.div`
|
|
6012
6021
|
display: flex;
|
|
6013
6022
|
flex-direction: column;
|
|
6014
|
-
max-width:
|
|
6015
|
-
padding: ${tokens.spacing.sm}
|
|
6023
|
+
max-width: 85%;
|
|
6024
|
+
padding: ${tokens.spacing.sm};
|
|
6016
6025
|
border-radius: ${tokens.borderRadius.lg};
|
|
6017
6026
|
|
|
6018
6027
|
/* User message colors - dark blue from brand */
|
|
@@ -6035,7 +6044,7 @@ var MessageBubble = styled11.div`
|
|
|
6035
6044
|
opacity: 0.9;
|
|
6036
6045
|
}
|
|
6037
6046
|
`;
|
|
6038
|
-
var MessageContent2 =
|
|
6047
|
+
var MessageContent2 = styled47.p`
|
|
6039
6048
|
margin: 0;
|
|
6040
6049
|
font-size: ${tokens.typography.fontSize.sm};
|
|
6041
6050
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
@@ -6044,13 +6053,13 @@ var MessageContent2 = styled11.p`
|
|
|
6044
6053
|
word-break: break-word;
|
|
6045
6054
|
white-space: pre-wrap;
|
|
6046
6055
|
`;
|
|
6047
|
-
var MessageTime2 =
|
|
6056
|
+
var MessageTime2 = styled47.time`
|
|
6048
6057
|
font-size: ${tokens.typography.fontSize.xs};
|
|
6049
6058
|
opacity: 0.7;
|
|
6050
6059
|
margin-top: ${tokens.spacing.xs};
|
|
6051
6060
|
text-align: right;
|
|
6052
6061
|
`;
|
|
6053
|
-
var ActionButton4 =
|
|
6062
|
+
var ActionButton4 = styled47.button`
|
|
6054
6063
|
display: inline-flex;
|
|
6055
6064
|
align-items: center;
|
|
6056
6065
|
gap: ${tokens.spacing.xs};
|
|
@@ -6074,12 +6083,12 @@ var ActionButton4 = styled11.button`
|
|
|
6074
6083
|
transform: scale(0.98);
|
|
6075
6084
|
}
|
|
6076
6085
|
`;
|
|
6077
|
-
var ActionsContainer3 =
|
|
6086
|
+
var ActionsContainer3 = styled47.div`
|
|
6078
6087
|
display: flex;
|
|
6079
6088
|
gap: ${tokens.spacing.xs};
|
|
6080
6089
|
flex-wrap: wrap;
|
|
6081
6090
|
`;
|
|
6082
|
-
var StreamingIndicator2 =
|
|
6091
|
+
var StreamingIndicator2 = styled47.span`
|
|
6083
6092
|
display: inline-block;
|
|
6084
6093
|
width: ${tokens.spacing.xs};
|
|
6085
6094
|
height: ${tokens.spacing.xs};
|
|
@@ -6100,7 +6109,7 @@ var StreamingIndicator2 = styled11.span`
|
|
|
6100
6109
|
}
|
|
6101
6110
|
}
|
|
6102
6111
|
`;
|
|
6103
|
-
var Avatar3 =
|
|
6112
|
+
var Avatar3 = styled47.img`
|
|
6104
6113
|
width: ${tokens.spacing.xl};
|
|
6105
6114
|
height: ${tokens.spacing.xl};
|
|
6106
6115
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -6133,7 +6142,7 @@ var UserMessage2 = ({
|
|
|
6133
6142
|
avatarUrl && /* @__PURE__ */ jsx(Avatar3, { src: avatarUrl, alt: username || "User" })
|
|
6134
6143
|
] });
|
|
6135
6144
|
};
|
|
6136
|
-
var ErrorContainer =
|
|
6145
|
+
var ErrorContainer = styled47.div`
|
|
6137
6146
|
display: flex;
|
|
6138
6147
|
align-items: flex-start;
|
|
6139
6148
|
gap: ${tokens.spacing.sm};
|
|
@@ -6147,7 +6156,7 @@ var ErrorContainer = styled11.div`
|
|
|
6147
6156
|
width: ${(props) => props.variant === "banner" ? "100%" : "auto"};
|
|
6148
6157
|
max-width: ${(props) => props.variant === "banner" ? "100%" : "600px"};
|
|
6149
6158
|
`;
|
|
6150
|
-
var IconContainer =
|
|
6159
|
+
var IconContainer = styled47.div`
|
|
6151
6160
|
flex-shrink: 0;
|
|
6152
6161
|
width: 20px;
|
|
6153
6162
|
height: 20px;
|
|
@@ -6164,29 +6173,29 @@ var ErrorIcon = () => /* @__PURE__ */ jsx(
|
|
|
6164
6173
|
children: /* @__PURE__ */ jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" })
|
|
6165
6174
|
}
|
|
6166
6175
|
);
|
|
6167
|
-
var Content2 =
|
|
6176
|
+
var Content2 = styled47.div`
|
|
6168
6177
|
flex: 1;
|
|
6169
6178
|
display: flex;
|
|
6170
6179
|
flex-direction: column;
|
|
6171
6180
|
gap: ${tokens.spacing.sm};
|
|
6172
6181
|
`;
|
|
6173
|
-
var ErrorMessage =
|
|
6182
|
+
var ErrorMessage = styled47.div`
|
|
6174
6183
|
font-size: ${tokens.typography.fontSize.sm};
|
|
6175
6184
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
6176
6185
|
color: ${tokens.colors.text.primary};
|
|
6177
6186
|
`;
|
|
6178
|
-
var ErrorDetails =
|
|
6187
|
+
var ErrorDetails = styled47.div`
|
|
6179
6188
|
font-size: ${tokens.typography.fontSize.xs};
|
|
6180
6189
|
line-height: 1.4;
|
|
6181
6190
|
color: ${tokens.colors.text.secondary};
|
|
6182
6191
|
margin-top: ${tokens.spacing.xs};
|
|
6183
6192
|
`;
|
|
6184
|
-
var Actions2 =
|
|
6193
|
+
var Actions2 = styled47.div`
|
|
6185
6194
|
display: flex;
|
|
6186
6195
|
gap: ${tokens.spacing.sm};
|
|
6187
6196
|
margin-top: ${tokens.spacing.sm};
|
|
6188
6197
|
`;
|
|
6189
|
-
var Button3 =
|
|
6198
|
+
var Button3 = styled47.button`
|
|
6190
6199
|
display: inline-flex;
|
|
6191
6200
|
align-items: center;
|
|
6192
6201
|
gap: ${tokens.spacing.xs};
|
|
@@ -6215,7 +6224,7 @@ var Button3 = styled11.button`
|
|
|
6215
6224
|
cursor: not-allowed;
|
|
6216
6225
|
}
|
|
6217
6226
|
`;
|
|
6218
|
-
var CloseButton =
|
|
6227
|
+
var CloseButton = styled47.button`
|
|
6219
6228
|
flex-shrink: 0;
|
|
6220
6229
|
width: 24px;
|
|
6221
6230
|
height: 24px;
|
|
@@ -6274,7 +6283,7 @@ var StreamErrorMessage = ({
|
|
|
6274
6283
|
] });
|
|
6275
6284
|
};
|
|
6276
6285
|
StreamErrorMessage.displayName = "StreamErrorMessage";
|
|
6277
|
-
var SuggestionsContainer =
|
|
6286
|
+
var SuggestionsContainer = styled47.div`
|
|
6278
6287
|
display: flex;
|
|
6279
6288
|
flex-wrap: nowrap; /* Single row */
|
|
6280
6289
|
gap: ${tokens.spacing.sm};
|
|
@@ -6307,7 +6316,7 @@ var SuggestionsContainer = styled11.div`
|
|
|
6307
6316
|
display: none; /* Chrome/Safari/Opera */
|
|
6308
6317
|
}
|
|
6309
6318
|
`;
|
|
6310
|
-
var StyledSuggestion =
|
|
6319
|
+
var StyledSuggestion = styled47.button`
|
|
6311
6320
|
/* Base styles */
|
|
6312
6321
|
display: inline-flex;
|
|
6313
6322
|
align-items: center;
|
|
@@ -6380,7 +6389,7 @@ function SuggestionChip({ suggestion, onSelect }) {
|
|
|
6380
6389
|
return /* @__PURE__ */ jsx(StyledSuggestion, { ...buttonProps, ref, $isPressed: isPressed, role: "listitem", children: suggestion });
|
|
6381
6390
|
}
|
|
6382
6391
|
Suggestions.displayName = "Suggestions";
|
|
6383
|
-
var WindowContainer =
|
|
6392
|
+
var WindowContainer = styled47.div`
|
|
6384
6393
|
display: flex;
|
|
6385
6394
|
flex-direction: column;
|
|
6386
6395
|
/* Glassmorphism effect */
|
|
@@ -6559,7 +6568,7 @@ function FacebookIcon({
|
|
|
6559
6568
|
) });
|
|
6560
6569
|
}
|
|
6561
6570
|
FacebookIcon.displayName = "FacebookIcon";
|
|
6562
|
-
var StyledIconWrapper =
|
|
6571
|
+
var StyledIconWrapper = styled47.button`
|
|
6563
6572
|
display: inline-flex;
|
|
6564
6573
|
align-items: center;
|
|
6565
6574
|
justify-content: center;
|
|
@@ -6829,7 +6838,7 @@ function InstagramIcon({
|
|
|
6829
6838
|
] });
|
|
6830
6839
|
}
|
|
6831
6840
|
InstagramIcon.displayName = "InstagramIcon";
|
|
6832
|
-
var StyledIconWrapper2 =
|
|
6841
|
+
var StyledIconWrapper2 = styled47.button`
|
|
6833
6842
|
display: inline-flex;
|
|
6834
6843
|
align-items: center;
|
|
6835
6844
|
justify-content: center;
|
|
@@ -6965,7 +6974,7 @@ function LinkedInIcon({
|
|
|
6965
6974
|
return /* @__PURE__ */ jsx("span", { className, style: { display: "inline-flex", width: size, height: size }, children: svgElement });
|
|
6966
6975
|
}
|
|
6967
6976
|
LinkedInIcon.displayName = "LinkedInIcon";
|
|
6968
|
-
var StyledIconWrapper3 =
|
|
6977
|
+
var StyledIconWrapper3 = styled47.button`
|
|
6969
6978
|
display: inline-flex;
|
|
6970
6979
|
align-items: center;
|
|
6971
6980
|
justify-content: center;
|
|
@@ -7602,7 +7611,7 @@ function WhatsAppIcon({
|
|
|
7602
7611
|
);
|
|
7603
7612
|
}
|
|
7604
7613
|
WhatsAppIcon.displayName = "WhatsAppIcon";
|
|
7605
|
-
var StyledXIcon =
|
|
7614
|
+
var StyledXIcon = styled47.svg`
|
|
7606
7615
|
display: inline-block;
|
|
7607
7616
|
vertical-align: middle;
|
|
7608
7617
|
flex-shrink: 0;
|
|
@@ -7892,9 +7901,11 @@ var STATUS_CONFIG = {
|
|
|
7892
7901
|
var PostApprovalControls = ({
|
|
7893
7902
|
platform,
|
|
7894
7903
|
originalContent,
|
|
7904
|
+
editedContent,
|
|
7895
7905
|
status,
|
|
7896
7906
|
error,
|
|
7897
7907
|
postId,
|
|
7908
|
+
onSave,
|
|
7898
7909
|
onApprove,
|
|
7899
7910
|
onReject,
|
|
7900
7911
|
isLoading = false,
|
|
@@ -7902,10 +7913,11 @@ var PostApprovalControls = ({
|
|
|
7902
7913
|
}) => {
|
|
7903
7914
|
const [isCollapsed, setIsCollapsed] = useState(defaultCollapsed);
|
|
7904
7915
|
const [isEditing, setIsEditing] = useState(false);
|
|
7905
|
-
const [
|
|
7916
|
+
const [localEditContent, setLocalEditContent] = useState(editedContent ?? originalContent);
|
|
7906
7917
|
const platformConfig = PLATFORM_CONFIGS[platform];
|
|
7907
7918
|
const statusConfig = STATUS_CONFIG[status];
|
|
7908
|
-
const
|
|
7919
|
+
const currentContent = editedContent ?? originalContent;
|
|
7920
|
+
const currentCharCount = isEditing ? localEditContent.length : currentContent.length;
|
|
7909
7921
|
const charPercentage = useMemo(
|
|
7910
7922
|
() => getCharacterLimitPercentage(platform, currentCharCount),
|
|
7911
7923
|
[platform, currentCharCount]
|
|
@@ -7917,18 +7929,23 @@ var PostApprovalControls = ({
|
|
|
7917
7929
|
const canTakeAction = status === "pending" || status === "edited";
|
|
7918
7930
|
const isProcessing = status === "scheduling" || isLoading;
|
|
7919
7931
|
const handleStartEdit = () => {
|
|
7920
|
-
|
|
7932
|
+
setLocalEditContent(currentContent);
|
|
7921
7933
|
setIsEditing(true);
|
|
7922
7934
|
setIsCollapsed(false);
|
|
7923
7935
|
};
|
|
7924
7936
|
const handleCancelEdit = () => {
|
|
7925
7937
|
setIsEditing(false);
|
|
7926
|
-
|
|
7938
|
+
setLocalEditContent(currentContent);
|
|
7939
|
+
};
|
|
7940
|
+
const handleSave = () => {
|
|
7941
|
+
onSave?.(localEditContent);
|
|
7942
|
+
setIsEditing(false);
|
|
7927
7943
|
};
|
|
7928
7944
|
const handleApprove = () => {
|
|
7929
|
-
onApprove(isEditing ?
|
|
7945
|
+
onApprove(isEditing ? localEditContent : currentContent);
|
|
7930
7946
|
setIsEditing(false);
|
|
7931
7947
|
};
|
|
7948
|
+
const hasUnsavedChanges = isEditing && localEditContent !== currentContent;
|
|
7932
7949
|
return /* @__PURE__ */ jsxs(Container13, { "data-testid": "post-approval-controls", children: [
|
|
7933
7950
|
/* @__PURE__ */ jsxs(Header2, { onClick: () => !isEditing && setIsCollapsed(!isCollapsed), children: [
|
|
7934
7951
|
/* @__PURE__ */ jsx(StatusBadge, { $color: statusConfig.color, children: statusConfig.label }),
|
|
@@ -7954,8 +7971,8 @@ var PostApprovalControls = ({
|
|
|
7954
7971
|
/* @__PURE__ */ jsx(
|
|
7955
7972
|
EditTextarea,
|
|
7956
7973
|
{
|
|
7957
|
-
value:
|
|
7958
|
-
onChange: (e) =>
|
|
7974
|
+
value: localEditContent,
|
|
7975
|
+
onChange: (e) => setLocalEditContent(e.target.value),
|
|
7959
7976
|
placeholder: "Enter your post content...",
|
|
7960
7977
|
$platformColor: platformConfig.color,
|
|
7961
7978
|
disabled: isProcessing
|
|
@@ -7971,13 +7988,22 @@ var PostApprovalControls = ({
|
|
|
7971
7988
|
] }),
|
|
7972
7989
|
/* @__PURE__ */ jsxs(Actions3, { children: [
|
|
7973
7990
|
/* @__PURE__ */ jsx(ActionButton5, { $variant: "cancel", onClick: handleCancelEdit, disabled: isProcessing, children: "Cancel" }),
|
|
7991
|
+
onSave && /* @__PURE__ */ jsx(
|
|
7992
|
+
ActionButton5,
|
|
7993
|
+
{
|
|
7994
|
+
$variant: "save",
|
|
7995
|
+
onClick: handleSave,
|
|
7996
|
+
disabled: isProcessing || charPercentage > 100 || !hasUnsavedChanges,
|
|
7997
|
+
children: isProcessing ? "Saving..." : "Save"
|
|
7998
|
+
}
|
|
7999
|
+
),
|
|
7974
8000
|
/* @__PURE__ */ jsx(
|
|
7975
8001
|
ActionButton5,
|
|
7976
8002
|
{
|
|
7977
8003
|
$variant: "approve",
|
|
7978
8004
|
onClick: handleApprove,
|
|
7979
8005
|
disabled: isProcessing || charPercentage > 100,
|
|
7980
|
-
children: isProcessing ? "
|
|
8006
|
+
children: isProcessing ? "Processing..." : "Approve"
|
|
7981
8007
|
}
|
|
7982
8008
|
)
|
|
7983
8009
|
] })
|
|
@@ -7989,7 +8015,7 @@ var PostApprovalControls = ({
|
|
|
7989
8015
|
] });
|
|
7990
8016
|
};
|
|
7991
8017
|
PostApprovalControls.displayName = "PostApprovalControls";
|
|
7992
|
-
var Container13 =
|
|
8018
|
+
var Container13 = styled47.div`
|
|
7993
8019
|
display: grid;
|
|
7994
8020
|
gap: 0;
|
|
7995
8021
|
background: ${tokens.colors.background.dark};
|
|
@@ -7999,7 +8025,7 @@ var Container13 = styled11.div`
|
|
|
7999
8025
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
8000
8026
|
transition: border-color ${tokens.transitions.fast};
|
|
8001
8027
|
`;
|
|
8002
|
-
var Header2 =
|
|
8028
|
+
var Header2 = styled47.div`
|
|
8003
8029
|
display: grid;
|
|
8004
8030
|
grid-template-columns: auto 1fr auto;
|
|
8005
8031
|
align-items: center;
|
|
@@ -8013,7 +8039,7 @@ var Header2 = styled11.div`
|
|
|
8013
8039
|
background: ${tokens.colors.background.light};
|
|
8014
8040
|
}
|
|
8015
8041
|
`;
|
|
8016
|
-
var StatusBadge =
|
|
8042
|
+
var StatusBadge = styled47.span`
|
|
8017
8043
|
padding: ${tokens.spacing.xs} ${tokens.spacing.sm};
|
|
8018
8044
|
border-radius: ${tokens.borderRadius.sm};
|
|
8019
8045
|
font-size: ${tokens.typography.fontSize.xs};
|
|
@@ -8024,23 +8050,23 @@ var StatusBadge = styled11.span`
|
|
|
8024
8050
|
color: ${({ $color }) => $color};
|
|
8025
8051
|
white-space: nowrap;
|
|
8026
8052
|
`;
|
|
8027
|
-
var MetaInfo =
|
|
8053
|
+
var MetaInfo = styled47.div`
|
|
8028
8054
|
display: flex;
|
|
8029
8055
|
align-items: center;
|
|
8030
8056
|
gap: ${tokens.spacing.sm};
|
|
8031
8057
|
min-width: 0;
|
|
8032
8058
|
`;
|
|
8033
|
-
var PostId =
|
|
8059
|
+
var PostId = styled47.span`
|
|
8034
8060
|
font-size: ${tokens.typography.fontSize.xs};
|
|
8035
8061
|
color: ${tokens.colors.text.tertiary};
|
|
8036
8062
|
font-family: ${tokens.typography.fontFamily.monospace};
|
|
8037
8063
|
`;
|
|
8038
|
-
var ErrorText =
|
|
8064
|
+
var ErrorText = styled47.span`
|
|
8039
8065
|
font-size: ${tokens.typography.fontSize.xs};
|
|
8040
8066
|
color: ${tokens.colors.error};
|
|
8041
8067
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
8042
8068
|
`;
|
|
8043
|
-
var CollapseIcon =
|
|
8069
|
+
var CollapseIcon = styled47.span`
|
|
8044
8070
|
font-size: ${tokens.typography.fontSize.sm};
|
|
8045
8071
|
color: ${tokens.colors.text.tertiary};
|
|
8046
8072
|
font-weight: ${tokens.typography.fontWeight.medium};
|
|
@@ -8050,17 +8076,17 @@ var CollapseIcon = styled11.span`
|
|
|
8050
8076
|
align-items: center;
|
|
8051
8077
|
justify-content: center;
|
|
8052
8078
|
`;
|
|
8053
|
-
var Content3 =
|
|
8079
|
+
var Content3 = styled47.div`
|
|
8054
8080
|
display: grid;
|
|
8055
8081
|
gap: ${tokens.spacing.md};
|
|
8056
8082
|
padding: ${tokens.spacing.md};
|
|
8057
8083
|
border-top: 1px solid ${tokens.colors.border.default};
|
|
8058
8084
|
`;
|
|
8059
|
-
var EditSection =
|
|
8085
|
+
var EditSection = styled47.div`
|
|
8060
8086
|
display: grid;
|
|
8061
8087
|
gap: ${tokens.spacing.xs};
|
|
8062
8088
|
`;
|
|
8063
|
-
var EditLabel =
|
|
8089
|
+
var EditLabel = styled47.label`
|
|
8064
8090
|
display: grid;
|
|
8065
8091
|
grid-template-columns: 1fr auto;
|
|
8066
8092
|
align-items: center;
|
|
@@ -8069,7 +8095,7 @@ var EditLabel = styled11.label`
|
|
|
8069
8095
|
color: ${tokens.colors.text.secondary};
|
|
8070
8096
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
8071
8097
|
`;
|
|
8072
|
-
var CharCount =
|
|
8098
|
+
var CharCount = styled47.span`
|
|
8073
8099
|
font-size: ${tokens.typography.fontSize.xs};
|
|
8074
8100
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
8075
8101
|
font-family: ${tokens.typography.fontFamily.monospace};
|
|
@@ -8079,7 +8105,7 @@ var CharCount = styled11.span`
|
|
|
8079
8105
|
return tokens.colors.success;
|
|
8080
8106
|
}};
|
|
8081
8107
|
`;
|
|
8082
|
-
var EditTextarea =
|
|
8108
|
+
var EditTextarea = styled47.textarea`
|
|
8083
8109
|
width: 100%;
|
|
8084
8110
|
min-height: 100px;
|
|
8085
8111
|
padding: ${tokens.spacing.sm};
|
|
@@ -8109,14 +8135,14 @@ var EditTextarea = styled11.textarea`
|
|
|
8109
8135
|
color: ${tokens.colors.text.tertiary};
|
|
8110
8136
|
}
|
|
8111
8137
|
`;
|
|
8112
|
-
var ProgressBar2 =
|
|
8138
|
+
var ProgressBar2 = styled47.div`
|
|
8113
8139
|
width: 100%;
|
|
8114
8140
|
height: 3px;
|
|
8115
8141
|
background: ${tokens.colors.border.default};
|
|
8116
8142
|
border-radius: ${tokens.borderRadius.sm};
|
|
8117
8143
|
overflow: hidden;
|
|
8118
8144
|
`;
|
|
8119
|
-
var ProgressFill =
|
|
8145
|
+
var ProgressFill = styled47.div`
|
|
8120
8146
|
width: ${({ $percentage }) => $percentage}%;
|
|
8121
8147
|
height: 100%;
|
|
8122
8148
|
border-radius: ${tokens.borderRadius.sm};
|
|
@@ -8127,12 +8153,12 @@ var ProgressFill = styled11.div`
|
|
|
8127
8153
|
return tokens.colors.success;
|
|
8128
8154
|
}};
|
|
8129
8155
|
`;
|
|
8130
|
-
var Actions3 =
|
|
8156
|
+
var Actions3 = styled47.div`
|
|
8131
8157
|
display: grid;
|
|
8132
8158
|
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
|
|
8133
8159
|
gap: ${tokens.spacing.sm};
|
|
8134
8160
|
`;
|
|
8135
|
-
var ActionButton5 =
|
|
8161
|
+
var ActionButton5 = styled47.button`
|
|
8136
8162
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
8137
8163
|
border-radius: ${tokens.borderRadius.md};
|
|
8138
8164
|
font-size: ${tokens.typography.fontSize.sm};
|
|
@@ -8158,6 +8184,15 @@ var ActionButton5 = styled11.button`
|
|
|
8158
8184
|
opacity: 0.9;
|
|
8159
8185
|
}
|
|
8160
8186
|
`;
|
|
8187
|
+
case "save":
|
|
8188
|
+
return `
|
|
8189
|
+
background: ${tokens.colors.primary};
|
|
8190
|
+
color: ${tokens.colors.text.primary};
|
|
8191
|
+
&:hover:not(:disabled) {
|
|
8192
|
+
background: ${tokens.colors.primary};
|
|
8193
|
+
opacity: 0.9;
|
|
8194
|
+
}
|
|
8195
|
+
`;
|
|
8161
8196
|
case "reject":
|
|
8162
8197
|
case "cancel":
|
|
8163
8198
|
return `
|
|
@@ -8271,7 +8306,7 @@ var fadeIn2 = keyframes`
|
|
|
8271
8306
|
transform: translateY(0);
|
|
8272
8307
|
}
|
|
8273
8308
|
`;
|
|
8274
|
-
var CardContainer =
|
|
8309
|
+
var CardContainer = styled47.div`
|
|
8275
8310
|
background: ${tokens.colors.background.dark};
|
|
8276
8311
|
border-radius: ${tokens.borderRadius.xl};
|
|
8277
8312
|
padding: ${tokens.spacing.md};
|
|
@@ -8284,7 +8319,7 @@ var CardContainer = styled11.div`
|
|
|
8284
8319
|
border-color: ${({ $platformColor }) => `${$platformColor}80`};
|
|
8285
8320
|
}
|
|
8286
8321
|
`;
|
|
8287
|
-
var PlatformHeader =
|
|
8322
|
+
var PlatformHeader = styled47.div`
|
|
8288
8323
|
display: flex;
|
|
8289
8324
|
align-items: center;
|
|
8290
8325
|
gap: 10px;
|
|
@@ -8292,7 +8327,7 @@ var PlatformHeader = styled11.div`
|
|
|
8292
8327
|
padding-bottom: ${tokens.spacing.sm};
|
|
8293
8328
|
border-bottom: 1px solid ${tokens.colors.border.default};
|
|
8294
8329
|
`;
|
|
8295
|
-
var PlatformIcon =
|
|
8330
|
+
var PlatformIcon = styled47.span`
|
|
8296
8331
|
display: flex;
|
|
8297
8332
|
align-items: center;
|
|
8298
8333
|
justify-content: center;
|
|
@@ -8304,13 +8339,13 @@ var PlatformIcon = styled11.span`
|
|
|
8304
8339
|
font-size: ${tokens.typography.fontSize.base};
|
|
8305
8340
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
8306
8341
|
`;
|
|
8307
|
-
var PlatformName =
|
|
8342
|
+
var PlatformName = styled47.span`
|
|
8308
8343
|
flex: 1;
|
|
8309
8344
|
font-size: ${tokens.typography.fontSize.sm};
|
|
8310
8345
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
8311
8346
|
color: ${tokens.colors.text.primary};
|
|
8312
8347
|
`;
|
|
8313
|
-
var CharacterBadge =
|
|
8348
|
+
var CharacterBadge = styled47.span`
|
|
8314
8349
|
padding: ${tokens.spacing.xs} ${tokens.spacing.sm};
|
|
8315
8350
|
border-radius: ${tokens.borderRadius.lg};
|
|
8316
8351
|
font-size: 11px;
|
|
@@ -8322,10 +8357,10 @@ var CharacterBadge = styled11.span`
|
|
|
8322
8357
|
return tokens.colors.success;
|
|
8323
8358
|
}};
|
|
8324
8359
|
`;
|
|
8325
|
-
var ContentSection =
|
|
8360
|
+
var ContentSection = styled47.div`
|
|
8326
8361
|
margin-bottom: ${tokens.spacing.sm};
|
|
8327
8362
|
`;
|
|
8328
|
-
var PostContent =
|
|
8363
|
+
var PostContent = styled47.div`
|
|
8329
8364
|
font-size: ${tokens.typography.fontSize.base};
|
|
8330
8365
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
8331
8366
|
line-height: 1.6;
|
|
@@ -8337,7 +8372,7 @@ var PostContent = styled11.div`
|
|
|
8337
8372
|
/* Smooth fade-in animation when content appears */
|
|
8338
8373
|
animation: ${fadeIn2} 0.4s ease-out;
|
|
8339
8374
|
`;
|
|
8340
|
-
var PostContentEditable =
|
|
8375
|
+
var PostContentEditable = styled47.textarea`
|
|
8341
8376
|
width: 100%;
|
|
8342
8377
|
min-height: 180px;
|
|
8343
8378
|
max-height: 300px;
|
|
@@ -8366,12 +8401,12 @@ var PostContentEditable = styled11.textarea`
|
|
|
8366
8401
|
color: ${tokens.colors.text.tertiary};
|
|
8367
8402
|
}
|
|
8368
8403
|
`;
|
|
8369
|
-
var HashtagsContainer =
|
|
8404
|
+
var HashtagsContainer = styled47.div`
|
|
8370
8405
|
display: flex;
|
|
8371
8406
|
flex-wrap: wrap;
|
|
8372
8407
|
gap: 6px;
|
|
8373
8408
|
`;
|
|
8374
|
-
var HashtagPill =
|
|
8409
|
+
var HashtagPill = styled47.span`
|
|
8375
8410
|
display: inline-block;
|
|
8376
8411
|
padding: ${tokens.spacing.xs} 10px;
|
|
8377
8412
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -8388,17 +8423,17 @@ var HashtagPill = styled11.span`
|
|
|
8388
8423
|
color: ${tokens.colors.primary};
|
|
8389
8424
|
}
|
|
8390
8425
|
`;
|
|
8391
|
-
var ProgressBarContainer =
|
|
8426
|
+
var ProgressBarContainer = styled47.div`
|
|
8392
8427
|
margin-top: ${tokens.spacing.sm};
|
|
8393
8428
|
`;
|
|
8394
|
-
var ProgressBarTrack =
|
|
8429
|
+
var ProgressBarTrack = styled47.div`
|
|
8395
8430
|
width: 100%;
|
|
8396
8431
|
height: 4px;
|
|
8397
8432
|
background: ${tokens.colors.border.default};
|
|
8398
8433
|
border-radius: ${tokens.borderRadius.sm};
|
|
8399
8434
|
overflow: hidden;
|
|
8400
8435
|
`;
|
|
8401
|
-
var ProgressBarFill2 =
|
|
8436
|
+
var ProgressBarFill2 = styled47.div`
|
|
8402
8437
|
width: ${({ $percentage }) => $percentage}%;
|
|
8403
8438
|
height: 100%;
|
|
8404
8439
|
border-radius: ${tokens.borderRadius.sm};
|
|
@@ -8409,20 +8444,20 @@ var ProgressBarFill2 = styled11.div`
|
|
|
8409
8444
|
return tokens.colors.success;
|
|
8410
8445
|
}};
|
|
8411
8446
|
`;
|
|
8412
|
-
var ImagePreviewContainer =
|
|
8447
|
+
var ImagePreviewContainer = styled47.div`
|
|
8413
8448
|
margin-bottom: ${tokens.spacing.sm};
|
|
8414
8449
|
border-radius: ${tokens.borderRadius.sm};
|
|
8415
8450
|
overflow: hidden;
|
|
8416
8451
|
border: 1px solid ${tokens.colors.border.default};
|
|
8417
8452
|
`;
|
|
8418
|
-
var ImagePreview =
|
|
8453
|
+
var ImagePreview = styled47.img`
|
|
8419
8454
|
width: 100%;
|
|
8420
8455
|
height: auto;
|
|
8421
8456
|
max-height: 200px;
|
|
8422
8457
|
object-fit: cover;
|
|
8423
8458
|
display: block;
|
|
8424
8459
|
`;
|
|
8425
|
-
var ImagePlaceholder =
|
|
8460
|
+
var ImagePlaceholder = styled47.div`
|
|
8426
8461
|
width: 100%;
|
|
8427
8462
|
height: 200px;
|
|
8428
8463
|
background: linear-gradient(
|
|
@@ -8444,7 +8479,7 @@ var ImagePlaceholder = styled11.div`
|
|
|
8444
8479
|
opacity: 0.8;
|
|
8445
8480
|
margin-bottom: ${tokens.spacing.sm};
|
|
8446
8481
|
`;
|
|
8447
|
-
var PlaceholderIcon =
|
|
8482
|
+
var PlaceholderIcon = styled47.div`
|
|
8448
8483
|
width: 48px;
|
|
8449
8484
|
height: 48px;
|
|
8450
8485
|
border: 2px solid white;
|
|
@@ -8466,13 +8501,13 @@ var shimmer = keyframes`
|
|
|
8466
8501
|
background-position: 200% 0;
|
|
8467
8502
|
}
|
|
8468
8503
|
`;
|
|
8469
|
-
var SkeletonContent =
|
|
8504
|
+
var SkeletonContent = styled47.div`
|
|
8470
8505
|
display: flex;
|
|
8471
8506
|
flex-direction: column;
|
|
8472
8507
|
gap: ${tokens.spacing.sm};
|
|
8473
8508
|
padding: ${tokens.spacing.sm} 0;
|
|
8474
8509
|
`;
|
|
8475
|
-
var SkeletonLine =
|
|
8510
|
+
var SkeletonLine = styled47.div`
|
|
8476
8511
|
height: 16px;
|
|
8477
8512
|
width: ${({ $width }) => $width};
|
|
8478
8513
|
background: linear-gradient(
|
|
@@ -8571,13 +8606,13 @@ var PlatformCarousel = ({
|
|
|
8571
8606
|
] });
|
|
8572
8607
|
};
|
|
8573
8608
|
PlatformCarousel.displayName = "PlatformCarousel";
|
|
8574
|
-
var CarouselContainer =
|
|
8609
|
+
var CarouselContainer = styled47.div`
|
|
8575
8610
|
display: flex;
|
|
8576
8611
|
flex-direction: column;
|
|
8577
8612
|
width: 100%;
|
|
8578
8613
|
gap: ${tokens.spacing.md};
|
|
8579
8614
|
`;
|
|
8580
|
-
var TabsContainer =
|
|
8615
|
+
var TabsContainer = styled47.div`
|
|
8581
8616
|
display: flex;
|
|
8582
8617
|
gap: ${tokens.spacing.sm};
|
|
8583
8618
|
padding: ${tokens.spacing.sm};
|
|
@@ -8591,7 +8626,7 @@ var TabsContainer = styled11.div`
|
|
|
8591
8626
|
display: none;
|
|
8592
8627
|
}
|
|
8593
8628
|
`;
|
|
8594
|
-
var PlatformTab =
|
|
8629
|
+
var PlatformTab = styled47.button`
|
|
8595
8630
|
display: flex;
|
|
8596
8631
|
align-items: center;
|
|
8597
8632
|
gap: ${tokens.spacing.xs};
|
|
@@ -8617,12 +8652,12 @@ var PlatformTab = styled11.button`
|
|
|
8617
8652
|
box-shadow: 0 0 0 2px ${({ $platformColor }) => $platformColor}40;
|
|
8618
8653
|
}
|
|
8619
8654
|
`;
|
|
8620
|
-
var PlatformIcon2 =
|
|
8655
|
+
var PlatformIcon2 = styled47.span`
|
|
8621
8656
|
font-size: ${tokens.typography.fontSize.base};
|
|
8622
8657
|
color: ${({ $platformColor }) => $platformColor};
|
|
8623
8658
|
transition: color ${tokens.transitions.fast};
|
|
8624
8659
|
`;
|
|
8625
|
-
var ContentContainer2 =
|
|
8660
|
+
var ContentContainer2 = styled47.div`
|
|
8626
8661
|
position: relative;
|
|
8627
8662
|
min-height: 200px;
|
|
8628
8663
|
overflow: hidden;
|
|
@@ -8630,7 +8665,7 @@ var ContentContainer2 = styled11.div`
|
|
|
8630
8665
|
padding: 0 ${tokens.spacing.xs};
|
|
8631
8666
|
margin: 0 -${tokens.spacing.xs};
|
|
8632
8667
|
`;
|
|
8633
|
-
var Slide =
|
|
8668
|
+
var Slide = styled47.div`
|
|
8634
8669
|
position: ${({ $isActive }) => $isActive ? "relative" : "absolute"};
|
|
8635
8670
|
top: 0;
|
|
8636
8671
|
left: 0;
|
|
@@ -8641,13 +8676,13 @@ var Slide = styled11.div`
|
|
|
8641
8676
|
transform ${tokens.animation.duration.short} ${tokens.animation.easing.smooth};
|
|
8642
8677
|
pointer-events: ${({ $isActive }) => $isActive ? "auto" : "none"};
|
|
8643
8678
|
`;
|
|
8644
|
-
var NavigationDotsContainer =
|
|
8679
|
+
var NavigationDotsContainer = styled47.div`
|
|
8645
8680
|
display: flex;
|
|
8646
8681
|
justify-content: center;
|
|
8647
8682
|
gap: ${tokens.spacing.xs};
|
|
8648
8683
|
padding: ${tokens.spacing.sm};
|
|
8649
8684
|
`;
|
|
8650
|
-
var NavigationDot =
|
|
8685
|
+
var NavigationDot = styled47.button`
|
|
8651
8686
|
width: ${tokens.spacing.sm};
|
|
8652
8687
|
height: ${tokens.spacing.sm};
|
|
8653
8688
|
border-radius: ${tokens.borderRadius.full};
|
|
@@ -8667,7 +8702,7 @@ var NavigationDot = styled11.button`
|
|
|
8667
8702
|
box-shadow: 0 0 0 2px ${({ $platformColor }) => $platformColor}40;
|
|
8668
8703
|
}
|
|
8669
8704
|
`;
|
|
8670
|
-
var EmptyState =
|
|
8705
|
+
var EmptyState = styled47.div`
|
|
8671
8706
|
display: flex;
|
|
8672
8707
|
align-items: center;
|
|
8673
8708
|
justify-content: center;
|
|
@@ -8724,7 +8759,7 @@ var PlatformGrid = ({
|
|
|
8724
8759
|
}) });
|
|
8725
8760
|
};
|
|
8726
8761
|
PlatformGrid.displayName = "PlatformGrid";
|
|
8727
|
-
var Grid =
|
|
8762
|
+
var Grid = styled47.div`
|
|
8728
8763
|
display: grid;
|
|
8729
8764
|
gap: ${tokens.spacing.md};
|
|
8730
8765
|
width: 100%;
|
|
@@ -8742,7 +8777,7 @@ var Grid = styled11.div`
|
|
|
8742
8777
|
grid-template-columns: repeat(3, 1fr);
|
|
8743
8778
|
}
|
|
8744
8779
|
`;
|
|
8745
|
-
var GridCell =
|
|
8780
|
+
var GridCell = styled47.div`
|
|
8746
8781
|
min-width: 0; /* Prevent grid blowout with long content */
|
|
8747
8782
|
cursor: pointer;
|
|
8748
8783
|
border-radius: ${tokens.borderRadius.lg};
|
|
@@ -8752,7 +8787,7 @@ var GridCell = styled11.div`
|
|
|
8752
8787
|
transform: translateY(-2px);
|
|
8753
8788
|
}
|
|
8754
8789
|
`;
|
|
8755
|
-
var EmptyState2 =
|
|
8790
|
+
var EmptyState2 = styled47.div`
|
|
8756
8791
|
display: flex;
|
|
8757
8792
|
align-items: center;
|
|
8758
8793
|
justify-content: center;
|
|
@@ -8761,12 +8796,12 @@ var EmptyState2 = styled11.div`
|
|
|
8761
8796
|
border: 1px dashed ${tokens.colors.border.hover};
|
|
8762
8797
|
border-radius: ${tokens.borderRadius.lg};
|
|
8763
8798
|
`;
|
|
8764
|
-
var EmptyStateText =
|
|
8799
|
+
var EmptyStateText = styled47.p`
|
|
8765
8800
|
margin: 0;
|
|
8766
8801
|
font-size: ${tokens.typography.fontSize.sm};
|
|
8767
8802
|
color: ${tokens.colors.text.tertiary};
|
|
8768
8803
|
`;
|
|
8769
|
-
var Container14 =
|
|
8804
|
+
var Container14 = styled47.div`
|
|
8770
8805
|
display: flex;
|
|
8771
8806
|
flex-direction: column;
|
|
8772
8807
|
height: 100%;
|
|
@@ -8780,7 +8815,7 @@ var Container14 = styled11.div`
|
|
|
8780
8815
|
);
|
|
8781
8816
|
overflow: auto;
|
|
8782
8817
|
`;
|
|
8783
|
-
var Header3 =
|
|
8818
|
+
var Header3 = styled47.div`
|
|
8784
8819
|
display: flex;
|
|
8785
8820
|
justify-content: space-between;
|
|
8786
8821
|
align-items: center;
|
|
@@ -8806,7 +8841,7 @@ var Header3 = styled11.div`
|
|
|
8806
8841
|
pointer-events: none;
|
|
8807
8842
|
}
|
|
8808
8843
|
`;
|
|
8809
|
-
var Title =
|
|
8844
|
+
var Title = styled47.h2`
|
|
8810
8845
|
margin: 0;
|
|
8811
8846
|
font-size: ${tokens.typography.fontSize.base};
|
|
8812
8847
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
@@ -8816,12 +8851,12 @@ var Title = styled11.h2`
|
|
|
8816
8851
|
text-overflow: ellipsis;
|
|
8817
8852
|
min-width: 0;
|
|
8818
8853
|
`;
|
|
8819
|
-
var ViewToggle =
|
|
8854
|
+
var ViewToggle = styled47.div`
|
|
8820
8855
|
display: flex;
|
|
8821
8856
|
gap: ${tokens.spacing.xs};
|
|
8822
8857
|
flex-shrink: 0;
|
|
8823
8858
|
`;
|
|
8824
|
-
var ToggleButton =
|
|
8859
|
+
var ToggleButton = styled47.button`
|
|
8825
8860
|
padding: ${tokens.spacing.xs};
|
|
8826
8861
|
width: 32px;
|
|
8827
8862
|
height: 32px;
|
|
@@ -8849,7 +8884,7 @@ var ToggleButton = styled11.button`
|
|
|
8849
8884
|
background: ${({ $active }) => $active ? `${tokens.colors.primary}4D` : tokens.colors.surface.overlayHover};
|
|
8850
8885
|
}
|
|
8851
8886
|
`;
|
|
8852
|
-
var Content4 =
|
|
8887
|
+
var Content4 = styled47.div`
|
|
8853
8888
|
flex: 1;
|
|
8854
8889
|
display: flex;
|
|
8855
8890
|
flex-direction: column;
|
|
@@ -8858,7 +8893,7 @@ var Content4 = styled11.div`
|
|
|
8858
8893
|
/* Extra top padding to account for header fade overlay */
|
|
8859
8894
|
padding-top: ${tokens.spacing.md};
|
|
8860
8895
|
`;
|
|
8861
|
-
var EmptyState3 =
|
|
8896
|
+
var EmptyState3 = styled47.div`
|
|
8862
8897
|
display: flex;
|
|
8863
8898
|
flex-direction: column;
|
|
8864
8899
|
align-items: center;
|
|
@@ -8886,7 +8921,7 @@ var EmptyState3 = styled11.div`
|
|
|
8886
8921
|
font-size: ${tokens.typography.fontSize.sm};
|
|
8887
8922
|
}
|
|
8888
8923
|
`;
|
|
8889
|
-
var PostCount =
|
|
8924
|
+
var PostCount = styled47.span`
|
|
8890
8925
|
font-size: ${tokens.typography.fontSize.sm};
|
|
8891
8926
|
color: ${tokens.colors.text.tertiary};
|
|
8892
8927
|
font-weight: ${tokens.typography.fontWeight.regular};
|
|
@@ -8981,176 +9016,1126 @@ var SocialMediaCanvas = ({
|
|
|
8981
9016
|
] });
|
|
8982
9017
|
};
|
|
8983
9018
|
SocialMediaCanvas.displayName = "SocialMediaCanvas";
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
9019
|
+
|
|
9020
|
+
// src/components/social-media/redditEngagementConstants.ts
|
|
9021
|
+
var REDDIT_COLORS = {
|
|
9022
|
+
orange: tokens.colors.platform.reddit,
|
|
9023
|
+
darkGray: tokens.colors.background.darker};
|
|
9024
|
+
var SCORE_THRESHOLDS = {
|
|
9025
|
+
excellent: { min: 8, max: 10, label: "Excellent", color: tokens.colors.success },
|
|
9026
|
+
good: { min: 6, max: 7, label: "Good", color: tokens.colors.info },
|
|
9027
|
+
moderate: { min: 4, max: 5, label: "Moderate", color: tokens.colors.warning },
|
|
9028
|
+
low: { min: 1, max: 3, label: "Low", color: tokens.colors.error }
|
|
9029
|
+
};
|
|
9030
|
+
function getScoreConfig(score) {
|
|
9031
|
+
if (score >= 8) return SCORE_THRESHOLDS.excellent;
|
|
9032
|
+
if (score >= 6) return SCORE_THRESHOLDS.good;
|
|
9033
|
+
if (score >= 4) return SCORE_THRESHOLDS.moderate;
|
|
9034
|
+
return SCORE_THRESHOLDS.low;
|
|
9035
|
+
}
|
|
9036
|
+
function getScoreColor(score) {
|
|
9037
|
+
return getScoreConfig(score).color;
|
|
9038
|
+
}
|
|
9039
|
+
function getScoreLabel(score) {
|
|
9040
|
+
return getScoreConfig(score).label;
|
|
9041
|
+
}
|
|
9042
|
+
var TONE_CONFIG = {
|
|
9043
|
+
casual: {
|
|
9044
|
+
label: "Casual",
|
|
9045
|
+
color: tokens.colors.accent,
|
|
9046
|
+
icon: "/assets/icon-set/Icon-chat-1-fill.svg",
|
|
9047
|
+
description: "Friendly, conversational tone"
|
|
9048
|
+
},
|
|
9049
|
+
professional: {
|
|
9050
|
+
label: "Professional",
|
|
9051
|
+
color: tokens.colors.info,
|
|
9052
|
+
icon: "/assets/icon-set/Icon-briefcase-fill.svg",
|
|
9053
|
+
description: "Business-appropriate, formal tone"
|
|
9054
|
+
},
|
|
9055
|
+
technical: {
|
|
9056
|
+
label: "Technical",
|
|
9057
|
+
color: tokens.colors.secondary,
|
|
9058
|
+
icon: "/assets/icon-set/Icon-settings-3-fill.svg",
|
|
9059
|
+
description: "Detail-oriented, expert tone"
|
|
9060
|
+
},
|
|
9061
|
+
supportive: {
|
|
9062
|
+
label: "Supportive",
|
|
9063
|
+
color: tokens.colors.success,
|
|
9064
|
+
icon: "/assets/icon-set/Icon-p2p-fill.svg",
|
|
9065
|
+
description: "Empathetic, helpful tone"
|
|
9066
|
+
},
|
|
9067
|
+
humorous: {
|
|
9068
|
+
label: "Humorous",
|
|
9069
|
+
color: tokens.colors.warning,
|
|
9070
|
+
icon: "/assets/icon-set/Icon-emotion-happy-fill.svg",
|
|
9071
|
+
description: "Light-hearted, witty tone"
|
|
8990
9072
|
}
|
|
8991
|
-
|
|
9073
|
+
};
|
|
9074
|
+
function getToneConfig(tone) {
|
|
9075
|
+
return TONE_CONFIG[tone];
|
|
9076
|
+
}
|
|
9077
|
+
({
|
|
9078
|
+
pending: {
|
|
9079
|
+
color: tokens.colors.warning},
|
|
9080
|
+
posted: {
|
|
9081
|
+
color: tokens.colors.success},
|
|
9082
|
+
skipped: {
|
|
9083
|
+
color: tokens.colors.text.tertiary},
|
|
9084
|
+
expired: {
|
|
9085
|
+
color: tokens.colors.error},
|
|
9086
|
+
editing: {
|
|
9087
|
+
color: tokens.colors.info}
|
|
9088
|
+
});
|
|
9089
|
+
var REDDIT_LIMITS = {
|
|
9090
|
+
comment: 1e4};
|
|
9091
|
+
function getRedditCharPercentage(current, max = REDDIT_LIMITS.comment) {
|
|
9092
|
+
return Math.min(100, current / max * 100);
|
|
9093
|
+
}
|
|
9094
|
+
function getRedditCharLimitColor(percentage) {
|
|
9095
|
+
if (percentage > 100) return tokens.colors.error;
|
|
9096
|
+
if (percentage > 90) return tokens.colors.warning;
|
|
9097
|
+
if (percentage > 75) return tokens.colors.warning;
|
|
9098
|
+
return tokens.colors.success;
|
|
9099
|
+
}
|
|
9100
|
+
var SUBREDDIT_COLORS = {
|
|
9101
|
+
automation: tokens.colors.info,
|
|
9102
|
+
n8n: tokens.colors.platform.reddit,
|
|
9103
|
+
nocode: tokens.colors.success,
|
|
9104
|
+
smallbusiness: tokens.colors.warning,
|
|
9105
|
+
entrepreneur: tokens.colors.accent,
|
|
9106
|
+
saas: tokens.colors.primary,
|
|
9107
|
+
webdev: tokens.colors.secondary,
|
|
9108
|
+
startups: tokens.colors.seaGreen
|
|
9109
|
+
};
|
|
9110
|
+
function getSubredditColor(subreddit) {
|
|
9111
|
+
const lower = subreddit.toLowerCase();
|
|
9112
|
+
return SUBREDDIT_COLORS[lower] || REDDIT_COLORS.orange;
|
|
8992
9113
|
}
|
|
8993
9114
|
function formatRelativeTime(timestamp) {
|
|
8994
9115
|
const now = /* @__PURE__ */ new Date();
|
|
8995
|
-
const
|
|
8996
|
-
const diffMs = now.getTime() -
|
|
9116
|
+
const date = new Date(timestamp);
|
|
9117
|
+
const diffMs = now.getTime() - date.getTime();
|
|
8997
9118
|
const diffMins = Math.floor(diffMs / 6e4);
|
|
8998
|
-
const diffHours = Math.floor(
|
|
8999
|
-
const diffDays = Math.floor(
|
|
9000
|
-
if (diffMins < 1) return "
|
|
9119
|
+
const diffHours = Math.floor(diffMins / 60);
|
|
9120
|
+
const diffDays = Math.floor(diffHours / 24);
|
|
9121
|
+
if (diffMins < 1) return "just now";
|
|
9001
9122
|
if (diffMins < 60) return `${diffMins}m ago`;
|
|
9002
9123
|
if (diffHours < 24) return `${diffHours}h ago`;
|
|
9003
|
-
return `${diffDays}d ago`;
|
|
9124
|
+
if (diffDays < 7) return `${diffDays}d ago`;
|
|
9125
|
+
return date.toLocaleDateString();
|
|
9004
9126
|
}
|
|
9005
|
-
function
|
|
9006
|
-
if (
|
|
9007
|
-
if (
|
|
9008
|
-
|
|
9009
|
-
return "low";
|
|
9127
|
+
function formatNumber(num) {
|
|
9128
|
+
if (num >= 1e6) return `${(num / 1e6).toFixed(1)}M`;
|
|
9129
|
+
if (num >= 1e3) return `${(num / 1e3).toFixed(1)}k`;
|
|
9130
|
+
return num.toString();
|
|
9010
9131
|
}
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9132
|
+
function truncateText(text, maxLength) {
|
|
9133
|
+
if (text.length <= maxLength) return text;
|
|
9134
|
+
return text.slice(0, maxLength - 3) + "...";
|
|
9135
|
+
}
|
|
9136
|
+
function getSubredditUrl(subreddit) {
|
|
9137
|
+
return `https://www.reddit.com/r/${subreddit}`;
|
|
9138
|
+
}
|
|
9139
|
+
var SubredditBadge = ({
|
|
9140
|
+
subreddit,
|
|
9141
|
+
linked = true
|
|
9142
|
+
}) => {
|
|
9143
|
+
const color = getSubredditColor(subreddit);
|
|
9144
|
+
const content = /* @__PURE__ */ jsxs(SubredditBadgeContainer, { $color: color, children: [
|
|
9145
|
+
"r/",
|
|
9146
|
+
subreddit
|
|
9147
|
+
] });
|
|
9148
|
+
if (linked) {
|
|
9149
|
+
return /* @__PURE__ */ jsx(SubredditLink, { href: getSubredditUrl(subreddit), target: "_blank", rel: "noopener noreferrer", children: content });
|
|
9150
|
+
}
|
|
9151
|
+
return content;
|
|
9016
9152
|
};
|
|
9017
|
-
var
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9153
|
+
var EngagementScoreBadge = ({
|
|
9154
|
+
score,
|
|
9155
|
+
size = "md"
|
|
9156
|
+
}) => {
|
|
9157
|
+
const color = getScoreColor(score);
|
|
9158
|
+
const label = getScoreLabel(score);
|
|
9159
|
+
return /* @__PURE__ */ jsxs(ScoreBadgeContainer, { $color: color, $size: size, children: [
|
|
9160
|
+
/* @__PURE__ */ jsx(ScoreValue, { children: score }),
|
|
9161
|
+
/* @__PURE__ */ jsx(ScoreMax, { children: "/10" }),
|
|
9162
|
+
/* @__PURE__ */ jsx(ScoreLabel, { children: label })
|
|
9163
|
+
] });
|
|
9021
9164
|
};
|
|
9022
|
-
var
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9165
|
+
var ToneBadge = ({ tone }) => {
|
|
9166
|
+
const config = getToneConfig(tone);
|
|
9167
|
+
return /* @__PURE__ */ jsxs(ToneBadgeContainer, { $color: config.color, children: [
|
|
9168
|
+
/* @__PURE__ */ jsx(ToneIcon, { src: config.icon, alt: "" }),
|
|
9169
|
+
/* @__PURE__ */ jsx("span", { children: config.label })
|
|
9170
|
+
] });
|
|
9026
9171
|
};
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
})
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9172
|
+
var PostStats = ({
|
|
9173
|
+
score,
|
|
9174
|
+
comments,
|
|
9175
|
+
createdAt
|
|
9176
|
+
}) => /* @__PURE__ */ jsxs(StatsContainer, { children: [
|
|
9177
|
+
/* @__PURE__ */ jsxs(StatItem, { children: [
|
|
9178
|
+
/* @__PURE__ */ jsx(Icon2, { src: "/assets/icon-set/Icon-arrow-up-fill.svg", alt: "upvotes" }),
|
|
9179
|
+
/* @__PURE__ */ jsx(StatValue, { children: formatNumber(score) })
|
|
9180
|
+
] }),
|
|
9181
|
+
/* @__PURE__ */ jsx(StatDivider, { children: "\u2022" }),
|
|
9182
|
+
/* @__PURE__ */ jsxs(StatItem, { children: [
|
|
9183
|
+
/* @__PURE__ */ jsx(Icon2, { src: "/assets/icon-set/Icon-chat-1-fill.svg", alt: "comments" }),
|
|
9184
|
+
/* @__PURE__ */ jsx(StatValue, { children: formatNumber(comments) })
|
|
9185
|
+
] }),
|
|
9186
|
+
/* @__PURE__ */ jsx(StatDivider, { children: "\u2022" }),
|
|
9187
|
+
/* @__PURE__ */ jsxs(StatItem, { children: [
|
|
9188
|
+
/* @__PURE__ */ jsx(Icon2, { src: "/assets/icon-set/Icon-time-fill.svg", alt: "time" }),
|
|
9189
|
+
/* @__PURE__ */ jsx(StatValue, { children: formatRelativeTime(createdAt) })
|
|
9190
|
+
] })
|
|
9191
|
+
] });
|
|
9192
|
+
var RedditOpportunityCard = ({
|
|
9193
|
+
opportunity,
|
|
9194
|
+
isActive = false,
|
|
9195
|
+
isEditing = false,
|
|
9196
|
+
editContent,
|
|
9197
|
+
onContentChange,
|
|
9198
|
+
isLoading = false,
|
|
9199
|
+
condensed = false
|
|
9200
|
+
}) => {
|
|
9201
|
+
const displayContent = isEditing && editContent !== void 0 ? editContent : opportunity.editedReply || opportunity.draftReply;
|
|
9202
|
+
const charCount = displayContent.length;
|
|
9203
|
+
const charPercentage = useMemo(
|
|
9204
|
+
() => getRedditCharPercentage(charCount, REDDIT_LIMITS.comment),
|
|
9205
|
+
[charCount]
|
|
9038
9206
|
);
|
|
9039
|
-
const
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
/* @__PURE__ */ jsx(
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
/* @__PURE__ */ jsxs(
|
|
9062
|
-
/* @__PURE__ */
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9207
|
+
const charLimitColor = useMemo(
|
|
9208
|
+
() => getRedditCharLimitColor(charPercentage),
|
|
9209
|
+
[charPercentage]
|
|
9210
|
+
);
|
|
9211
|
+
const handleContentChange = (e) => {
|
|
9212
|
+
onContentChange?.(e.target.value);
|
|
9213
|
+
};
|
|
9214
|
+
if (isLoading) {
|
|
9215
|
+
return /* @__PURE__ */ jsx(CardContainer2, { $isActive: false, $isEditing: false, children: /* @__PURE__ */ jsxs(SkeletonContent2, { children: [
|
|
9216
|
+
/* @__PURE__ */ jsx(SkeletonLine2, { $width: "40%" }),
|
|
9217
|
+
/* @__PURE__ */ jsx(SkeletonLine2, { $width: "90%" }),
|
|
9218
|
+
/* @__PURE__ */ jsx(SkeletonLine2, { $width: "75%" }),
|
|
9219
|
+
/* @__PURE__ */ jsx(SkeletonLine2, { $width: "60%" })
|
|
9220
|
+
] }) });
|
|
9221
|
+
}
|
|
9222
|
+
return /* @__PURE__ */ jsxs(
|
|
9223
|
+
CardContainer2,
|
|
9224
|
+
{
|
|
9225
|
+
$isActive: isActive,
|
|
9226
|
+
$isEditing: isEditing,
|
|
9227
|
+
"data-testid": "reddit-opportunity-card",
|
|
9228
|
+
children: [
|
|
9229
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
9230
|
+
/* @__PURE__ */ jsxs(HeaderLeft, { children: [
|
|
9231
|
+
/* @__PURE__ */ jsx(SubredditBadge, { subreddit: opportunity.subreddit }),
|
|
9232
|
+
/* @__PURE__ */ jsx(EngagementScoreBadge, { score: opportunity.engagementScore, size: "md" })
|
|
9233
|
+
] }),
|
|
9234
|
+
/* @__PURE__ */ jsx(
|
|
9235
|
+
PostStats,
|
|
9236
|
+
{
|
|
9237
|
+
score: opportunity.postScore,
|
|
9238
|
+
comments: opportunity.postNumComments,
|
|
9239
|
+
createdAt: opportunity.postCreatedAt
|
|
9240
|
+
}
|
|
9241
|
+
)
|
|
9242
|
+
] }),
|
|
9243
|
+
/* @__PURE__ */ jsxs(PostPreviewSection, { $condensed: condensed, children: [
|
|
9244
|
+
/* @__PURE__ */ jsxs(PostTitle, { href: opportunity.postUrl, target: "_blank", rel: "noopener noreferrer", children: [
|
|
9245
|
+
opportunity.title,
|
|
9246
|
+
/* @__PURE__ */ jsx(ExternalLinkIcon, { children: "\u2192" })
|
|
9247
|
+
] }),
|
|
9248
|
+
!condensed && opportunity.postContent && /* @__PURE__ */ jsx(PostContent2, { children: truncateText(opportunity.postContent, 300) }),
|
|
9249
|
+
/* @__PURE__ */ jsxs(PostAuthor, { children: [
|
|
9250
|
+
"Posted by u/",
|
|
9251
|
+
opportunity.postAuthor,
|
|
9252
|
+
opportunity.flair && /* @__PURE__ */ jsx(PostFlair, { children: opportunity.flair })
|
|
9066
9253
|
] })
|
|
9067
9254
|
] }),
|
|
9068
|
-
/* @__PURE__ */
|
|
9069
|
-
|
|
9070
|
-
|
|
9255
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
9256
|
+
/* @__PURE__ */ jsxs(ReplySection, { children: [
|
|
9257
|
+
/* @__PURE__ */ jsxs(ReplySectionHeader, { children: [
|
|
9258
|
+
/* @__PURE__ */ jsx(ReplyLabel, { children: "Your Draft Reply" }),
|
|
9259
|
+
/* @__PURE__ */ jsxs(ReplyMeta, { children: [
|
|
9260
|
+
/* @__PURE__ */ jsx(ToneBadge, { tone: opportunity.toneMatch }),
|
|
9261
|
+
/* @__PURE__ */ jsxs(CharacterCount, { $color: charLimitColor, children: [
|
|
9262
|
+
charCount,
|
|
9263
|
+
"/",
|
|
9264
|
+
REDDIT_LIMITS.comment
|
|
9265
|
+
] })
|
|
9266
|
+
] })
|
|
9267
|
+
] }),
|
|
9268
|
+
isEditing ? /* @__PURE__ */ jsx(
|
|
9269
|
+
ReplyTextarea,
|
|
9270
|
+
{
|
|
9271
|
+
value: displayContent,
|
|
9272
|
+
onChange: handleContentChange,
|
|
9273
|
+
placeholder: "Write your reply...",
|
|
9274
|
+
autoFocus: true
|
|
9275
|
+
}
|
|
9276
|
+
) : /* @__PURE__ */ jsx(ReplyContent, { children: displayContent }),
|
|
9277
|
+
/* @__PURE__ */ jsxs(StrategyHint, { children: [
|
|
9278
|
+
/* @__PURE__ */ jsx(StrategyIconImg, { src: "/assets/icon-set/Icon-lightbulb-fill.svg", alt: "" }),
|
|
9279
|
+
/* @__PURE__ */ jsxs(StrategyText, { children: [
|
|
9280
|
+
"Strategy: ",
|
|
9281
|
+
opportunity.strategy
|
|
9282
|
+
] })
|
|
9283
|
+
] }),
|
|
9284
|
+
/* @__PURE__ */ jsx(ProgressBarContainer2, { children: /* @__PURE__ */ jsx(ProgressBarTrack2, { children: /* @__PURE__ */ jsx(
|
|
9285
|
+
ProgressBarFill3,
|
|
9286
|
+
{
|
|
9287
|
+
$percentage: Math.min(charPercentage, 100),
|
|
9288
|
+
$color: charLimitColor
|
|
9289
|
+
}
|
|
9290
|
+
) }) })
|
|
9071
9291
|
] })
|
|
9072
|
-
]
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9292
|
+
]
|
|
9293
|
+
}
|
|
9294
|
+
);
|
|
9295
|
+
};
|
|
9296
|
+
RedditOpportunityCard.displayName = "RedditOpportunityCard";
|
|
9297
|
+
var fadeIn3 = keyframes`
|
|
9298
|
+
from {
|
|
9299
|
+
opacity: 0;
|
|
9300
|
+
transform: translateY(8px);
|
|
9301
|
+
}
|
|
9302
|
+
to {
|
|
9303
|
+
opacity: 1;
|
|
9304
|
+
transform: translateY(0);
|
|
9305
|
+
}
|
|
9306
|
+
`;
|
|
9307
|
+
var shimmer2 = keyframes`
|
|
9308
|
+
0% { background-position: -200% 0; }
|
|
9309
|
+
100% { background-position: 200% 0; }
|
|
9310
|
+
`;
|
|
9311
|
+
var Icon2 = styled47.img`
|
|
9312
|
+
width: 14px;
|
|
9313
|
+
height: 14px;
|
|
9314
|
+
vertical-align: middle;
|
|
9315
|
+
opacity: 0.8;
|
|
9316
|
+
`;
|
|
9317
|
+
var CardContainer2 = styled47.div`
|
|
9318
|
+
background: ${tokens.colors.background.dark};
|
|
9082
9319
|
border-radius: ${tokens.borderRadius.xl};
|
|
9083
|
-
|
|
9084
|
-
|
|
9320
|
+
padding: ${tokens.spacing.lg};
|
|
9321
|
+
position: relative;
|
|
9322
|
+
transition: all ${tokens.transitions.normal};
|
|
9323
|
+
border: 1px solid ${({ $isActive, $isEditing }) => $isEditing ? REDDIT_COLORS.orange : $isActive ? REDDIT_COLORS.orange : tokens.colors.border.default};
|
|
9324
|
+
box-shadow: ${({ $isActive, $isEditing }) => $isEditing || $isActive ? `${tokens.shadows.lg}, 0 0 20px ${REDDIT_COLORS.orange}40` : tokens.shadows.md};
|
|
9325
|
+
animation: ${fadeIn3} 0.4s ease-out;
|
|
9326
|
+
|
|
9327
|
+
&:hover {
|
|
9328
|
+
border-color: ${REDDIT_COLORS.orange}80;
|
|
9329
|
+
}
|
|
9330
|
+
|
|
9331
|
+
@media (max-width: 480px) {
|
|
9332
|
+
padding: ${tokens.spacing.md};
|
|
9333
|
+
}
|
|
9085
9334
|
`;
|
|
9086
|
-
var
|
|
9335
|
+
var CardHeader = styled47.div`
|
|
9087
9336
|
display: flex;
|
|
9088
9337
|
justify-content: space-between;
|
|
9089
9338
|
align-items: center;
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
9099
|
-
font-family: ${tokens.typography.fontFamily.primary};
|
|
9100
|
-
color: ${tokens.colors.text.primary};
|
|
9101
|
-
`;
|
|
9102
|
-
var Period = styled11.span`
|
|
9103
|
-
font-size: ${tokens.typography.fontSize.sm};
|
|
9104
|
-
font-family: ${tokens.typography.fontFamily.primary};
|
|
9105
|
-
color: ${tokens.colors.text.secondary};
|
|
9339
|
+
margin-bottom: ${tokens.spacing.md};
|
|
9340
|
+
flex-wrap: wrap;
|
|
9341
|
+
gap: ${tokens.spacing.sm};
|
|
9342
|
+
|
|
9343
|
+
@media (max-width: 480px) {
|
|
9344
|
+
flex-direction: column;
|
|
9345
|
+
align-items: flex-start;
|
|
9346
|
+
}
|
|
9106
9347
|
`;
|
|
9107
|
-
var
|
|
9348
|
+
var HeaderLeft = styled47.div`
|
|
9108
9349
|
display: flex;
|
|
9109
|
-
|
|
9350
|
+
align-items: center;
|
|
9110
9351
|
gap: ${tokens.spacing.sm};
|
|
9111
|
-
padding: ${tokens.spacing.md};
|
|
9112
9352
|
`;
|
|
9113
|
-
var
|
|
9114
|
-
display: flex;
|
|
9115
|
-
align-items:
|
|
9353
|
+
var SubredditBadgeContainer = styled47.span`
|
|
9354
|
+
display: inline-flex;
|
|
9355
|
+
align-items: center;
|
|
9116
9356
|
gap: ${tokens.spacing.xs};
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
font-size: ${tokens.typography.fontSize
|
|
9120
|
-
font-weight: ${tokens.typography.fontWeight.
|
|
9121
|
-
|
|
9122
|
-
color: ${
|
|
9123
|
-
|
|
9124
|
-
|
|
9357
|
+
padding: ${tokens.spacing.xs} ${tokens.spacing.sm};
|
|
9358
|
+
border-radius: ${tokens.borderRadius.full};
|
|
9359
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9360
|
+
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
9361
|
+
background: ${({ $color }) => `${$color}20`};
|
|
9362
|
+
color: ${({ $color }) => $color};
|
|
9363
|
+
border: 1px solid ${({ $color }) => `${$color}40`};
|
|
9364
|
+
transition: all ${tokens.transitions.fast};
|
|
9365
|
+
`;
|
|
9366
|
+
var SubredditLink = styled47.a`
|
|
9367
|
+
text-decoration: none;
|
|
9368
|
+
|
|
9369
|
+
&:hover ${SubredditBadgeContainer} {
|
|
9370
|
+
background: ${tokens.colors.surface.overlayHover};
|
|
9371
|
+
}
|
|
9372
|
+
`;
|
|
9373
|
+
var ScoreBadgeContainer = styled47.div`
|
|
9374
|
+
display: flex;
|
|
9375
|
+
align-items: baseline;
|
|
9376
|
+
gap: ${tokens.spacing.xs};
|
|
9377
|
+
padding: ${({ $size }) => $size === "sm" ? `${tokens.spacing.xs} ${tokens.spacing.sm}` : $size === "lg" ? `${tokens.spacing.sm} ${tokens.spacing.md}` : `${tokens.spacing.xs} ${tokens.spacing.sm}`};
|
|
9378
|
+
border-radius: ${tokens.borderRadius.md};
|
|
9379
|
+
background: ${({ $color }) => `${$color}20`};
|
|
9380
|
+
border: 1px solid ${({ $color }) => `${$color}40`};
|
|
9381
|
+
`;
|
|
9382
|
+
var ScoreValue = styled47.span`
|
|
9383
|
+
font-size: ${tokens.typography.fontSize.lg};
|
|
9384
|
+
font-weight: ${tokens.typography.fontWeight.bold};
|
|
9385
|
+
color: ${tokens.colors.text.primary};
|
|
9386
|
+
`;
|
|
9387
|
+
var ScoreMax = styled47.span`
|
|
9388
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
9389
|
+
color: ${tokens.colors.text.tertiary};
|
|
9390
|
+
`;
|
|
9391
|
+
var ScoreLabel = styled47.span`
|
|
9392
|
+
margin-left: ${tokens.spacing.xs};
|
|
9393
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
9394
|
+
font-weight: ${tokens.typography.fontWeight.medium};
|
|
9395
|
+
color: ${tokens.colors.text.secondary};
|
|
9396
|
+
`;
|
|
9397
|
+
var StatsContainer = styled47.div`
|
|
9398
|
+
display: flex;
|
|
9399
|
+
align-items: center;
|
|
9400
|
+
gap: ${tokens.spacing.xs};
|
|
9401
|
+
`;
|
|
9402
|
+
var StatItem = styled47.span`
|
|
9403
|
+
display: flex;
|
|
9404
|
+
align-items: center;
|
|
9405
|
+
gap: ${tokens.spacing.xs};
|
|
9406
|
+
`;
|
|
9407
|
+
var StatValue = styled47.span`
|
|
9408
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9409
|
+
color: ${tokens.colors.text.secondary};
|
|
9410
|
+
`;
|
|
9411
|
+
var StatDivider = styled47.span`
|
|
9412
|
+
color: ${tokens.colors.text.tertiary};
|
|
9413
|
+
`;
|
|
9414
|
+
var PostPreviewSection = styled47.div`
|
|
9415
|
+
margin-bottom: ${tokens.spacing.md};
|
|
9416
|
+
`;
|
|
9417
|
+
var PostTitle = styled47.a`
|
|
9418
|
+
display: flex;
|
|
9419
|
+
align-items: flex-start;
|
|
9420
|
+
gap: ${tokens.spacing.xs};
|
|
9421
|
+
font-size: ${tokens.typography.fontSize.lg};
|
|
9422
|
+
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
9423
|
+
color: ${tokens.colors.text.primary};
|
|
9424
|
+
text-decoration: none;
|
|
9425
|
+
line-height: ${tokens.typography.lineHeight.tight};
|
|
9426
|
+
margin-bottom: ${tokens.spacing.sm};
|
|
9427
|
+
|
|
9428
|
+
&:hover {
|
|
9429
|
+
color: ${tokens.colors.primary};
|
|
9430
|
+
}
|
|
9431
|
+
`;
|
|
9432
|
+
var ExternalLinkIcon = styled47.span`
|
|
9433
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9434
|
+
color: ${tokens.colors.text.tertiary};
|
|
9435
|
+
flex-shrink: 0;
|
|
9436
|
+
`;
|
|
9437
|
+
var PostContent2 = styled47.p`
|
|
9438
|
+
font-size: ${tokens.typography.fontSize.base};
|
|
9439
|
+
color: ${tokens.colors.text.secondary};
|
|
9440
|
+
line-height: ${tokens.typography.lineHeight.relaxed};
|
|
9441
|
+
margin-bottom: ${tokens.spacing.sm};
|
|
9442
|
+
white-space: pre-wrap;
|
|
9443
|
+
`;
|
|
9444
|
+
var PostAuthor = styled47.div`
|
|
9445
|
+
display: flex;
|
|
9446
|
+
align-items: center;
|
|
9447
|
+
gap: ${tokens.spacing.sm};
|
|
9448
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9449
|
+
color: ${tokens.colors.text.tertiary};
|
|
9450
|
+
`;
|
|
9451
|
+
var PostFlair = styled47.span`
|
|
9452
|
+
padding: ${tokens.spacing.xs} ${tokens.spacing.sm};
|
|
9453
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9454
|
+
background: ${tokens.colors.surface.overlay};
|
|
9455
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
9456
|
+
color: ${tokens.colors.text.secondary};
|
|
9457
|
+
`;
|
|
9458
|
+
var Divider = styled47.hr`
|
|
9459
|
+
border: none;
|
|
9460
|
+
height: 1px;
|
|
9461
|
+
background: ${tokens.colors.border.default};
|
|
9462
|
+
margin: ${tokens.spacing.md} 0;
|
|
9463
|
+
`;
|
|
9464
|
+
var ReplySection = styled47.div``;
|
|
9465
|
+
var ReplySectionHeader = styled47.div`
|
|
9466
|
+
display: flex;
|
|
9467
|
+
justify-content: space-between;
|
|
9468
|
+
align-items: center;
|
|
9469
|
+
margin-bottom: ${tokens.spacing.sm};
|
|
9470
|
+
`;
|
|
9471
|
+
var ReplyLabel = styled47.span`
|
|
9472
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9473
|
+
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
9474
|
+
color: ${tokens.colors.text.secondary};
|
|
9475
|
+
text-transform: uppercase;
|
|
9476
|
+
letter-spacing: 0.5px;
|
|
9477
|
+
`;
|
|
9478
|
+
var ReplyMeta = styled47.div`
|
|
9479
|
+
display: flex;
|
|
9480
|
+
align-items: center;
|
|
9481
|
+
gap: ${tokens.spacing.sm};
|
|
9482
|
+
`;
|
|
9483
|
+
var ToneBadgeContainer = styled47.span`
|
|
9484
|
+
display: inline-flex;
|
|
9485
|
+
align-items: center;
|
|
9486
|
+
gap: ${tokens.spacing.xs};
|
|
9487
|
+
padding: ${tokens.spacing.xs} ${tokens.spacing.sm};
|
|
9488
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9489
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
9490
|
+
background: ${({ $color }) => `${$color}20`};
|
|
9491
|
+
color: ${({ $color }) => $color};
|
|
9492
|
+
`;
|
|
9493
|
+
var ToneIcon = styled47.img`
|
|
9494
|
+
width: 12px;
|
|
9495
|
+
height: 12px;
|
|
9496
|
+
`;
|
|
9497
|
+
var CharacterCount = styled47.span`
|
|
9498
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
9499
|
+
font-family: ${tokens.typography.fontFamily.monospace};
|
|
9500
|
+
font-weight: ${tokens.typography.fontWeight.medium};
|
|
9501
|
+
color: ${({ $color }) => $color};
|
|
9502
|
+
`;
|
|
9503
|
+
var ReplyContent = styled47.div`
|
|
9504
|
+
font-size: ${tokens.typography.fontSize.base};
|
|
9505
|
+
line-height: ${tokens.typography.lineHeight.relaxed};
|
|
9506
|
+
color: ${tokens.colors.text.primary};
|
|
9507
|
+
white-space: pre-wrap;
|
|
9508
|
+
padding: ${tokens.spacing.md};
|
|
9509
|
+
background: ${tokens.colors.background.darker};
|
|
9510
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9511
|
+
border: 1px solid ${tokens.colors.border.default};
|
|
9512
|
+
margin-bottom: ${tokens.spacing.sm};
|
|
9513
|
+
min-height: 100px;
|
|
9514
|
+
animation: ${fadeIn3} 0.3s ease-out;
|
|
9515
|
+
`;
|
|
9516
|
+
var ReplyTextarea = styled47.textarea`
|
|
9517
|
+
width: 100%;
|
|
9518
|
+
min-height: 150px;
|
|
9519
|
+
max-height: 400px;
|
|
9520
|
+
font-size: ${tokens.typography.fontSize.base};
|
|
9521
|
+
font-family: ${tokens.typography.fontFamily.primary};
|
|
9522
|
+
line-height: ${tokens.typography.lineHeight.relaxed};
|
|
9523
|
+
color: ${tokens.colors.text.primary};
|
|
9524
|
+
background: ${tokens.colors.background.darker};
|
|
9525
|
+
border: 1px solid ${tokens.colors.primary};
|
|
9526
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9527
|
+
padding: ${tokens.spacing.md};
|
|
9528
|
+
margin-bottom: ${tokens.spacing.sm};
|
|
9529
|
+
resize: vertical;
|
|
9530
|
+
box-sizing: border-box;
|
|
9531
|
+
transition: border-color ${tokens.transitions.fast}, box-shadow ${tokens.transitions.fast};
|
|
9532
|
+
|
|
9533
|
+
&:focus {
|
|
9534
|
+
outline: none;
|
|
9535
|
+
box-shadow: 0 0 0 3px ${tokens.colors.primary}30;
|
|
9536
|
+
}
|
|
9537
|
+
|
|
9538
|
+
&::placeholder {
|
|
9539
|
+
color: ${tokens.colors.text.tertiary};
|
|
9540
|
+
}
|
|
9541
|
+
`;
|
|
9542
|
+
var StrategyHint = styled47.div`
|
|
9543
|
+
display: flex;
|
|
9544
|
+
align-items: flex-start;
|
|
9545
|
+
gap: ${tokens.spacing.xs};
|
|
9546
|
+
padding: ${tokens.spacing.sm};
|
|
9547
|
+
background: ${tokens.colors.surface.overlay};
|
|
9548
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9549
|
+
margin-bottom: ${tokens.spacing.sm};
|
|
9550
|
+
`;
|
|
9551
|
+
var StrategyIconImg = styled47.img`
|
|
9552
|
+
width: 16px;
|
|
9553
|
+
height: 16px;
|
|
9554
|
+
opacity: 0.8;
|
|
9555
|
+
`;
|
|
9556
|
+
var StrategyText = styled47.span`
|
|
9557
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9558
|
+
color: ${tokens.colors.text.secondary};
|
|
9559
|
+
font-style: italic;
|
|
9560
|
+
`;
|
|
9561
|
+
var ProgressBarContainer2 = styled47.div`
|
|
9562
|
+
margin-top: ${tokens.spacing.xs};
|
|
9563
|
+
`;
|
|
9564
|
+
var ProgressBarTrack2 = styled47.div`
|
|
9565
|
+
width: 100%;
|
|
9566
|
+
height: 4px;
|
|
9567
|
+
background: ${tokens.colors.border.default};
|
|
9568
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9569
|
+
overflow: hidden;
|
|
9570
|
+
`;
|
|
9571
|
+
var ProgressBarFill3 = styled47.div`
|
|
9572
|
+
width: ${({ $percentage }) => $percentage}%;
|
|
9573
|
+
height: 100%;
|
|
9574
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9575
|
+
transition: width 0.3s ease, background-color 0.3s ease;
|
|
9576
|
+
background: ${({ $color }) => $color};
|
|
9577
|
+
`;
|
|
9578
|
+
var SkeletonContent2 = styled47.div`
|
|
9579
|
+
display: flex;
|
|
9580
|
+
flex-direction: column;
|
|
9581
|
+
gap: ${tokens.spacing.sm};
|
|
9582
|
+
padding: ${tokens.spacing.md};
|
|
9583
|
+
`;
|
|
9584
|
+
var SkeletonLine2 = styled47.div`
|
|
9585
|
+
height: 16px;
|
|
9586
|
+
width: ${({ $width }) => $width};
|
|
9587
|
+
background: linear-gradient(
|
|
9588
|
+
90deg,
|
|
9589
|
+
${tokens.colors.border.default} 0%,
|
|
9590
|
+
rgba(255, 255, 255, 0.1) 50%,
|
|
9591
|
+
${tokens.colors.border.default} 100%
|
|
9592
|
+
);
|
|
9593
|
+
background-size: 200% 100%;
|
|
9594
|
+
border-radius: ${tokens.borderRadius.sm};
|
|
9595
|
+
animation: ${shimmer2} 1.5s ease-in-out infinite;
|
|
9596
|
+
`;
|
|
9597
|
+
var RedditEngagementControls = ({
|
|
9598
|
+
opportunity,
|
|
9599
|
+
currentReply,
|
|
9600
|
+
isEditing,
|
|
9601
|
+
onToggleEdit,
|
|
9602
|
+
onSaveEdit,
|
|
9603
|
+
onCancelEdit,
|
|
9604
|
+
onCopyAndOpen,
|
|
9605
|
+
onMarkPosted,
|
|
9606
|
+
onSkip,
|
|
9607
|
+
onRegenerate,
|
|
9608
|
+
isLoading = false,
|
|
9609
|
+
justCopied = false
|
|
9610
|
+
}) => {
|
|
9611
|
+
const [showRegenerateInput, setShowRegenerateInput] = useState(false);
|
|
9612
|
+
const [regenerateFeedback, setRegenerateFeedback] = useState("");
|
|
9613
|
+
const [copiedFeedback, setCopiedFeedback] = useState(false);
|
|
9614
|
+
const handleCopyAndOpen = useCallback(async () => {
|
|
9615
|
+
try {
|
|
9616
|
+
await navigator.clipboard.writeText(currentReply);
|
|
9617
|
+
setCopiedFeedback(true);
|
|
9618
|
+
setTimeout(() => setCopiedFeedback(false), 2e3);
|
|
9619
|
+
onCopyAndOpen();
|
|
9620
|
+
} catch (err) {
|
|
9621
|
+
console.error("Failed to copy:", err);
|
|
9622
|
+
}
|
|
9623
|
+
}, [currentReply, onCopyAndOpen]);
|
|
9624
|
+
const handleSkip = useCallback(() => {
|
|
9625
|
+
onSkip();
|
|
9626
|
+
}, [onSkip]);
|
|
9627
|
+
const handleRegenerate = useCallback(() => {
|
|
9628
|
+
if (showRegenerateInput) {
|
|
9629
|
+
onRegenerate(regenerateFeedback || void 0);
|
|
9630
|
+
setRegenerateFeedback("");
|
|
9631
|
+
setShowRegenerateInput(false);
|
|
9632
|
+
} else {
|
|
9633
|
+
setShowRegenerateInput(true);
|
|
9634
|
+
}
|
|
9635
|
+
}, [showRegenerateInput, regenerateFeedback, onRegenerate]);
|
|
9636
|
+
const isPending = opportunity.status === "pending" || opportunity.status === "editing";
|
|
9637
|
+
return /* @__PURE__ */ jsxs(ControlsContainer, { "data-testid": "reddit-engagement-controls", children: [
|
|
9638
|
+
isEditing && /* @__PURE__ */ jsxs(EditModeSection, { children: [
|
|
9639
|
+
/* @__PURE__ */ jsxs(EditModeLabel, { children: [
|
|
9640
|
+
/* @__PURE__ */ jsx(Icon3, { src: "/assets/icon-set/Icon-edit-fill.svg", alt: "" }),
|
|
9641
|
+
" Editing Mode"
|
|
9642
|
+
] }),
|
|
9643
|
+
/* @__PURE__ */ jsxs(EditModeActions, { children: [
|
|
9644
|
+
/* @__PURE__ */ jsx(ActionButton6, { $variant: "cancel", onClick: onCancelEdit, disabled: isLoading, children: "Cancel" }),
|
|
9645
|
+
/* @__PURE__ */ jsx(
|
|
9646
|
+
ActionButton6,
|
|
9647
|
+
{
|
|
9648
|
+
$variant: "save",
|
|
9649
|
+
onClick: () => onSaveEdit(currentReply),
|
|
9650
|
+
disabled: isLoading,
|
|
9651
|
+
children: "Save Changes"
|
|
9652
|
+
}
|
|
9653
|
+
)
|
|
9654
|
+
] })
|
|
9655
|
+
] }),
|
|
9656
|
+
showRegenerateInput && !isEditing && /* @__PURE__ */ jsxs(InputSection, { children: [
|
|
9657
|
+
/* @__PURE__ */ jsx(InputLabel, { children: "What should be different?" }),
|
|
9658
|
+
/* @__PURE__ */ jsxs(InputRow, { children: [
|
|
9659
|
+
/* @__PURE__ */ jsx(
|
|
9660
|
+
TextInput,
|
|
9661
|
+
{
|
|
9662
|
+
value: regenerateFeedback,
|
|
9663
|
+
onChange: (e) => setRegenerateFeedback(e.target.value),
|
|
9664
|
+
placeholder: "Make it more casual, add specific example...",
|
|
9665
|
+
onKeyDown: (e) => e.key === "Enter" && handleRegenerate()
|
|
9666
|
+
}
|
|
9667
|
+
),
|
|
9668
|
+
/* @__PURE__ */ jsx(SmallButton, { onClick: () => setShowRegenerateInput(false), children: "\xD7" })
|
|
9669
|
+
] })
|
|
9670
|
+
] }),
|
|
9671
|
+
!isEditing && isPending && /* @__PURE__ */ jsxs(MainActions, { children: [
|
|
9672
|
+
/* @__PURE__ */ jsxs(SecondaryActions, { children: [
|
|
9673
|
+
/* @__PURE__ */ jsxs(
|
|
9674
|
+
ActionButton6,
|
|
9675
|
+
{
|
|
9676
|
+
$variant: "tertiary",
|
|
9677
|
+
onClick: handleRegenerate,
|
|
9678
|
+
disabled: isLoading,
|
|
9679
|
+
title: "Generate a new reply",
|
|
9680
|
+
children: [
|
|
9681
|
+
/* @__PURE__ */ jsx(Icon3, { src: "/assets/icon-set/Icon-refresh-fill.svg", alt: "" }),
|
|
9682
|
+
showRegenerateInput ? "Confirm" : "Regenerate"
|
|
9683
|
+
]
|
|
9684
|
+
}
|
|
9685
|
+
),
|
|
9686
|
+
/* @__PURE__ */ jsxs(
|
|
9687
|
+
ActionButton6,
|
|
9688
|
+
{
|
|
9689
|
+
$variant: "edit",
|
|
9690
|
+
onClick: onToggleEdit,
|
|
9691
|
+
disabled: isLoading,
|
|
9692
|
+
title: "Edit the draft reply",
|
|
9693
|
+
children: [
|
|
9694
|
+
/* @__PURE__ */ jsx(Icon3, { src: "/assets/icon-set/Icon-edit-fill.svg", alt: "" }),
|
|
9695
|
+
"Edit"
|
|
9696
|
+
]
|
|
9697
|
+
}
|
|
9698
|
+
),
|
|
9699
|
+
/* @__PURE__ */ jsxs(
|
|
9700
|
+
ActionButton6,
|
|
9701
|
+
{
|
|
9702
|
+
$variant: "skip",
|
|
9703
|
+
onClick: handleSkip,
|
|
9704
|
+
disabled: isLoading,
|
|
9705
|
+
title: "Skip this opportunity",
|
|
9706
|
+
children: [
|
|
9707
|
+
/* @__PURE__ */ jsx(Icon3, { src: "/assets/icon-set/Icon-skip-forward-fill.svg", alt: "" }),
|
|
9708
|
+
"Skip"
|
|
9709
|
+
]
|
|
9710
|
+
}
|
|
9711
|
+
)
|
|
9712
|
+
] }),
|
|
9713
|
+
/* @__PURE__ */ jsxs(PrimaryActions, { children: [
|
|
9714
|
+
/* @__PURE__ */ jsxs(
|
|
9715
|
+
ActionButton6,
|
|
9716
|
+
{
|
|
9717
|
+
$variant: "primary",
|
|
9718
|
+
onClick: handleCopyAndOpen,
|
|
9719
|
+
disabled: isLoading,
|
|
9720
|
+
$pulse: !justCopied && !copiedFeedback,
|
|
9721
|
+
title: "Copy reply and open post in new tab",
|
|
9722
|
+
children: [
|
|
9723
|
+
copiedFeedback ? /* @__PURE__ */ jsx(Icon3, { src: "/assets/icon-set/Icon-check-fill.svg", alt: "" }) : /* @__PURE__ */ jsx(Icon3, { src: "/assets/icon-set/Icon-clipboard-fill.svg", alt: "" }),
|
|
9724
|
+
copiedFeedback ? "Copied!" : "Copy & Open"
|
|
9725
|
+
]
|
|
9726
|
+
}
|
|
9727
|
+
),
|
|
9728
|
+
/* @__PURE__ */ jsxs(
|
|
9729
|
+
ActionButton6,
|
|
9730
|
+
{
|
|
9731
|
+
$variant: "success",
|
|
9732
|
+
onClick: onMarkPosted,
|
|
9733
|
+
disabled: isLoading || !justCopied && !copiedFeedback,
|
|
9734
|
+
title: "Mark as posted after you've replied",
|
|
9735
|
+
children: [
|
|
9736
|
+
/* @__PURE__ */ jsx(Icon3, { src: "/assets/icon-set/Icon-check-fill.svg", alt: "" }),
|
|
9737
|
+
"Mark as Posted"
|
|
9738
|
+
]
|
|
9739
|
+
}
|
|
9740
|
+
)
|
|
9741
|
+
] })
|
|
9742
|
+
] })
|
|
9743
|
+
] });
|
|
9744
|
+
};
|
|
9745
|
+
RedditEngagementControls.displayName = "RedditEngagementControls";
|
|
9746
|
+
var pulse4 = keyframes`
|
|
9747
|
+
0%, 100% {
|
|
9748
|
+
box-shadow: 0 0 0 0 ${tokens.colors.primary}66;
|
|
9749
|
+
}
|
|
9750
|
+
50% {
|
|
9751
|
+
box-shadow: 0 0 0 8px ${tokens.colors.primary}00;
|
|
9752
|
+
}
|
|
9753
|
+
`;
|
|
9754
|
+
var ControlsContainer = styled47.div`
|
|
9755
|
+
display: flex;
|
|
9756
|
+
flex-direction: column;
|
|
9757
|
+
gap: ${tokens.spacing.md};
|
|
9758
|
+
padding: ${tokens.spacing.md};
|
|
9759
|
+
background: ${tokens.colors.background.dark};
|
|
9760
|
+
border-radius: ${tokens.borderRadius.lg};
|
|
9761
|
+
border: 1px solid ${tokens.colors.border.default};
|
|
9762
|
+
`;
|
|
9763
|
+
var EditModeSection = styled47.div`
|
|
9764
|
+
display: flex;
|
|
9765
|
+
justify-content: space-between;
|
|
9766
|
+
align-items: center;
|
|
9767
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9768
|
+
background: ${tokens.colors.status.editing}20;
|
|
9769
|
+
border: 1px solid ${tokens.colors.status.editing}40;
|
|
9770
|
+
border-radius: ${tokens.borderRadius.md};
|
|
9771
|
+
`;
|
|
9772
|
+
var EditModeLabel = styled47.span`
|
|
9773
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9774
|
+
font-weight: ${tokens.typography.fontWeight.medium};
|
|
9775
|
+
color: ${tokens.colors.status.editing};
|
|
9776
|
+
`;
|
|
9777
|
+
var EditModeActions = styled47.div`
|
|
9778
|
+
display: flex;
|
|
9779
|
+
gap: ${tokens.spacing.sm};
|
|
9780
|
+
`;
|
|
9781
|
+
var InputSection = styled47.div`
|
|
9782
|
+
display: flex;
|
|
9783
|
+
flex-direction: column;
|
|
9784
|
+
gap: ${tokens.spacing.xs};
|
|
9785
|
+
`;
|
|
9786
|
+
var InputLabel = styled47.label`
|
|
9787
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9788
|
+
color: ${tokens.colors.text.secondary};
|
|
9789
|
+
`;
|
|
9790
|
+
var InputRow = styled47.div`
|
|
9791
|
+
display: flex;
|
|
9792
|
+
gap: ${tokens.spacing.xs};
|
|
9793
|
+
flex-wrap: wrap;
|
|
9794
|
+
|
|
9795
|
+
@media (max-width: 480px) {
|
|
9796
|
+
flex-direction: column;
|
|
9797
|
+
}
|
|
9798
|
+
`;
|
|
9799
|
+
var TextInput = styled47.input`
|
|
9800
|
+
flex: 1;
|
|
9801
|
+
min-width: 0;
|
|
9802
|
+
padding: ${tokens.spacing.sm};
|
|
9803
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9804
|
+
color: ${tokens.colors.text.primary};
|
|
9805
|
+
background: ${tokens.colors.background.darker};
|
|
9806
|
+
border: 1px solid ${tokens.colors.border.default};
|
|
9807
|
+
border-radius: ${tokens.borderRadius.md};
|
|
9808
|
+
transition: border-color ${tokens.transitions.fast};
|
|
9809
|
+
|
|
9810
|
+
&:focus {
|
|
9811
|
+
outline: none;
|
|
9812
|
+
border-color: ${tokens.colors.primary};
|
|
9813
|
+
}
|
|
9814
|
+
|
|
9815
|
+
&::placeholder {
|
|
9816
|
+
color: ${tokens.colors.text.tertiary};
|
|
9817
|
+
}
|
|
9818
|
+
|
|
9819
|
+
@media (max-width: 480px) {
|
|
9820
|
+
width: 100%;
|
|
9821
|
+
}
|
|
9822
|
+
`;
|
|
9823
|
+
var SmallButton = styled47.button`
|
|
9824
|
+
padding: ${tokens.spacing.sm};
|
|
9825
|
+
font-size: ${tokens.typography.fontSize.base};
|
|
9826
|
+
color: ${tokens.colors.text.tertiary};
|
|
9827
|
+
background: transparent;
|
|
9828
|
+
border: none;
|
|
9829
|
+
border-radius: ${tokens.borderRadius.md};
|
|
9830
|
+
cursor: pointer;
|
|
9831
|
+
transition: all ${tokens.transitions.fast};
|
|
9832
|
+
|
|
9833
|
+
&:hover {
|
|
9834
|
+
color: ${tokens.colors.text.primary};
|
|
9835
|
+
background: ${tokens.colors.surface.overlay};
|
|
9836
|
+
}
|
|
9837
|
+
`;
|
|
9838
|
+
var MainActions = styled47.div`
|
|
9839
|
+
display: flex;
|
|
9840
|
+
flex-direction: column;
|
|
9841
|
+
gap: ${tokens.spacing.md};
|
|
9842
|
+
`;
|
|
9843
|
+
var SecondaryActions = styled47.div`
|
|
9844
|
+
display: flex;
|
|
9845
|
+
gap: ${tokens.spacing.sm};
|
|
9846
|
+
flex-wrap: wrap;
|
|
9847
|
+
|
|
9848
|
+
@media (max-width: 480px) {
|
|
9849
|
+
& > * {
|
|
9850
|
+
flex: 1 1 100%;
|
|
9851
|
+
}
|
|
9852
|
+
}
|
|
9853
|
+
`;
|
|
9854
|
+
var PrimaryActions = styled47.div`
|
|
9855
|
+
display: flex;
|
|
9856
|
+
gap: ${tokens.spacing.sm};
|
|
9857
|
+
flex-wrap: wrap;
|
|
9858
|
+
|
|
9859
|
+
@media (max-width: 480px) {
|
|
9860
|
+
& > * {
|
|
9861
|
+
flex: 1 1 100%;
|
|
9862
|
+
}
|
|
9863
|
+
}
|
|
9864
|
+
`;
|
|
9865
|
+
var Icon3 = styled47.img`
|
|
9866
|
+
width: 16px;
|
|
9867
|
+
height: 16px;
|
|
9868
|
+
vertical-align: middle;
|
|
9869
|
+
`;
|
|
9870
|
+
var ActionButton6 = styled47.button`
|
|
9871
|
+
display: flex;
|
|
9872
|
+
align-items: center;
|
|
9873
|
+
justify-content: center;
|
|
9874
|
+
gap: ${tokens.spacing.xs};
|
|
9875
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9876
|
+
border-radius: ${tokens.borderRadius.md};
|
|
9877
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
9878
|
+
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
9879
|
+
cursor: pointer;
|
|
9880
|
+
transition: all ${tokens.transitions.fast};
|
|
9881
|
+
border: none;
|
|
9882
|
+
white-space: nowrap;
|
|
9883
|
+
flex: 1;
|
|
9884
|
+
min-width: 100px;
|
|
9885
|
+
|
|
9886
|
+
&:disabled {
|
|
9887
|
+
opacity: 0.5;
|
|
9888
|
+
cursor: not-allowed;
|
|
9889
|
+
}
|
|
9890
|
+
|
|
9891
|
+
${({ $variant }) => {
|
|
9892
|
+
switch ($variant) {
|
|
9893
|
+
case "primary":
|
|
9894
|
+
return css`
|
|
9895
|
+
background: ${tokens.colors.primary};
|
|
9896
|
+
color: white;
|
|
9897
|
+
&:hover:not(:disabled) {
|
|
9898
|
+
opacity: 0.9;
|
|
9899
|
+
}
|
|
9900
|
+
${Icon3} {
|
|
9901
|
+
filter: brightness(0) saturate(100%) invert(100%);
|
|
9902
|
+
}
|
|
9903
|
+
`;
|
|
9904
|
+
case "success":
|
|
9905
|
+
return css`
|
|
9906
|
+
background: ${tokens.colors.success};
|
|
9907
|
+
color: white;
|
|
9908
|
+
&:hover:not(:disabled) {
|
|
9909
|
+
opacity: 0.9;
|
|
9910
|
+
}
|
|
9911
|
+
${Icon3} {
|
|
9912
|
+
filter: brightness(0) saturate(100%) invert(100%);
|
|
9913
|
+
}
|
|
9914
|
+
`;
|
|
9915
|
+
case "skip":
|
|
9916
|
+
return css`
|
|
9917
|
+
background: transparent;
|
|
9918
|
+
color: ${tokens.colors.text.secondary};
|
|
9919
|
+
border: 1px solid ${tokens.colors.border.default};
|
|
9920
|
+
&:hover:not(:disabled) {
|
|
9921
|
+
background: ${tokens.colors.surface.overlay};
|
|
9922
|
+
border-color: ${tokens.colors.border.hover};
|
|
9923
|
+
}
|
|
9924
|
+
`;
|
|
9925
|
+
case "edit":
|
|
9926
|
+
return css`
|
|
9927
|
+
background: ${tokens.colors.status.editing}20;
|
|
9928
|
+
color: ${tokens.colors.status.editing};
|
|
9929
|
+
border: 1px solid ${tokens.colors.status.editing}40;
|
|
9930
|
+
&:hover:not(:disabled) {
|
|
9931
|
+
background: ${tokens.colors.status.editing}30;
|
|
9932
|
+
}
|
|
9933
|
+
`;
|
|
9934
|
+
case "tertiary":
|
|
9935
|
+
return css`
|
|
9936
|
+
background: transparent;
|
|
9937
|
+
color: ${tokens.colors.accent};
|
|
9938
|
+
border: 1px solid ${tokens.colors.accent}40;
|
|
9939
|
+
&:hover:not(:disabled) {
|
|
9940
|
+
background: ${tokens.colors.accent}20;
|
|
9941
|
+
}
|
|
9942
|
+
`;
|
|
9943
|
+
case "cancel":
|
|
9944
|
+
return css`
|
|
9945
|
+
background: ${tokens.colors.error}15;
|
|
9946
|
+
color: ${tokens.colors.error};
|
|
9947
|
+
border: 1px solid ${tokens.colors.error}30;
|
|
9948
|
+
&:hover:not(:disabled) {
|
|
9949
|
+
background: ${tokens.colors.error}25;
|
|
9950
|
+
}
|
|
9951
|
+
`;
|
|
9952
|
+
case "save":
|
|
9953
|
+
return css`
|
|
9954
|
+
background: ${tokens.colors.success};
|
|
9955
|
+
color: white;
|
|
9956
|
+
&:hover:not(:disabled) {
|
|
9957
|
+
opacity: 0.9;
|
|
9958
|
+
}
|
|
9959
|
+
`;
|
|
9960
|
+
default:
|
|
9961
|
+
return "";
|
|
9962
|
+
}
|
|
9963
|
+
}}
|
|
9964
|
+
|
|
9965
|
+
${({ $pulse }) => $pulse && css`
|
|
9966
|
+
animation: ${pulse4} 2s ease-in-out infinite;
|
|
9967
|
+
`}
|
|
9968
|
+
`;
|
|
9969
|
+
function formatNumber2(num) {
|
|
9970
|
+
if (num >= 1e6) {
|
|
9971
|
+
return `${(num / 1e6).toFixed(1)}M`;
|
|
9972
|
+
}
|
|
9973
|
+
if (num >= 1e3) {
|
|
9974
|
+
return `${(num / 1e3).toFixed(1)}K`;
|
|
9975
|
+
}
|
|
9976
|
+
return num.toLocaleString();
|
|
9977
|
+
}
|
|
9978
|
+
function formatRelativeTime2(timestamp) {
|
|
9979
|
+
const now = /* @__PURE__ */ new Date();
|
|
9980
|
+
const then = new Date(timestamp);
|
|
9981
|
+
const diffMs = now.getTime() - then.getTime();
|
|
9982
|
+
const diffMins = Math.floor(diffMs / 6e4);
|
|
9983
|
+
const diffHours = Math.floor(diffMs / 36e5);
|
|
9984
|
+
const diffDays = Math.floor(diffMs / 864e5);
|
|
9985
|
+
if (diffMins < 1) return "Just now";
|
|
9986
|
+
if (diffMins < 60) return `${diffMins}m ago`;
|
|
9987
|
+
if (diffHours < 24) return `${diffHours}h ago`;
|
|
9988
|
+
return `${diffDays}d ago`;
|
|
9989
|
+
}
|
|
9990
|
+
function getUsageLevel(percentage) {
|
|
9991
|
+
if (percentage >= 90) return "critical";
|
|
9992
|
+
if (percentage >= 75) return "high";
|
|
9993
|
+
if (percentage >= 50) return "medium";
|
|
9994
|
+
return "low";
|
|
9995
|
+
}
|
|
9996
|
+
var usageLevelColors = {
|
|
9997
|
+
low: tokens.colors.success,
|
|
9998
|
+
medium: tokens.colors.warning,
|
|
9999
|
+
high: "#ff8c00",
|
|
10000
|
+
critical: tokens.colors.error
|
|
10001
|
+
};
|
|
10002
|
+
var typeIcons = {
|
|
10003
|
+
input: "\u2191",
|
|
10004
|
+
output: "\u2193",
|
|
10005
|
+
system: "\u2699"
|
|
10006
|
+
};
|
|
10007
|
+
var typeColors = {
|
|
10008
|
+
input: tokens.colors.info,
|
|
10009
|
+
output: tokens.colors.success,
|
|
10010
|
+
system: tokens.colors.text.tertiary
|
|
10011
|
+
};
|
|
10012
|
+
function TokenUsageCard({
|
|
10013
|
+
currentUsage,
|
|
10014
|
+
maxLimit,
|
|
10015
|
+
transactions,
|
|
10016
|
+
periodLabel,
|
|
10017
|
+
onViewAll,
|
|
10018
|
+
className
|
|
10019
|
+
}) {
|
|
10020
|
+
const percentage = useMemo(
|
|
10021
|
+
() => Math.min(currentUsage / maxLimit * 100, 100),
|
|
10022
|
+
[currentUsage, maxLimit]
|
|
10023
|
+
);
|
|
10024
|
+
const usageLevel = useMemo(() => getUsageLevel(percentage), [percentage]);
|
|
10025
|
+
return /* @__PURE__ */ jsxs(Card2, { className, "data-testid": "token-usage-card", children: [
|
|
10026
|
+
/* @__PURE__ */ jsxs(Header4, { children: [
|
|
10027
|
+
/* @__PURE__ */ jsx(Title2, { children: "Token Usage" }),
|
|
10028
|
+
/* @__PURE__ */ jsx(Period, { children: periodLabel })
|
|
10029
|
+
] }),
|
|
10030
|
+
/* @__PURE__ */ jsxs(UsageSection, { children: [
|
|
10031
|
+
/* @__PURE__ */ jsxs(UsageStats, { children: [
|
|
10032
|
+
/* @__PURE__ */ jsx(CurrentUsage, { children: formatNumber2(currentUsage) }),
|
|
10033
|
+
/* @__PURE__ */ jsx(UsageSeparator, { children: "/" }),
|
|
10034
|
+
/* @__PURE__ */ jsx(MaxUsage, { children: formatNumber2(maxLimit) })
|
|
10035
|
+
] }),
|
|
10036
|
+
/* @__PURE__ */ jsx(ProgressContainer, { children: /* @__PURE__ */ jsx(ProgressBar3, { $percentage: percentage, $level: usageLevel }) }),
|
|
10037
|
+
/* @__PURE__ */ jsxs(PercentageLabel, { $level: usageLevel, children: [
|
|
10038
|
+
percentage.toFixed(1),
|
|
10039
|
+
"% used"
|
|
10040
|
+
] })
|
|
10041
|
+
] }),
|
|
10042
|
+
transactions.length > 0 && /* @__PURE__ */ jsxs(TransactionsSection, { children: [
|
|
10043
|
+
/* @__PURE__ */ jsx(TransactionsHeader, { children: "Recent Activity" }),
|
|
10044
|
+
/* @__PURE__ */ jsx(TransactionsList, { children: transactions.slice(0, 5).map((transaction) => /* @__PURE__ */ jsxs(TransactionItem, { children: [
|
|
10045
|
+
/* @__PURE__ */ jsx(TransactionIcon, { $type: transaction.type, children: typeIcons[transaction.type] }),
|
|
10046
|
+
/* @__PURE__ */ jsxs(TransactionInfo, { children: [
|
|
10047
|
+
/* @__PURE__ */ jsx(TransactionDescription, { children: transaction.description }),
|
|
10048
|
+
/* @__PURE__ */ jsxs(TransactionMeta, { children: [
|
|
10049
|
+
transaction.source && /* @__PURE__ */ jsx("span", { children: transaction.source }),
|
|
10050
|
+
/* @__PURE__ */ jsx("span", { children: formatRelativeTime2(transaction.timestamp) })
|
|
10051
|
+
] })
|
|
10052
|
+
] }),
|
|
10053
|
+
/* @__PURE__ */ jsxs(TransactionTokens, { $type: transaction.type, children: [
|
|
10054
|
+
transaction.type === "output" ? "+" : "",
|
|
10055
|
+
formatNumber2(transaction.tokens)
|
|
10056
|
+
] })
|
|
10057
|
+
] }, transaction.id)) })
|
|
10058
|
+
] }),
|
|
10059
|
+
transactions.length === 0 && /* @__PURE__ */ jsx(EmptyState4, { children: "No recent activity" }),
|
|
10060
|
+
onViewAll && transactions.length > 0 && /* @__PURE__ */ jsx(ViewAllButton, { onClick: onViewAll, children: "View all activity" })
|
|
10061
|
+
] });
|
|
10062
|
+
}
|
|
10063
|
+
var Card2 = styled47.div`
|
|
10064
|
+
display: flex;
|
|
10065
|
+
flex-direction: column;
|
|
10066
|
+
background: ${tokens.colors.background.darker};
|
|
10067
|
+
border-radius: ${tokens.borderRadius.xl};
|
|
10068
|
+
border: 1px solid ${tokens.colors.border.default};
|
|
10069
|
+
overflow: hidden;
|
|
10070
|
+
`;
|
|
10071
|
+
var Header4 = styled47.div`
|
|
10072
|
+
display: flex;
|
|
10073
|
+
justify-content: space-between;
|
|
10074
|
+
align-items: center;
|
|
10075
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
10076
|
+
background: ${tokens.colors.background.darker};
|
|
10077
|
+
border-bottom: 1px solid ${tokens.colors.border.default};
|
|
10078
|
+
min-height: 48px;
|
|
10079
|
+
`;
|
|
10080
|
+
var Title2 = styled47.h3`
|
|
10081
|
+
margin: 0;
|
|
10082
|
+
font-size: ${tokens.typography.fontSize.lg};
|
|
10083
|
+
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
10084
|
+
font-family: ${tokens.typography.fontFamily.primary};
|
|
10085
|
+
color: ${tokens.colors.text.primary};
|
|
10086
|
+
`;
|
|
10087
|
+
var Period = styled47.span`
|
|
10088
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
10089
|
+
font-family: ${tokens.typography.fontFamily.primary};
|
|
10090
|
+
color: ${tokens.colors.text.secondary};
|
|
10091
|
+
`;
|
|
10092
|
+
var UsageSection = styled47.div`
|
|
10093
|
+
display: flex;
|
|
10094
|
+
flex-direction: column;
|
|
10095
|
+
gap: ${tokens.spacing.sm};
|
|
10096
|
+
padding: ${tokens.spacing.md};
|
|
10097
|
+
`;
|
|
10098
|
+
var UsageStats = styled47.div`
|
|
10099
|
+
display: flex;
|
|
10100
|
+
align-items: baseline;
|
|
10101
|
+
gap: ${tokens.spacing.xs};
|
|
10102
|
+
`;
|
|
10103
|
+
var CurrentUsage = styled47.span`
|
|
10104
|
+
font-size: ${tokens.typography.fontSize["2xl"]};
|
|
10105
|
+
font-weight: ${tokens.typography.fontWeight.bold};
|
|
10106
|
+
font-family: ${tokens.typography.fontFamily.primary};
|
|
10107
|
+
color: ${tokens.colors.text.primary};
|
|
10108
|
+
`;
|
|
10109
|
+
var UsageSeparator = styled47.span`
|
|
9125
10110
|
font-size: ${tokens.typography.fontSize.lg};
|
|
9126
10111
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9127
10112
|
color: ${tokens.colors.text.tertiary};
|
|
9128
10113
|
`;
|
|
9129
|
-
var MaxUsage =
|
|
10114
|
+
var MaxUsage = styled47.span`
|
|
9130
10115
|
font-size: ${tokens.typography.fontSize.lg};
|
|
9131
10116
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9132
10117
|
color: ${tokens.colors.text.secondary};
|
|
9133
10118
|
`;
|
|
9134
|
-
var ProgressContainer =
|
|
10119
|
+
var ProgressContainer = styled47.div`
|
|
9135
10120
|
width: 100%;
|
|
9136
10121
|
height: 8px;
|
|
9137
10122
|
background: ${tokens.colors.background.light};
|
|
9138
10123
|
border-radius: ${tokens.borderRadius.full};
|
|
9139
10124
|
overflow: hidden;
|
|
9140
10125
|
`;
|
|
9141
|
-
var ProgressBar3 =
|
|
10126
|
+
var ProgressBar3 = styled47.div`
|
|
9142
10127
|
height: 100%;
|
|
9143
10128
|
width: ${({ $percentage }) => $percentage}%;
|
|
9144
10129
|
background: ${({ $level }) => usageLevelColors[$level]};
|
|
9145
10130
|
border-radius: ${tokens.borderRadius.full};
|
|
9146
10131
|
transition: width ${tokens.transitions.normal}, background ${tokens.transitions.normal};
|
|
9147
10132
|
`;
|
|
9148
|
-
var PercentageLabel =
|
|
10133
|
+
var PercentageLabel = styled47.span`
|
|
9149
10134
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9150
10135
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9151
10136
|
color: ${({ $level }) => usageLevelColors[$level]};
|
|
9152
10137
|
`;
|
|
9153
|
-
var TransactionsSection =
|
|
10138
|
+
var TransactionsSection = styled47.div`
|
|
9154
10139
|
display: flex;
|
|
9155
10140
|
flex-direction: column;
|
|
9156
10141
|
gap: ${tokens.spacing.sm};
|
|
@@ -9158,19 +10143,19 @@ var TransactionsSection = styled11.div`
|
|
|
9158
10143
|
padding-top: ${tokens.spacing.sm};
|
|
9159
10144
|
border-top: 1px solid ${tokens.colors.border.subtle};
|
|
9160
10145
|
`;
|
|
9161
|
-
var TransactionsHeader =
|
|
10146
|
+
var TransactionsHeader = styled47.h4`
|
|
9162
10147
|
margin: 0;
|
|
9163
10148
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9164
10149
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
9165
10150
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9166
10151
|
color: ${tokens.colors.text.secondary};
|
|
9167
10152
|
`;
|
|
9168
|
-
var TransactionsList =
|
|
10153
|
+
var TransactionsList = styled47.div`
|
|
9169
10154
|
display: flex;
|
|
9170
10155
|
flex-direction: column;
|
|
9171
10156
|
gap: ${tokens.spacing.xs};
|
|
9172
10157
|
`;
|
|
9173
|
-
var TransactionItem =
|
|
10158
|
+
var TransactionItem = styled47.div`
|
|
9174
10159
|
display: flex;
|
|
9175
10160
|
align-items: center;
|
|
9176
10161
|
gap: ${tokens.spacing.sm};
|
|
@@ -9178,7 +10163,7 @@ var TransactionItem = styled11.div`
|
|
|
9178
10163
|
background: ${tokens.colors.background.darker};
|
|
9179
10164
|
border-radius: ${tokens.borderRadius.sm};
|
|
9180
10165
|
`;
|
|
9181
|
-
var TransactionIcon =
|
|
10166
|
+
var TransactionIcon = styled47.span`
|
|
9182
10167
|
width: 24px;
|
|
9183
10168
|
height: 24px;
|
|
9184
10169
|
display: flex;
|
|
@@ -9189,11 +10174,11 @@ var TransactionIcon = styled11.span`
|
|
|
9189
10174
|
background: ${tokens.colors.background.light};
|
|
9190
10175
|
border-radius: ${tokens.borderRadius.sm};
|
|
9191
10176
|
`;
|
|
9192
|
-
var TransactionInfo =
|
|
10177
|
+
var TransactionInfo = styled47.div`
|
|
9193
10178
|
flex: 1;
|
|
9194
10179
|
min-width: 0;
|
|
9195
10180
|
`;
|
|
9196
|
-
var TransactionDescription =
|
|
10181
|
+
var TransactionDescription = styled47.div`
|
|
9197
10182
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9198
10183
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9199
10184
|
color: ${tokens.colors.text.primary};
|
|
@@ -9201,27 +10186,27 @@ var TransactionDescription = styled11.div`
|
|
|
9201
10186
|
text-overflow: ellipsis;
|
|
9202
10187
|
white-space: nowrap;
|
|
9203
10188
|
`;
|
|
9204
|
-
var TransactionMeta =
|
|
10189
|
+
var TransactionMeta = styled47.div`
|
|
9205
10190
|
display: flex;
|
|
9206
10191
|
gap: ${tokens.spacing.sm};
|
|
9207
10192
|
font-size: ${tokens.typography.fontSize.xs};
|
|
9208
10193
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9209
10194
|
color: ${tokens.colors.text.tertiary};
|
|
9210
10195
|
`;
|
|
9211
|
-
var TransactionTokens =
|
|
10196
|
+
var TransactionTokens = styled47.span`
|
|
9212
10197
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9213
10198
|
font-weight: ${tokens.typography.fontWeight.medium};
|
|
9214
10199
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9215
10200
|
color: ${({ $type }) => typeColors[$type]};
|
|
9216
10201
|
`;
|
|
9217
|
-
var EmptyState4 =
|
|
10202
|
+
var EmptyState4 = styled47.div`
|
|
9218
10203
|
text-align: center;
|
|
9219
10204
|
padding: ${tokens.spacing.lg} ${tokens.spacing.md};
|
|
9220
10205
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9221
10206
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9222
10207
|
color: ${tokens.colors.text.tertiary};
|
|
9223
10208
|
`;
|
|
9224
|
-
var ViewAllButton =
|
|
10209
|
+
var ViewAllButton = styled47.button`
|
|
9225
10210
|
margin: 0 ${tokens.spacing.md} ${tokens.spacing.md};
|
|
9226
10211
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9227
10212
|
background: transparent;
|
|
@@ -9304,7 +10289,7 @@ var WorkflowCard = ({
|
|
|
9304
10289
|
);
|
|
9305
10290
|
};
|
|
9306
10291
|
WorkflowCard.displayName = "WorkflowCard";
|
|
9307
|
-
var Card3 =
|
|
10292
|
+
var Card3 = styled47.button`
|
|
9308
10293
|
display: grid;
|
|
9309
10294
|
gap: ${tokens.spacing.sm};
|
|
9310
10295
|
padding: ${tokens.spacing.md};
|
|
@@ -9336,7 +10321,7 @@ var Card3 = styled11.button`
|
|
|
9336
10321
|
cursor: not-allowed;
|
|
9337
10322
|
}
|
|
9338
10323
|
`;
|
|
9339
|
-
var WorkflowName2 =
|
|
10324
|
+
var WorkflowName2 = styled47.h3`
|
|
9340
10325
|
margin: 0;
|
|
9341
10326
|
font-size: ${tokens.typography.fontSize.base};
|
|
9342
10327
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
@@ -9347,7 +10332,7 @@ var WorkflowName2 = styled11.h3`
|
|
|
9347
10332
|
white-space: nowrap;
|
|
9348
10333
|
min-width: 0;
|
|
9349
10334
|
`;
|
|
9350
|
-
var Description2 =
|
|
10335
|
+
var Description2 = styled47.p`
|
|
9351
10336
|
margin: 0;
|
|
9352
10337
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9353
10338
|
color: ${tokens.colors.text.tertiary};
|
|
@@ -9359,7 +10344,7 @@ var Description2 = styled11.p`
|
|
|
9359
10344
|
word-break: break-word;
|
|
9360
10345
|
min-width: 0;
|
|
9361
10346
|
`;
|
|
9362
|
-
var CardFooter =
|
|
10347
|
+
var CardFooter = styled47.div`
|
|
9363
10348
|
display: flex;
|
|
9364
10349
|
flex-wrap: wrap;
|
|
9365
10350
|
align-items: center;
|
|
@@ -9368,13 +10353,13 @@ var CardFooter = styled11.div`
|
|
|
9368
10353
|
border-top: 1px solid ${tokens.colors.border.subtle};
|
|
9369
10354
|
width: 100%;
|
|
9370
10355
|
`;
|
|
9371
|
-
var IntegrationList =
|
|
10356
|
+
var IntegrationList = styled47.div`
|
|
9372
10357
|
display: flex;
|
|
9373
10358
|
align-items: center;
|
|
9374
10359
|
gap: ${tokens.spacing.xs};
|
|
9375
10360
|
flex-shrink: 0;
|
|
9376
10361
|
`;
|
|
9377
|
-
var IntegrationIconWrapper =
|
|
10362
|
+
var IntegrationIconWrapper = styled47.span`
|
|
9378
10363
|
display: flex;
|
|
9379
10364
|
align-items: center;
|
|
9380
10365
|
justify-content: center;
|
|
@@ -9396,12 +10381,12 @@ var IntegrationIconWrapper = styled11.span`
|
|
|
9396
10381
|
}
|
|
9397
10382
|
`}
|
|
9398
10383
|
`;
|
|
9399
|
-
var IntegrationIcon =
|
|
10384
|
+
var IntegrationIcon = styled47.img`
|
|
9400
10385
|
width: 16px;
|
|
9401
10386
|
height: 16px;
|
|
9402
10387
|
object-fit: contain;
|
|
9403
10388
|
`;
|
|
9404
|
-
var Indicators =
|
|
10389
|
+
var Indicators = styled47.div`
|
|
9405
10390
|
display: flex;
|
|
9406
10391
|
align-items: center;
|
|
9407
10392
|
flex-wrap: wrap;
|
|
@@ -9409,7 +10394,7 @@ var Indicators = styled11.div`
|
|
|
9409
10394
|
margin-left: auto;
|
|
9410
10395
|
min-width: 0;
|
|
9411
10396
|
`;
|
|
9412
|
-
var IndicatorPill =
|
|
10397
|
+
var IndicatorPill = styled47.span`
|
|
9413
10398
|
display: inline-flex;
|
|
9414
10399
|
align-items: center;
|
|
9415
10400
|
gap: ${tokens.spacing.xs};
|
|
@@ -9418,14 +10403,14 @@ var IndicatorPill = styled11.span`
|
|
|
9418
10403
|
background: ${({ $variant }) => $variant === "warning" ? `${tokens.colors.warning}15` : `${tokens.colors.info}15`};
|
|
9419
10404
|
border: 1px solid ${({ $variant }) => $variant === "warning" ? `${tokens.colors.warning}30` : `${tokens.colors.info}30`};
|
|
9420
10405
|
`;
|
|
9421
|
-
var IndicatorDot =
|
|
10406
|
+
var IndicatorDot = styled47.span`
|
|
9422
10407
|
width: 6px;
|
|
9423
10408
|
height: 6px;
|
|
9424
10409
|
border-radius: ${tokens.borderRadius.full};
|
|
9425
10410
|
background: ${({ $variant }) => $variant === "warning" ? tokens.colors.warning : tokens.colors.info};
|
|
9426
10411
|
flex-shrink: 0;
|
|
9427
10412
|
`;
|
|
9428
|
-
var IndicatorText =
|
|
10413
|
+
var IndicatorText = styled47.span`
|
|
9429
10414
|
font-size: ${tokens.typography.fontSize.xs};
|
|
9430
10415
|
font-weight: ${tokens.typography.fontWeight.medium};
|
|
9431
10416
|
color: ${tokens.colors.text.secondary};
|
|
@@ -9436,7 +10421,7 @@ var severityColors = {
|
|
|
9436
10421
|
warning: tokens.colors.warning,
|
|
9437
10422
|
info: tokens.colors.info
|
|
9438
10423
|
};
|
|
9439
|
-
var AlertContainer =
|
|
10424
|
+
var AlertContainer = styled47.div`
|
|
9440
10425
|
display: flex;
|
|
9441
10426
|
flex-direction: column;
|
|
9442
10427
|
background-color: ${(props) => {
|
|
@@ -9454,7 +10439,7 @@ var AlertContainer = styled11.div`
|
|
|
9454
10439
|
max-width: ${(props) => props.variant === "inline" ? "600px" : "100%"};
|
|
9455
10440
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9456
10441
|
`;
|
|
9457
|
-
var ModalOverlay =
|
|
10442
|
+
var ModalOverlay = styled47.div`
|
|
9458
10443
|
position: fixed;
|
|
9459
10444
|
top: 0;
|
|
9460
10445
|
left: 0;
|
|
@@ -9467,53 +10452,53 @@ var ModalOverlay = styled11.div`
|
|
|
9467
10452
|
z-index: ${tokens.zIndex.modal};
|
|
9468
10453
|
padding: ${tokens.spacing.lg};
|
|
9469
10454
|
`;
|
|
9470
|
-
var ModalContent =
|
|
10455
|
+
var ModalContent = styled47.div`
|
|
9471
10456
|
background-color: ${tokens.colors.background.dark};
|
|
9472
10457
|
border-radius: ${tokens.borderRadius.lg};
|
|
9473
10458
|
max-width: 500px;
|
|
9474
10459
|
width: 100%;
|
|
9475
10460
|
box-shadow: ${tokens.shadows.xl};
|
|
9476
10461
|
`;
|
|
9477
|
-
var Header5 =
|
|
10462
|
+
var Header5 = styled47.div`
|
|
9478
10463
|
display: flex;
|
|
9479
10464
|
align-items: flex-start;
|
|
9480
10465
|
gap: ${tokens.spacing.md};
|
|
9481
10466
|
`;
|
|
9482
|
-
var IconContainer2 =
|
|
10467
|
+
var IconContainer2 = styled47.div`
|
|
9483
10468
|
flex-shrink: 0;
|
|
9484
10469
|
width: 24px;
|
|
9485
10470
|
height: 24px;
|
|
9486
10471
|
color: ${(props) => severityColors[props.severity]};
|
|
9487
10472
|
`;
|
|
9488
|
-
var Content5 =
|
|
10473
|
+
var Content5 = styled47.div`
|
|
9489
10474
|
flex: 1;
|
|
9490
10475
|
display: flex;
|
|
9491
10476
|
flex-direction: column;
|
|
9492
10477
|
gap: ${tokens.spacing.sm};
|
|
9493
10478
|
`;
|
|
9494
|
-
var Title3 =
|
|
10479
|
+
var Title3 = styled47.div`
|
|
9495
10480
|
font-size: ${tokens.typography.fontSize.base};
|
|
9496
10481
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
9497
10482
|
color: ${tokens.colors.text.primary};
|
|
9498
10483
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
9499
10484
|
`;
|
|
9500
|
-
var ErrorMessage2 =
|
|
10485
|
+
var ErrorMessage2 = styled47.div`
|
|
9501
10486
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9502
10487
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
9503
10488
|
color: ${tokens.colors.text.secondary};
|
|
9504
10489
|
`;
|
|
9505
|
-
var ErrorCode =
|
|
10490
|
+
var ErrorCode = styled47.div`
|
|
9506
10491
|
font-size: ${tokens.typography.fontSize.xs};
|
|
9507
10492
|
color: ${tokens.colors.text.secondary};
|
|
9508
10493
|
font-family: ${tokens.typography.fontFamily.monospace};
|
|
9509
10494
|
margin-top: ${tokens.spacing.xs};
|
|
9510
10495
|
`;
|
|
9511
|
-
var Timestamp =
|
|
10496
|
+
var Timestamp = styled47.div`
|
|
9512
10497
|
font-size: ${tokens.typography.fontSize.xs};
|
|
9513
10498
|
color: ${tokens.colors.text.tertiary};
|
|
9514
10499
|
margin-top: ${tokens.spacing.xs};
|
|
9515
10500
|
`;
|
|
9516
|
-
var Details =
|
|
10501
|
+
var Details = styled47.details`
|
|
9517
10502
|
margin-top: ${tokens.spacing.md};
|
|
9518
10503
|
cursor: pointer;
|
|
9519
10504
|
|
|
@@ -9536,12 +10521,12 @@ var Details = styled11.details`
|
|
|
9536
10521
|
}
|
|
9537
10522
|
}
|
|
9538
10523
|
`;
|
|
9539
|
-
var DetailsIcon =
|
|
10524
|
+
var DetailsIcon = styled47.span`
|
|
9540
10525
|
display: inline-block;
|
|
9541
10526
|
transition: transform ${tokens.transitions.fast};
|
|
9542
10527
|
transform: ${(props) => props.open ? "rotate(90deg)" : "rotate(0deg)"};
|
|
9543
10528
|
`;
|
|
9544
|
-
var StackTrace =
|
|
10529
|
+
var StackTrace = styled47.pre`
|
|
9545
10530
|
margin: ${tokens.spacing.sm} 0 0 0;
|
|
9546
10531
|
padding: ${tokens.spacing.md};
|
|
9547
10532
|
background-color: ${tokens.colors.surface.subtle};
|
|
@@ -9554,12 +10539,12 @@ var StackTrace = styled11.pre`
|
|
|
9554
10539
|
word-break: break-word;
|
|
9555
10540
|
overflow-x: auto;
|
|
9556
10541
|
`;
|
|
9557
|
-
var Actions4 =
|
|
10542
|
+
var Actions4 = styled47.div`
|
|
9558
10543
|
display: flex;
|
|
9559
10544
|
gap: ${tokens.spacing.sm};
|
|
9560
10545
|
margin-top: ${tokens.spacing.md};
|
|
9561
10546
|
`;
|
|
9562
|
-
var Button4 =
|
|
10547
|
+
var Button4 = styled47.button`
|
|
9563
10548
|
display: inline-flex;
|
|
9564
10549
|
align-items: center;
|
|
9565
10550
|
gap: ${tokens.spacing.xs};
|
|
@@ -9588,7 +10573,7 @@ var Button4 = styled11.button`
|
|
|
9588
10573
|
cursor: not-allowed;
|
|
9589
10574
|
}
|
|
9590
10575
|
`;
|
|
9591
|
-
var CloseButton2 =
|
|
10576
|
+
var CloseButton2 = styled47.button`
|
|
9592
10577
|
position: absolute;
|
|
9593
10578
|
top: ${tokens.spacing.md};
|
|
9594
10579
|
right: ${tokens.spacing.md};
|
|
@@ -9762,14 +10747,14 @@ var statusColors2 = {
|
|
|
9762
10747
|
failed: tokens.colors.status.failed,
|
|
9763
10748
|
timeout: tokens.colors.status.timeout
|
|
9764
10749
|
};
|
|
9765
|
-
var Container15 =
|
|
10750
|
+
var Container15 = styled47.div`
|
|
9766
10751
|
display: flex;
|
|
9767
10752
|
flex-direction: column;
|
|
9768
10753
|
gap: ${tokens.spacing.sm};
|
|
9769
10754
|
width: 100%;
|
|
9770
10755
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9771
10756
|
`;
|
|
9772
|
-
var ProgressMessage =
|
|
10757
|
+
var ProgressMessage = styled47.div`
|
|
9773
10758
|
font-size: ${(props) => {
|
|
9774
10759
|
switch (props.size) {
|
|
9775
10760
|
case "sm":
|
|
@@ -9784,13 +10769,13 @@ var ProgressMessage = styled11.div`
|
|
|
9784
10769
|
color: ${tokens.colors.text.secondary};
|
|
9785
10770
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
9786
10771
|
`;
|
|
9787
|
-
var ProgressInfo =
|
|
10772
|
+
var ProgressInfo = styled47.div`
|
|
9788
10773
|
display: flex;
|
|
9789
10774
|
justify-content: space-between;
|
|
9790
10775
|
align-items: center;
|
|
9791
10776
|
margin-bottom: ${tokens.spacing.xs};
|
|
9792
10777
|
`;
|
|
9793
|
-
var PercentageText =
|
|
10778
|
+
var PercentageText = styled47.span`
|
|
9794
10779
|
font-size: ${(props) => {
|
|
9795
10780
|
switch (props.size) {
|
|
9796
10781
|
case "sm":
|
|
@@ -9805,7 +10790,7 @@ var PercentageText = styled11.span`
|
|
|
9805
10790
|
font-weight: ${tokens.typography.fontWeight.medium};
|
|
9806
10791
|
color: ${tokens.colors.text.primary};
|
|
9807
10792
|
`;
|
|
9808
|
-
var LinearTrack =
|
|
10793
|
+
var LinearTrack = styled47.div`
|
|
9809
10794
|
position: relative;
|
|
9810
10795
|
width: 100%;
|
|
9811
10796
|
height: ${(props) => {
|
|
@@ -9823,7 +10808,7 @@ var LinearTrack = styled11.div`
|
|
|
9823
10808
|
border-radius: ${tokens.borderRadius.full};
|
|
9824
10809
|
overflow: hidden;
|
|
9825
10810
|
`;
|
|
9826
|
-
var LinearFill =
|
|
10811
|
+
var LinearFill = styled47.div`
|
|
9827
10812
|
position: absolute;
|
|
9828
10813
|
top: 0;
|
|
9829
10814
|
left: 0;
|
|
@@ -9834,12 +10819,12 @@ var LinearFill = styled11.div`
|
|
|
9834
10819
|
transition: ${(props) => props.animated && !props.indeterminate ? `width ${tokens.transitions.normal}` : "none"};
|
|
9835
10820
|
animation: ${(props) => props.indeterminate ? indeterminate : "none"} 1.5s ease-in-out infinite;
|
|
9836
10821
|
`;
|
|
9837
|
-
var CircularContainer =
|
|
10822
|
+
var CircularContainer = styled47.div`
|
|
9838
10823
|
display: flex;
|
|
9839
10824
|
align-items: center;
|
|
9840
10825
|
justify-content: center;
|
|
9841
10826
|
`;
|
|
9842
|
-
var CircularSvg =
|
|
10827
|
+
var CircularSvg = styled47.svg`
|
|
9843
10828
|
width: ${(props) => {
|
|
9844
10829
|
switch (props.size) {
|
|
9845
10830
|
case "sm":
|
|
@@ -9875,12 +10860,12 @@ var getCircularSize = (size) => {
|
|
|
9875
10860
|
return { radius: 26, strokeWidth: 4 };
|
|
9876
10861
|
}
|
|
9877
10862
|
};
|
|
9878
|
-
var CircularTrack =
|
|
10863
|
+
var CircularTrack = styled47.circle`
|
|
9879
10864
|
fill: none;
|
|
9880
10865
|
stroke: ${tokens.colors.border.default};
|
|
9881
10866
|
stroke-width: ${(props) => getCircularSize(props.size).strokeWidth};
|
|
9882
10867
|
`;
|
|
9883
|
-
var CircularFill =
|
|
10868
|
+
var CircularFill = styled47.circle`
|
|
9884
10869
|
fill: none;
|
|
9885
10870
|
stroke: ${(props) => statusColors2[props.status]};
|
|
9886
10871
|
stroke-width: ${(props) => getCircularSize(props.size).strokeWidth};
|
|
@@ -9898,7 +10883,7 @@ var CircularFill = styled11.circle`
|
|
|
9898
10883
|
transition: ${(props) => props.animated && !props.indeterminate ? `stroke-dashoffset ${tokens.transitions.normal}` : "none"};
|
|
9899
10884
|
animation: ${(props) => props.indeterminate ? rotate : "none"} 1.5s linear infinite;
|
|
9900
10885
|
`;
|
|
9901
|
-
var CircularPercentage =
|
|
10886
|
+
var CircularPercentage = styled47.text`
|
|
9902
10887
|
fill: ${tokens.colors.text.primary};
|
|
9903
10888
|
font-size: ${(props) => {
|
|
9904
10889
|
switch (props.size) {
|
|
@@ -9999,7 +10984,7 @@ var WorkflowProgressBar = ({
|
|
|
9999
10984
|
] });
|
|
10000
10985
|
};
|
|
10001
10986
|
WorkflowProgressBar.displayName = "WorkflowProgressBar";
|
|
10002
|
-
var Panel =
|
|
10987
|
+
var Panel = styled47.div`
|
|
10003
10988
|
display: flex;
|
|
10004
10989
|
flex-direction: column;
|
|
10005
10990
|
background-color: ${tokens.colors.surface.overlay};
|
|
@@ -10008,7 +10993,7 @@ var Panel = styled11.div`
|
|
|
10008
10993
|
overflow: hidden;
|
|
10009
10994
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
10010
10995
|
`;
|
|
10011
|
-
var Header6 =
|
|
10996
|
+
var Header6 = styled47.div`
|
|
10012
10997
|
display: flex;
|
|
10013
10998
|
justify-content: space-between;
|
|
10014
10999
|
align-items: center;
|
|
@@ -10022,7 +11007,7 @@ var Header6 = styled11.div`
|
|
|
10022
11007
|
background-color: ${(props) => props.collapsible ? tokens.colors.surface.overlay : tokens.colors.surface.subtle};
|
|
10023
11008
|
}
|
|
10024
11009
|
`;
|
|
10025
|
-
var Title4 =
|
|
11010
|
+
var Title4 = styled47.div`
|
|
10026
11011
|
font-size: ${tokens.typography.fontSize.sm};
|
|
10027
11012
|
font-weight: ${tokens.typography.fontWeight.medium};
|
|
10028
11013
|
color: ${tokens.colors.text.primary};
|
|
@@ -10030,11 +11015,11 @@ var Title4 = styled11.div`
|
|
|
10030
11015
|
align-items: center;
|
|
10031
11016
|
gap: ${tokens.spacing.sm};
|
|
10032
11017
|
`;
|
|
10033
|
-
var Actions5 =
|
|
11018
|
+
var Actions5 = styled47.div`
|
|
10034
11019
|
display: flex;
|
|
10035
11020
|
gap: ${tokens.spacing.sm};
|
|
10036
11021
|
`;
|
|
10037
|
-
var IconButton =
|
|
11022
|
+
var IconButton = styled47.button`
|
|
10038
11023
|
display: flex;
|
|
10039
11024
|
align-items: center;
|
|
10040
11025
|
justify-content: center;
|
|
@@ -10063,7 +11048,7 @@ var IconButton = styled11.button`
|
|
|
10063
11048
|
height: 16px;
|
|
10064
11049
|
}
|
|
10065
11050
|
`;
|
|
10066
|
-
var CollapseIcon2 =
|
|
11051
|
+
var CollapseIcon2 = styled47.div`
|
|
10067
11052
|
display: flex;
|
|
10068
11053
|
align-items: center;
|
|
10069
11054
|
justify-content: center;
|
|
@@ -10076,7 +11061,7 @@ var CollapseIcon2 = styled11.div`
|
|
|
10076
11061
|
height: 16px;
|
|
10077
11062
|
}
|
|
10078
11063
|
`;
|
|
10079
|
-
var Content6 =
|
|
11064
|
+
var Content6 = styled47.div`
|
|
10080
11065
|
padding: ${tokens.spacing.md};
|
|
10081
11066
|
max-height: ${(props) => {
|
|
10082
11067
|
if (!props.expanded) return "0";
|
|
@@ -10104,7 +11089,7 @@ var Content6 = styled11.div`
|
|
|
10104
11089
|
background: ${tokens.colors.scrollbar.thumbHover};
|
|
10105
11090
|
}
|
|
10106
11091
|
`;
|
|
10107
|
-
var JsonView =
|
|
11092
|
+
var JsonView = styled47.pre`
|
|
10108
11093
|
margin: 0;
|
|
10109
11094
|
font-family: ${tokens.typography.fontFamily.monospace};
|
|
10110
11095
|
font-size: ${tokens.typography.fontSize.sm};
|
|
@@ -10113,12 +11098,12 @@ var JsonView = styled11.pre`
|
|
|
10113
11098
|
white-space: pre-wrap;
|
|
10114
11099
|
word-break: break-word;
|
|
10115
11100
|
`;
|
|
10116
|
-
var FormattedView =
|
|
11101
|
+
var FormattedView = styled47.div`
|
|
10117
11102
|
font-size: ${tokens.typography.fontSize.sm};
|
|
10118
11103
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
10119
11104
|
color: ${tokens.colors.text.secondary};
|
|
10120
11105
|
`;
|
|
10121
|
-
var TableView =
|
|
11106
|
+
var TableView = styled47.table`
|
|
10122
11107
|
width: 100%;
|
|
10123
11108
|
border-collapse: collapse;
|
|
10124
11109
|
font-size: ${tokens.typography.fontSize.sm};
|
|
@@ -10142,7 +11127,7 @@ var TableView = styled11.table`
|
|
|
10142
11127
|
border-bottom: none;
|
|
10143
11128
|
}
|
|
10144
11129
|
`;
|
|
10145
|
-
var EmptyState5 =
|
|
11130
|
+
var EmptyState5 = styled47.div`
|
|
10146
11131
|
padding: ${tokens.spacing.xl};
|
|
10147
11132
|
text-align: center;
|
|
10148
11133
|
color: ${tokens.colors.text.tertiary};
|
|
@@ -10223,7 +11208,7 @@ var spin = keyframes`
|
|
|
10223
11208
|
transform: rotate(360deg);
|
|
10224
11209
|
}
|
|
10225
11210
|
`;
|
|
10226
|
-
var
|
|
11211
|
+
var pulse5 = keyframes`
|
|
10227
11212
|
0%, 100% {
|
|
10228
11213
|
opacity: 1;
|
|
10229
11214
|
}
|
|
@@ -10238,7 +11223,7 @@ var statusColors3 = {
|
|
|
10238
11223
|
failed: tokens.colors.status.failed,
|
|
10239
11224
|
timeout: tokens.colors.status.timeout
|
|
10240
11225
|
};
|
|
10241
|
-
var BadgeContainer2 =
|
|
11226
|
+
var BadgeContainer2 = styled47.div`
|
|
10242
11227
|
display: inline-flex;
|
|
10243
11228
|
align-items: center;
|
|
10244
11229
|
gap: ${(props) => {
|
|
@@ -10292,7 +11277,7 @@ var BadgeContainer2 = styled11.div`
|
|
|
10292
11277
|
color: ${(props) => statusColors3[props.$status]};
|
|
10293
11278
|
line-height: 1.4;
|
|
10294
11279
|
`;
|
|
10295
|
-
var IconContainer3 =
|
|
11280
|
+
var IconContainer3 = styled47.div`
|
|
10296
11281
|
display: flex;
|
|
10297
11282
|
align-items: center;
|
|
10298
11283
|
justify-content: center;
|
|
@@ -10301,7 +11286,7 @@ var IconContainer3 = styled11.div`
|
|
|
10301
11286
|
animation: ${(props) => {
|
|
10302
11287
|
if (props.$animated) {
|
|
10303
11288
|
if (props.$status === "running") return spin;
|
|
10304
|
-
if (props.$status === "pending") return
|
|
11289
|
+
if (props.$status === "pending") return pulse5;
|
|
10305
11290
|
}
|
|
10306
11291
|
return "none";
|
|
10307
11292
|
}}
|
|
@@ -10371,7 +11356,7 @@ var TimeoutIcon = () => /* @__PURE__ */ jsx(
|
|
|
10371
11356
|
children: /* @__PURE__ */ jsx("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" })
|
|
10372
11357
|
}
|
|
10373
11358
|
);
|
|
10374
|
-
var Label2 =
|
|
11359
|
+
var Label2 = styled47.span`
|
|
10375
11360
|
white-space: nowrap;
|
|
10376
11361
|
`;
|
|
10377
11362
|
var getDefaultLabel = (status) => {
|
|
@@ -10429,6 +11414,6 @@ var WorkflowStatusBadge = ({
|
|
|
10429
11414
|
};
|
|
10430
11415
|
WorkflowStatusBadge.displayName = "WorkflowStatusBadge";
|
|
10431
11416
|
|
|
10432
|
-
export { ActionButtons, Actions, AgentState, AssistantMessage, AssistantThinking, Button2 as Button, CATEGORY_CONFIGS, CategoryNav, ChatInput, ConnectionStatusBadge, UserMessage2 as CopilotUserMessage, DarkNotificationCard, FacebookIcon, FileAttachment, Footer, GlobalStyle, GmailIcon, Header, Icon, IconNames, Input2 as Input, InstagramIcon, IntegrationCard, Layout, LinkedInIcon, Messages, MessagesList, MessagesListContainer, MessagesListContent, NavHorizontal, NavVertical, NotificationCard, PLATFORM_CONFIGS, PaneMenus, PaneSectionHeader, PlatformCarousel, PlatformGrid, PostApprovalControls, PostPreviewCard, PostizIcon, RedditIcon, Response, SecretInput, ServiceIcon, SlackIcon, SocialMediaCanvas, StreamErrorMessage, StreamStatusIndicator, StreamingText2 as StreamingText, Suggestions, TelegramIcon, TokenUsageCard, UserMessage, WhatsAppIcon, Window, WorkflowCard, WorkflowErrorAlert, WorkflowProgressBar, WorkflowResultPanel, WorkflowStatusBadge, WorkflowStatusCard, XIcon, YouTubeIcon, categorizeProgress, darkTheme, getCategoryColor, getCategoryIcon, getCharacterCount, getCharacterLimitColor, getCharacterLimitPercentage, isWithinCharLimit, lightTheme, normalizePlatform, tokens };
|
|
11417
|
+
export { ActionButtons, Actions, AgentState, AssistantMessage, AssistantThinking, Button2 as Button, CATEGORY_CONFIGS, CategoryNav, ChatInput, ConnectionStatusBadge, UserMessage2 as CopilotUserMessage, DarkNotificationCard, FacebookIcon, FileAttachment, Footer, GlobalStyle, GmailIcon, Header, Icon, IconNames, Input2 as Input, InstagramIcon, IntegrationCard, Layout, LinkedInIcon, Messages, MessagesList, MessagesListContainer, MessagesListContent, NavHorizontal, NavVertical, NotificationCard, PLATFORM_CONFIGS, PaneMenus, PaneSectionHeader, PlatformCarousel, PlatformGrid, PostApprovalControls, PostPreviewCard, PostizIcon, RedditEngagementControls, RedditIcon, RedditOpportunityCard, Response, SecretInput, ServiceIcon, SlackIcon, SocialMediaCanvas, StreamErrorMessage, StreamStatusIndicator, StreamingText2 as StreamingText, Suggestions, TelegramIcon, TokenUsageCard, UserMessage, WhatsAppIcon, Window, WorkflowCard, WorkflowErrorAlert, WorkflowProgressBar, WorkflowResultPanel, WorkflowStatusBadge, WorkflowStatusCard, XIcon, YouTubeIcon, categorizeProgress, darkTheme, getCategoryColor, getCategoryIcon, getCharacterCount, getCharacterLimitColor, getCharacterLimitPercentage, isWithinCharLimit, lightTheme, normalizePlatform, tokens };
|
|
10433
11418
|
//# sourceMappingURL=index.js.map
|
|
10434
11419
|
//# sourceMappingURL=index.js.map
|