chordia-ui 3.2.2 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/dist/IntegrationCard.cjs.js +2 -0
- package/dist/IntegrationCard.cjs.js.map +1 -0
- package/dist/IntegrationCard.es.js +217 -0
- package/dist/IntegrationCard.es.js.map +1 -0
- package/dist/UploadInteraction.cjs.js +2 -0
- package/dist/UploadInteraction.cjs.js.map +1 -0
- package/dist/UploadInteraction.es.js +379 -0
- package/dist/UploadInteraction.es.js.map +1 -0
- package/dist/components/layout.cjs.js +2 -2
- package/dist/components/layout.cjs.js.map +1 -1
- package/dist/components/layout.es.js +202 -411
- package/dist/components/layout.es.js.map +1 -1
- package/dist/components/onboarding.cjs.js +2 -0
- package/dist/components/onboarding.cjs.js.map +1 -0
- package/dist/components/onboarding.es.js +712 -0
- package/dist/components/onboarding.es.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs2.js +2 -2
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.es.js +49 -41
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +869 -811
- package/dist/index.es2.js.map +1 -1
- package/dist/pages/interactionDetails.cjs.js +1 -1
- package/dist/pages/interactionDetails.cjs.js.map +1 -1
- package/dist/pages/interactionDetails.es.js +16 -15
- package/dist/pages/interactionDetails.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/src/components/index.js +3 -0
- package/src/components/login/LoginPage.jsx +107 -5
- package/src/components/onboarding/AddTeammates.jsx +278 -0
- package/src/components/onboarding/ConnectData.jsx +89 -0
- package/src/components/onboarding/GettingStarted.jsx +524 -0
- package/src/components/onboarding/UploadEvaluate.jsx +255 -0
- package/src/components/onboarding/UploadInteraction.jsx +186 -0
- package/src/components/onboarding/index.js +5 -0
- package/src/tokens/colors.css +13 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useRef as x } from "react";
|
|
3
|
+
import { Upload as S, CircleUser as w, Compass as z, Link2 as C, CloudUpload as k } from "lucide-react";
|
|
4
|
+
const a = "var(--font-sans)", W = {
|
|
5
|
+
padding: "40px 48px",
|
|
6
|
+
fontFamily: a,
|
|
7
|
+
minHeight: "100vh",
|
|
8
|
+
background: "var(--grey-white)",
|
|
9
|
+
boxSizing: "border-box"
|
|
10
|
+
}, D = {
|
|
11
|
+
fontSize: "var(--text-4xl)",
|
|
12
|
+
fontWeight: "var(--font-bold)",
|
|
13
|
+
fontFamily: a,
|
|
14
|
+
color: "var(--text-ink)",
|
|
15
|
+
margin: 0,
|
|
16
|
+
letterSpacing: "var(--tracking-tight)",
|
|
17
|
+
lineHeight: "var(--leading-tight)"
|
|
18
|
+
}, H = {
|
|
19
|
+
fontSize: 14,
|
|
20
|
+
fontStyle: "normal",
|
|
21
|
+
fontWeight: 400,
|
|
22
|
+
lineHeight: "140%",
|
|
23
|
+
color: "var(--color-text-secondary)",
|
|
24
|
+
margin: "8px 0 0",
|
|
25
|
+
fontFamily: a
|
|
26
|
+
}, I = {
|
|
27
|
+
display: "grid",
|
|
28
|
+
gridTemplateColumns: "1fr 1fr",
|
|
29
|
+
gap: 12,
|
|
30
|
+
marginTop: "36px"
|
|
31
|
+
}, v = {
|
|
32
|
+
display: "flex",
|
|
33
|
+
height: 160,
|
|
34
|
+
padding: 24,
|
|
35
|
+
flexDirection: "column",
|
|
36
|
+
justifyContent: "space-between",
|
|
37
|
+
alignItems: "flex-start",
|
|
38
|
+
borderRadius: 12,
|
|
39
|
+
border: "1px solid var(--grey-absent)",
|
|
40
|
+
background: "var(--grey-white)",
|
|
41
|
+
boxSizing: "border-box",
|
|
42
|
+
transition: "var(--transition)",
|
|
43
|
+
cursor: "default",
|
|
44
|
+
gap: 8
|
|
45
|
+
}, T = {
|
|
46
|
+
...v,
|
|
47
|
+
boxShadow: "var(--shadow-sm)"
|
|
48
|
+
}, F = {
|
|
49
|
+
width: 40,
|
|
50
|
+
height: 40,
|
|
51
|
+
borderRadius: "var(--radius)",
|
|
52
|
+
background: "var(--paper-secondary)",
|
|
53
|
+
display: "flex",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
color: "var(--text-base)"
|
|
57
|
+
}, L = {
|
|
58
|
+
color: "var(--grey-strong)",
|
|
59
|
+
fontSize: 20,
|
|
60
|
+
fontStyle: "normal",
|
|
61
|
+
fontWeight: 600,
|
|
62
|
+
lineHeight: "normal",
|
|
63
|
+
fontFamily: a,
|
|
64
|
+
margin: 0
|
|
65
|
+
}, A = {
|
|
66
|
+
fontSize: 13,
|
|
67
|
+
fontStyle: "normal",
|
|
68
|
+
fontWeight: 400,
|
|
69
|
+
lineHeight: "140%",
|
|
70
|
+
color: "var(--text-base)",
|
|
71
|
+
margin: 0,
|
|
72
|
+
fontFamily: a,
|
|
73
|
+
flex: "1 0 0"
|
|
74
|
+
}, M = {
|
|
75
|
+
display: "flex",
|
|
76
|
+
height: 28,
|
|
77
|
+
padding: 10,
|
|
78
|
+
justifyContent: "center",
|
|
79
|
+
alignItems: "center",
|
|
80
|
+
gap: 10,
|
|
81
|
+
borderRadius: 10,
|
|
82
|
+
background: "var(--grey-strong)",
|
|
83
|
+
fontSize: 14,
|
|
84
|
+
fontStyle: "normal",
|
|
85
|
+
fontWeight: 600,
|
|
86
|
+
lineHeight: 1,
|
|
87
|
+
fontFamily: a,
|
|
88
|
+
color: "var(--grey-white)",
|
|
89
|
+
border: "none",
|
|
90
|
+
cursor: "pointer",
|
|
91
|
+
transition: "var(--transition-fast)",
|
|
92
|
+
outline: "none",
|
|
93
|
+
boxSizing: "border-box"
|
|
94
|
+
}, R = {
|
|
95
|
+
flex: 1,
|
|
96
|
+
height: 8,
|
|
97
|
+
borderRadius: 4,
|
|
98
|
+
background: "var(--border)",
|
|
99
|
+
overflow: "hidden"
|
|
100
|
+
}, j = (r) => ({
|
|
101
|
+
width: `${r}%`,
|
|
102
|
+
height: "100%",
|
|
103
|
+
borderRadius: 4,
|
|
104
|
+
background: "var(--color-green)",
|
|
105
|
+
transition: "width 0.4s ease-out"
|
|
106
|
+
}), B = {
|
|
107
|
+
display: "inline-flex",
|
|
108
|
+
alignItems: "center",
|
|
109
|
+
gap: 4,
|
|
110
|
+
fontSize: "var(--text-xs)",
|
|
111
|
+
fontWeight: "var(--font-semibold)",
|
|
112
|
+
color: "var(--rail-compliance)",
|
|
113
|
+
fontFamily: a,
|
|
114
|
+
marginLeft: 12
|
|
115
|
+
};
|
|
116
|
+
function y({ icon: r, title: l, description: o, buttonLabel: s, onAction: g, recommended: h, children: p }) {
|
|
117
|
+
const [d, f] = m(!1);
|
|
118
|
+
return /* @__PURE__ */ n(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
style: d ? T : v,
|
|
122
|
+
onMouseEnter: () => f(!0),
|
|
123
|
+
onMouseLeave: () => f(!1),
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ n("div", { children: [
|
|
126
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
127
|
+
/* @__PURE__ */ e("div", { style: F, children: r }),
|
|
128
|
+
/* @__PURE__ */ e("h3", { style: L, children: l })
|
|
129
|
+
] }),
|
|
130
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, marginLeft: 52, marginTop: 4 }, children: [
|
|
131
|
+
o && /* @__PURE__ */ e("p", { style: A, children: o }),
|
|
132
|
+
p
|
|
133
|
+
] })
|
|
134
|
+
] }),
|
|
135
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", marginLeft: 52 }, children: [
|
|
136
|
+
/* @__PURE__ */ e(
|
|
137
|
+
"button",
|
|
138
|
+
{
|
|
139
|
+
style: M,
|
|
140
|
+
onClick: g,
|
|
141
|
+
onMouseEnter: (t) => {
|
|
142
|
+
t.currentTarget.style.opacity = "0.85";
|
|
143
|
+
},
|
|
144
|
+
onMouseLeave: (t) => {
|
|
145
|
+
t.currentTarget.style.opacity = "1";
|
|
146
|
+
},
|
|
147
|
+
children: s
|
|
148
|
+
}
|
|
149
|
+
),
|
|
150
|
+
h && /* @__PURE__ */ n("span", { style: B, children: [
|
|
151
|
+
/* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z" }) }),
|
|
152
|
+
"Recommended"
|
|
153
|
+
] })
|
|
154
|
+
] })
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
const Q = ({
|
|
160
|
+
userName: r = "Will",
|
|
161
|
+
stepsCompleted: l = 4,
|
|
162
|
+
totalSteps: o = 6,
|
|
163
|
+
onUpload: s,
|
|
164
|
+
onContinue: g,
|
|
165
|
+
onExplore: h,
|
|
166
|
+
onConnect: p
|
|
167
|
+
}) => {
|
|
168
|
+
const d = l / o * 100;
|
|
169
|
+
return /* @__PURE__ */ n("div", { style: W, children: [
|
|
170
|
+
/* @__PURE__ */ n("h1", { style: D, children: [
|
|
171
|
+
"Welcome ",
|
|
172
|
+
r
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ e("p", { style: H, children: "Get started with your project or explore new features" }),
|
|
175
|
+
/* @__PURE__ */ n("div", { style: I, children: [
|
|
176
|
+
/* @__PURE__ */ e(
|
|
177
|
+
y,
|
|
178
|
+
{
|
|
179
|
+
icon: /* @__PURE__ */ e(S, { size: 24 }),
|
|
180
|
+
title: "Upload and Evaluate Audio",
|
|
181
|
+
description: "Upload Audio Files to Run Evaluations: MP3, WMA or WAV (up to 50 files, max 325MB total)",
|
|
182
|
+
buttonLabel: "Upload",
|
|
183
|
+
onAction: s
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ e(
|
|
187
|
+
y,
|
|
188
|
+
{
|
|
189
|
+
icon: /* @__PURE__ */ e(w, { size: 24 }),
|
|
190
|
+
title: "Getting started with Chordia",
|
|
191
|
+
description: "Complete these steps to get the most out of Chordia.",
|
|
192
|
+
buttonLabel: "Continue",
|
|
193
|
+
onAction: g,
|
|
194
|
+
children: /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 8, width: "100%" }, children: [
|
|
195
|
+
/* @__PURE__ */ e("div", { style: R, children: /* @__PURE__ */ e("div", { style: j(d) }) }),
|
|
196
|
+
/* @__PURE__ */ n("span", { style: { fontSize: 12, color: "var(--text-muted)", fontFamily: a, whiteSpace: "nowrap" }, children: [
|
|
197
|
+
/* @__PURE__ */ e("strong", { style: { color: "var(--text-base)", fontWeight: 600 }, children: l }),
|
|
198
|
+
" of ",
|
|
199
|
+
o,
|
|
200
|
+
" steps completed"
|
|
201
|
+
] })
|
|
202
|
+
] })
|
|
203
|
+
}
|
|
204
|
+
),
|
|
205
|
+
/* @__PURE__ */ e(
|
|
206
|
+
y,
|
|
207
|
+
{
|
|
208
|
+
icon: /* @__PURE__ */ e(z, { size: 24 }),
|
|
209
|
+
title: "Explore Demo Projects",
|
|
210
|
+
description: "Explore how Chordia Compass transforms real data into insights with plans, dashboards, and evaluations.",
|
|
211
|
+
buttonLabel: "Explore",
|
|
212
|
+
onAction: h,
|
|
213
|
+
recommended: !0
|
|
214
|
+
}
|
|
215
|
+
),
|
|
216
|
+
/* @__PURE__ */ e(
|
|
217
|
+
y,
|
|
218
|
+
{
|
|
219
|
+
icon: /* @__PURE__ */ e(C, { size: 24 }),
|
|
220
|
+
title: "Connect Data Source",
|
|
221
|
+
description: "Connect and integrate third-party tools with your external data sources.",
|
|
222
|
+
buttonLabel: "Connect",
|
|
223
|
+
onAction: p
|
|
224
|
+
}
|
|
225
|
+
)
|
|
226
|
+
] })
|
|
227
|
+
] });
|
|
228
|
+
}, c = "var(--font-sans)", E = {
|
|
229
|
+
fontFamily: c
|
|
230
|
+
}, U = {
|
|
231
|
+
fontSize: 20,
|
|
232
|
+
fontWeight: 600,
|
|
233
|
+
fontStyle: "normal",
|
|
234
|
+
fontFamily: c,
|
|
235
|
+
color: "var(--grey-strong)",
|
|
236
|
+
margin: 0,
|
|
237
|
+
lineHeight: "normal"
|
|
238
|
+
}, O = {
|
|
239
|
+
fontSize: 13,
|
|
240
|
+
fontWeight: 400,
|
|
241
|
+
fontStyle: "normal",
|
|
242
|
+
color: "var(--color-text-secondary)",
|
|
243
|
+
fontFamily: c,
|
|
244
|
+
margin: "4px 0 0",
|
|
245
|
+
lineHeight: "140%"
|
|
246
|
+
}, b = {
|
|
247
|
+
display: "flex",
|
|
248
|
+
flexDirection: "column",
|
|
249
|
+
alignItems: "center",
|
|
250
|
+
justifyContent: "center",
|
|
251
|
+
width: "100%",
|
|
252
|
+
minHeight: 320,
|
|
253
|
+
borderRadius: 16,
|
|
254
|
+
border: "2px dashed var(--color-input-border)",
|
|
255
|
+
background: "var(--grey-white)",
|
|
256
|
+
boxSizing: "border-box",
|
|
257
|
+
cursor: "pointer",
|
|
258
|
+
transition: "var(--transition-fast)",
|
|
259
|
+
marginTop: 24,
|
|
260
|
+
padding: "48px 24px"
|
|
261
|
+
}, P = {
|
|
262
|
+
...b,
|
|
263
|
+
borderColor: "var(--color-green)",
|
|
264
|
+
background: "var(--color-green-ring)"
|
|
265
|
+
}, V = {
|
|
266
|
+
width: 80,
|
|
267
|
+
height: 80,
|
|
268
|
+
borderRadius: 9999,
|
|
269
|
+
background: "var(--focus-2)",
|
|
270
|
+
display: "flex",
|
|
271
|
+
alignItems: "center",
|
|
272
|
+
justifyContent: "center",
|
|
273
|
+
flexShrink: 0,
|
|
274
|
+
marginBottom: 20
|
|
275
|
+
}, $ = {
|
|
276
|
+
fontSize: 18,
|
|
277
|
+
fontWeight: 600,
|
|
278
|
+
fontFamily: c,
|
|
279
|
+
color: "var(--grey-strong)",
|
|
280
|
+
textAlign: "center",
|
|
281
|
+
lineHeight: "28px",
|
|
282
|
+
margin: 0
|
|
283
|
+
}, G = {
|
|
284
|
+
display: "flex",
|
|
285
|
+
height: 32,
|
|
286
|
+
padding: 16,
|
|
287
|
+
justifyContent: "center",
|
|
288
|
+
alignItems: "center",
|
|
289
|
+
gap: 10,
|
|
290
|
+
borderRadius: 10,
|
|
291
|
+
border: "1px solid var(--grey-absent)",
|
|
292
|
+
background: "var(--grey-white)",
|
|
293
|
+
fontSize: 15,
|
|
294
|
+
fontWeight: 400,
|
|
295
|
+
fontFamily: c,
|
|
296
|
+
color: "var(--grey-strong)",
|
|
297
|
+
cursor: "pointer",
|
|
298
|
+
transition: "var(--transition-fast)",
|
|
299
|
+
outline: "none",
|
|
300
|
+
marginTop: 16,
|
|
301
|
+
boxSizing: "border-box"
|
|
302
|
+
}, q = {
|
|
303
|
+
fontSize: 14,
|
|
304
|
+
fontWeight: 400,
|
|
305
|
+
fontFamily: c,
|
|
306
|
+
color: "var(--grey-muted)",
|
|
307
|
+
textAlign: "center",
|
|
308
|
+
marginTop: 16,
|
|
309
|
+
lineHeight: "140%"
|
|
310
|
+
}, X = ({ onFileSelect: r }) => {
|
|
311
|
+
const [l, o] = m(!1), s = x(null), g = (t) => {
|
|
312
|
+
t.preventDefault(), o(!0);
|
|
313
|
+
}, h = () => {
|
|
314
|
+
o(!1);
|
|
315
|
+
}, p = (t) => {
|
|
316
|
+
var u;
|
|
317
|
+
t.preventDefault(), o(!1);
|
|
318
|
+
const i = (u = t.dataTransfer) == null ? void 0 : u.files;
|
|
319
|
+
i != null && i.length && (r == null || r(i));
|
|
320
|
+
}, d = () => {
|
|
321
|
+
var t;
|
|
322
|
+
(t = s.current) == null || t.click();
|
|
323
|
+
};
|
|
324
|
+
return /* @__PURE__ */ n("div", { style: E, children: [
|
|
325
|
+
/* @__PURE__ */ e("h2", { style: U, children: "Evaluate Interaction" }),
|
|
326
|
+
/* @__PURE__ */ e("p", { style: O, children: "Upload another interaction to compare results and identify patterns across multiple evaluations." }),
|
|
327
|
+
/* @__PURE__ */ e(
|
|
328
|
+
"input",
|
|
329
|
+
{
|
|
330
|
+
ref: s,
|
|
331
|
+
type: "file",
|
|
332
|
+
accept: ".mp3,.wma,.wav",
|
|
333
|
+
multiple: !0,
|
|
334
|
+
style: { display: "none" },
|
|
335
|
+
onChange: (t) => {
|
|
336
|
+
const i = t.target.files;
|
|
337
|
+
i != null && i.length && (r == null || r(i)), t.target.value = "";
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
/* @__PURE__ */ n(
|
|
342
|
+
"div",
|
|
343
|
+
{
|
|
344
|
+
style: l ? P : b,
|
|
345
|
+
onDragOver: g,
|
|
346
|
+
onDragLeave: h,
|
|
347
|
+
onDrop: p,
|
|
348
|
+
onClick: d,
|
|
349
|
+
children: [
|
|
350
|
+
/* @__PURE__ */ e("div", { style: V, children: /* @__PURE__ */ e(k, { size: 32, color: "var(--grey-strong)" }) }),
|
|
351
|
+
/* @__PURE__ */ e("p", { style: $, children: "Drop your file here, or" }),
|
|
352
|
+
/* @__PURE__ */ e(
|
|
353
|
+
"button",
|
|
354
|
+
{
|
|
355
|
+
type: "button",
|
|
356
|
+
style: G,
|
|
357
|
+
onClick: (t) => {
|
|
358
|
+
t.stopPropagation(), d();
|
|
359
|
+
},
|
|
360
|
+
onMouseEnter: (t) => {
|
|
361
|
+
t.currentTarget.style.background = "var(--hover-warm-subtle)";
|
|
362
|
+
},
|
|
363
|
+
onMouseLeave: (t) => {
|
|
364
|
+
t.currentTarget.style.background = "var(--grey-white)";
|
|
365
|
+
},
|
|
366
|
+
children: "Browse files"
|
|
367
|
+
}
|
|
368
|
+
),
|
|
369
|
+
/* @__PURE__ */ e("p", { style: q, children: "Supports: MP3, WMA or WAV" })
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
] });
|
|
374
|
+
};
|
|
375
|
+
export {
|
|
376
|
+
Q as U,
|
|
377
|
+
X as a
|
|
378
|
+
};
|
|
379
|
+
//# sourceMappingURL=UploadInteraction.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UploadInteraction.es.js","sources":["../src/components/onboarding/UploadEvaluate.jsx","../src/components/onboarding/UploadInteraction.jsx"],"sourcesContent":["import { useState } from 'react';\nimport { Upload, CircleUser, Compass, Link2 } from 'lucide-react';\n\nconst FF = 'var(--font-sans)';\n\n// ─── Styles ───\n\nconst containerStyle = {\n padding: '40px 48px',\n fontFamily: FF,\n minHeight: '100vh',\n background: 'var(--grey-white)',\n boxSizing: 'border-box',\n};\n\nconst headingStyle = {\n fontSize: 'var(--text-4xl)',\n fontWeight: 'var(--font-bold)',\n fontFamily: FF,\n color: 'var(--text-ink)',\n margin: 0,\n letterSpacing: 'var(--tracking-tight)',\n lineHeight: 'var(--leading-tight)',\n};\n\nconst subtitleStyle = {\n fontSize: 14,\n fontStyle: 'normal',\n fontWeight: 400,\n lineHeight: '140%',\n color: 'var(--color-text-secondary)',\n margin: '8px 0 0',\n fontFamily: FF,\n};\n\nconst gridStyle = {\n display: 'grid',\n gridTemplateColumns: '1fr 1fr',\n gap: 12,\n marginTop: '36px',\n};\n\nconst cardStyle = {\n display: 'flex',\n height: 160,\n padding: 24,\n flexDirection: 'column',\n justifyContent: 'space-between',\n alignItems: 'flex-start',\n borderRadius: 12,\n border: '1px solid var(--grey-absent)',\n background: 'var(--grey-white)',\n boxSizing: 'border-box',\n transition: 'var(--transition)',\n cursor: 'default',\n gap: 8\n};\n\nconst cardHoverStyle = {\n ...cardStyle,\n boxShadow: 'var(--shadow-sm)',\n};\n\nconst iconWrapperStyle = {\n width: 40,\n height: 40,\n borderRadius: 'var(--radius)',\n background: 'var(--paper-secondary)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'var(--text-base)',\n};\n\nconst cardTitleStyle = {\n color: 'var(--grey-strong)',\n fontSize: 20,\n fontStyle: 'normal',\n fontWeight: 600,\n lineHeight: 'normal',\n fontFamily: FF,\n margin: 0,\n};\n\nconst cardDescStyle = {\n fontSize: 13,\n fontStyle: 'normal',\n fontWeight: 400,\n lineHeight: '140%',\n color: 'var(--text-base)',\n margin: 0,\n fontFamily: FF,\n flex: '1 0 0',\n};\n\nconst btnStyle = {\n display: 'flex',\n height: 28,\n padding: 10,\n justifyContent: 'center',\n alignItems: 'center',\n gap: 10,\n borderRadius: 10,\n background: 'var(--grey-strong)',\n fontSize: 14,\n fontStyle: 'normal',\n fontWeight: 600,\n lineHeight: 1,\n fontFamily: FF,\n color: 'var(--grey-white)',\n border: 'none',\n cursor: 'pointer',\n transition: 'var(--transition-fast)',\n outline: 'none',\n boxSizing: 'border-box',\n};\n\nconst progressBarBg = {\n flex: 1,\n height: 8,\n borderRadius: 4,\n background: 'var(--border)',\n overflow: 'hidden',\n};\n\nconst progressBarFill = (pct) => ({\n width: `${pct}%`,\n height: '100%',\n borderRadius: 4,\n background: 'var(--color-green)',\n transition: 'width 0.4s ease-out',\n});\n\nconst recommendedBadge = {\n display: 'inline-flex',\n alignItems: 'center',\n gap: 4,\n fontSize: 'var(--text-xs)',\n fontWeight: 'var(--font-semibold)',\n color: 'var(--rail-compliance)',\n fontFamily: FF,\n marginLeft: 12,\n};\n\n// ─── Card Component ───\n\nfunction OnboardingCard({ icon, title, description, buttonLabel, onAction, recommended, children }) {\n const [hovered, setHovered] = useState(false);\n\n return (\n <div\n style={hovered ? cardHoverStyle : cardStyle}\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n >\n <div>\n <div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>\n <div style={iconWrapperStyle}>{icon}</div>\n <h3 style={cardTitleStyle}>{title}</h3>\n </div>\n <div style={{ display: 'flex', flexDirection: 'column', gap: 4, marginLeft: 52, marginTop: 4 }}>\n {description && <p style={cardDescStyle}>{description}</p>}\n {children}\n </div>\n </div>\n <div style={{ display: 'flex', alignItems: 'center', marginLeft: 52 }}>\n <button\n style={btnStyle}\n onClick={onAction}\n onMouseEnter={(e) => { e.currentTarget.style.opacity = '0.85'; }}\n onMouseLeave={(e) => { e.currentTarget.style.opacity = '1'; }}\n >\n {buttonLabel}\n </button>\n {recommended && (\n <span style={recommendedBadge}>\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z\" /></svg>\n Recommended\n </span>\n )}\n </div>\n </div>\n );\n}\n\n// ─── Main Component ───\n\nconst UploadEvaluate = ({\n userName = 'Will',\n stepsCompleted = 4,\n totalSteps = 6,\n onUpload,\n onContinue,\n onExplore,\n onConnect,\n}) => {\n const progressPct = (stepsCompleted / totalSteps) * 100;\n\n return (\n <div style={containerStyle}>\n <h1 style={headingStyle}>Welcome {userName}</h1>\n <p style={subtitleStyle}>Get started with your project or explore new features</p>\n\n <div style={gridStyle}>\n {/* Upload and Evaluate Audio */}\n <OnboardingCard\n icon={<Upload size={24} />}\n title=\"Upload and Evaluate Audio\"\n description=\"Upload Audio Files to Run Evaluations: MP3, WMA or WAV (up to 50 files, max 325MB total)\"\n buttonLabel=\"Upload\"\n onAction={onUpload}\n />\n\n {/* Getting started with Chordia */}\n <OnboardingCard\n icon={<CircleUser size={24} />}\n title=\"Getting started with Chordia\"\n description=\"Complete these steps to get the most out of Chordia.\"\n buttonLabel=\"Continue\"\n onAction={onContinue}\n >\n <div style={{ display: 'flex', alignItems: 'center', gap: 8, width: '100%' }}>\n <div style={progressBarBg}>\n <div style={progressBarFill(progressPct)} />\n </div>\n <span style={{ fontSize: 12, color: 'var(--text-muted)', fontFamily: FF, whiteSpace: 'nowrap' }}>\n <strong style={{ color: 'var(--text-base)', fontWeight: 600 }}>{stepsCompleted}</strong> of {totalSteps} steps completed\n </span>\n </div>\n </OnboardingCard>\n\n {/* Explore Demo Projects */}\n <OnboardingCard\n icon={<Compass size={24} />}\n title=\"Explore Demo Projects\"\n description=\"Explore how Chordia Compass transforms real data into insights with plans, dashboards, and evaluations.\"\n buttonLabel=\"Explore\"\n onAction={onExplore}\n recommended\n />\n\n {/* Connect Data Source */}\n <OnboardingCard\n icon={<Link2 size={24} />}\n title=\"Connect Data Source\"\n description=\"Connect and integrate third-party tools with your external data sources.\"\n buttonLabel=\"Connect\"\n onAction={onConnect}\n />\n </div>\n </div>\n );\n};\n\nexport default UploadEvaluate;\n","import { useState, useRef } from 'react';\nimport { CloudUpload } from 'lucide-react';\n\nconst FF = 'var(--font-sans)';\n\n// ─── Styles ───\n\nconst containerStyle = {\n fontFamily: FF,\n};\n\nconst sectionTitleStyle = {\n fontSize: 20,\n fontWeight: 600,\n fontStyle: 'normal',\n fontFamily: FF,\n color: 'var(--grey-strong)',\n margin: 0,\n lineHeight: 'normal',\n};\n\nconst sectionSubtitleStyle = {\n fontSize: 13,\n fontWeight: 400,\n fontStyle: 'normal',\n color: 'var(--color-text-secondary)',\n fontFamily: FF,\n margin: '4px 0 0',\n lineHeight: '140%',\n};\n\nconst dropzoneStyle = {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n minHeight: 320,\n borderRadius: 16,\n border: '2px dashed var(--color-input-border)',\n background: 'var(--grey-white)',\n boxSizing: 'border-box',\n cursor: 'pointer',\n transition: 'var(--transition-fast)',\n marginTop: 24,\n padding: '48px 24px',\n};\n\nconst dropzoneHoverStyle = {\n ...dropzoneStyle,\n borderColor: 'var(--color-green)',\n background: 'var(--color-green-ring)',\n};\n\nconst dropzoneIconWrap = {\n width: 80,\n height: 80,\n borderRadius: 9999,\n background: 'var(--focus-2)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n marginBottom: 20,\n};\n\nconst dropzoneTextStyle = {\n fontSize: 18,\n fontWeight: 600,\n fontFamily: FF,\n color: 'var(--grey-strong)',\n textAlign: 'center',\n lineHeight: '28px',\n margin: 0,\n};\n\nconst browseButtonStyle = {\n display: 'flex',\n height: 32,\n padding: 16,\n justifyContent: 'center',\n alignItems: 'center',\n gap: 10,\n borderRadius: 10,\n border: '1px solid var(--grey-absent)',\n background: 'var(--grey-white)',\n fontSize: 15,\n fontWeight: 400,\n fontFamily: FF,\n color: 'var(--grey-strong)',\n cursor: 'pointer',\n transition: 'var(--transition-fast)',\n outline: 'none',\n marginTop: 16,\n boxSizing: 'border-box',\n};\n\nconst dropzoneHintStyle = {\n fontSize: 14,\n fontWeight: 400,\n fontFamily: FF,\n color: 'var(--grey-muted)',\n textAlign: 'center',\n marginTop: 16,\n lineHeight: '140%',\n};\n\n// ─── Component ───\n\nconst UploadInteraction = ({ onFileSelect }) => {\n const [dragOver, setDragOver] = useState(false);\n const fileInputRef = useRef(null);\n\n const handleDragOver = (e) => {\n e.preventDefault();\n setDragOver(true);\n };\n\n const handleDragLeave = () => {\n setDragOver(false);\n };\n\n const handleDrop = (e) => {\n e.preventDefault();\n setDragOver(false);\n const files = e.dataTransfer?.files;\n if (files?.length) {\n onFileSelect?.(files);\n }\n };\n\n const handleBrowseClick = () => {\n fileInputRef.current?.click();\n };\n\n const handleFileChange = (e) => {\n const files = e.target.files;\n if (files?.length) {\n onFileSelect?.(files);\n }\n e.target.value = '';\n };\n\n return (\n <div style={containerStyle}>\n <h2 style={sectionTitleStyle}>Evaluate Interaction</h2>\n <p style={sectionSubtitleStyle}>\n Upload another interaction to compare results and identify patterns across multiple evaluations.\n </p>\n\n <input\n ref={fileInputRef}\n type=\"file\"\n accept=\".mp3,.wma,.wav\"\n multiple\n style={{ display: 'none' }}\n onChange={handleFileChange}\n />\n\n <div\n style={dragOver ? dropzoneHoverStyle : dropzoneStyle}\n onDragOver={handleDragOver}\n onDragLeave={handleDragLeave}\n onDrop={handleDrop}\n onClick={handleBrowseClick}\n >\n <div style={dropzoneIconWrap}>\n <CloudUpload size={32} color=\"var(--grey-strong)\" />\n </div>\n <p style={dropzoneTextStyle}>Drop your file here, or</p>\n <button\n type=\"button\"\n style={browseButtonStyle}\n onClick={(e) => { e.stopPropagation(); handleBrowseClick(); }}\n onMouseEnter={(e) => { e.currentTarget.style.background = 'var(--hover-warm-subtle)'; }}\n onMouseLeave={(e) => { e.currentTarget.style.background = 'var(--grey-white)'; }}\n >\n Browse files\n </button>\n <p style={dropzoneHintStyle}>Supports: MP3, WMA or WAV</p>\n </div>\n </div>\n );\n};\n\nexport default UploadInteraction;\n"],"names":["FF","containerStyle","headingStyle","subtitleStyle","gridStyle","cardStyle","cardHoverStyle","iconWrapperStyle","cardTitleStyle","cardDescStyle","btnStyle","progressBarBg","progressBarFill","pct","recommendedBadge","OnboardingCard","icon","title","description","buttonLabel","onAction","recommended","children","hovered","setHovered","useState","jsxs","jsx","e","UploadEvaluate","userName","stepsCompleted","totalSteps","onUpload","onContinue","onExplore","onConnect","progressPct","Upload","CircleUser","Compass","Link2","sectionTitleStyle","sectionSubtitleStyle","dropzoneStyle","dropzoneHoverStyle","dropzoneIconWrap","dropzoneTextStyle","browseButtonStyle","dropzoneHintStyle","UploadInteraction","onFileSelect","dragOver","setDragOver","fileInputRef","useRef","handleDragOver","handleDragLeave","handleDrop","files","_a","handleBrowseClick","CloudUpload"],"mappings":";;;AAGA,MAAMA,IAAK,oBAILC,IAAiB;AAAA,EACrB,SAAS;AAAA,EACT,YAAYD;AAAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AACb,GAEME,IAAe;AAAA,EACnB,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAYF;AAAAA,EACZ,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,YAAY;AACd,GAEMG,IAAgB;AAAA,EACpB,UAAU;AAAA,EACV,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,YAAYH;AACd,GAEMI,IAAY;AAAA,EAChB,SAAS;AAAA,EACT,qBAAqB;AAAA,EACrB,KAAK;AAAA,EACL,WAAW;AACb,GA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Q;AAAA,QACR,OAAO,EAAE,SAAS,OAAO;AAAA,QACzB,UArBmB,CAAC1B,MAAM;AACxB,gBAAA+B,IAAQ/B,EAAE,OAAO;AACvB,UAAI+B,KAAA,QAAAA,EAAO,WACTR,KAAA,QAAAA,EAAeQ,KAEjB/B,EAAE,OAAO,QAAQ;AAAA,QAAA;AAAA,MAgBH;AAAA,IACZ;AAAA,IAEA,gBAAAF;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO0B,IAAWP,IAAqBD;AAAA,QACvC,YAAYY;AAAA,QACZ,aAAaC;AAAA,QACb,QAAQC;AAAA,QACR,SAASG;AAAA,QAET,UAAA;AAAA,UAAC,gBAAAlC,EAAA,OAAA,EAAI,OAAOmB,GACV,UAAA,gBAAAnB,EAACmC,KAAY,MAAM,IAAI,OAAM,qBAAA,CAAqB,EACpD,CAAA;AAAA,UACC,gBAAAnC,EAAA,KAAA,EAAE,OAAOoB,GAAmB,UAAuB,2BAAA;AAAA,UACpD,gBAAApB;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,OAAOqB;AAAA,cACP,SAAS,CAACpB,MAAM;AAAE,gBAAAA,EAAE,gBAAgB,GAAqBiC;cAAG;AAAA,cAC5D,cAAc,CAACjC,MAAM;AAAI,gBAAAA,EAAA,cAAc,MAAM,aAAa;AAAA,cAA4B;AAAA,cACtF,cAAc,CAACA,MAAM;AAAI,gBAAAA,EAAA,cAAc,MAAM,aAAa;AAAA,cAAqB;AAAA,cAChF,UAAA;AAAA,YAAA;AAAA,UAED;AAAA,UACC,gBAAAD,EAAA,KAAA,EAAE,OAAOsB,GAAmB,UAAyB,6BAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACxD;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),s=require("lucide-react");function X({onUploadCall:b,onConnectSource:u,onUseSample:l,showExamples:a=!1}){const[f,j]=d.useState(null),[i,m]=d.useState(null),[c,v]=d.useState(null),[g,t]=d.useState(null),y=d.useRef(null),w=[{id:"five9",name:"Five9",status:"available",description:"Cloud contact center platform"},{id:"twilio",name:"Twilio Flex",status:"available",description:"Programmable contact center"},{id:"genesys",name:"Genesys Cloud",status:"available",description:"All-in-one cloud contact center"},{id:"zoom",name:"Zoom Phone",status:"coming-soon",description:"Cloud phone system"}],S=[{id:"retail-support",name:"Retail Customer Support",description:"Sample interactions from retail customer service team",interactions:24,dateRange:"Last 30 days"},{id:"healthcare-billing",name:"Healthcare Billing Inquiries",description:"Patient billing and insurance verification calls",interactions:18,dateRange:"Last 2 weeks"},{id:"financial-services",name:"Financial Services Compliance",description:"Banking and financial advisory interactions",interactions:32,dateRange:"Last 45 days"}],T=n=>{var h;const r=(h=n.target.files)==null?void 0:h[0];if(r){const o=r.type.startsWith("audio/"),F=r.type.startsWith("video/");o||F?(m({name:r.name,type:r.type,size:r.size,lastModified:new Date(r.lastModified)}),b?b(r):console.log("File uploaded:",r.name,r.type,`(${(r.size/1024/1024).toFixed(2)} MB)`)):alert("Please select an audio or video file.")}y.current&&(y.current.value="")},R=n=>{const r=w.find(h=>h.id===n);r&&r.status==="available"&&(v(r),u?u(r):console.log("Connected to:",r.name))},B=n=>{const r=S.find(h=>h.id===n);r&&(t(r),l?l(r):console.log("Selected project:",r.name))},p=()=>{y.current&&y.current.click()},k=()=>{a&&!g||l&&l(g||{id:"default",name:"Demo Project"})},z=()=>{a&&!c||u&&u(c||{id:"default",name:"Data Source"})},C=[{id:"upload",icon:s.Upload,title:"Upload an interaction",description:"Drop an audio or video recording to see what Compass surfaces",recommended:!1,onClick:p},{id:"sample",icon:s.Sparkles,title:"Explore a demonstration project",description:"See how Chordia Compass surfaces insights from real interaction data",recommended:!0,onClick:k},{id:"connect",icon:s.Link,title:"Connect a data source",description:"Link your existing system to automatically analyze interactions",recommended:!1,onClick:z}];return e.jsxs("div",{style:{minHeight:"100vh",background:"var(--surface-warm)",display:"flex",alignItems:"center",justifyContent:"center",padding:"32px"},children:[e.jsx("input",{ref:y,type:"file",accept:"audio/*,video/*",onChange:T,style:{display:"none"}}),e.jsxs("div",{style:{maxWidth:"680px",width:"100%"},children:[e.jsxs("div",{style:{textAlign:"center",marginBottom:"48px"},children:[e.jsx("h1",{style:{fontSize:"32px",fontWeight:760,letterSpacing:"-0.02em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"12px",lineHeight:1.2},children:"Experience Compass with one interaction"}),e.jsx("p",{style:{fontSize:"15px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5,maxWidth:"520px",margin:"0 auto"},children:"Compass surfaces evidence, signals, and actionable insights from customer interactions. Start by exploring what it reveals."})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:C.map(n=>{const r=n.icon,h=f===n.id;return e.jsxs("button",{type:"button",onClick:n.onClick,onMouseEnter:()=>j(n.id),onMouseLeave:()=>j(null),style:{position:"relative",width:"100%",padding:"24px 28px",background:h?"rgba(255, 255, 255, 0.95)":"rgba(255, 255, 255, 0.85)",border:n.recommended?"2px solid rgba(184, 156, 106, 0.35)":h?"1px solid rgba(52, 58, 64, 0.20)":"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"16px",cursor:"pointer",textAlign:"left",transition:"all 0.2s ease",transform:h?"translateY(-2px)":"translateY(0)",boxShadow:h?"0 12px 28px rgba(30, 33, 37, 0.12)":"0 4px 12px rgba(30, 33, 37, 0.06)"},children:[n.recommended&&e.jsx("div",{style:{position:"absolute",top:"16px",right:"20px",fontSize:"10px",fontWeight:650,letterSpacing:"0.06em",textTransform:"uppercase",color:"rgba(184, 156, 106, 0.75)",background:"rgba(184, 156, 106, 0.12)",padding:"4px 8px",borderRadius:"6px",border:"1px solid rgba(184, 156, 106, 0.2)"},children:"Recommended"}),e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"18px"},children:[e.jsx("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:n.recommended?"rgba(184, 156, 106, 0.12)":"rgba(231, 212, 162, 0.20)",border:n.recommended?"1px solid rgba(184, 156, 106, 0.25)":"1px solid rgba(231, 212, 162, 0.35)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(r,{size:22,style:{color:n.recommended?"rgba(184, 156, 106, 0.75)":"rgba(30, 33, 37, 0.52)"}})}),e.jsxs("div",{style:{flex:1,paddingTop:"2px"},children:[e.jsx("div",{style:{fontSize:"17px",fontWeight:680,letterSpacing:"-0.01em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"6px",lineHeight:1.3},children:n.title}),e.jsx("div",{style:{fontSize:"13.5px",color:"rgba(30, 33, 37, 0.62)",lineHeight:1.5},children:n.description})]})]})]},n.id)})}),e.jsx("div",{style:{marginTop:"32px",textAlign:"center",fontSize:"12px",color:"rgba(30, 33, 37, 0.52)",lineHeight:1.5},children:"Your workspace has been created automatically. You can configure settings and add teammates later."}),a&&e.jsxs("div",{style:{marginTop:"48px",paddingTop:"32px",borderTop:"1px solid rgba(52, 58, 64, 0.12)"},children:[e.jsx("h2",{style:{fontSize:"20px",fontWeight:680,letterSpacing:"-0.01em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"24px"},children:"Testing Examples"}),i&&e.jsxs("div",{style:{marginBottom:"24px",padding:"16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx(s.CheckCircle2,{size:18,style:{color:"#1F8F5A"}}),e.jsx("span",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)"},children:"File Uploaded"})]}),e.jsx("button",{onClick:()=>m(null),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center"},children:e.jsx(s.X,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})})]}),e.jsxs("div",{style:{fontSize:"13px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5},children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Name:"})," ",i.name]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Type:"})," ",i.type]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Size:"})," ",(i.size/1024/1024).toFixed(2)," MB"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Uploaded:"})," ",i.lastModified.toLocaleString()]})]})]}),!g&&e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("h3",{style:{fontSize:"15px",fontWeight:650,color:"rgba(30, 33, 37, 0.82)",marginBottom:"12px"},children:"Select a Demonstration Project:"}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:S.map(n=>e.jsxs("button",{onClick:()=>B(n.id),style:{padding:"12px 16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"8px",textAlign:"left",cursor:"pointer",transition:"all 0.15s ease"},onMouseEnter:r=>{r.currentTarget.style.background="rgba(255, 255, 255, 0.95)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.20)"},onMouseLeave:r=>{r.currentTarget.style.background="rgba(255, 255, 255, 0.85)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},children:[e.jsx("div",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)",marginBottom:"4px"},children:n.name}),e.jsx("div",{style:{fontSize:"12px",color:"rgba(30, 33, 37, 0.62)",marginBottom:"4px"},children:n.description}),e.jsxs("div",{style:{fontSize:"11px",color:"rgba(30, 33, 37, 0.52)"},children:[n.interactions," interactions · ",n.dateRange]})]},n.id))})]}),g&&e.jsxs("div",{style:{marginBottom:"24px",padding:"16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx(s.CheckCircle2,{size:18,style:{color:"#1F8F5A"}}),e.jsxs("span",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)"},children:["Project Selected: ",g.name]})]}),e.jsx("button",{onClick:()=>t(null),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center"},children:e.jsx(s.X,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})})]}),e.jsxs("div",{style:{fontSize:"13px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5},children:[e.jsx("div",{children:g.description}),e.jsxs("div",{style:{marginTop:"4px"},children:[e.jsx("strong",{children:g.interactions})," interactions · ",e.jsx("strong",{children:g.dateRange})]})]})]}),!c&&e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("h3",{style:{fontSize:"15px",fontWeight:650,color:"rgba(30, 33, 37, 0.82)",marginBottom:"12px"},children:"Connect a Data Source:"}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:w.map(n=>e.jsx("button",{onClick:()=>R(n.id),disabled:n.status==="coming-soon",style:{padding:"12px 16px",background:n.status==="coming-soon"?"rgba(255, 255, 255, 0.5)":"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"8px",textAlign:"left",cursor:n.status==="coming-soon"?"not-allowed":"pointer",transition:"all 0.15s ease",opacity:n.status==="coming-soon"?.6:1},onMouseEnter:r=>{n.status!=="coming-soon"&&(r.currentTarget.style.background="rgba(255, 255, 255, 0.95)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.20)")},onMouseLeave:r=>{n.status!=="coming-soon"&&(r.currentTarget.style.background="rgba(255, 255, 255, 0.85)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)")},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)",marginBottom:"4px"},children:n.name}),e.jsx("div",{style:{fontSize:"12px",color:"rgba(30, 33, 37, 0.62)"},children:n.description})]}),n.status==="coming-soon"&&e.jsx("span",{style:{fontSize:"10px",fontWeight:600,color:"rgba(30, 33, 37, 0.42)",background:"rgba(30, 33, 37, 0.08)",padding:"4px 8px",borderRadius:"4px"},children:"Coming Soon"})]})},n.id))})]}),c&&e.jsxs("div",{style:{marginBottom:"24px",padding:"16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx(s.CheckCircle2,{size:18,style:{color:"#1F8F5A"}}),e.jsxs("span",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)"},children:["Connected: ",c.name]})]}),e.jsx("button",{onClick:()=>v(null),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center"},children:e.jsx(s.X,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})})]}),e.jsx("div",{style:{fontSize:"13px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5},children:c.description})]})]})]})]})}function G({onDismiss:b,onItemClick:u,completedItems:l=[]}){const[a,f]=d.useState(!1),[j,i]=d.useState(null),m=[{id:"name-project",title:"Name your workspace",description:"Give your default project a meaningful name",icon:s.FolderOpen,completed:l.includes("name-project"),optional:!0},{id:"evaluate-second-interaction",title:"Evaluate another interaction",description:"Upload or connect a second interaction to see patterns",icon:s.Sparkles,completed:l.includes("evaluate-second-interaction")},{id:"connect-source",title:"Connect a data source",description:"Link your system or platform for automatic evaluation",icon:s.Link,completed:l.includes("connect-source")},{id:"invite-team",title:"Add teammates",description:"Invite managers or QA team members to collaborate",icon:s.Users,completed:l.includes("invite-team"),optional:!0},{id:"learn-concepts",title:"Understand Chordia concepts",description:"Learn how conditions, evidence, and confidence work",icon:s.BookOpen,completed:l.includes("learn-concepts"),optional:!0},{id:"configure-scope",title:"Clarify evaluation scope",description:"Customize which signals and conditions matter for your team",icon:s.Settings,completed:l.includes("configure-scope"),optional:!0}],c=m.filter(t=>t.completed).length,v=m.length,g=c/v*100;return a?e.jsx("button",{type:"button",onClick:()=>f(!1),style:{width:"100%",padding:"14px 16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px",cursor:"pointer",textAlign:"left",transition:"all 0.15s ease",boxShadow:"0 2px 8px rgba(30, 33, 37, 0.04)"},onMouseEnter:t=>{t.currentTarget.style.background="rgba(255, 255, 255, 0.95)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.18)"},onMouseLeave:t=>{t.currentTarget.style.background="rgba(255, 255, 255, 0.85)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"},children:[e.jsxs("div",{style:{fontSize:"13px",fontWeight:600,color:"rgba(30, 33, 37, 0.75)"},children:["Getting started (",c,"/",v,")"]}),e.jsx(s.ChevronRight,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})]})}):e.jsxs("div",{style:{background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"16px",overflow:"hidden",boxShadow:"0 4px 16px rgba(30, 33, 37, 0.06)"},children:[e.jsxs("div",{style:{padding:"18px 20px 16px",borderBottom:"1px solid rgba(52, 58, 64, 0.08)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:"15px",fontWeight:680,letterSpacing:"-0.01em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"6px",lineHeight:1.3},children:"Getting started with Chordia"}),e.jsxs("div",{style:{fontSize:"12px",color:"rgba(30, 33, 37, 0.58)",lineHeight:1.4},children:[c," of ",v," completed"]})]}),e.jsxs("div",{style:{display:"flex",gap:"4px"},children:[e.jsx("button",{type:"button",onClick:()=>f(!0),style:{width:"28px",height:"28px",borderRadius:"6px",background:"transparent",border:"1px solid rgba(52, 58, 64, 0.12)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease",color:"rgba(30, 33, 37, 0.52)"},onMouseEnter:t=>{t.currentTarget.style.background="rgba(231, 212, 162, 0.12)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.18)"},onMouseLeave:t=>{t.currentTarget.style.background="transparent",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},title:"Collapse",children:e.jsx(s.ChevronRight,{size:14})}),b&&e.jsx("button",{type:"button",onClick:b,style:{width:"28px",height:"28px",borderRadius:"6px",background:"transparent",border:"1px solid rgba(52, 58, 64, 0.12)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease",color:"rgba(30, 33, 37, 0.52)"},onMouseEnter:t=>{t.currentTarget.style.background="rgba(231, 212, 162, 0.12)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.18)"},onMouseLeave:t=>{t.currentTarget.style.background="transparent",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},title:"Dismiss checklist",children:e.jsx(s.X,{size:14})})]})]}),e.jsx("div",{style:{marginTop:"14px",height:"6px",background:"rgba(30, 33, 37, 0.08)",borderRadius:"999px",overflow:"hidden"},children:e.jsx("div",{style:{height:"100%",width:`${g}%`,background:"linear-gradient(90deg, rgba(184, 156, 106, 0.75) 0%, rgba(139, 157, 127, 0.75) 100%)",borderRadius:"999px",transition:"width 0.4s ease"}})})]}),e.jsx("div",{style:{padding:"8px"},children:m.map((t,y)=>{const w=t.icon,S=j===t.id;return e.jsx("button",{type:"button",onClick:()=>u==null?void 0:u(t.id),onMouseEnter:()=>i(t.id),onMouseLeave:()=>i(null),disabled:t.completed,style:{width:"100%",padding:"12px 14px",background:t.completed?"rgba(139, 157, 127, 0.06)":S?"rgba(231, 212, 162, 0.12)":"transparent",border:"none",borderRadius:"10px",cursor:t.completed?"default":"pointer",textAlign:"left",transition:"all 0.15s ease",marginBottom:y<m.length-1?"4px":"0",opacity:t.completed?.7:1},children:e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px"},children:[e.jsx("div",{style:{width:"20px",height:"20px",marginTop:"1px",flexShrink:0},children:t.completed?e.jsx(s.CheckCircle2,{size:20,style:{color:"rgba(139, 157, 127, 0.75)"}}):e.jsx(s.Circle,{size:20,style:{color:"rgba(30, 33, 37, 0.24)"}})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"3px"},children:[e.jsx(w,{size:14,style:{color:"rgba(30, 33, 37, 0.52)",flexShrink:0}}),e.jsx("span",{style:{fontSize:"13px",fontWeight:600,color:t.completed?"rgba(30, 33, 37, 0.52)":"rgba(30, 33, 37, 0.85)",textDecoration:t.completed?"line-through":"none",lineHeight:1.3},children:t.title}),t.optional&&!t.completed&&e.jsx("span",{style:{fontSize:"9px",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",color:"rgba(30, 33, 37, 0.42)",background:"rgba(30, 33, 37, 0.06)",padding:"2px 5px",borderRadius:"4px"},children:"Optional"})]}),e.jsx("div",{style:{fontSize:"11.5px",color:"rgba(30, 33, 37, 0.52)",lineHeight:1.4,paddingLeft:"22px"},children:t.description})]}),!t.completed&&S&&e.jsx(s.ChevronRight,{size:16,style:{color:"rgba(30, 33, 37, 0.32)",marginTop:"2px",flexShrink:0}})]})},t.id)})}),e.jsx("div",{style:{padding:"12px 20px 16px",borderTop:"1px solid rgba(52, 58, 64, 0.08)"},children:e.jsxs("div",{style:{fontSize:"11px",color:"rgba(30, 33, 37, 0.52)",lineHeight:1.5,fontStyle:"italic"},children:["You can dismiss this checklist anytime. These steps help you get the most from Chordia, but ","aren't"," required."]})})]})}function N({text:b="Demo Project",accentColor:u="#B89C6A",textColor:l="rgba(255, 255, 255, 0.95)",size:a="medium",position:f="fixed"}){const i={small:{width:140,height:140,fontSize:"11px",letterSpacing:"0.08em",fontWeight:650},medium:{width:180,height:180,fontSize:"12px",letterSpacing:"0.1em",fontWeight:680},large:{width:220,height:220,fontSize:"13px",letterSpacing:"0.12em",fontWeight:700}}[a];return e.jsxs("div",{style:{position:f,top:0,right:0,width:i.width,height:i.height,overflow:"hidden",zIndex:f==="fixed"?9999:1,pointerEvents:"none"},children:[e.jsx("div",{style:{position:"absolute",top:0,right:0,width:0,height:0,borderStyle:"solid",borderWidth:`0 ${i.width}px ${i.height}px 0`,borderColor:`transparent ${u} transparent transparent`,opacity:.92}}),e.jsx("div",{style:{position:"absolute",top:0,right:0,width:0,height:0,borderStyle:"solid",borderWidth:`0 ${i.width}px ${i.height}px 0`,borderColor:"transparent rgba(0, 0, 0, 0.08) transparent transparent"}}),e.jsx("div",{style:{position:"absolute",top:a==="small"?"28px":a==="medium"?"38px":"48px",right:a==="small"?"-32px":a==="medium"?"-42px":"-52px",width:a==="small"?"160px":a==="medium"?"200px":"240px",transform:"rotate(45deg)",transformOrigin:"center",textAlign:"center"},children:e.jsx("div",{style:{fontSize:i.fontSize,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:"uppercase",color:l,textShadow:"0 1px 2px rgba(0, 0, 0, 0.15)",whiteSpace:"nowrap",userSelect:"none"},children:b})}),e.jsx("div",{style:{position:"absolute",top:0,right:0,width:i.width,height:i.height,background:"linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.04) 100%)",pointerEvents:"none"}})]})}function Q({providerName:b,description:u,status:l="available",railColor:a,logoUrl:f,icon:j,onConfigure:i}){const m={connected:{label:"Connected",color:"#6B7C93",bgColor:"rgba(107, 124, 147, 0.08)",borderColor:"rgba(107, 124, 147, 0.20)",icon:e.jsx(s.CheckCircle2,{size:14,strokeWidth:2.5})},available:{label:"Available",color:"#1E2125",bgColor:"rgba(30, 33, 37, 0.04)",borderColor:"rgba(30, 33, 37, 0.12)",icon:e.jsx(s.Circle,{size:14,strokeWidth:2})},"coming-soon":{label:"Coming Soon",color:"rgba(30, 33, 37, 0.42)",bgColor:"transparent",borderColor:"rgba(30, 33, 37, 0.12)",icon:e.jsx(s.Circle,{size:14,strokeWidth:2,style:{opacity:.4}})}},c=m[l]||m.available;return e.jsxs("div",{style:{background:"#FFFFFF",border:`1px solid ${a}20`,borderRadius:"8px",position:"relative",display:"flex",flexDirection:"column",transition:"all 0.15s ease",cursor:l==="coming-soon"?"default":"pointer",opacity:l==="coming-soon"?.6:1,overflow:"hidden",height:"100%"},className:"hover:shadow-sm",children:[e.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,width:"4px",background:a,opacity:l==="coming-soon"?.4:1}}),e.jsxs("div",{style:{padding:"20px",paddingLeft:"24px",display:"flex",flexDirection:"column",gap:"16px",height:"100%"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[e.jsx("div",{style:{width:"48px",height:"48px",borderRadius:"6px",background:`${a}08`,border:`1px solid ${a}18`,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:f?e.jsx("img",{src:f,alt:b,style:{width:"32px",height:"32px",objectFit:"contain"}}):e.jsx("div",{style:{color:a,fontSize:"20px",fontWeight:650,opacity:.8},children:j||(b?b.charAt(0):"")})}),e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",borderRadius:"4px",background:c.bgColor,border:`1px solid ${c.borderColor}`,fontSize:"11px",fontWeight:600,letterSpacing:"0.01em",color:c.color,flexShrink:0},children:[c.icon,c.label]})]}),e.jsxs("div",{style:{flex:1,minHeight:0},children:[e.jsx("h3",{style:{fontSize:"15px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)",marginBottom:"6px",letterSpacing:"-0.01em"},children:b}),e.jsx("p",{style:{fontSize:"13px",lineHeight:1.5,color:"rgba(30, 33, 37, 0.65)"},children:u})]}),l!=="coming-soon"&&e.jsxs("button",{onClick:v=>{v.stopPropagation(),i==null||i()},style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 14px",border:"1px solid rgba(30, 33, 37, 0.15)",borderRadius:"5px",background:l==="connected"?"transparent":"rgba(30, 33, 37, 0.03)",fontSize:"13px",fontWeight:600,color:"rgba(30, 33, 37, 0.92)",cursor:"pointer",transition:"all 0.15s ease",width:"100%",marginTop:"auto"},className:"hover:bg-[rgba(30,33,37,0.06)] hover:border-[rgba(30,33,37,0.20)]",children:[e.jsx(s.Settings,{size:14,strokeWidth:2.5}),l==="connected"?"Configure":"Connect"]})]})]})}const V="../../assets/chordia-logo.png";function Z({title:b="Chordia",subtitle:u="Sign in to continue",logo:l,onLogin:a,loading:f=!1,error:j=null,footer:i,showLabels:m=!0,emailPlaceholder:c="you@company.com",passwordPlaceholder:v="Password",onForgotPassword:g,compact:t=!1}){const[y,w]=d.useState(""),[S,T]=d.useState(""),[R,B]=d.useState(!1),[p,k]=d.useState(null),z=o=>{o.preventDefault(),!(!y||!S||f)&&(a==null||a(y,S))},C=y&&S&&!f,n="var(--rail-compliance)",r="201, 138, 90",h=e.jsxs("div",{style:{width:"100%",maxWidth:400,background:"var(--paper-elevated)",border:"1px solid var(--border)",borderRadius:"var(--radius-lg)",padding:"44px 36px 36px",boxShadow:"0 8px 32px rgba(30, 33, 37, 0.06), 0 1px 3px rgba(30, 33, 37, 0.04)",position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:3,background:`linear-gradient(90deg, var(--state-unknown), ${n})`,opacity:.6}}),e.jsx("div",{style:{textAlign:"center",marginBottom:32},children:l||e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"12px 24px",borderRadius:"var(--radius-lg)",background:"rgba(30, 33, 37, 0.92)",marginBottom:16},children:e.jsx("img",{src:V,alt:b,style:{height:28,display:"block"}})}),u&&e.jsx("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-muted)",marginTop:4,marginBottom:0},children:u})]})}),e.jsxs("form",{onSubmit:z,children:[e.jsxs("div",{style:{marginBottom:18},children:[m&&e.jsx("label",{style:{display:"block",fontSize:"var(--text-sm)",fontWeight:550,color:"var(--text-strong)",marginBottom:6,fontFamily:"var(--font-sans)"},children:"Email"}),e.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[e.jsx(s.Mail,{size:15,style:{position:"absolute",left:12,color:p==="email"?`rgba(${r}, 0.7)`:"var(--text-faint)",pointerEvents:"none",transition:"color 0.2s ease"}}),e.jsx("input",{type:"email",value:y,onChange:o=>w(o.target.value),placeholder:c,required:!0,autoFocus:!0,autoComplete:"email",style:{width:"100%",padding:"11px 12px 11px 38px",fontSize:"var(--text-md)",border:"1px solid",borderColor:p==="email"?n:"var(--border)",borderRadius:"var(--radius)",backgroundColor:p==="email"?"rgba(255,255,255,0.95)":"var(--paper)",color:"var(--text-ink)",fontFamily:"var(--font-sans)",outline:"none",transition:"border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",boxShadow:p==="email"?`0 0 0 3px rgba(${r}, 0.1)`:"none"},onFocus:()=>k("email"),onBlur:()=>k(null)})]})]}),e.jsxs("div",{style:{marginBottom:6},children:[m&&e.jsx("label",{style:{display:"block",fontSize:"var(--text-sm)",fontWeight:550,color:"var(--text-strong)",marginBottom:6,fontFamily:"var(--font-sans)"},children:"Password"}),e.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[e.jsx(s.Lock,{size:15,style:{position:"absolute",left:12,color:p==="password"?`rgba(${r}, 0.7)`:"var(--text-faint)",pointerEvents:"none",transition:"color 0.2s ease"}}),e.jsx("input",{type:R?"text":"password",value:S,onChange:o=>T(o.target.value),placeholder:v,required:!0,autoComplete:"current-password",style:{width:"100%",padding:"11px 42px 11px 38px",fontSize:"var(--text-md)",border:"1px solid",borderColor:p==="password"?n:"var(--border)",borderRadius:"var(--radius)",backgroundColor:p==="password"?"rgba(255,255,255,0.95)":"var(--paper)",color:"var(--text-ink)",fontFamily:"var(--font-sans)",outline:"none",transition:"border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",boxShadow:p==="password"?`0 0 0 3px rgba(${r}, 0.1)`:"none"},onFocus:()=>k("password"),onBlur:()=>k(null)}),e.jsx("button",{type:"button",onClick:()=>B(!R),style:{position:"absolute",right:8,background:"none",border:"none",padding:4,cursor:"pointer",color:"var(--text-faint)",display:"flex",alignItems:"center",transition:"color 0.15s ease",borderRadius:"var(--radius-sm)"},tabIndex:-1,onMouseEnter:o=>{o.currentTarget.style.color="var(--text-muted)"},onMouseLeave:o=>{o.currentTarget.style.color="var(--text-faint)"},children:R?e.jsx(s.EyeOff,{size:16}):e.jsx(s.Eye,{size:16})})]})]}),g&&e.jsx("div",{style:{textAlign:"right",marginBottom:4},children:e.jsx("button",{type:"button",onClick:g,style:{background:"none",border:"none",padding:"2px 0",fontSize:"var(--text-xs)",color:"var(--text-muted)",cursor:"pointer",fontFamily:"var(--font-sans)",transition:"color 0.15s ease"},onMouseEnter:o=>{o.currentTarget.style.color="var(--text-strong)"},onMouseLeave:o=>{o.currentTarget.style.color="var(--text-muted)"},children:"Forgot password?"})}),j&&e.jsx("div",{style:{fontSize:"var(--text-sm)",color:"var(--text-strong)",marginTop:12,padding:"8px 12px",background:"color-mix(in srgb, var(--state-unknown) 10%, transparent)",border:"1px solid color-mix(in srgb, var(--state-unknown) 25%, transparent)",borderRadius:"var(--radius-sm)",textAlign:"center",fontWeight:500},children:j}),e.jsx("button",{type:"submit",disabled:!C,style:{width:"100%",padding:"11px 0",marginTop:20,background:C?"var(--text-ink)":"var(--text-xfaint)",color:"#ffffff",border:"none",borderRadius:"var(--radius)",fontSize:"var(--text-md)",fontWeight:600,fontFamily:"var(--font-sans)",cursor:C?"pointer":"not-allowed",transition:"opacity 0.15s ease, transform 0.1s ease",display:"flex",alignItems:"center",justifyContent:"center",gap:8},onMouseEnter:o=>{C&&(o.currentTarget.style.opacity="0.85",o.currentTarget.style.transform="translateY(-1px)")},onMouseLeave:o=>{o.currentTarget.style.opacity="1",o.currentTarget.style.transform="translateY(0)"},onMouseDown:o=>{C&&(o.currentTarget.style.transform="translateY(0)")},onMouseUp:o=>{C&&(o.currentTarget.style.transform="translateY(-1px)")},children:f?"Signing in…":e.jsxs(e.Fragment,{children:["Sign In",e.jsx(s.ArrowRight,{size:16})]})})]}),i&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,margin:"24px 0 16px"},children:[e.jsx("div",{style:{flex:1,height:1,background:"var(--border)"}}),e.jsx("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-faint)"},children:"or"}),e.jsx("div",{style:{flex:1,height:1,background:"var(--border)"}})]}),e.jsx("div",{style:{textAlign:"center",fontSize:"var(--text-xs)",color:"var(--text-faint)"},children:i})]})]});return t?h:e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",background:"var(--bg-chordia)",padding:"var(--spacing-6)"},children:h})}function _({left:b,right:u,defaultWidth:l=260,defaultRatio:a,minWidth:f=180,maxWidth:j=450,minRatio:i,maxRatio:m,collapsedWidth:c=0,collapsed:v,onCollapsedChange:g,collapseSide:t="left",collapseThreshold:y,dividerWidth:w=7,style:S}){const T=v!==void 0,[R,B]=d.useState(!1),p=T?v:R,k=d.useCallback(x=>{const W=typeof x=="function"?x(p):x;T||B(W),g==null||g(W)},[T,p,g]),z=d.useRef(null),[C,n]=d.useState(0),[r,h]=d.useState(l),[o,F]=d.useState(!1),[$,O]=d.useState(!1),E=d.useRef(0),L=d.useRef(0);d.useLayoutEffect(()=>{if(!z.current)return;const x=z.current.offsetWidth;n(x),!$&&x>0&&(a!=null&&h(Math.round(x*a)),O(!0))},[]),d.useEffect(()=>{if(!z.current)return;const x=new ResizeObserver(W=>{for(const I of W)n(I.contentRect.width)});return x.observe(z.current),()=>x.disconnect()},[]);const M=i!=null?Math.round(C*i):f,D=m!=null?Math.round(C*m):j,A=y??(t==="none"?0:M-40),Y=d.useCallback(x=>{x.preventDefault(),E.current=x.clientX,L.current=p?c:r,F(!0)},[r,p,c]);d.useEffect(()=>{if(!o)return;const x=I=>{const q=I.clientX-E.current,H=L.current+q;if((t==="left"||t==="both")&&H<A){p||k(!0);return}p&&k(!1),h(Math.min(Math.max(H,M),D))},W=()=>F(!1);return document.addEventListener("mousemove",x),document.addEventListener("mouseup",W),document.body.style.userSelect="none",document.body.style.cursor="col-resize",()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",W),document.body.style.userSelect="",document.body.style.cursor=""}},[o,p,M,D,A,C,w,t,k]);const U=d.useCallback(()=>{t!=="none"&&k(x=>!x)},[k,t]),P=p?c:r;return e.jsxs("div",{ref:z,style:{display:"flex",height:"100%",overflow:"hidden",position:"relative",...S},children:[(P>0||!p)&&e.jsx("div",{style:{width:P,flexShrink:0,overflow:"hidden",transition:o?"none":"width 0.2s ease",height:"100%"},children:!p&&b}),e.jsxs("div",{onMouseDown:Y,onDoubleClick:U,style:{width:`${w}px`,flexShrink:0,cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",zIndex:2},children:[e.jsx("div",{style:{width:"1px",height:"100%",background:o?"var(--rail-discovery, #5E88B0)":"var(--border, rgba(52,58,64,0.12))",transition:"background 0.15s ease"}}),e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"5px",height:"28px",borderRadius:"3px",background:o?"var(--rail-discovery, #5E88B0)":"var(--border, rgba(52,58,64,0.12))",opacity:o?1:0,transition:"opacity 0.15s ease, background 0.15s ease"},className:"splitpane-grip"}),e.jsx("style",{children:`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),s=require("lucide-react"),X=require("../IntegrationCard.cjs.js");function G({onUploadCall:S,onConnectSource:h,onUseSample:g,showExamples:d=!1}){const[f,C]=a.useState(null),[i,m]=a.useState(null),[u,k]=a.useState(null),[c,t]=a.useState(null),b=a.useRef(null),w=[{id:"five9",name:"Five9",status:"available",description:"Cloud contact center platform"},{id:"twilio",name:"Twilio Flex",status:"available",description:"Programmable contact center"},{id:"genesys",name:"Genesys Cloud",status:"available",description:"All-in-one cloud contact center"},{id:"zoom",name:"Zoom Phone",status:"coming-soon",description:"Cloud phone system"}],y=[{id:"retail-support",name:"Retail Customer Support",description:"Sample interactions from retail customer service team",interactions:24,dateRange:"Last 30 days"},{id:"healthcare-billing",name:"Healthcare Billing Inquiries",description:"Patient billing and insurance verification calls",interactions:18,dateRange:"Last 2 weeks"},{id:"financial-services",name:"Financial Services Compliance",description:"Banking and financial advisory interactions",interactions:32,dateRange:"Last 45 days"}],T=n=>{var x;const r=(x=n.target.files)==null?void 0:x[0];if(r){const o=r.type.startsWith("audio/"),W=r.type.startsWith("video/");o||W?(m({name:r.name,type:r.type,size:r.size,lastModified:new Date(r.lastModified)}),S?S(r):console.log("File uploaded:",r.name,r.type,`(${(r.size/1024/1024).toFixed(2)} MB)`)):alert("Please select an audio or video file.")}b.current&&(b.current.value="")},R=n=>{const r=w.find(x=>x.id===n);r&&r.status==="available"&&(k(r),h?h(r):console.log("Connected to:",r.name))},M=n=>{const r=y.find(x=>x.id===n);r&&(t(r),g?g(r):console.log("Selected project:",r.name))},l=()=>{b.current&&b.current.click()},v=()=>{d&&!c||g&&g(c||{id:"default",name:"Demo Project"})},z=()=>{d&&!u||h&&h(u||{id:"default",name:"Data Source"})},j=[{id:"upload",icon:s.Upload,title:"Upload an interaction",description:"Drop an audio or video recording to see what Compass surfaces",recommended:!1,onClick:l},{id:"sample",icon:s.Sparkles,title:"Explore a demonstration project",description:"See how Chordia Compass surfaces insights from real interaction data",recommended:!0,onClick:v},{id:"connect",icon:s.Link,title:"Connect a data source",description:"Link your existing system to automatically analyze interactions",recommended:!1,onClick:z}];return e.jsxs("div",{style:{minHeight:"100vh",background:"var(--surface-warm)",display:"flex",alignItems:"center",justifyContent:"center",padding:"32px"},children:[e.jsx("input",{ref:b,type:"file",accept:"audio/*,video/*",onChange:T,style:{display:"none"}}),e.jsxs("div",{style:{maxWidth:"680px",width:"100%"},children:[e.jsxs("div",{style:{textAlign:"center",marginBottom:"48px"},children:[e.jsx("h1",{style:{fontSize:"32px",fontWeight:760,letterSpacing:"-0.02em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"12px",lineHeight:1.2},children:"Experience Compass with one interaction"}),e.jsx("p",{style:{fontSize:"15px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5,maxWidth:"520px",margin:"0 auto"},children:"Compass surfaces evidence, signals, and actionable insights from customer interactions. Start by exploring what it reveals."})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:j.map(n=>{const r=n.icon,x=f===n.id;return e.jsxs("button",{type:"button",onClick:n.onClick,onMouseEnter:()=>C(n.id),onMouseLeave:()=>C(null),style:{position:"relative",width:"100%",padding:"24px 28px",background:x?"rgba(255, 255, 255, 0.95)":"rgba(255, 255, 255, 0.85)",border:n.recommended?"2px solid rgba(184, 156, 106, 0.35)":x?"1px solid rgba(52, 58, 64, 0.20)":"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"16px",cursor:"pointer",textAlign:"left",transition:"all 0.2s ease",transform:x?"translateY(-2px)":"translateY(0)",boxShadow:x?"0 12px 28px rgba(30, 33, 37, 0.12)":"0 4px 12px rgba(30, 33, 37, 0.06)"},children:[n.recommended&&e.jsx("div",{style:{position:"absolute",top:"16px",right:"20px",fontSize:"10px",fontWeight:650,letterSpacing:"0.06em",textTransform:"uppercase",color:"rgba(184, 156, 106, 0.75)",background:"rgba(184, 156, 106, 0.12)",padding:"4px 8px",borderRadius:"6px",border:"1px solid rgba(184, 156, 106, 0.2)"},children:"Recommended"}),e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"18px"},children:[e.jsx("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:n.recommended?"rgba(184, 156, 106, 0.12)":"rgba(231, 212, 162, 0.20)",border:n.recommended?"1px solid rgba(184, 156, 106, 0.25)":"1px solid rgba(231, 212, 162, 0.35)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(r,{size:22,style:{color:n.recommended?"rgba(184, 156, 106, 0.75)":"rgba(30, 33, 37, 0.52)"}})}),e.jsxs("div",{style:{flex:1,paddingTop:"2px"},children:[e.jsx("div",{style:{fontSize:"17px",fontWeight:680,letterSpacing:"-0.01em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"6px",lineHeight:1.3},children:n.title}),e.jsx("div",{style:{fontSize:"13.5px",color:"rgba(30, 33, 37, 0.62)",lineHeight:1.5},children:n.description})]})]})]},n.id)})}),e.jsx("div",{style:{marginTop:"32px",textAlign:"center",fontSize:"12px",color:"rgba(30, 33, 37, 0.52)",lineHeight:1.5},children:"Your workspace has been created automatically. You can configure settings and add teammates later."}),d&&e.jsxs("div",{style:{marginTop:"48px",paddingTop:"32px",borderTop:"1px solid rgba(52, 58, 64, 0.12)"},children:[e.jsx("h2",{style:{fontSize:"20px",fontWeight:680,letterSpacing:"-0.01em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"24px"},children:"Testing Examples"}),i&&e.jsxs("div",{style:{marginBottom:"24px",padding:"16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx(s.CheckCircle2,{size:18,style:{color:"#1F8F5A"}}),e.jsx("span",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)"},children:"File Uploaded"})]}),e.jsx("button",{onClick:()=>m(null),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center"},children:e.jsx(s.X,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})})]}),e.jsxs("div",{style:{fontSize:"13px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5},children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Name:"})," ",i.name]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Type:"})," ",i.type]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Size:"})," ",(i.size/1024/1024).toFixed(2)," MB"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Uploaded:"})," ",i.lastModified.toLocaleString()]})]})]}),!c&&e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("h3",{style:{fontSize:"15px",fontWeight:650,color:"rgba(30, 33, 37, 0.82)",marginBottom:"12px"},children:"Select a Demonstration Project:"}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:y.map(n=>e.jsxs("button",{onClick:()=>M(n.id),style:{padding:"12px 16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"8px",textAlign:"left",cursor:"pointer",transition:"all 0.15s ease"},onMouseEnter:r=>{r.currentTarget.style.background="rgba(255, 255, 255, 0.95)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.20)"},onMouseLeave:r=>{r.currentTarget.style.background="rgba(255, 255, 255, 0.85)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},children:[e.jsx("div",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)",marginBottom:"4px"},children:n.name}),e.jsx("div",{style:{fontSize:"12px",color:"rgba(30, 33, 37, 0.62)",marginBottom:"4px"},children:n.description}),e.jsxs("div",{style:{fontSize:"11px",color:"rgba(30, 33, 37, 0.52)"},children:[n.interactions," interactions · ",n.dateRange]})]},n.id))})]}),c&&e.jsxs("div",{style:{marginBottom:"24px",padding:"16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx(s.CheckCircle2,{size:18,style:{color:"#1F8F5A"}}),e.jsxs("span",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)"},children:["Project Selected: ",c.name]})]}),e.jsx("button",{onClick:()=>t(null),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center"},children:e.jsx(s.X,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})})]}),e.jsxs("div",{style:{fontSize:"13px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5},children:[e.jsx("div",{children:c.description}),e.jsxs("div",{style:{marginTop:"4px"},children:[e.jsx("strong",{children:c.interactions})," interactions · ",e.jsx("strong",{children:c.dateRange})]})]})]}),!u&&e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("h3",{style:{fontSize:"15px",fontWeight:650,color:"rgba(30, 33, 37, 0.82)",marginBottom:"12px"},children:"Connect a Data Source:"}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:w.map(n=>e.jsx("button",{onClick:()=>R(n.id),disabled:n.status==="coming-soon",style:{padding:"12px 16px",background:n.status==="coming-soon"?"rgba(255, 255, 255, 0.5)":"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"8px",textAlign:"left",cursor:n.status==="coming-soon"?"not-allowed":"pointer",transition:"all 0.15s ease",opacity:n.status==="coming-soon"?.6:1},onMouseEnter:r=>{n.status!=="coming-soon"&&(r.currentTarget.style.background="rgba(255, 255, 255, 0.95)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.20)")},onMouseLeave:r=>{n.status!=="coming-soon"&&(r.currentTarget.style.background="rgba(255, 255, 255, 0.85)",r.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)")},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)",marginBottom:"4px"},children:n.name}),e.jsx("div",{style:{fontSize:"12px",color:"rgba(30, 33, 37, 0.62)"},children:n.description})]}),n.status==="coming-soon"&&e.jsx("span",{style:{fontSize:"10px",fontWeight:600,color:"rgba(30, 33, 37, 0.42)",background:"rgba(30, 33, 37, 0.08)",padding:"4px 8px",borderRadius:"4px"},children:"Coming Soon"})]})},n.id))})]}),u&&e.jsxs("div",{style:{marginBottom:"24px",padding:"16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx(s.CheckCircle2,{size:18,style:{color:"#1F8F5A"}}),e.jsxs("span",{style:{fontSize:"14px",fontWeight:650,color:"rgba(30, 33, 37, 0.92)"},children:["Connected: ",u.name]})]}),e.jsx("button",{onClick:()=>k(null),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center"},children:e.jsx(s.X,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})})]}),e.jsx("div",{style:{fontSize:"13px",color:"rgba(30, 33, 37, 0.65)",lineHeight:1.5},children:u.description})]})]})]})]})}function N({onDismiss:S,onItemClick:h,completedItems:g=[]}){const[d,f]=a.useState(!1),[C,i]=a.useState(null),m=[{id:"name-project",title:"Name your workspace",description:"Give your default project a meaningful name",icon:s.FolderOpen,completed:g.includes("name-project"),optional:!0},{id:"evaluate-second-interaction",title:"Evaluate another interaction",description:"Upload or connect a second interaction to see patterns",icon:s.Sparkles,completed:g.includes("evaluate-second-interaction")},{id:"connect-source",title:"Connect a data source",description:"Link your system or platform for automatic evaluation",icon:s.Link,completed:g.includes("connect-source")},{id:"invite-team",title:"Add teammates",description:"Invite managers or QA team members to collaborate",icon:s.Users,completed:g.includes("invite-team"),optional:!0},{id:"learn-concepts",title:"Understand Chordia concepts",description:"Learn how conditions, evidence, and confidence work",icon:s.BookOpen,completed:g.includes("learn-concepts"),optional:!0},{id:"configure-scope",title:"Clarify evaluation scope",description:"Customize which signals and conditions matter for your team",icon:s.Settings,completed:g.includes("configure-scope"),optional:!0}],u=m.filter(t=>t.completed).length,k=m.length,c=u/k*100;return d?e.jsx("button",{type:"button",onClick:()=>f(!1),style:{width:"100%",padding:"14px 16px",background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"12px",cursor:"pointer",textAlign:"left",transition:"all 0.15s ease",boxShadow:"0 2px 8px rgba(30, 33, 37, 0.04)"},onMouseEnter:t=>{t.currentTarget.style.background="rgba(255, 255, 255, 0.95)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.18)"},onMouseLeave:t=>{t.currentTarget.style.background="rgba(255, 255, 255, 0.85)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"},children:[e.jsxs("div",{style:{fontSize:"13px",fontWeight:600,color:"rgba(30, 33, 37, 0.75)"},children:["Getting started (",u,"/",k,")"]}),e.jsx(s.ChevronRight,{size:16,style:{color:"rgba(30, 33, 37, 0.42)"}})]})}):e.jsxs("div",{style:{background:"rgba(255, 255, 255, 0.85)",border:"1px solid rgba(52, 58, 64, 0.12)",borderRadius:"16px",overflow:"hidden",boxShadow:"0 4px 16px rgba(30, 33, 37, 0.06)"},children:[e.jsxs("div",{style:{padding:"18px 20px 16px",borderBottom:"1px solid rgba(52, 58, 64, 0.08)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:"15px",fontWeight:680,letterSpacing:"-0.01em",color:"rgba(30, 33, 37, 0.92)",marginBottom:"6px",lineHeight:1.3},children:"Getting started with Chordia"}),e.jsxs("div",{style:{fontSize:"12px",color:"rgba(30, 33, 37, 0.58)",lineHeight:1.4},children:[u," of ",k," completed"]})]}),e.jsxs("div",{style:{display:"flex",gap:"4px"},children:[e.jsx("button",{type:"button",onClick:()=>f(!0),style:{width:"28px",height:"28px",borderRadius:"6px",background:"transparent",border:"1px solid rgba(52, 58, 64, 0.12)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease",color:"rgba(30, 33, 37, 0.52)"},onMouseEnter:t=>{t.currentTarget.style.background="rgba(231, 212, 162, 0.12)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.18)"},onMouseLeave:t=>{t.currentTarget.style.background="transparent",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},title:"Collapse",children:e.jsx(s.ChevronRight,{size:14})}),S&&e.jsx("button",{type:"button",onClick:S,style:{width:"28px",height:"28px",borderRadius:"6px",background:"transparent",border:"1px solid rgba(52, 58, 64, 0.12)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease",color:"rgba(30, 33, 37, 0.52)"},onMouseEnter:t=>{t.currentTarget.style.background="rgba(231, 212, 162, 0.12)",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.18)"},onMouseLeave:t=>{t.currentTarget.style.background="transparent",t.currentTarget.style.borderColor="rgba(52, 58, 64, 0.12)"},title:"Dismiss checklist",children:e.jsx(s.X,{size:14})})]})]}),e.jsx("div",{style:{marginTop:"14px",height:"6px",background:"rgba(30, 33, 37, 0.08)",borderRadius:"999px",overflow:"hidden"},children:e.jsx("div",{style:{height:"100%",width:`${c}%`,background:"linear-gradient(90deg, rgba(184, 156, 106, 0.75) 0%, rgba(139, 157, 127, 0.75) 100%)",borderRadius:"999px",transition:"width 0.4s ease"}})})]}),e.jsx("div",{style:{padding:"8px"},children:m.map((t,b)=>{const w=t.icon,y=C===t.id;return e.jsx("button",{type:"button",onClick:()=>h==null?void 0:h(t.id),onMouseEnter:()=>i(t.id),onMouseLeave:()=>i(null),disabled:t.completed,style:{width:"100%",padding:"12px 14px",background:t.completed?"rgba(139, 157, 127, 0.06)":y?"rgba(231, 212, 162, 0.12)":"transparent",border:"none",borderRadius:"10px",cursor:t.completed?"default":"pointer",textAlign:"left",transition:"all 0.15s ease",marginBottom:b<m.length-1?"4px":"0",opacity:t.completed?.7:1},children:e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px"},children:[e.jsx("div",{style:{width:"20px",height:"20px",marginTop:"1px",flexShrink:0},children:t.completed?e.jsx(s.CheckCircle2,{size:20,style:{color:"rgba(139, 157, 127, 0.75)"}}):e.jsx(s.Circle,{size:20,style:{color:"rgba(30, 33, 37, 0.24)"}})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"3px"},children:[e.jsx(w,{size:14,style:{color:"rgba(30, 33, 37, 0.52)",flexShrink:0}}),e.jsx("span",{style:{fontSize:"13px",fontWeight:600,color:t.completed?"rgba(30, 33, 37, 0.52)":"rgba(30, 33, 37, 0.85)",textDecoration:t.completed?"line-through":"none",lineHeight:1.3},children:t.title}),t.optional&&!t.completed&&e.jsx("span",{style:{fontSize:"9px",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",color:"rgba(30, 33, 37, 0.42)",background:"rgba(30, 33, 37, 0.06)",padding:"2px 5px",borderRadius:"4px"},children:"Optional"})]}),e.jsx("div",{style:{fontSize:"11.5px",color:"rgba(30, 33, 37, 0.52)",lineHeight:1.4,paddingLeft:"22px"},children:t.description})]}),!t.completed&&y&&e.jsx(s.ChevronRight,{size:16,style:{color:"rgba(30, 33, 37, 0.32)",marginTop:"2px",flexShrink:0}})]})},t.id)})}),e.jsx("div",{style:{padding:"12px 20px 16px",borderTop:"1px solid rgba(52, 58, 64, 0.08)"},children:e.jsxs("div",{style:{fontSize:"11px",color:"rgba(30, 33, 37, 0.52)",lineHeight:1.5,fontStyle:"italic"},children:["You can dismiss this checklist anytime. These steps help you get the most from Chordia, but ","aren't"," required."]})})]})}function Q({text:S="Demo Project",accentColor:h="#B89C6A",textColor:g="rgba(255, 255, 255, 0.95)",size:d="medium",position:f="fixed"}){const i={small:{width:140,height:140,fontSize:"11px",letterSpacing:"0.08em",fontWeight:650},medium:{width:180,height:180,fontSize:"12px",letterSpacing:"0.1em",fontWeight:680},large:{width:220,height:220,fontSize:"13px",letterSpacing:"0.12em",fontWeight:700}}[d];return e.jsxs("div",{style:{position:f,top:0,right:0,width:i.width,height:i.height,overflow:"hidden",zIndex:f==="fixed"?9999:1,pointerEvents:"none"},children:[e.jsx("div",{style:{position:"absolute",top:0,right:0,width:0,height:0,borderStyle:"solid",borderWidth:`0 ${i.width}px ${i.height}px 0`,borderColor:`transparent ${h} transparent transparent`,opacity:.92}}),e.jsx("div",{style:{position:"absolute",top:0,right:0,width:0,height:0,borderStyle:"solid",borderWidth:`0 ${i.width}px ${i.height}px 0`,borderColor:"transparent rgba(0, 0, 0, 0.08) transparent transparent"}}),e.jsx("div",{style:{position:"absolute",top:d==="small"?"28px":d==="medium"?"38px":"48px",right:d==="small"?"-32px":d==="medium"?"-42px":"-52px",width:d==="small"?"160px":d==="medium"?"200px":"240px",transform:"rotate(45deg)",transformOrigin:"center",textAlign:"center"},children:e.jsx("div",{style:{fontSize:i.fontSize,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:"uppercase",color:g,textShadow:"0 1px 2px rgba(0, 0, 0, 0.15)",whiteSpace:"nowrap",userSelect:"none"},children:S})}),e.jsx("div",{style:{position:"absolute",top:0,right:0,width:i.width,height:i.height,background:"linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.04) 100%)",pointerEvents:"none"}})]})}const V="../../assets/chordia-logo.png";function Z({title:S="Chordia",subtitle:h="Sign in to continue",logo:g,onLogin:d,loading:f=!1,error:C=null,footer:i,showLabels:m=!0,emailPlaceholder:u="you@company.com",passwordPlaceholder:k="Password",onForgotPassword:c,compact:t=!1}){const[b,w]=a.useState(""),[y,T]=a.useState(""),[R,M]=a.useState(!1),[l,v]=a.useState(null),z=o=>{o.preventDefault(),!(!b||!y||f)&&(d==null||d(b,y))},j=b&&y&&!f,n="var(--rail-compliance)",r="201, 138, 90",x=e.jsxs("div",{style:{width:"100%",maxWidth:400,background:"var(--paper-elevated)",border:"1px solid var(--border)",borderRadius:"var(--radius-lg)",padding:"44px 36px 36px",boxShadow:"0 8px 32px rgba(30, 33, 37, 0.06), 0 1px 3px rgba(30, 33, 37, 0.04)",position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:3,background:`linear-gradient(90deg, var(--state-unknown), ${n})`,opacity:.6}}),e.jsx("div",{style:{textAlign:"center",marginBottom:32},children:g||e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"12px 24px",borderRadius:"var(--radius-lg)",background:"rgba(30, 33, 37, 0.92)",marginBottom:16},children:e.jsx("img",{src:V,alt:S,style:{height:28,display:"block"}})}),h&&e.jsx("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-muted)",marginTop:4,marginBottom:0},children:h})]})}),e.jsxs("form",{onSubmit:z,children:[e.jsxs("div",{style:{marginBottom:18},children:[m&&e.jsx("label",{style:{display:"block",fontSize:"var(--text-sm)",fontWeight:550,color:"var(--text-strong)",marginBottom:6,fontFamily:"var(--font-sans)"},children:"Email"}),e.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[e.jsx(s.Mail,{size:15,style:{position:"absolute",left:12,color:l==="email"?`rgba(${r}, 0.7)`:"var(--text-faint)",pointerEvents:"none",transition:"color 0.2s ease"}}),e.jsx("input",{type:"email",value:b,onChange:o=>w(o.target.value),placeholder:u,required:!0,autoFocus:!0,autoComplete:"email",style:{width:"100%",padding:"11px 12px 11px 38px",fontSize:"var(--text-md)",border:"1px solid",borderColor:l==="email"?n:"var(--border)",borderRadius:"var(--radius)",backgroundColor:l==="email"?"rgba(255,255,255,0.95)":"var(--paper)",color:"var(--text-ink)",fontFamily:"var(--font-sans)",outline:"none",transition:"border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",boxShadow:l==="email"?`0 0 0 3px rgba(${r}, 0.1)`:"none"},onFocus:()=>v("email"),onBlur:()=>v(null)})]})]}),e.jsxs("div",{style:{marginBottom:6},children:[m&&e.jsx("label",{style:{display:"block",fontSize:"var(--text-sm)",fontWeight:550,color:"var(--text-strong)",marginBottom:6,fontFamily:"var(--font-sans)"},children:"Password"}),e.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[e.jsx(s.Lock,{size:15,style:{position:"absolute",left:12,color:l==="password"?`rgba(${r}, 0.7)`:"var(--text-faint)",pointerEvents:"none",transition:"color 0.2s ease"}}),e.jsx("input",{type:R?"text":"password",value:y,onChange:o=>T(o.target.value),placeholder:k,required:!0,autoComplete:"current-password",style:{width:"100%",padding:"11px 42px 11px 38px",fontSize:"var(--text-md)",border:"1px solid",borderColor:l==="password"?n:"var(--border)",borderRadius:"var(--radius)",backgroundColor:l==="password"?"rgba(255,255,255,0.95)":"var(--paper)",color:"var(--text-ink)",fontFamily:"var(--font-sans)",outline:"none",transition:"border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",boxShadow:l==="password"?`0 0 0 3px rgba(${r}, 0.1)`:"none"},onFocus:()=>v("password"),onBlur:()=>v(null)}),e.jsx("button",{type:"button",onClick:()=>M(!R),style:{position:"absolute",right:8,background:"none",border:"none",padding:4,cursor:"pointer",color:"var(--text-faint)",display:"flex",alignItems:"center",transition:"color 0.15s ease",borderRadius:"var(--radius-sm)"},tabIndex:-1,onMouseEnter:o=>{o.currentTarget.style.color="var(--text-muted)"},onMouseLeave:o=>{o.currentTarget.style.color="var(--text-faint)"},children:R?e.jsx(s.EyeOff,{size:16}):e.jsx(s.Eye,{size:16})})]})]}),c&&e.jsx("div",{style:{textAlign:"right",marginBottom:4},children:e.jsx("button",{type:"button",onClick:c,style:{background:"none",border:"none",padding:"2px 0",fontSize:"var(--text-xs)",color:"var(--text-muted)",cursor:"pointer",fontFamily:"var(--font-sans)",transition:"color 0.15s ease"},onMouseEnter:o=>{o.currentTarget.style.color="var(--text-strong)"},onMouseLeave:o=>{o.currentTarget.style.color="var(--text-muted)"},children:"Forgot password?"})}),C&&e.jsx("div",{style:{fontSize:"var(--text-sm)",color:"var(--text-strong)",marginTop:12,padding:"8px 12px",background:"color-mix(in srgb, var(--state-unknown) 10%, transparent)",border:"1px solid color-mix(in srgb, var(--state-unknown) 25%, transparent)",borderRadius:"var(--radius-sm)",textAlign:"center",fontWeight:500},children:C}),e.jsx("button",{type:"submit",disabled:!j,style:{width:"100%",padding:"11px 0",marginTop:20,background:j?"var(--text-ink)":"var(--text-xfaint)",color:"#ffffff",border:"none",borderRadius:"var(--radius)",fontSize:"var(--text-md)",fontWeight:600,fontFamily:"var(--font-sans)",cursor:j?"pointer":"not-allowed",transition:"opacity 0.15s ease, transform 0.1s ease",display:"flex",alignItems:"center",justifyContent:"center",gap:8},onMouseEnter:o=>{j&&(o.currentTarget.style.opacity="0.85",o.currentTarget.style.transform="translateY(-1px)")},onMouseLeave:o=>{o.currentTarget.style.opacity="1",o.currentTarget.style.transform="translateY(0)"},onMouseDown:o=>{j&&(o.currentTarget.style.transform="translateY(0)")},onMouseUp:o=>{j&&(o.currentTarget.style.transform="translateY(-1px)")},children:f?"Signing in…":e.jsxs(e.Fragment,{children:["Sign In",e.jsx(s.ArrowRight,{size:16})]})})]}),i&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,margin:"24px 0 16px"},children:[e.jsx("div",{style:{flex:1,height:1,background:"var(--border)"}}),e.jsx("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-faint)"},children:"or"}),e.jsx("div",{style:{flex:1,height:1,background:"var(--border)"}})]}),e.jsx("div",{style:{textAlign:"center",fontSize:"var(--text-xs)",color:"var(--text-faint)"},children:i})]})]});return t?x:e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",background:"var(--bg-chordia)",padding:"var(--spacing-6)"},children:x})}function _({left:S,right:h,defaultWidth:g=260,defaultRatio:d,minWidth:f=180,maxWidth:C=450,minRatio:i,maxRatio:m,collapsedWidth:u=0,collapsed:k,onCollapsedChange:c,collapseSide:t="left",collapseThreshold:b,dividerWidth:w=7,style:y}){const T=k!==void 0,[R,M]=a.useState(!1),l=T?k:R,v=a.useCallback(p=>{const B=typeof p=="function"?p(l):p;T||M(B),c==null||c(B)},[T,l,c]),z=a.useRef(null),[j,n]=a.useState(0),[r,x]=a.useState(g),[o,W]=a.useState(!1),[$,O]=a.useState(!1),E=a.useRef(0),L=a.useRef(0);a.useLayoutEffect(()=>{if(!z.current)return;const p=z.current.offsetWidth;n(p),!$&&p>0&&(d!=null&&x(Math.round(p*d)),O(!0))},[]),a.useEffect(()=>{if(!z.current)return;const p=new ResizeObserver(B=>{for(const F of B)n(F.contentRect.width)});return p.observe(z.current),()=>p.disconnect()},[]);const I=i!=null?Math.round(j*i):f,D=m!=null?Math.round(j*m):C,P=b??(t==="none"?0:I-40),U=a.useCallback(p=>{p.preventDefault(),E.current=p.clientX,L.current=l?u:r,W(!0)},[r,l,u]);a.useEffect(()=>{if(!o)return;const p=F=>{const q=F.clientX-E.current,H=L.current+q;if((t==="left"||t==="both")&&H<P){l||v(!0);return}l&&v(!1),x(Math.min(Math.max(H,I),D))},B=()=>W(!1);return document.addEventListener("mousemove",p),document.addEventListener("mouseup",B),document.body.style.userSelect="none",document.body.style.cursor="col-resize",()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",B),document.body.style.userSelect="",document.body.style.cursor=""}},[o,l,I,D,P,j,w,t,v]);const Y=a.useCallback(()=>{t!=="none"&&v(p=>!p)},[v,t]),A=l?u:r;return e.jsxs("div",{ref:z,style:{display:"flex",height:"100%",overflow:"hidden",position:"relative",...y},children:[(A>0||!l)&&e.jsx("div",{style:{width:A,flexShrink:0,overflow:"hidden",transition:o?"none":"width 0.2s ease",height:"100%"},children:!l&&S}),e.jsxs("div",{onMouseDown:U,onDoubleClick:Y,style:{width:`${w}px`,flexShrink:0,cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",zIndex:2},children:[e.jsx("div",{style:{width:"1px",height:"100%",background:o?"var(--rail-discovery, #5E88B0)":"var(--border, rgba(52,58,64,0.12))",transition:"background 0.15s ease"}}),e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"5px",height:"28px",borderRadius:"3px",background:o?"var(--rail-discovery, #5E88B0)":"var(--border, rgba(52,58,64,0.12))",opacity:o?1:0,transition:"opacity 0.15s ease, background 0.15s ease"},className:"splitpane-grip"}),e.jsx("style",{children:`
|
|
2
2
|
div:hover > .splitpane-grip { opacity: 0.7 !important; }
|
|
3
|
-
`})]}),e.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",height:"100%"},children:
|
|
3
|
+
`})]}),e.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",height:"100%"},children:h})]})}exports.IntegrationCard=X.IntegrationCard;exports.DemoProjectBanner=Q;exports.FirstCallScreen=G;exports.LoginForm=Z;exports.OnboardingChecklist=N;exports.SplitPane=_;
|
|
4
4
|
//# sourceMappingURL=layout.cjs.js.map
|