chordia-ui 3.3.8 → 3.3.9
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/AgentLiftCard.cjs.js.map +1 -1
- package/dist/AgentLiftCard.es.js +5 -3
- package/dist/AgentLiftCard.es.js.map +1 -1
- package/dist/CustomFilterChips.cjs.js.map +1 -1
- package/dist/CustomFilterChips.es.js +2 -1
- package/dist/CustomFilterChips.es.js.map +1 -1
- package/dist/FileUploadingState.cjs.js.map +1 -1
- package/dist/FileUploadingState.es.js +16 -10
- package/dist/FileUploadingState.es.js.map +1 -1
- package/dist/IntegrationCard.cjs.js.map +1 -1
- package/dist/IntegrationCard.es.js +3 -3
- package/dist/IntegrationCard.es.js.map +1 -1
- package/dist/SectionLabel.cjs.js.map +1 -1
- package/dist/SectionLabel.es.js.map +1 -1
- package/dist/SmallButton.cjs.js.map +1 -1
- package/dist/SmallButton.es.js +16 -16
- package/dist/SmallButton.es.js.map +1 -1
- package/dist/SummarySection.cjs.js.map +1 -1
- package/dist/SummarySection.es.js +11 -9
- package/dist/SummarySection.es.js.map +1 -1
- package/dist/TextInput.cjs.js.map +1 -1
- package/dist/TextInput.es.js.map +1 -1
- package/dist/Timeline.cjs.js.map +1 -1
- package/dist/Timeline.es.js +14 -8
- package/dist/Timeline.es.js.map +1 -1
- package/dist/Tooltip.cjs.js +1 -1
- package/dist/Tooltip.cjs.js.map +1 -1
- package/dist/Tooltip.es.js +31 -20
- package/dist/Tooltip.es.js.map +1 -1
- package/dist/TourGuideTooltip.cjs.js.map +1 -1
- package/dist/TourGuideTooltip.es.js +2 -1
- package/dist/TourGuideTooltip.es.js.map +1 -1
- package/dist/UpdatedInteractionRecording.cjs.js +1 -1
- package/dist/UpdatedInteractionRecording.cjs.js.map +1 -1
- package/dist/UpdatedInteractionRecording.es.js +79 -97
- package/dist/UpdatedInteractionRecording.es.js.map +1 -1
- package/dist/UploadInteraction.cjs.js.map +1 -1
- package/dist/UploadInteraction.es.js.map +1 -1
- package/dist/colors.cjs.js +2 -0
- package/dist/colors.cjs.js.map +1 -0
- package/dist/colors.es.js +2 -0
- package/dist/colors.es.js.map +1 -0
- package/dist/components/UpdatedInteractionDetails.cjs.js +10 -1
- package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.es.js +1531 -9
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/dist/components/chat.cjs.js +30 -1
- package/dist/components/chat.cjs.js.map +1 -1
- package/dist/components/chat.es.js +2222 -7
- package/dist/components/chat.es.js.map +1 -1
- package/dist/components/common.cjs.js +1 -1
- package/dist/components/common.es.js +32 -25
- package/dist/components/common.es.js.map +1 -1
- package/dist/components/data.cjs.js +1 -1
- package/dist/components/data.cjs.js.map +1 -1
- package/dist/components/data.es.js +1033 -4
- package/dist/components/data.es.js.map +1 -1
- package/dist/components/layout.cjs.js +3 -1
- package/dist/components/layout.cjs.js.map +1 -1
- package/dist/components/layout.es.js +1533 -8
- package/dist/components/layout.es.js.map +1 -1
- package/dist/components/login.cjs.js +1 -1
- package/dist/components/login.es.js +6 -2
- package/dist/components/login.es.js.map +1 -1
- package/dist/components/media.cjs.js +1 -1
- package/dist/components/media.cjs.js.map +1 -1
- package/dist/components/media.es.js +220 -6
- package/dist/components/media.es.js.map +1 -1
- package/dist/components/models.cjs.js +1 -1
- package/dist/components/models.cjs.js.map +1 -1
- package/dist/components/models.es.js +91 -2
- package/dist/components/models.es.js.map +1 -1
- package/dist/components/navigation.cjs.js +1 -1
- package/dist/components/navigation.cjs.js.map +1 -1
- package/dist/components/navigation.es.js +766 -7
- package/dist/components/navigation.es.js.map +1 -1
- package/dist/components/notifications.cjs.js +1 -1
- package/dist/components/notifications.cjs.js.map +1 -1
- package/dist/components/notifications.es.js +368 -3
- package/dist/components/notifications.es.js.map +1 -1
- package/dist/components/onboarding.cjs.js +1 -1
- package/dist/components/onboarding.cjs.js.map +1 -1
- package/dist/components/onboarding.es.js +985 -7
- package/dist/components/onboarding.es.js.map +1 -1
- package/dist/components/primitives.cjs.js +1 -1
- package/dist/components/primitives.cjs.js.map +1 -1
- package/dist/components/primitives.es.js +635 -25
- package/dist/components/primitives.es.js.map +1 -1
- package/dist/debugger-wc.cjs.js +4 -4
- package/dist/debugger-wc.cjs.js.map +1 -1
- package/dist/debugger-wc.es.js +15 -11
- package/dist/debugger-wc.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs2.js +2 -49
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs3.js +50 -0
- package/dist/index.cjs3.js.map +1 -0
- package/dist/index.es.js +104 -99
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +2632 -1776
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es3.js +1944 -0
- package/dist/index.es3.js.map +1 -0
- package/dist/pages/interactionDetails.cjs.js +1 -1
- package/dist/pages/interactionDetails.cjs.js.map +1 -1
- package/dist/pages/interactionDetails.es.js +70 -47
- package/dist/pages/interactionDetails.es.js.map +1 -1
- package/dist/sortable.esm.cjs.js +1 -1
- package/dist/sortable.esm.cjs.js.map +1 -1
- package/dist/sortable.esm.es.js +55 -53
- package/dist/sortable.esm.es.js.map +1 -1
- package/dist/{chordia-ui.css → style.css} +1 -1
- package/package.json +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +318 -77
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionRecording.jsx +7 -17
- package/dist/ChartRenderer.cjs.js +0 -31
- package/dist/ChartRenderer.cjs.js.map +0 -1
- package/dist/ChartRenderer.es.js +0 -2210
- package/dist/ChartRenderer.es.js.map +0 -1
- package/dist/GettingStarted.cjs.js +0 -2
- package/dist/GettingStarted.cjs.js.map +0 -1
- package/dist/GettingStarted.es.js +0 -983
- package/dist/GettingStarted.es.js.map +0 -1
- package/dist/InlineConfirm.cjs.js +0 -2
- package/dist/InlineConfirm.cjs.js.map +0 -1
- package/dist/InlineConfirm.es.js +0 -618
- package/dist/InlineConfirm.es.js.map +0 -1
- package/dist/InteractionSummaryCard.cjs.js +0 -2
- package/dist/InteractionSummaryCard.cjs.js.map +0 -1
- package/dist/InteractionSummaryCard.es.js +0 -216
- package/dist/InteractionSummaryCard.es.js.map +0 -1
- package/dist/LoginPage.cjs.js +0 -3
- package/dist/LoginPage.cjs.js.map +0 -1
- package/dist/LoginPage.es.js +0 -2618
- package/dist/LoginPage.es.js.map +0 -1
- package/dist/NavigationBar.cjs.js +0 -2
- package/dist/NavigationBar.cjs.js.map +0 -1
- package/dist/NavigationBar.es.js +0 -762
- package/dist/NavigationBar.es.js.map +0 -1
- package/dist/NotificationPanel.cjs.js +0 -2
- package/dist/NotificationPanel.cjs.js.map +0 -1
- package/dist/NotificationPanel.es.js +0 -371
- package/dist/NotificationPanel.es.js.map +0 -1
- package/dist/OverlayPanel.cjs.js +0 -2
- package/dist/OverlayPanel.cjs.js.map +0 -1
- package/dist/OverlayPanel.es.js +0 -93
- package/dist/OverlayPanel.es.js.map +0 -1
- package/dist/SplitPane.cjs.js +0 -4
- package/dist/SplitPane.cjs.js.map +0 -1
- package/dist/SplitPane.es.js +0 -1531
- package/dist/SplitPane.es.js.map +0 -1
- package/dist/SummaryStatsPanel.cjs.js +0 -2
- package/dist/SummaryStatsPanel.cjs.js.map +0 -1
- package/dist/SummaryStatsPanel.es.js +0 -1027
- package/dist/SummaryStatsPanel.es.js.map +0 -1
- package/dist/UpdatedInteractionDetails.cjs.js +0 -11
- package/dist/UpdatedInteractionDetails.cjs.js.map +0 -1
- package/dist/UpdatedInteractionDetails.es.js +0 -1310
- package/dist/UpdatedInteractionDetails.es.js.map +0 -1
|
@@ -1,11 +1,1536 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useRef as F, useCallback as H, useLayoutEffect as ee, useEffect as X } from "react";
|
|
3
|
+
import { CheckCircle2 as E, X as j, Upload as te, Sparkles as N, Link as Q, FolderOpen as re, Users as ne, BookOpen as oe, Settings as ie, ChevronRight as P, Circle as ae, Mail as le, Lock as se, EyeOff as de, Eye as ce, ArrowRight as pe } from "lucide-react";
|
|
4
|
+
import { I as Ce } from "../IntegrationCard.es.js";
|
|
5
|
+
function fe({
|
|
6
|
+
onUploadCall: v,
|
|
7
|
+
onConnectSource: h,
|
|
8
|
+
onUseSample: p,
|
|
9
|
+
showExamples: l = !1
|
|
10
|
+
}) {
|
|
11
|
+
const [f, C] = x(null), [a, m] = x(null), [u, k] = x(null), [d, r] = x(null), b = F(null), z = [
|
|
12
|
+
{ id: "five9", name: "Five9", status: "available", description: "Cloud contact center platform" },
|
|
13
|
+
{ id: "twilio", name: "Twilio Flex", status: "available", description: "Programmable contact center" },
|
|
14
|
+
{ id: "genesys", name: "Genesys Cloud", status: "available", description: "All-in-one cloud contact center" },
|
|
15
|
+
{ id: "zoom", name: "Zoom Phone", status: "coming-soon", description: "Cloud phone system" }
|
|
16
|
+
], y = [
|
|
17
|
+
{
|
|
18
|
+
id: "retail-support",
|
|
19
|
+
name: "Retail Customer Support",
|
|
20
|
+
description: "Sample interactions from retail customer service team",
|
|
21
|
+
interactions: 24,
|
|
22
|
+
dateRange: "Last 30 days"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "healthcare-billing",
|
|
26
|
+
name: "Healthcare Billing Inquiries",
|
|
27
|
+
description: "Patient billing and insurance verification calls",
|
|
28
|
+
interactions: 18,
|
|
29
|
+
dateRange: "Last 2 weeks"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "financial-services",
|
|
33
|
+
name: "Financial Services Compliance",
|
|
34
|
+
description: "Banking and financial advisory interactions",
|
|
35
|
+
interactions: 32,
|
|
36
|
+
dateRange: "Last 45 days"
|
|
37
|
+
}
|
|
38
|
+
], M = (o) => {
|
|
39
|
+
var g;
|
|
40
|
+
const n = (g = o.target.files) == null ? void 0 : g[0];
|
|
41
|
+
if (n) {
|
|
42
|
+
const i = n.type.startsWith("audio/"), I = n.type.startsWith("video/");
|
|
43
|
+
i || I ? (m({
|
|
44
|
+
name: n.name,
|
|
45
|
+
type: n.type,
|
|
46
|
+
size: n.size,
|
|
47
|
+
lastModified: new Date(n.lastModified)
|
|
48
|
+
}), v ? v(n) : console.log("File uploaded:", n.name, n.type, `(${(n.size / 1024 / 1024).toFixed(2)} MB)`)) : alert("Please select an audio or video file.");
|
|
49
|
+
}
|
|
50
|
+
b.current && (b.current.value = "");
|
|
51
|
+
}, R = (o) => {
|
|
52
|
+
const n = z.find((g) => g.id === o);
|
|
53
|
+
n && n.status === "available" && (k(n), h ? h(n) : console.log("Connected to:", n.name));
|
|
54
|
+
}, W = (o) => {
|
|
55
|
+
const n = y.find((g) => g.id === o);
|
|
56
|
+
n && (r(n), p ? p(n) : console.log("Selected project:", n.name));
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ t(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
style: {
|
|
62
|
+
minHeight: "100vh",
|
|
63
|
+
background: "var(--surface-warm)",
|
|
64
|
+
display: "flex",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
justifyContent: "center",
|
|
67
|
+
padding: "32px"
|
|
68
|
+
},
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
"input",
|
|
72
|
+
{
|
|
73
|
+
ref: b,
|
|
74
|
+
type: "file",
|
|
75
|
+
accept: "audio/*,video/*",
|
|
76
|
+
onChange: M,
|
|
77
|
+
style: { display: "none" }
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ t("div", { style: { maxWidth: "680px", width: "100%" }, children: [
|
|
81
|
+
/* @__PURE__ */ t("div", { style: { textAlign: "center", marginBottom: "48px" }, children: [
|
|
82
|
+
/* @__PURE__ */ e(
|
|
83
|
+
"h1",
|
|
84
|
+
{
|
|
85
|
+
style: {
|
|
86
|
+
fontSize: "32px",
|
|
87
|
+
fontWeight: 760,
|
|
88
|
+
letterSpacing: "-0.02em",
|
|
89
|
+
color: "rgba(30, 33, 37, 0.92)",
|
|
90
|
+
marginBottom: "12px",
|
|
91
|
+
lineHeight: 1.2
|
|
92
|
+
},
|
|
93
|
+
children: "Experience Compass with one interaction"
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ e(
|
|
97
|
+
"p",
|
|
98
|
+
{
|
|
99
|
+
style: {
|
|
100
|
+
fontSize: "15px",
|
|
101
|
+
color: "rgba(30, 33, 37, 0.65)",
|
|
102
|
+
lineHeight: 1.5,
|
|
103
|
+
maxWidth: "520px",
|
|
104
|
+
margin: "0 auto"
|
|
105
|
+
},
|
|
106
|
+
children: "Compass surfaces evidence, signals, and actionable insights from customer interactions. Start by exploring what it reveals."
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] }),
|
|
110
|
+
/* @__PURE__ */ e(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
style: {
|
|
114
|
+
display: "flex",
|
|
115
|
+
flexDirection: "column",
|
|
116
|
+
gap: "16px"
|
|
117
|
+
},
|
|
118
|
+
children: [
|
|
119
|
+
{
|
|
120
|
+
id: "upload",
|
|
121
|
+
icon: te,
|
|
122
|
+
title: "Upload an interaction",
|
|
123
|
+
description: "Drop an audio or video recording to see what Compass surfaces",
|
|
124
|
+
recommended: !1,
|
|
125
|
+
onClick: () => {
|
|
126
|
+
b.current && b.current.click();
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "sample",
|
|
131
|
+
icon: N,
|
|
132
|
+
title: "Explore a demonstration project",
|
|
133
|
+
description: "See how Chordia Compass surfaces insights from real interaction data",
|
|
134
|
+
recommended: !0,
|
|
135
|
+
onClick: () => {
|
|
136
|
+
l && !d || p && p(d || { id: "default", name: "Demo Project" });
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
id: "connect",
|
|
141
|
+
icon: Q,
|
|
142
|
+
title: "Connect a data source",
|
|
143
|
+
description: "Link your existing system to automatically analyze interactions",
|
|
144
|
+
recommended: !1,
|
|
145
|
+
onClick: () => {
|
|
146
|
+
l && !u || h && h(u || { id: "default", name: "Data Source" });
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
].map((o) => {
|
|
150
|
+
const n = o.icon, g = f === o.id;
|
|
151
|
+
return /* @__PURE__ */ t(
|
|
152
|
+
"button",
|
|
153
|
+
{
|
|
154
|
+
type: "button",
|
|
155
|
+
onClick: o.onClick,
|
|
156
|
+
onMouseEnter: () => C(o.id),
|
|
157
|
+
onMouseLeave: () => C(null),
|
|
158
|
+
style: {
|
|
159
|
+
position: "relative",
|
|
160
|
+
width: "100%",
|
|
161
|
+
padding: "24px 28px",
|
|
162
|
+
background: g ? "rgba(255, 255, 255, 0.95)" : "rgba(255, 255, 255, 0.85)",
|
|
163
|
+
border: o.recommended ? "2px solid rgba(184, 156, 106, 0.35)" : g ? "1px solid rgba(52, 58, 64, 0.20)" : "1px solid rgba(52, 58, 64, 0.12)",
|
|
164
|
+
borderRadius: "16px",
|
|
165
|
+
cursor: "pointer",
|
|
166
|
+
textAlign: "left",
|
|
167
|
+
transition: "all 0.2s ease",
|
|
168
|
+
transform: g ? "translateY(-2px)" : "translateY(0)",
|
|
169
|
+
boxShadow: g ? "0 12px 28px rgba(30, 33, 37, 0.12)" : "0 4px 12px rgba(30, 33, 37, 0.06)"
|
|
170
|
+
},
|
|
171
|
+
children: [
|
|
172
|
+
o.recommended && /* @__PURE__ */ e(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
style: {
|
|
176
|
+
position: "absolute",
|
|
177
|
+
top: "16px",
|
|
178
|
+
right: "20px",
|
|
179
|
+
fontSize: "10px",
|
|
180
|
+
fontWeight: 650,
|
|
181
|
+
letterSpacing: "0.06em",
|
|
182
|
+
textTransform: "uppercase",
|
|
183
|
+
color: "rgba(184, 156, 106, 0.75)",
|
|
184
|
+
background: "rgba(184, 156, 106, 0.12)",
|
|
185
|
+
padding: "4px 8px",
|
|
186
|
+
borderRadius: "6px",
|
|
187
|
+
border: "1px solid rgba(184, 156, 106, 0.2)"
|
|
188
|
+
},
|
|
189
|
+
children: "Recommended"
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
/* @__PURE__ */ t(
|
|
193
|
+
"div",
|
|
194
|
+
{
|
|
195
|
+
style: {
|
|
196
|
+
display: "flex",
|
|
197
|
+
alignItems: "flex-start",
|
|
198
|
+
gap: "18px"
|
|
199
|
+
},
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ e(
|
|
202
|
+
"div",
|
|
203
|
+
{
|
|
204
|
+
style: {
|
|
205
|
+
width: "48px",
|
|
206
|
+
height: "48px",
|
|
207
|
+
borderRadius: "12px",
|
|
208
|
+
background: o.recommended ? "rgba(184, 156, 106, 0.12)" : "rgba(231, 212, 162, 0.20)",
|
|
209
|
+
border: o.recommended ? "1px solid rgba(184, 156, 106, 0.25)" : "1px solid rgba(231, 212, 162, 0.35)",
|
|
210
|
+
display: "flex",
|
|
211
|
+
alignItems: "center",
|
|
212
|
+
justifyContent: "center",
|
|
213
|
+
flexShrink: 0
|
|
214
|
+
},
|
|
215
|
+
children: /* @__PURE__ */ e(
|
|
216
|
+
n,
|
|
217
|
+
{
|
|
218
|
+
size: 22,
|
|
219
|
+
style: {
|
|
220
|
+
color: o.recommended ? "rgba(184, 156, 106, 0.75)" : "rgba(30, 33, 37, 0.52)"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
)
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
/* @__PURE__ */ t("div", { style: { flex: 1, paddingTop: "2px" }, children: [
|
|
227
|
+
/* @__PURE__ */ e(
|
|
228
|
+
"div",
|
|
229
|
+
{
|
|
230
|
+
style: {
|
|
231
|
+
fontSize: "17px",
|
|
232
|
+
fontWeight: 680,
|
|
233
|
+
letterSpacing: "-0.01em",
|
|
234
|
+
color: "rgba(30, 33, 37, 0.92)",
|
|
235
|
+
marginBottom: "6px",
|
|
236
|
+
lineHeight: 1.3
|
|
237
|
+
},
|
|
238
|
+
children: o.title
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
/* @__PURE__ */ e(
|
|
242
|
+
"div",
|
|
243
|
+
{
|
|
244
|
+
style: {
|
|
245
|
+
fontSize: "13.5px",
|
|
246
|
+
color: "rgba(30, 33, 37, 0.62)",
|
|
247
|
+
lineHeight: 1.5
|
|
248
|
+
},
|
|
249
|
+
children: o.description
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
] })
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
)
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
o.id
|
|
259
|
+
);
|
|
260
|
+
})
|
|
261
|
+
}
|
|
262
|
+
),
|
|
263
|
+
/* @__PURE__ */ e(
|
|
264
|
+
"div",
|
|
265
|
+
{
|
|
266
|
+
style: {
|
|
267
|
+
marginTop: "32px",
|
|
268
|
+
textAlign: "center",
|
|
269
|
+
fontSize: "12px",
|
|
270
|
+
color: "rgba(30, 33, 37, 0.52)",
|
|
271
|
+
lineHeight: 1.5
|
|
272
|
+
},
|
|
273
|
+
children: "Your workspace has been created automatically. You can configure settings and add teammates later."
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
l && /* @__PURE__ */ t("div", { style: { marginTop: "48px", paddingTop: "32px", borderTop: "1px solid rgba(52, 58, 64, 0.12)" }, children: [
|
|
277
|
+
/* @__PURE__ */ e(
|
|
278
|
+
"h2",
|
|
279
|
+
{
|
|
280
|
+
style: {
|
|
281
|
+
fontSize: "20px",
|
|
282
|
+
fontWeight: 680,
|
|
283
|
+
letterSpacing: "-0.01em",
|
|
284
|
+
color: "rgba(30, 33, 37, 0.92)",
|
|
285
|
+
marginBottom: "24px"
|
|
286
|
+
},
|
|
287
|
+
children: "Testing Examples"
|
|
288
|
+
}
|
|
289
|
+
),
|
|
290
|
+
a && /* @__PURE__ */ t(
|
|
291
|
+
"div",
|
|
292
|
+
{
|
|
293
|
+
style: {
|
|
294
|
+
marginBottom: "24px",
|
|
295
|
+
padding: "16px",
|
|
296
|
+
background: "rgba(255, 255, 255, 0.85)",
|
|
297
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
298
|
+
borderRadius: "12px"
|
|
299
|
+
},
|
|
300
|
+
children: [
|
|
301
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
302
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
303
|
+
/* @__PURE__ */ e(E, { size: 18, style: { color: "#1F8F5A" } }),
|
|
304
|
+
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)" }, children: "File Uploaded" })
|
|
305
|
+
] }),
|
|
306
|
+
/* @__PURE__ */ e(
|
|
307
|
+
"button",
|
|
308
|
+
{
|
|
309
|
+
onClick: () => m(null),
|
|
310
|
+
style: {
|
|
311
|
+
background: "none",
|
|
312
|
+
border: "none",
|
|
313
|
+
cursor: "pointer",
|
|
314
|
+
padding: "4px",
|
|
315
|
+
display: "flex",
|
|
316
|
+
alignItems: "center"
|
|
317
|
+
},
|
|
318
|
+
children: /* @__PURE__ */ e(j, { size: 16, style: { color: "rgba(30, 33, 37, 0.42)" } })
|
|
319
|
+
}
|
|
320
|
+
)
|
|
321
|
+
] }),
|
|
322
|
+
/* @__PURE__ */ t("div", { style: { fontSize: "13px", color: "rgba(30, 33, 37, 0.65)", lineHeight: 1.5 }, children: [
|
|
323
|
+
/* @__PURE__ */ t("div", { children: [
|
|
324
|
+
/* @__PURE__ */ e("strong", { children: "Name:" }),
|
|
325
|
+
" ",
|
|
326
|
+
a.name
|
|
327
|
+
] }),
|
|
328
|
+
/* @__PURE__ */ t("div", { children: [
|
|
329
|
+
/* @__PURE__ */ e("strong", { children: "Type:" }),
|
|
330
|
+
" ",
|
|
331
|
+
a.type
|
|
332
|
+
] }),
|
|
333
|
+
/* @__PURE__ */ t("div", { children: [
|
|
334
|
+
/* @__PURE__ */ e("strong", { children: "Size:" }),
|
|
335
|
+
" ",
|
|
336
|
+
(a.size / 1024 / 1024).toFixed(2),
|
|
337
|
+
" MB"
|
|
338
|
+
] }),
|
|
339
|
+
/* @__PURE__ */ t("div", { children: [
|
|
340
|
+
/* @__PURE__ */ e("strong", { children: "Uploaded:" }),
|
|
341
|
+
" ",
|
|
342
|
+
a.lastModified.toLocaleString()
|
|
343
|
+
] })
|
|
344
|
+
] })
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
!d && /* @__PURE__ */ t("div", { style: { marginBottom: "24px" }, children: [
|
|
349
|
+
/* @__PURE__ */ e(
|
|
350
|
+
"h3",
|
|
351
|
+
{
|
|
352
|
+
style: {
|
|
353
|
+
fontSize: "15px",
|
|
354
|
+
fontWeight: 650,
|
|
355
|
+
color: "rgba(30, 33, 37, 0.82)",
|
|
356
|
+
marginBottom: "12px"
|
|
357
|
+
},
|
|
358
|
+
children: "Select a Demonstration Project:"
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: y.map((o) => /* @__PURE__ */ t(
|
|
362
|
+
"button",
|
|
363
|
+
{
|
|
364
|
+
onClick: () => W(o.id),
|
|
365
|
+
style: {
|
|
366
|
+
padding: "12px 16px",
|
|
367
|
+
background: "rgba(255, 255, 255, 0.85)",
|
|
368
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
369
|
+
borderRadius: "8px",
|
|
370
|
+
textAlign: "left",
|
|
371
|
+
cursor: "pointer",
|
|
372
|
+
transition: "all 0.15s ease"
|
|
373
|
+
},
|
|
374
|
+
onMouseEnter: (n) => {
|
|
375
|
+
n.currentTarget.style.background = "rgba(255, 255, 255, 0.95)", n.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.20)";
|
|
376
|
+
},
|
|
377
|
+
onMouseLeave: (n) => {
|
|
378
|
+
n.currentTarget.style.background = "rgba(255, 255, 255, 0.85)", n.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.12)";
|
|
379
|
+
},
|
|
380
|
+
children: [
|
|
381
|
+
/* @__PURE__ */ e("div", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)", marginBottom: "4px" }, children: o.name }),
|
|
382
|
+
/* @__PURE__ */ e("div", { style: { fontSize: "12px", color: "rgba(30, 33, 37, 0.62)", marginBottom: "4px" }, children: o.description }),
|
|
383
|
+
/* @__PURE__ */ t("div", { style: { fontSize: "11px", color: "rgba(30, 33, 37, 0.52)" }, children: [
|
|
384
|
+
o.interactions,
|
|
385
|
+
" interactions · ",
|
|
386
|
+
o.dateRange
|
|
387
|
+
] })
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
o.id
|
|
391
|
+
)) })
|
|
392
|
+
] }),
|
|
393
|
+
d && /* @__PURE__ */ t(
|
|
394
|
+
"div",
|
|
395
|
+
{
|
|
396
|
+
style: {
|
|
397
|
+
marginBottom: "24px",
|
|
398
|
+
padding: "16px",
|
|
399
|
+
background: "rgba(255, 255, 255, 0.85)",
|
|
400
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
401
|
+
borderRadius: "12px"
|
|
402
|
+
},
|
|
403
|
+
children: [
|
|
404
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
405
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
406
|
+
/* @__PURE__ */ e(E, { size: 18, style: { color: "#1F8F5A" } }),
|
|
407
|
+
/* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)" }, children: [
|
|
408
|
+
"Project Selected: ",
|
|
409
|
+
d.name
|
|
410
|
+
] })
|
|
411
|
+
] }),
|
|
412
|
+
/* @__PURE__ */ e(
|
|
413
|
+
"button",
|
|
414
|
+
{
|
|
415
|
+
onClick: () => r(null),
|
|
416
|
+
style: {
|
|
417
|
+
background: "none",
|
|
418
|
+
border: "none",
|
|
419
|
+
cursor: "pointer",
|
|
420
|
+
padding: "4px",
|
|
421
|
+
display: "flex",
|
|
422
|
+
alignItems: "center"
|
|
423
|
+
},
|
|
424
|
+
children: /* @__PURE__ */ e(j, { size: 16, style: { color: "rgba(30, 33, 37, 0.42)" } })
|
|
425
|
+
}
|
|
426
|
+
)
|
|
427
|
+
] }),
|
|
428
|
+
/* @__PURE__ */ t("div", { style: { fontSize: "13px", color: "rgba(30, 33, 37, 0.65)", lineHeight: 1.5 }, children: [
|
|
429
|
+
/* @__PURE__ */ e("div", { children: d.description }),
|
|
430
|
+
/* @__PURE__ */ t("div", { style: { marginTop: "4px" }, children: [
|
|
431
|
+
/* @__PURE__ */ e("strong", { children: d.interactions }),
|
|
432
|
+
" interactions · ",
|
|
433
|
+
/* @__PURE__ */ e("strong", { children: d.dateRange })
|
|
434
|
+
] })
|
|
435
|
+
] })
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
!u && /* @__PURE__ */ t("div", { style: { marginBottom: "24px" }, children: [
|
|
440
|
+
/* @__PURE__ */ e(
|
|
441
|
+
"h3",
|
|
442
|
+
{
|
|
443
|
+
style: {
|
|
444
|
+
fontSize: "15px",
|
|
445
|
+
fontWeight: 650,
|
|
446
|
+
color: "rgba(30, 33, 37, 0.82)",
|
|
447
|
+
marginBottom: "12px"
|
|
448
|
+
},
|
|
449
|
+
children: "Connect a Data Source:"
|
|
450
|
+
}
|
|
451
|
+
),
|
|
452
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: z.map((o) => /* @__PURE__ */ e(
|
|
453
|
+
"button",
|
|
454
|
+
{
|
|
455
|
+
onClick: () => R(o.id),
|
|
456
|
+
disabled: o.status === "coming-soon",
|
|
457
|
+
style: {
|
|
458
|
+
padding: "12px 16px",
|
|
459
|
+
background: o.status === "coming-soon" ? "rgba(255, 255, 255, 0.5)" : "rgba(255, 255, 255, 0.85)",
|
|
460
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
461
|
+
borderRadius: "8px",
|
|
462
|
+
textAlign: "left",
|
|
463
|
+
cursor: o.status === "coming-soon" ? "not-allowed" : "pointer",
|
|
464
|
+
transition: "all 0.15s ease",
|
|
465
|
+
opacity: o.status === "coming-soon" ? 0.6 : 1
|
|
466
|
+
},
|
|
467
|
+
onMouseEnter: (n) => {
|
|
468
|
+
o.status !== "coming-soon" && (n.currentTarget.style.background = "rgba(255, 255, 255, 0.95)", n.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.20)");
|
|
469
|
+
},
|
|
470
|
+
onMouseLeave: (n) => {
|
|
471
|
+
o.status !== "coming-soon" && (n.currentTarget.style.background = "rgba(255, 255, 255, 0.85)", n.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.12)");
|
|
472
|
+
},
|
|
473
|
+
children: /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
474
|
+
/* @__PURE__ */ t("div", { children: [
|
|
475
|
+
/* @__PURE__ */ e("div", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)", marginBottom: "4px" }, children: o.name }),
|
|
476
|
+
/* @__PURE__ */ e("div", { style: { fontSize: "12px", color: "rgba(30, 33, 37, 0.62)" }, children: o.description })
|
|
477
|
+
] }),
|
|
478
|
+
o.status === "coming-soon" && /* @__PURE__ */ e(
|
|
479
|
+
"span",
|
|
480
|
+
{
|
|
481
|
+
style: {
|
|
482
|
+
fontSize: "10px",
|
|
483
|
+
fontWeight: 600,
|
|
484
|
+
color: "rgba(30, 33, 37, 0.42)",
|
|
485
|
+
background: "rgba(30, 33, 37, 0.08)",
|
|
486
|
+
padding: "4px 8px",
|
|
487
|
+
borderRadius: "4px"
|
|
488
|
+
},
|
|
489
|
+
children: "Coming Soon"
|
|
490
|
+
}
|
|
491
|
+
)
|
|
492
|
+
] })
|
|
493
|
+
},
|
|
494
|
+
o.id
|
|
495
|
+
)) })
|
|
496
|
+
] }),
|
|
497
|
+
u && /* @__PURE__ */ t(
|
|
498
|
+
"div",
|
|
499
|
+
{
|
|
500
|
+
style: {
|
|
501
|
+
marginBottom: "24px",
|
|
502
|
+
padding: "16px",
|
|
503
|
+
background: "rgba(255, 255, 255, 0.85)",
|
|
504
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
505
|
+
borderRadius: "12px"
|
|
506
|
+
},
|
|
507
|
+
children: [
|
|
508
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
509
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
510
|
+
/* @__PURE__ */ e(E, { size: 18, style: { color: "#1F8F5A" } }),
|
|
511
|
+
/* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)" }, children: [
|
|
512
|
+
"Connected: ",
|
|
513
|
+
u.name
|
|
514
|
+
] })
|
|
515
|
+
] }),
|
|
516
|
+
/* @__PURE__ */ e(
|
|
517
|
+
"button",
|
|
518
|
+
{
|
|
519
|
+
onClick: () => k(null),
|
|
520
|
+
style: {
|
|
521
|
+
background: "none",
|
|
522
|
+
border: "none",
|
|
523
|
+
cursor: "pointer",
|
|
524
|
+
padding: "4px",
|
|
525
|
+
display: "flex",
|
|
526
|
+
alignItems: "center"
|
|
527
|
+
},
|
|
528
|
+
children: /* @__PURE__ */ e(j, { size: 16, style: { color: "rgba(30, 33, 37, 0.42)" } })
|
|
529
|
+
}
|
|
530
|
+
)
|
|
531
|
+
] }),
|
|
532
|
+
/* @__PURE__ */ e("div", { style: { fontSize: "13px", color: "rgba(30, 33, 37, 0.65)", lineHeight: 1.5 }, children: u.description })
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
)
|
|
536
|
+
] })
|
|
537
|
+
] })
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
function me({
|
|
543
|
+
onDismiss: v,
|
|
544
|
+
onItemClick: h,
|
|
545
|
+
completedItems: p = []
|
|
546
|
+
}) {
|
|
547
|
+
const [l, f] = x(!1), [C, a] = x(null), m = [
|
|
548
|
+
{
|
|
549
|
+
id: "name-project",
|
|
550
|
+
title: "Name your workspace",
|
|
551
|
+
description: "Give your default project a meaningful name",
|
|
552
|
+
icon: re,
|
|
553
|
+
completed: p.includes("name-project"),
|
|
554
|
+
optional: !0
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
id: "evaluate-second-interaction",
|
|
558
|
+
title: "Evaluate another interaction",
|
|
559
|
+
description: "Upload or connect a second interaction to see patterns",
|
|
560
|
+
icon: N,
|
|
561
|
+
completed: p.includes("evaluate-second-interaction")
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
id: "connect-source",
|
|
565
|
+
title: "Connect a data source",
|
|
566
|
+
description: "Link your system or platform for automatic evaluation",
|
|
567
|
+
icon: Q,
|
|
568
|
+
completed: p.includes("connect-source")
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
id: "invite-team",
|
|
572
|
+
title: "Add teammates",
|
|
573
|
+
description: "Invite managers or QA team members to collaborate",
|
|
574
|
+
icon: ne,
|
|
575
|
+
completed: p.includes("invite-team"),
|
|
576
|
+
optional: !0
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
id: "learn-concepts",
|
|
580
|
+
title: "Understand Chordia concepts",
|
|
581
|
+
description: "Learn how conditions, evidence, and confidence work",
|
|
582
|
+
icon: oe,
|
|
583
|
+
completed: p.includes("learn-concepts"),
|
|
584
|
+
optional: !0
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
id: "configure-scope",
|
|
588
|
+
title: "Clarify evaluation scope",
|
|
589
|
+
description: "Customize which signals and conditions matter for your team",
|
|
590
|
+
icon: ie,
|
|
591
|
+
completed: p.includes("configure-scope"),
|
|
592
|
+
optional: !0
|
|
593
|
+
}
|
|
594
|
+
], u = m.filter((r) => r.completed).length, k = m.length, d = u / k * 100;
|
|
595
|
+
return l ? /* @__PURE__ */ e(
|
|
596
|
+
"button",
|
|
597
|
+
{
|
|
598
|
+
type: "button",
|
|
599
|
+
onClick: () => f(!1),
|
|
600
|
+
style: {
|
|
601
|
+
width: "100%",
|
|
602
|
+
padding: "14px 16px",
|
|
603
|
+
background: "rgba(255, 255, 255, 0.85)",
|
|
604
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
605
|
+
borderRadius: "12px",
|
|
606
|
+
cursor: "pointer",
|
|
607
|
+
textAlign: "left",
|
|
608
|
+
transition: "all 0.15s ease",
|
|
609
|
+
boxShadow: "0 2px 8px rgba(30, 33, 37, 0.04)"
|
|
610
|
+
},
|
|
611
|
+
onMouseEnter: (r) => {
|
|
612
|
+
r.currentTarget.style.background = "rgba(255, 255, 255, 0.95)", r.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.18)";
|
|
613
|
+
},
|
|
614
|
+
onMouseLeave: (r) => {
|
|
615
|
+
r.currentTarget.style.background = "rgba(255, 255, 255, 0.85)", r.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.12)";
|
|
616
|
+
},
|
|
617
|
+
children: /* @__PURE__ */ t(
|
|
618
|
+
"div",
|
|
619
|
+
{
|
|
620
|
+
style: {
|
|
621
|
+
display: "flex",
|
|
622
|
+
alignItems: "center",
|
|
623
|
+
justifyContent: "space-between",
|
|
624
|
+
gap: "12px"
|
|
625
|
+
},
|
|
626
|
+
children: [
|
|
627
|
+
/* @__PURE__ */ t(
|
|
628
|
+
"div",
|
|
629
|
+
{
|
|
630
|
+
style: {
|
|
631
|
+
fontSize: "13px",
|
|
632
|
+
fontWeight: 600,
|
|
633
|
+
color: "rgba(30, 33, 37, 0.75)"
|
|
634
|
+
},
|
|
635
|
+
children: [
|
|
636
|
+
"Getting started (",
|
|
637
|
+
u,
|
|
638
|
+
"/",
|
|
639
|
+
k,
|
|
640
|
+
")"
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
),
|
|
644
|
+
/* @__PURE__ */ e(P, { size: 16, style: { color: "rgba(30, 33, 37, 0.42)" } })
|
|
645
|
+
]
|
|
646
|
+
}
|
|
647
|
+
)
|
|
648
|
+
}
|
|
649
|
+
) : /* @__PURE__ */ t(
|
|
650
|
+
"div",
|
|
651
|
+
{
|
|
652
|
+
style: {
|
|
653
|
+
background: "rgba(255, 255, 255, 0.85)",
|
|
654
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
655
|
+
borderRadius: "16px",
|
|
656
|
+
overflow: "hidden",
|
|
657
|
+
boxShadow: "0 4px 16px rgba(30, 33, 37, 0.06)"
|
|
658
|
+
},
|
|
659
|
+
children: [
|
|
660
|
+
/* @__PURE__ */ t(
|
|
661
|
+
"div",
|
|
662
|
+
{
|
|
663
|
+
style: {
|
|
664
|
+
padding: "18px 20px 16px",
|
|
665
|
+
borderBottom: "1px solid rgba(52, 58, 64, 0.08)"
|
|
666
|
+
},
|
|
667
|
+
children: [
|
|
668
|
+
/* @__PURE__ */ t(
|
|
669
|
+
"div",
|
|
670
|
+
{
|
|
671
|
+
style: {
|
|
672
|
+
display: "flex",
|
|
673
|
+
alignItems: "flex-start",
|
|
674
|
+
justifyContent: "space-between",
|
|
675
|
+
gap: "12px"
|
|
676
|
+
},
|
|
677
|
+
children: [
|
|
678
|
+
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: [
|
|
679
|
+
/* @__PURE__ */ e(
|
|
680
|
+
"div",
|
|
681
|
+
{
|
|
682
|
+
style: {
|
|
683
|
+
fontSize: "15px",
|
|
684
|
+
fontWeight: 680,
|
|
685
|
+
letterSpacing: "-0.01em",
|
|
686
|
+
color: "rgba(30, 33, 37, 0.92)",
|
|
687
|
+
marginBottom: "6px",
|
|
688
|
+
lineHeight: 1.3
|
|
689
|
+
},
|
|
690
|
+
children: "Getting started with Chordia"
|
|
691
|
+
}
|
|
692
|
+
),
|
|
693
|
+
/* @__PURE__ */ t(
|
|
694
|
+
"div",
|
|
695
|
+
{
|
|
696
|
+
style: {
|
|
697
|
+
fontSize: "12px",
|
|
698
|
+
color: "rgba(30, 33, 37, 0.58)",
|
|
699
|
+
lineHeight: 1.4
|
|
700
|
+
},
|
|
701
|
+
children: [
|
|
702
|
+
u,
|
|
703
|
+
" of ",
|
|
704
|
+
k,
|
|
705
|
+
" completed"
|
|
706
|
+
]
|
|
707
|
+
}
|
|
708
|
+
)
|
|
709
|
+
] }),
|
|
710
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", gap: "4px" }, children: [
|
|
711
|
+
/* @__PURE__ */ e(
|
|
712
|
+
"button",
|
|
713
|
+
{
|
|
714
|
+
type: "button",
|
|
715
|
+
onClick: () => f(!0),
|
|
716
|
+
style: {
|
|
717
|
+
width: "28px",
|
|
718
|
+
height: "28px",
|
|
719
|
+
borderRadius: "6px",
|
|
720
|
+
background: "transparent",
|
|
721
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
722
|
+
cursor: "pointer",
|
|
723
|
+
display: "flex",
|
|
724
|
+
alignItems: "center",
|
|
725
|
+
justifyContent: "center",
|
|
726
|
+
transition: "all 0.15s ease",
|
|
727
|
+
color: "rgba(30, 33, 37, 0.52)"
|
|
728
|
+
},
|
|
729
|
+
onMouseEnter: (r) => {
|
|
730
|
+
r.currentTarget.style.background = "rgba(231, 212, 162, 0.12)", r.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.18)";
|
|
731
|
+
},
|
|
732
|
+
onMouseLeave: (r) => {
|
|
733
|
+
r.currentTarget.style.background = "transparent", r.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.12)";
|
|
734
|
+
},
|
|
735
|
+
title: "Collapse",
|
|
736
|
+
children: /* @__PURE__ */ e(P, { size: 14 })
|
|
737
|
+
}
|
|
738
|
+
),
|
|
739
|
+
v && /* @__PURE__ */ e(
|
|
740
|
+
"button",
|
|
741
|
+
{
|
|
742
|
+
type: "button",
|
|
743
|
+
onClick: v,
|
|
744
|
+
style: {
|
|
745
|
+
width: "28px",
|
|
746
|
+
height: "28px",
|
|
747
|
+
borderRadius: "6px",
|
|
748
|
+
background: "transparent",
|
|
749
|
+
border: "1px solid rgba(52, 58, 64, 0.12)",
|
|
750
|
+
cursor: "pointer",
|
|
751
|
+
display: "flex",
|
|
752
|
+
alignItems: "center",
|
|
753
|
+
justifyContent: "center",
|
|
754
|
+
transition: "all 0.15s ease",
|
|
755
|
+
color: "rgba(30, 33, 37, 0.52)"
|
|
756
|
+
},
|
|
757
|
+
onMouseEnter: (r) => {
|
|
758
|
+
r.currentTarget.style.background = "rgba(231, 212, 162, 0.12)", r.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.18)";
|
|
759
|
+
},
|
|
760
|
+
onMouseLeave: (r) => {
|
|
761
|
+
r.currentTarget.style.background = "transparent", r.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.12)";
|
|
762
|
+
},
|
|
763
|
+
title: "Dismiss checklist",
|
|
764
|
+
children: /* @__PURE__ */ e(j, { size: 14 })
|
|
765
|
+
}
|
|
766
|
+
)
|
|
767
|
+
] })
|
|
768
|
+
]
|
|
769
|
+
}
|
|
770
|
+
),
|
|
771
|
+
/* @__PURE__ */ e(
|
|
772
|
+
"div",
|
|
773
|
+
{
|
|
774
|
+
style: {
|
|
775
|
+
marginTop: "14px",
|
|
776
|
+
height: "6px",
|
|
777
|
+
background: "rgba(30, 33, 37, 0.08)",
|
|
778
|
+
borderRadius: "999px",
|
|
779
|
+
overflow: "hidden"
|
|
780
|
+
},
|
|
781
|
+
children: /* @__PURE__ */ e(
|
|
782
|
+
"div",
|
|
783
|
+
{
|
|
784
|
+
style: {
|
|
785
|
+
height: "100%",
|
|
786
|
+
width: `${d}%`,
|
|
787
|
+
background: "linear-gradient(90deg, rgba(184, 156, 106, 0.75) 0%, rgba(139, 157, 127, 0.75) 100%)",
|
|
788
|
+
borderRadius: "999px",
|
|
789
|
+
transition: "width 0.4s ease"
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
)
|
|
793
|
+
}
|
|
794
|
+
)
|
|
795
|
+
]
|
|
796
|
+
}
|
|
797
|
+
),
|
|
798
|
+
/* @__PURE__ */ e("div", { style: { padding: "8px" }, children: m.map((r, b) => {
|
|
799
|
+
const z = r.icon, y = C === r.id;
|
|
800
|
+
return /* @__PURE__ */ e(
|
|
801
|
+
"button",
|
|
802
|
+
{
|
|
803
|
+
type: "button",
|
|
804
|
+
onClick: () => h == null ? void 0 : h(r.id),
|
|
805
|
+
onMouseEnter: () => a(r.id),
|
|
806
|
+
onMouseLeave: () => a(null),
|
|
807
|
+
disabled: r.completed,
|
|
808
|
+
style: {
|
|
809
|
+
width: "100%",
|
|
810
|
+
padding: "12px 14px",
|
|
811
|
+
background: r.completed ? "rgba(139, 157, 127, 0.06)" : y ? "rgba(231, 212, 162, 0.12)" : "transparent",
|
|
812
|
+
border: "none",
|
|
813
|
+
borderRadius: "10px",
|
|
814
|
+
cursor: r.completed ? "default" : "pointer",
|
|
815
|
+
textAlign: "left",
|
|
816
|
+
transition: "all 0.15s ease",
|
|
817
|
+
marginBottom: b < m.length - 1 ? "4px" : "0",
|
|
818
|
+
opacity: r.completed ? 0.7 : 1
|
|
819
|
+
},
|
|
820
|
+
children: /* @__PURE__ */ t(
|
|
821
|
+
"div",
|
|
822
|
+
{
|
|
823
|
+
style: {
|
|
824
|
+
display: "flex",
|
|
825
|
+
alignItems: "flex-start",
|
|
826
|
+
gap: "12px"
|
|
827
|
+
},
|
|
828
|
+
children: [
|
|
829
|
+
/* @__PURE__ */ e(
|
|
830
|
+
"div",
|
|
831
|
+
{
|
|
832
|
+
style: {
|
|
833
|
+
width: "20px",
|
|
834
|
+
height: "20px",
|
|
835
|
+
marginTop: "1px",
|
|
836
|
+
flexShrink: 0
|
|
837
|
+
},
|
|
838
|
+
children: r.completed ? /* @__PURE__ */ e(
|
|
839
|
+
E,
|
|
840
|
+
{
|
|
841
|
+
size: 20,
|
|
842
|
+
style: { color: "rgba(139, 157, 127, 0.75)" }
|
|
843
|
+
}
|
|
844
|
+
) : /* @__PURE__ */ e(
|
|
845
|
+
ae,
|
|
846
|
+
{
|
|
847
|
+
size: 20,
|
|
848
|
+
style: { color: "rgba(30, 33, 37, 0.24)" }
|
|
849
|
+
}
|
|
850
|
+
)
|
|
851
|
+
}
|
|
852
|
+
),
|
|
853
|
+
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
854
|
+
/* @__PURE__ */ t(
|
|
855
|
+
"div",
|
|
856
|
+
{
|
|
857
|
+
style: {
|
|
858
|
+
display: "flex",
|
|
859
|
+
alignItems: "center",
|
|
860
|
+
gap: "8px",
|
|
861
|
+
marginBottom: "3px"
|
|
862
|
+
},
|
|
863
|
+
children: [
|
|
864
|
+
/* @__PURE__ */ e(
|
|
865
|
+
z,
|
|
866
|
+
{
|
|
867
|
+
size: 14,
|
|
868
|
+
style: { color: "rgba(30, 33, 37, 0.52)", flexShrink: 0 }
|
|
869
|
+
}
|
|
870
|
+
),
|
|
871
|
+
/* @__PURE__ */ e(
|
|
872
|
+
"span",
|
|
873
|
+
{
|
|
874
|
+
style: {
|
|
875
|
+
fontSize: "13px",
|
|
876
|
+
fontWeight: 600,
|
|
877
|
+
color: r.completed ? "rgba(30, 33, 37, 0.52)" : "rgba(30, 33, 37, 0.85)",
|
|
878
|
+
textDecoration: r.completed ? "line-through" : "none",
|
|
879
|
+
lineHeight: 1.3
|
|
880
|
+
},
|
|
881
|
+
children: r.title
|
|
882
|
+
}
|
|
883
|
+
),
|
|
884
|
+
r.optional && !r.completed && /* @__PURE__ */ e(
|
|
885
|
+
"span",
|
|
886
|
+
{
|
|
887
|
+
style: {
|
|
888
|
+
fontSize: "9px",
|
|
889
|
+
fontWeight: 600,
|
|
890
|
+
letterSpacing: "0.04em",
|
|
891
|
+
textTransform: "uppercase",
|
|
892
|
+
color: "rgba(30, 33, 37, 0.42)",
|
|
893
|
+
background: "rgba(30, 33, 37, 0.06)",
|
|
894
|
+
padding: "2px 5px",
|
|
895
|
+
borderRadius: "4px"
|
|
896
|
+
},
|
|
897
|
+
children: "Optional"
|
|
898
|
+
}
|
|
899
|
+
)
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
),
|
|
903
|
+
/* @__PURE__ */ e(
|
|
904
|
+
"div",
|
|
905
|
+
{
|
|
906
|
+
style: {
|
|
907
|
+
fontSize: "11.5px",
|
|
908
|
+
color: "rgba(30, 33, 37, 0.52)",
|
|
909
|
+
lineHeight: 1.4,
|
|
910
|
+
paddingLeft: "22px"
|
|
911
|
+
},
|
|
912
|
+
children: r.description
|
|
913
|
+
}
|
|
914
|
+
)
|
|
915
|
+
] }),
|
|
916
|
+
!r.completed && y && /* @__PURE__ */ e(
|
|
917
|
+
P,
|
|
918
|
+
{
|
|
919
|
+
size: 16,
|
|
920
|
+
style: {
|
|
921
|
+
color: "rgba(30, 33, 37, 0.32)",
|
|
922
|
+
marginTop: "2px",
|
|
923
|
+
flexShrink: 0
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
)
|
|
927
|
+
]
|
|
928
|
+
}
|
|
929
|
+
)
|
|
930
|
+
},
|
|
931
|
+
r.id
|
|
932
|
+
);
|
|
933
|
+
}) }),
|
|
934
|
+
/* @__PURE__ */ e(
|
|
935
|
+
"div",
|
|
936
|
+
{
|
|
937
|
+
style: {
|
|
938
|
+
padding: "12px 20px 16px",
|
|
939
|
+
borderTop: "1px solid rgba(52, 58, 64, 0.08)"
|
|
940
|
+
},
|
|
941
|
+
children: /* @__PURE__ */ t(
|
|
942
|
+
"div",
|
|
943
|
+
{
|
|
944
|
+
style: {
|
|
945
|
+
fontSize: "11px",
|
|
946
|
+
color: "rgba(30, 33, 37, 0.52)",
|
|
947
|
+
lineHeight: 1.5,
|
|
948
|
+
fontStyle: "italic"
|
|
949
|
+
},
|
|
950
|
+
children: [
|
|
951
|
+
"You can dismiss this checklist anytime. These steps help you get the most from Chordia, but ",
|
|
952
|
+
"aren't",
|
|
953
|
+
" required."
|
|
954
|
+
]
|
|
955
|
+
}
|
|
956
|
+
)
|
|
957
|
+
}
|
|
958
|
+
)
|
|
959
|
+
]
|
|
960
|
+
}
|
|
961
|
+
);
|
|
962
|
+
}
|
|
963
|
+
function ye({
|
|
964
|
+
text: v = "Demo Project",
|
|
965
|
+
accentColor: h = "#B89C6A",
|
|
966
|
+
textColor: p = "rgba(255, 255, 255, 0.95)",
|
|
967
|
+
size: l = "medium",
|
|
968
|
+
position: f = "fixed"
|
|
969
|
+
}) {
|
|
970
|
+
const a = {
|
|
971
|
+
small: {
|
|
972
|
+
width: 140,
|
|
973
|
+
height: 140,
|
|
974
|
+
fontSize: "11px",
|
|
975
|
+
letterSpacing: "0.08em",
|
|
976
|
+
fontWeight: 650
|
|
977
|
+
},
|
|
978
|
+
medium: {
|
|
979
|
+
width: 180,
|
|
980
|
+
height: 180,
|
|
981
|
+
fontSize: "12px",
|
|
982
|
+
letterSpacing: "0.1em",
|
|
983
|
+
fontWeight: 680
|
|
984
|
+
},
|
|
985
|
+
large: {
|
|
986
|
+
width: 220,
|
|
987
|
+
height: 220,
|
|
988
|
+
fontSize: "13px",
|
|
989
|
+
letterSpacing: "0.12em",
|
|
990
|
+
fontWeight: 700
|
|
991
|
+
}
|
|
992
|
+
}[l];
|
|
993
|
+
return /* @__PURE__ */ t(
|
|
994
|
+
"div",
|
|
995
|
+
{
|
|
996
|
+
style: {
|
|
997
|
+
position: f,
|
|
998
|
+
top: 0,
|
|
999
|
+
right: 0,
|
|
1000
|
+
width: a.width,
|
|
1001
|
+
height: a.height,
|
|
1002
|
+
overflow: "hidden",
|
|
1003
|
+
zIndex: f === "fixed" ? 9999 : 1,
|
|
1004
|
+
pointerEvents: "none"
|
|
1005
|
+
},
|
|
1006
|
+
children: [
|
|
1007
|
+
/* @__PURE__ */ e(
|
|
1008
|
+
"div",
|
|
1009
|
+
{
|
|
1010
|
+
style: {
|
|
1011
|
+
position: "absolute",
|
|
1012
|
+
top: 0,
|
|
1013
|
+
right: 0,
|
|
1014
|
+
width: 0,
|
|
1015
|
+
height: 0,
|
|
1016
|
+
borderStyle: "solid",
|
|
1017
|
+
borderWidth: `0 ${a.width}px ${a.height}px 0`,
|
|
1018
|
+
borderColor: `transparent ${h} transparent transparent`,
|
|
1019
|
+
opacity: 0.92
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
),
|
|
1023
|
+
/* @__PURE__ */ e(
|
|
1024
|
+
"div",
|
|
1025
|
+
{
|
|
1026
|
+
style: {
|
|
1027
|
+
position: "absolute",
|
|
1028
|
+
top: 0,
|
|
1029
|
+
right: 0,
|
|
1030
|
+
width: 0,
|
|
1031
|
+
height: 0,
|
|
1032
|
+
borderStyle: "solid",
|
|
1033
|
+
borderWidth: `0 ${a.width}px ${a.height}px 0`,
|
|
1034
|
+
borderColor: "transparent rgba(0, 0, 0, 0.08) transparent transparent"
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
),
|
|
1038
|
+
/* @__PURE__ */ e(
|
|
1039
|
+
"div",
|
|
1040
|
+
{
|
|
1041
|
+
style: {
|
|
1042
|
+
position: "absolute",
|
|
1043
|
+
top: l === "small" ? "28px" : l === "medium" ? "38px" : "48px",
|
|
1044
|
+
right: l === "small" ? "-32px" : l === "medium" ? "-42px" : "-52px",
|
|
1045
|
+
width: l === "small" ? "160px" : l === "medium" ? "200px" : "240px",
|
|
1046
|
+
transform: "rotate(45deg)",
|
|
1047
|
+
transformOrigin: "center",
|
|
1048
|
+
textAlign: "center"
|
|
1049
|
+
},
|
|
1050
|
+
children: /* @__PURE__ */ e(
|
|
1051
|
+
"div",
|
|
1052
|
+
{
|
|
1053
|
+
style: {
|
|
1054
|
+
fontSize: a.fontSize,
|
|
1055
|
+
fontWeight: a.fontWeight,
|
|
1056
|
+
letterSpacing: a.letterSpacing,
|
|
1057
|
+
textTransform: "uppercase",
|
|
1058
|
+
color: p,
|
|
1059
|
+
textShadow: "0 1px 2px rgba(0, 0, 0, 0.15)",
|
|
1060
|
+
whiteSpace: "nowrap",
|
|
1061
|
+
userSelect: "none"
|
|
1062
|
+
},
|
|
1063
|
+
children: v
|
|
1064
|
+
}
|
|
1065
|
+
)
|
|
1066
|
+
}
|
|
1067
|
+
),
|
|
1068
|
+
/* @__PURE__ */ e(
|
|
1069
|
+
"div",
|
|
1070
|
+
{
|
|
1071
|
+
style: {
|
|
1072
|
+
position: "absolute",
|
|
1073
|
+
top: 0,
|
|
1074
|
+
right: 0,
|
|
1075
|
+
width: a.width,
|
|
1076
|
+
height: a.height,
|
|
1077
|
+
background: "linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.04) 100%)",
|
|
1078
|
+
pointerEvents: "none"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
)
|
|
1082
|
+
]
|
|
1083
|
+
}
|
|
1084
|
+
);
|
|
1085
|
+
}
|
|
1086
|
+
const ge = "../../assets/chordia-logo.png";
|
|
1087
|
+
function ve({
|
|
1088
|
+
title: v = "Chordia",
|
|
1089
|
+
subtitle: h = "Sign in to continue",
|
|
1090
|
+
logo: p,
|
|
1091
|
+
onLogin: l,
|
|
1092
|
+
loading: f = !1,
|
|
1093
|
+
error: C = null,
|
|
1094
|
+
footer: a,
|
|
1095
|
+
showLabels: m = !0,
|
|
1096
|
+
emailPlaceholder: u = "you@company.com",
|
|
1097
|
+
passwordPlaceholder: k = "Password",
|
|
1098
|
+
onForgotPassword: d,
|
|
1099
|
+
compact: r = !1
|
|
1100
|
+
}) {
|
|
1101
|
+
const [b, z] = x(""), [y, M] = x(""), [R, W] = x(!1), [s, S] = x(null), T = (i) => {
|
|
1102
|
+
i.preventDefault(), !(!b || !y || f) && (l == null || l(b, y));
|
|
1103
|
+
}, w = b && y && !f, o = "var(--rail-compliance)", n = "201, 138, 90", g = /* @__PURE__ */ t("div", { style: {
|
|
1104
|
+
width: "100%",
|
|
1105
|
+
maxWidth: 400,
|
|
1106
|
+
background: "var(--paper-elevated)",
|
|
1107
|
+
border: "1px solid var(--border)",
|
|
1108
|
+
borderRadius: "var(--radius-lg)",
|
|
1109
|
+
padding: "44px 36px 36px",
|
|
1110
|
+
boxShadow: "0 8px 32px rgba(30, 33, 37, 0.06), 0 1px 3px rgba(30, 33, 37, 0.04)",
|
|
1111
|
+
position: "relative",
|
|
1112
|
+
overflow: "hidden"
|
|
1113
|
+
}, children: [
|
|
1114
|
+
/* @__PURE__ */ e("div", { style: {
|
|
1115
|
+
position: "absolute",
|
|
1116
|
+
top: 0,
|
|
1117
|
+
left: 0,
|
|
1118
|
+
right: 0,
|
|
1119
|
+
height: 3,
|
|
1120
|
+
background: `linear-gradient(90deg, var(--state-unknown), ${o})`,
|
|
1121
|
+
opacity: 0.6
|
|
1122
|
+
} }),
|
|
1123
|
+
/* @__PURE__ */ e("div", { style: { textAlign: "center", marginBottom: 32 }, children: p || /* @__PURE__ */ t(D, { children: [
|
|
1124
|
+
/* @__PURE__ */ e("div", { style: {
|
|
1125
|
+
display: "inline-flex",
|
|
1126
|
+
alignItems: "center",
|
|
1127
|
+
justifyContent: "center",
|
|
1128
|
+
padding: "12px 24px",
|
|
1129
|
+
borderRadius: "var(--radius-lg)",
|
|
1130
|
+
background: "rgba(30, 33, 37, 0.92)",
|
|
1131
|
+
marginBottom: 16
|
|
1132
|
+
}, children: /* @__PURE__ */ e(
|
|
1133
|
+
"img",
|
|
1134
|
+
{
|
|
1135
|
+
src: ge,
|
|
1136
|
+
alt: v,
|
|
1137
|
+
style: { height: 28, display: "block" }
|
|
1138
|
+
}
|
|
1139
|
+
) }),
|
|
1140
|
+
h && /* @__PURE__ */ e("p", { style: {
|
|
1141
|
+
fontSize: "var(--text-sm)",
|
|
1142
|
+
color: "var(--text-muted)",
|
|
1143
|
+
marginTop: 4,
|
|
1144
|
+
marginBottom: 0
|
|
1145
|
+
}, children: h })
|
|
1146
|
+
] }) }),
|
|
1147
|
+
/* @__PURE__ */ t("form", { onSubmit: T, children: [
|
|
1148
|
+
/* @__PURE__ */ t("div", { style: { marginBottom: 18 }, children: [
|
|
1149
|
+
m && /* @__PURE__ */ e("label", { style: {
|
|
1150
|
+
display: "block",
|
|
1151
|
+
fontSize: "var(--text-sm)",
|
|
1152
|
+
fontWeight: 550,
|
|
1153
|
+
color: "var(--text-strong)",
|
|
1154
|
+
marginBottom: 6,
|
|
1155
|
+
fontFamily: "var(--font-sans)"
|
|
1156
|
+
}, children: "Email" }),
|
|
1157
|
+
/* @__PURE__ */ t("div", { style: { position: "relative", display: "flex", alignItems: "center" }, children: [
|
|
1158
|
+
/* @__PURE__ */ e(le, { size: 15, style: {
|
|
1159
|
+
position: "absolute",
|
|
1160
|
+
left: 12,
|
|
1161
|
+
color: s === "email" ? `rgba(${n}, 0.7)` : "var(--text-faint)",
|
|
1162
|
+
pointerEvents: "none",
|
|
1163
|
+
transition: "color 0.2s ease"
|
|
1164
|
+
} }),
|
|
1165
|
+
/* @__PURE__ */ e(
|
|
1166
|
+
"input",
|
|
1167
|
+
{
|
|
1168
|
+
type: "email",
|
|
1169
|
+
value: b,
|
|
1170
|
+
onChange: (i) => z(i.target.value),
|
|
1171
|
+
placeholder: u,
|
|
1172
|
+
required: !0,
|
|
1173
|
+
autoFocus: !0,
|
|
1174
|
+
autoComplete: "email",
|
|
1175
|
+
style: {
|
|
1176
|
+
width: "100%",
|
|
1177
|
+
padding: "11px 12px 11px 38px",
|
|
1178
|
+
fontSize: "var(--text-md)",
|
|
1179
|
+
border: "1px solid",
|
|
1180
|
+
borderColor: s === "email" ? o : "var(--border)",
|
|
1181
|
+
borderRadius: "var(--radius)",
|
|
1182
|
+
backgroundColor: s === "email" ? "rgba(255,255,255,0.95)" : "var(--paper)",
|
|
1183
|
+
color: "var(--text-ink)",
|
|
1184
|
+
fontFamily: "var(--font-sans)",
|
|
1185
|
+
outline: "none",
|
|
1186
|
+
transition: "border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",
|
|
1187
|
+
boxShadow: s === "email" ? `0 0 0 3px rgba(${n}, 0.1)` : "none"
|
|
1188
|
+
},
|
|
1189
|
+
onFocus: () => S("email"),
|
|
1190
|
+
onBlur: () => S(null)
|
|
1191
|
+
}
|
|
1192
|
+
)
|
|
1193
|
+
] })
|
|
1194
|
+
] }),
|
|
1195
|
+
/* @__PURE__ */ t("div", { style: { marginBottom: 6 }, children: [
|
|
1196
|
+
m && /* @__PURE__ */ e("label", { style: {
|
|
1197
|
+
display: "block",
|
|
1198
|
+
fontSize: "var(--text-sm)",
|
|
1199
|
+
fontWeight: 550,
|
|
1200
|
+
color: "var(--text-strong)",
|
|
1201
|
+
marginBottom: 6,
|
|
1202
|
+
fontFamily: "var(--font-sans)"
|
|
1203
|
+
}, children: "Password" }),
|
|
1204
|
+
/* @__PURE__ */ t("div", { style: { position: "relative", display: "flex", alignItems: "center" }, children: [
|
|
1205
|
+
/* @__PURE__ */ e(se, { size: 15, style: {
|
|
1206
|
+
position: "absolute",
|
|
1207
|
+
left: 12,
|
|
1208
|
+
color: s === "password" ? `rgba(${n}, 0.7)` : "var(--text-faint)",
|
|
1209
|
+
pointerEvents: "none",
|
|
1210
|
+
transition: "color 0.2s ease"
|
|
1211
|
+
} }),
|
|
1212
|
+
/* @__PURE__ */ e(
|
|
1213
|
+
"input",
|
|
1214
|
+
{
|
|
1215
|
+
type: R ? "text" : "password",
|
|
1216
|
+
value: y,
|
|
1217
|
+
onChange: (i) => M(i.target.value),
|
|
1218
|
+
placeholder: k,
|
|
1219
|
+
required: !0,
|
|
1220
|
+
autoComplete: "current-password",
|
|
1221
|
+
style: {
|
|
1222
|
+
width: "100%",
|
|
1223
|
+
padding: "11px 42px 11px 38px",
|
|
1224
|
+
fontSize: "var(--text-md)",
|
|
1225
|
+
border: "1px solid",
|
|
1226
|
+
borderColor: s === "password" ? o : "var(--border)",
|
|
1227
|
+
borderRadius: "var(--radius)",
|
|
1228
|
+
backgroundColor: s === "password" ? "rgba(255,255,255,0.95)" : "var(--paper)",
|
|
1229
|
+
color: "var(--text-ink)",
|
|
1230
|
+
fontFamily: "var(--font-sans)",
|
|
1231
|
+
outline: "none",
|
|
1232
|
+
transition: "border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",
|
|
1233
|
+
boxShadow: s === "password" ? `0 0 0 3px rgba(${n}, 0.1)` : "none"
|
|
1234
|
+
},
|
|
1235
|
+
onFocus: () => S("password"),
|
|
1236
|
+
onBlur: () => S(null)
|
|
1237
|
+
}
|
|
1238
|
+
),
|
|
1239
|
+
/* @__PURE__ */ e(
|
|
1240
|
+
"button",
|
|
1241
|
+
{
|
|
1242
|
+
type: "button",
|
|
1243
|
+
onClick: () => W(!R),
|
|
1244
|
+
style: {
|
|
1245
|
+
position: "absolute",
|
|
1246
|
+
right: 8,
|
|
1247
|
+
background: "none",
|
|
1248
|
+
border: "none",
|
|
1249
|
+
padding: 4,
|
|
1250
|
+
cursor: "pointer",
|
|
1251
|
+
color: "var(--text-faint)",
|
|
1252
|
+
display: "flex",
|
|
1253
|
+
alignItems: "center",
|
|
1254
|
+
transition: "color 0.15s ease",
|
|
1255
|
+
borderRadius: "var(--radius-sm)"
|
|
1256
|
+
},
|
|
1257
|
+
tabIndex: -1,
|
|
1258
|
+
onMouseEnter: (i) => {
|
|
1259
|
+
i.currentTarget.style.color = "var(--text-muted)";
|
|
1260
|
+
},
|
|
1261
|
+
onMouseLeave: (i) => {
|
|
1262
|
+
i.currentTarget.style.color = "var(--text-faint)";
|
|
1263
|
+
},
|
|
1264
|
+
children: R ? /* @__PURE__ */ e(de, { size: 16 }) : /* @__PURE__ */ e(ce, { size: 16 })
|
|
1265
|
+
}
|
|
1266
|
+
)
|
|
1267
|
+
] })
|
|
1268
|
+
] }),
|
|
1269
|
+
d && /* @__PURE__ */ e("div", { style: { textAlign: "right", marginBottom: 4 }, children: /* @__PURE__ */ e(
|
|
1270
|
+
"button",
|
|
1271
|
+
{
|
|
1272
|
+
type: "button",
|
|
1273
|
+
onClick: d,
|
|
1274
|
+
style: {
|
|
1275
|
+
background: "none",
|
|
1276
|
+
border: "none",
|
|
1277
|
+
padding: "2px 0",
|
|
1278
|
+
fontSize: "var(--text-xs)",
|
|
1279
|
+
color: "var(--text-muted)",
|
|
1280
|
+
cursor: "pointer",
|
|
1281
|
+
fontFamily: "var(--font-sans)",
|
|
1282
|
+
transition: "color 0.15s ease"
|
|
1283
|
+
},
|
|
1284
|
+
onMouseEnter: (i) => {
|
|
1285
|
+
i.currentTarget.style.color = "var(--text-strong)";
|
|
1286
|
+
},
|
|
1287
|
+
onMouseLeave: (i) => {
|
|
1288
|
+
i.currentTarget.style.color = "var(--text-muted)";
|
|
1289
|
+
},
|
|
1290
|
+
children: "Forgot password?"
|
|
1291
|
+
}
|
|
1292
|
+
) }),
|
|
1293
|
+
C && /* @__PURE__ */ e("div", { style: {
|
|
1294
|
+
fontSize: "var(--text-sm)",
|
|
1295
|
+
color: "var(--text-strong)",
|
|
1296
|
+
marginTop: 12,
|
|
1297
|
+
padding: "8px 12px",
|
|
1298
|
+
background: "color-mix(in srgb, var(--state-unknown) 10%, transparent)",
|
|
1299
|
+
border: "1px solid color-mix(in srgb, var(--state-unknown) 25%, transparent)",
|
|
1300
|
+
borderRadius: "var(--radius-sm)",
|
|
1301
|
+
textAlign: "center",
|
|
1302
|
+
fontWeight: 500
|
|
1303
|
+
}, children: C }),
|
|
1304
|
+
/* @__PURE__ */ e(
|
|
1305
|
+
"button",
|
|
1306
|
+
{
|
|
1307
|
+
type: "submit",
|
|
1308
|
+
disabled: !w,
|
|
1309
|
+
style: {
|
|
1310
|
+
width: "100%",
|
|
1311
|
+
padding: "11px 0",
|
|
1312
|
+
marginTop: 20,
|
|
1313
|
+
background: w ? "var(--text-ink)" : "var(--text-xfaint)",
|
|
1314
|
+
color: "#ffffff",
|
|
1315
|
+
border: "none",
|
|
1316
|
+
borderRadius: "var(--radius)",
|
|
1317
|
+
fontSize: "var(--text-md)",
|
|
1318
|
+
fontWeight: 600,
|
|
1319
|
+
fontFamily: "var(--font-sans)",
|
|
1320
|
+
cursor: w ? "pointer" : "not-allowed",
|
|
1321
|
+
transition: "opacity 0.15s ease, transform 0.1s ease",
|
|
1322
|
+
display: "flex",
|
|
1323
|
+
alignItems: "center",
|
|
1324
|
+
justifyContent: "center",
|
|
1325
|
+
gap: 8
|
|
1326
|
+
},
|
|
1327
|
+
onMouseEnter: (i) => {
|
|
1328
|
+
w && (i.currentTarget.style.opacity = "0.85", i.currentTarget.style.transform = "translateY(-1px)");
|
|
1329
|
+
},
|
|
1330
|
+
onMouseLeave: (i) => {
|
|
1331
|
+
i.currentTarget.style.opacity = "1", i.currentTarget.style.transform = "translateY(0)";
|
|
1332
|
+
},
|
|
1333
|
+
onMouseDown: (i) => {
|
|
1334
|
+
w && (i.currentTarget.style.transform = "translateY(0)");
|
|
1335
|
+
},
|
|
1336
|
+
onMouseUp: (i) => {
|
|
1337
|
+
w && (i.currentTarget.style.transform = "translateY(-1px)");
|
|
1338
|
+
},
|
|
1339
|
+
children: f ? "Signing in…" : /* @__PURE__ */ t(D, { children: [
|
|
1340
|
+
"Sign In",
|
|
1341
|
+
/* @__PURE__ */ e(pe, { size: 16 })
|
|
1342
|
+
] })
|
|
1343
|
+
}
|
|
1344
|
+
)
|
|
1345
|
+
] }),
|
|
1346
|
+
a && /* @__PURE__ */ t(D, { children: [
|
|
1347
|
+
/* @__PURE__ */ t("div", { style: {
|
|
1348
|
+
display: "flex",
|
|
1349
|
+
alignItems: "center",
|
|
1350
|
+
gap: 12,
|
|
1351
|
+
margin: "24px 0 16px"
|
|
1352
|
+
}, children: [
|
|
1353
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, height: 1, background: "var(--border)" } }),
|
|
1354
|
+
/* @__PURE__ */ e("span", { style: { fontSize: "var(--text-xs)", color: "var(--text-faint)" }, children: "or" }),
|
|
1355
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, height: 1, background: "var(--border)" } })
|
|
1356
|
+
] }),
|
|
1357
|
+
/* @__PURE__ */ e("div", { style: {
|
|
1358
|
+
textAlign: "center",
|
|
1359
|
+
fontSize: "var(--text-xs)",
|
|
1360
|
+
color: "var(--text-faint)"
|
|
1361
|
+
}, children: a })
|
|
1362
|
+
] })
|
|
1363
|
+
] });
|
|
1364
|
+
return r ? g : /* @__PURE__ */ e("div", { style: {
|
|
1365
|
+
display: "flex",
|
|
1366
|
+
alignItems: "center",
|
|
1367
|
+
justifyContent: "center",
|
|
1368
|
+
minHeight: "100vh",
|
|
1369
|
+
background: "var(--bg-chordia)",
|
|
1370
|
+
padding: "var(--spacing-6)"
|
|
1371
|
+
}, children: g });
|
|
1372
|
+
}
|
|
1373
|
+
function ke({
|
|
1374
|
+
left: v,
|
|
1375
|
+
right: h,
|
|
1376
|
+
defaultWidth: p = 260,
|
|
1377
|
+
defaultRatio: l,
|
|
1378
|
+
minWidth: f = 180,
|
|
1379
|
+
maxWidth: C = 450,
|
|
1380
|
+
minRatio: a,
|
|
1381
|
+
maxRatio: m,
|
|
1382
|
+
collapsedWidth: u = 0,
|
|
1383
|
+
collapsed: k,
|
|
1384
|
+
onCollapsedChange: d,
|
|
1385
|
+
collapseSide: r = "left",
|
|
1386
|
+
collapseThreshold: b,
|
|
1387
|
+
dividerWidth: z = 7,
|
|
1388
|
+
style: y
|
|
1389
|
+
}) {
|
|
1390
|
+
const M = k !== void 0, [R, W] = x(!1), s = M ? k : R, S = H(
|
|
1391
|
+
(c) => {
|
|
1392
|
+
const B = typeof c == "function" ? c(s) : c;
|
|
1393
|
+
M || W(B), d == null || d(B);
|
|
1394
|
+
},
|
|
1395
|
+
[M, s, d]
|
|
1396
|
+
), T = F(null), [w, o] = x(0), [n, g] = x(p), [i, I] = x(!1), [V, Z] = x(!1), $ = F(0), U = F(0);
|
|
1397
|
+
ee(() => {
|
|
1398
|
+
if (!T.current)
|
|
1399
|
+
return;
|
|
1400
|
+
const c = T.current.offsetWidth;
|
|
1401
|
+
o(c), !V && c > 0 && (l != null && g(Math.round(c * l)), Z(!0));
|
|
1402
|
+
}, []), X(() => {
|
|
1403
|
+
if (!T.current)
|
|
1404
|
+
return;
|
|
1405
|
+
const c = new ResizeObserver((B) => {
|
|
1406
|
+
for (const A of B)
|
|
1407
|
+
o(A.contentRect.width);
|
|
1408
|
+
});
|
|
1409
|
+
return c.observe(T.current), () => c.disconnect();
|
|
1410
|
+
}, []);
|
|
1411
|
+
const L = a != null ? Math.round(w * a) : f, O = m != null ? Math.round(w * m) : C, Y = b ?? (r === "none" ? 0 : L - 40), _ = H(
|
|
1412
|
+
(c) => {
|
|
1413
|
+
c.preventDefault(), $.current = c.clientX, U.current = s ? u : n, I(!0);
|
|
1414
|
+
},
|
|
1415
|
+
[n, s, u]
|
|
1416
|
+
);
|
|
1417
|
+
X(() => {
|
|
1418
|
+
if (!i)
|
|
1419
|
+
return;
|
|
1420
|
+
const c = (A) => {
|
|
1421
|
+
const K = A.clientX - $.current, q = U.current + K;
|
|
1422
|
+
if ((r === "left" || r === "both") && q < Y) {
|
|
1423
|
+
s || S(!0);
|
|
1424
|
+
return;
|
|
1425
|
+
}
|
|
1426
|
+
s && S(!1), g(Math.min(Math.max(q, L), O));
|
|
1427
|
+
}, B = () => I(!1);
|
|
1428
|
+
return document.addEventListener("mousemove", c), document.addEventListener("mouseup", B), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", () => {
|
|
1429
|
+
document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
1430
|
+
};
|
|
1431
|
+
}, [
|
|
1432
|
+
i,
|
|
1433
|
+
s,
|
|
1434
|
+
L,
|
|
1435
|
+
O,
|
|
1436
|
+
Y,
|
|
1437
|
+
w,
|
|
1438
|
+
z,
|
|
1439
|
+
r,
|
|
1440
|
+
S
|
|
1441
|
+
]);
|
|
1442
|
+
const J = H(() => {
|
|
1443
|
+
r !== "none" && S((c) => !c);
|
|
1444
|
+
}, [S, r]), G = s ? u : n;
|
|
1445
|
+
return /* @__PURE__ */ t(
|
|
1446
|
+
"div",
|
|
1447
|
+
{
|
|
1448
|
+
ref: T,
|
|
1449
|
+
style: {
|
|
1450
|
+
display: "flex",
|
|
1451
|
+
height: "100%",
|
|
1452
|
+
overflow: "hidden",
|
|
1453
|
+
position: "relative",
|
|
1454
|
+
...y
|
|
1455
|
+
},
|
|
1456
|
+
children: [
|
|
1457
|
+
(G > 0 || !s) && /* @__PURE__ */ e(
|
|
1458
|
+
"div",
|
|
1459
|
+
{
|
|
1460
|
+
style: {
|
|
1461
|
+
width: G,
|
|
1462
|
+
flexShrink: 0,
|
|
1463
|
+
overflow: "hidden",
|
|
1464
|
+
transition: i ? "none" : "width 0.2s ease",
|
|
1465
|
+
height: "100%",
|
|
1466
|
+
border: "1px solid",
|
|
1467
|
+
borderColor: "var(--border-subtle)"
|
|
1468
|
+
},
|
|
1469
|
+
children: !s && v
|
|
1470
|
+
}
|
|
1471
|
+
),
|
|
1472
|
+
/* @__PURE__ */ t(
|
|
1473
|
+
"div",
|
|
1474
|
+
{
|
|
1475
|
+
onMouseDown: _,
|
|
1476
|
+
onDoubleClick: J,
|
|
1477
|
+
style: {
|
|
1478
|
+
width: `${z}px`,
|
|
1479
|
+
flexShrink: 0,
|
|
1480
|
+
cursor: "col-resize",
|
|
1481
|
+
display: "flex",
|
|
1482
|
+
alignItems: "center",
|
|
1483
|
+
justifyContent: "center",
|
|
1484
|
+
position: "relative",
|
|
1485
|
+
zIndex: 2
|
|
1486
|
+
},
|
|
1487
|
+
children: [
|
|
1488
|
+
/* @__PURE__ */ e(
|
|
1489
|
+
"div",
|
|
1490
|
+
{
|
|
1491
|
+
style: {
|
|
1492
|
+
position: "absolute",
|
|
1493
|
+
top: "50%",
|
|
1494
|
+
left: "50%",
|
|
1495
|
+
transform: "translate(-50%, -50%)",
|
|
1496
|
+
width: "5px",
|
|
1497
|
+
height: "28px",
|
|
1498
|
+
borderRadius: "3px",
|
|
1499
|
+
background: i ? "var(--rail-discovery, #5E88B0)" : "var(--border, rgba(52,58,64,0.12))",
|
|
1500
|
+
opacity: i ? 1 : 0,
|
|
1501
|
+
transition: "opacity 0.15s ease, background 0.15s ease"
|
|
1502
|
+
},
|
|
1503
|
+
className: "splitpane-grip"
|
|
1504
|
+
}
|
|
1505
|
+
),
|
|
1506
|
+
/* @__PURE__ */ e("style", { children: `
|
|
1507
|
+
div:hover > .splitpane-grip { opacity: 0.7 !important; }
|
|
1508
|
+
` })
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
),
|
|
1512
|
+
/* @__PURE__ */ e(
|
|
1513
|
+
"div",
|
|
1514
|
+
{
|
|
1515
|
+
style: {
|
|
1516
|
+
flex: 1,
|
|
1517
|
+
minWidth: 0,
|
|
1518
|
+
overflow: "hidden",
|
|
1519
|
+
height: "100%"
|
|
1520
|
+
},
|
|
1521
|
+
children: h
|
|
1522
|
+
}
|
|
1523
|
+
)
|
|
1524
|
+
]
|
|
1525
|
+
}
|
|
1526
|
+
);
|
|
1527
|
+
}
|
|
3
1528
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1529
|
+
ye as DemoProjectBanner,
|
|
1530
|
+
fe as FirstCallScreen,
|
|
1531
|
+
Ce as IntegrationCard,
|
|
1532
|
+
ve as LoginForm,
|
|
1533
|
+
me as OnboardingChecklist,
|
|
1534
|
+
ke as SplitPane
|
|
10
1535
|
};
|
|
11
1536
|
//# sourceMappingURL=layout.es.js.map
|