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
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { CheckCircle2 as
|
|
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";
|
|
4
5
|
function fe({
|
|
5
|
-
onUploadCall:
|
|
6
|
-
onConnectSource:
|
|
7
|
-
onUseSample:
|
|
6
|
+
onUploadCall: v,
|
|
7
|
+
onConnectSource: h,
|
|
8
|
+
onUseSample: p,
|
|
8
9
|
showExamples: l = !1
|
|
9
10
|
}) {
|
|
10
|
-
const [
|
|
11
|
+
const [f, C] = x(null), [a, m] = x(null), [u, k] = x(null), [d, r] = x(null), b = F(null), z = [
|
|
11
12
|
{ id: "five9", name: "Five9", status: "available", description: "Cloud contact center platform" },
|
|
12
13
|
{ id: "twilio", name: "Twilio Flex", status: "available", description: "Programmable contact center" },
|
|
13
14
|
{ id: "genesys", name: "Genesys Cloud", status: "available", description: "All-in-one cloud contact center" },
|
|
14
15
|
{ id: "zoom", name: "Zoom Phone", status: "coming-soon", description: "Cloud phone system" }
|
|
15
|
-
],
|
|
16
|
+
], y = [
|
|
16
17
|
{
|
|
17
18
|
id: "retail-support",
|
|
18
19
|
name: "Retail Customer Support",
|
|
@@ -34,25 +35,25 @@ function fe({
|
|
|
34
35
|
interactions: 32,
|
|
35
36
|
dateRange: "Last 45 days"
|
|
36
37
|
}
|
|
37
|
-
],
|
|
38
|
-
var
|
|
39
|
-
const n = (
|
|
38
|
+
], B = (o) => {
|
|
39
|
+
var g;
|
|
40
|
+
const n = (g = o.target.files) == null ? void 0 : g[0];
|
|
40
41
|
if (n) {
|
|
41
|
-
const i = n.type.startsWith("audio/"),
|
|
42
|
-
i ||
|
|
42
|
+
const i = n.type.startsWith("audio/"), I = n.type.startsWith("video/");
|
|
43
|
+
i || I ? (m({
|
|
43
44
|
name: n.name,
|
|
44
45
|
type: n.type,
|
|
45
46
|
size: n.size,
|
|
46
47
|
lastModified: new Date(n.lastModified)
|
|
47
|
-
}),
|
|
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.");
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
}, R = (o) => {
|
|
51
|
-
const n = z.find((h) => h.id === o);
|
|
52
|
-
n && n.status === "available" && (v(n), u ? u(n) : console.log("Connected to:", n.name));
|
|
50
|
+
b.current && (b.current.value = "");
|
|
53
51
|
}, M = (o) => {
|
|
54
|
-
const n =
|
|
55
|
-
n && (
|
|
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));
|
|
56
57
|
};
|
|
57
58
|
return /* @__PURE__ */ t(
|
|
58
59
|
"div",
|
|
@@ -69,10 +70,10 @@ function fe({
|
|
|
69
70
|
/* @__PURE__ */ e(
|
|
70
71
|
"input",
|
|
71
72
|
{
|
|
72
|
-
ref:
|
|
73
|
+
ref: b,
|
|
73
74
|
type: "file",
|
|
74
75
|
accept: "audio/*,video/*",
|
|
75
|
-
onChange:
|
|
76
|
+
onChange: B,
|
|
76
77
|
style: { display: "none" }
|
|
77
78
|
}
|
|
78
79
|
),
|
|
@@ -117,55 +118,55 @@ function fe({
|
|
|
117
118
|
children: [
|
|
118
119
|
{
|
|
119
120
|
id: "upload",
|
|
120
|
-
icon:
|
|
121
|
+
icon: te,
|
|
121
122
|
title: "Upload an interaction",
|
|
122
123
|
description: "Drop an audio or video recording to see what Compass surfaces",
|
|
123
124
|
recommended: !1,
|
|
124
125
|
onClick: () => {
|
|
125
|
-
|
|
126
|
+
b.current && b.current.click();
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
129
|
{
|
|
129
130
|
id: "sample",
|
|
130
|
-
icon:
|
|
131
|
+
icon: N,
|
|
131
132
|
title: "Explore a demonstration project",
|
|
132
133
|
description: "See how Chordia Compass surfaces insights from real interaction data",
|
|
133
134
|
recommended: !0,
|
|
134
135
|
onClick: () => {
|
|
135
|
-
l && !
|
|
136
|
+
l && !d || p && p(d || { id: "default", name: "Demo Project" });
|
|
136
137
|
}
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
id: "connect",
|
|
140
|
-
icon:
|
|
141
|
+
icon: Q,
|
|
141
142
|
title: "Connect a data source",
|
|
142
143
|
description: "Link your existing system to automatically analyze interactions",
|
|
143
144
|
recommended: !1,
|
|
144
145
|
onClick: () => {
|
|
145
|
-
l && !
|
|
146
|
+
l && !u || h && h(u || { id: "default", name: "Data Source" });
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
].map((o) => {
|
|
149
|
-
const n = o.icon,
|
|
150
|
+
const n = o.icon, g = f === o.id;
|
|
150
151
|
return /* @__PURE__ */ t(
|
|
151
152
|
"button",
|
|
152
153
|
{
|
|
153
154
|
type: "button",
|
|
154
155
|
onClick: o.onClick,
|
|
155
|
-
onMouseEnter: () =>
|
|
156
|
-
onMouseLeave: () =>
|
|
156
|
+
onMouseEnter: () => C(o.id),
|
|
157
|
+
onMouseLeave: () => C(null),
|
|
157
158
|
style: {
|
|
158
159
|
position: "relative",
|
|
159
160
|
width: "100%",
|
|
160
161
|
padding: "24px 28px",
|
|
161
|
-
background:
|
|
162
|
-
border: o.recommended ? "2px solid rgba(184, 156, 106, 0.35)" :
|
|
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)",
|
|
163
164
|
borderRadius: "16px",
|
|
164
165
|
cursor: "pointer",
|
|
165
166
|
textAlign: "left",
|
|
166
167
|
transition: "all 0.2s ease",
|
|
167
|
-
transform:
|
|
168
|
-
boxShadow:
|
|
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)"
|
|
169
170
|
},
|
|
170
171
|
children: [
|
|
171
172
|
o.recommended && /* @__PURE__ */ e(
|
|
@@ -299,13 +300,13 @@ function fe({
|
|
|
299
300
|
children: [
|
|
300
301
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
301
302
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
302
|
-
/* @__PURE__ */ e(
|
|
303
|
+
/* @__PURE__ */ e(E, { size: 18, style: { color: "#1F8F5A" } }),
|
|
303
304
|
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)" }, children: "File Uploaded" })
|
|
304
305
|
] }),
|
|
305
306
|
/* @__PURE__ */ e(
|
|
306
307
|
"button",
|
|
307
308
|
{
|
|
308
|
-
onClick: () =>
|
|
309
|
+
onClick: () => m(null),
|
|
309
310
|
style: {
|
|
310
311
|
background: "none",
|
|
311
312
|
border: "none",
|
|
@@ -314,7 +315,7 @@ function fe({
|
|
|
314
315
|
display: "flex",
|
|
315
316
|
alignItems: "center"
|
|
316
317
|
},
|
|
317
|
-
children: /* @__PURE__ */ e(
|
|
318
|
+
children: /* @__PURE__ */ e(j, { size: 16, style: { color: "rgba(30, 33, 37, 0.42)" } })
|
|
318
319
|
}
|
|
319
320
|
)
|
|
320
321
|
] }),
|
|
@@ -344,7 +345,7 @@ function fe({
|
|
|
344
345
|
]
|
|
345
346
|
}
|
|
346
347
|
),
|
|
347
|
-
!
|
|
348
|
+
!d && /* @__PURE__ */ t("div", { style: { marginBottom: "24px" }, children: [
|
|
348
349
|
/* @__PURE__ */ e(
|
|
349
350
|
"h3",
|
|
350
351
|
{
|
|
@@ -357,10 +358,10 @@ function fe({
|
|
|
357
358
|
children: "Select a Demonstration Project:"
|
|
358
359
|
}
|
|
359
360
|
),
|
|
360
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children:
|
|
361
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: y.map((o) => /* @__PURE__ */ t(
|
|
361
362
|
"button",
|
|
362
363
|
{
|
|
363
|
-
onClick: () =>
|
|
364
|
+
onClick: () => W(o.id),
|
|
364
365
|
style: {
|
|
365
366
|
padding: "12px 16px",
|
|
366
367
|
background: "rgba(255, 255, 255, 0.85)",
|
|
@@ -389,7 +390,7 @@ function fe({
|
|
|
389
390
|
o.id
|
|
390
391
|
)) })
|
|
391
392
|
] }),
|
|
392
|
-
|
|
393
|
+
d && /* @__PURE__ */ t(
|
|
393
394
|
"div",
|
|
394
395
|
{
|
|
395
396
|
style: {
|
|
@@ -402,10 +403,10 @@ function fe({
|
|
|
402
403
|
children: [
|
|
403
404
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
404
405
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
405
|
-
/* @__PURE__ */ e(
|
|
406
|
+
/* @__PURE__ */ e(E, { size: 18, style: { color: "#1F8F5A" } }),
|
|
406
407
|
/* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)" }, children: [
|
|
407
408
|
"Project Selected: ",
|
|
408
|
-
|
|
409
|
+
d.name
|
|
409
410
|
] })
|
|
410
411
|
] }),
|
|
411
412
|
/* @__PURE__ */ e(
|
|
@@ -420,22 +421,22 @@ function fe({
|
|
|
420
421
|
display: "flex",
|
|
421
422
|
alignItems: "center"
|
|
422
423
|
},
|
|
423
|
-
children: /* @__PURE__ */ e(
|
|
424
|
+
children: /* @__PURE__ */ e(j, { size: 16, style: { color: "rgba(30, 33, 37, 0.42)" } })
|
|
424
425
|
}
|
|
425
426
|
)
|
|
426
427
|
] }),
|
|
427
428
|
/* @__PURE__ */ t("div", { style: { fontSize: "13px", color: "rgba(30, 33, 37, 0.65)", lineHeight: 1.5 }, children: [
|
|
428
|
-
/* @__PURE__ */ e("div", { children:
|
|
429
|
+
/* @__PURE__ */ e("div", { children: d.description }),
|
|
429
430
|
/* @__PURE__ */ t("div", { style: { marginTop: "4px" }, children: [
|
|
430
|
-
/* @__PURE__ */ e("strong", { children:
|
|
431
|
+
/* @__PURE__ */ e("strong", { children: d.interactions }),
|
|
431
432
|
" interactions · ",
|
|
432
|
-
/* @__PURE__ */ e("strong", { children:
|
|
433
|
+
/* @__PURE__ */ e("strong", { children: d.dateRange })
|
|
433
434
|
] })
|
|
434
435
|
] })
|
|
435
436
|
]
|
|
436
437
|
}
|
|
437
438
|
),
|
|
438
|
-
!
|
|
439
|
+
!u && /* @__PURE__ */ t("div", { style: { marginBottom: "24px" }, children: [
|
|
439
440
|
/* @__PURE__ */ e(
|
|
440
441
|
"h3",
|
|
441
442
|
{
|
|
@@ -451,7 +452,7 @@ function fe({
|
|
|
451
452
|
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: z.map((o) => /* @__PURE__ */ e(
|
|
452
453
|
"button",
|
|
453
454
|
{
|
|
454
|
-
onClick: () =>
|
|
455
|
+
onClick: () => M(o.id),
|
|
455
456
|
disabled: o.status === "coming-soon",
|
|
456
457
|
style: {
|
|
457
458
|
padding: "12px 16px",
|
|
@@ -493,7 +494,7 @@ function fe({
|
|
|
493
494
|
o.id
|
|
494
495
|
)) })
|
|
495
496
|
] }),
|
|
496
|
-
|
|
497
|
+
u && /* @__PURE__ */ t(
|
|
497
498
|
"div",
|
|
498
499
|
{
|
|
499
500
|
style: {
|
|
@@ -506,16 +507,16 @@ function fe({
|
|
|
506
507
|
children: [
|
|
507
508
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
508
509
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
509
|
-
/* @__PURE__ */ e(
|
|
510
|
+
/* @__PURE__ */ e(E, { size: 18, style: { color: "#1F8F5A" } }),
|
|
510
511
|
/* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 650, color: "rgba(30, 33, 37, 0.92)" }, children: [
|
|
511
512
|
"Connected: ",
|
|
512
|
-
|
|
513
|
+
u.name
|
|
513
514
|
] })
|
|
514
515
|
] }),
|
|
515
516
|
/* @__PURE__ */ e(
|
|
516
517
|
"button",
|
|
517
518
|
{
|
|
518
|
-
onClick: () =>
|
|
519
|
+
onClick: () => k(null),
|
|
519
520
|
style: {
|
|
520
521
|
background: "none",
|
|
521
522
|
border: "none",
|
|
@@ -524,11 +525,11 @@ function fe({
|
|
|
524
525
|
display: "flex",
|
|
525
526
|
alignItems: "center"
|
|
526
527
|
},
|
|
527
|
-
children: /* @__PURE__ */ e(
|
|
528
|
+
children: /* @__PURE__ */ e(j, { size: 16, style: { color: "rgba(30, 33, 37, 0.42)" } })
|
|
528
529
|
}
|
|
529
530
|
)
|
|
530
531
|
] }),
|
|
531
|
-
/* @__PURE__ */ e("div", { style: { fontSize: "13px", color: "rgba(30, 33, 37, 0.65)", lineHeight: 1.5 }, children:
|
|
532
|
+
/* @__PURE__ */ e("div", { style: { fontSize: "13px", color: "rgba(30, 33, 37, 0.65)", lineHeight: 1.5 }, children: u.description })
|
|
532
533
|
]
|
|
533
534
|
}
|
|
534
535
|
)
|
|
@@ -539,63 +540,63 @@ function fe({
|
|
|
539
540
|
);
|
|
540
541
|
}
|
|
541
542
|
function me({
|
|
542
|
-
onDismiss:
|
|
543
|
-
onItemClick:
|
|
544
|
-
completedItems:
|
|
543
|
+
onDismiss: v,
|
|
544
|
+
onItemClick: h,
|
|
545
|
+
completedItems: p = []
|
|
545
546
|
}) {
|
|
546
|
-
const [l,
|
|
547
|
+
const [l, f] = x(!1), [C, a] = x(null), m = [
|
|
547
548
|
{
|
|
548
549
|
id: "name-project",
|
|
549
550
|
title: "Name your workspace",
|
|
550
551
|
description: "Give your default project a meaningful name",
|
|
551
|
-
icon:
|
|
552
|
-
completed:
|
|
552
|
+
icon: re,
|
|
553
|
+
completed: p.includes("name-project"),
|
|
553
554
|
optional: !0
|
|
554
555
|
},
|
|
555
556
|
{
|
|
556
557
|
id: "evaluate-second-interaction",
|
|
557
558
|
title: "Evaluate another interaction",
|
|
558
559
|
description: "Upload or connect a second interaction to see patterns",
|
|
559
|
-
icon:
|
|
560
|
-
completed:
|
|
560
|
+
icon: N,
|
|
561
|
+
completed: p.includes("evaluate-second-interaction")
|
|
561
562
|
},
|
|
562
563
|
{
|
|
563
564
|
id: "connect-source",
|
|
564
565
|
title: "Connect a data source",
|
|
565
566
|
description: "Link your system or platform for automatic evaluation",
|
|
566
|
-
icon:
|
|
567
|
-
completed:
|
|
567
|
+
icon: Q,
|
|
568
|
+
completed: p.includes("connect-source")
|
|
568
569
|
},
|
|
569
570
|
{
|
|
570
571
|
id: "invite-team",
|
|
571
572
|
title: "Add teammates",
|
|
572
573
|
description: "Invite managers or QA team members to collaborate",
|
|
573
|
-
icon:
|
|
574
|
-
completed:
|
|
574
|
+
icon: ne,
|
|
575
|
+
completed: p.includes("invite-team"),
|
|
575
576
|
optional: !0
|
|
576
577
|
},
|
|
577
578
|
{
|
|
578
579
|
id: "learn-concepts",
|
|
579
580
|
title: "Understand Chordia concepts",
|
|
580
581
|
description: "Learn how conditions, evidence, and confidence work",
|
|
581
|
-
icon:
|
|
582
|
-
completed:
|
|
582
|
+
icon: oe,
|
|
583
|
+
completed: p.includes("learn-concepts"),
|
|
583
584
|
optional: !0
|
|
584
585
|
},
|
|
585
586
|
{
|
|
586
587
|
id: "configure-scope",
|
|
587
588
|
title: "Clarify evaluation scope",
|
|
588
589
|
description: "Customize which signals and conditions matter for your team",
|
|
589
|
-
icon:
|
|
590
|
-
completed:
|
|
590
|
+
icon: ie,
|
|
591
|
+
completed: p.includes("configure-scope"),
|
|
591
592
|
optional: !0
|
|
592
593
|
}
|
|
593
|
-
],
|
|
594
|
+
], u = m.filter((r) => r.completed).length, k = m.length, d = u / k * 100;
|
|
594
595
|
return l ? /* @__PURE__ */ e(
|
|
595
596
|
"button",
|
|
596
597
|
{
|
|
597
598
|
type: "button",
|
|
598
|
-
onClick: () =>
|
|
599
|
+
onClick: () => f(!1),
|
|
599
600
|
style: {
|
|
600
601
|
width: "100%",
|
|
601
602
|
padding: "14px 16px",
|
|
@@ -633,9 +634,9 @@ function me({
|
|
|
633
634
|
},
|
|
634
635
|
children: [
|
|
635
636
|
"Getting started (",
|
|
636
|
-
|
|
637
|
+
u,
|
|
637
638
|
"/",
|
|
638
|
-
|
|
639
|
+
k,
|
|
639
640
|
")"
|
|
640
641
|
]
|
|
641
642
|
}
|
|
@@ -698,9 +699,9 @@ function me({
|
|
|
698
699
|
lineHeight: 1.4
|
|
699
700
|
},
|
|
700
701
|
children: [
|
|
701
|
-
|
|
702
|
+
u,
|
|
702
703
|
" of ",
|
|
703
|
-
|
|
704
|
+
k,
|
|
704
705
|
" completed"
|
|
705
706
|
]
|
|
706
707
|
}
|
|
@@ -711,7 +712,7 @@ function me({
|
|
|
711
712
|
"button",
|
|
712
713
|
{
|
|
713
714
|
type: "button",
|
|
714
|
-
onClick: () =>
|
|
715
|
+
onClick: () => f(!0),
|
|
715
716
|
style: {
|
|
716
717
|
width: "28px",
|
|
717
718
|
height: "28px",
|
|
@@ -735,11 +736,11 @@ function me({
|
|
|
735
736
|
children: /* @__PURE__ */ e(P, { size: 14 })
|
|
736
737
|
}
|
|
737
738
|
),
|
|
738
|
-
|
|
739
|
+
v && /* @__PURE__ */ e(
|
|
739
740
|
"button",
|
|
740
741
|
{
|
|
741
742
|
type: "button",
|
|
742
|
-
onClick:
|
|
743
|
+
onClick: v,
|
|
743
744
|
style: {
|
|
744
745
|
width: "28px",
|
|
745
746
|
height: "28px",
|
|
@@ -760,7 +761,7 @@ function me({
|
|
|
760
761
|
r.currentTarget.style.background = "transparent", r.currentTarget.style.borderColor = "rgba(52, 58, 64, 0.12)";
|
|
761
762
|
},
|
|
762
763
|
title: "Dismiss checklist",
|
|
763
|
-
children: /* @__PURE__ */ e(
|
|
764
|
+
children: /* @__PURE__ */ e(j, { size: 14 })
|
|
764
765
|
}
|
|
765
766
|
)
|
|
766
767
|
] })
|
|
@@ -782,7 +783,7 @@ function me({
|
|
|
782
783
|
{
|
|
783
784
|
style: {
|
|
784
785
|
height: "100%",
|
|
785
|
-
width: `${
|
|
786
|
+
width: `${d}%`,
|
|
786
787
|
background: "linear-gradient(90deg, rgba(184, 156, 106, 0.75) 0%, rgba(139, 157, 127, 0.75) 100%)",
|
|
787
788
|
borderRadius: "999px",
|
|
788
789
|
transition: "width 0.4s ease"
|
|
@@ -794,26 +795,26 @@ function me({
|
|
|
794
795
|
]
|
|
795
796
|
}
|
|
796
797
|
),
|
|
797
|
-
/* @__PURE__ */ e("div", { style: { padding: "8px" }, children:
|
|
798
|
-
const z = r.icon,
|
|
798
|
+
/* @__PURE__ */ e("div", { style: { padding: "8px" }, children: m.map((r, b) => {
|
|
799
|
+
const z = r.icon, y = C === r.id;
|
|
799
800
|
return /* @__PURE__ */ e(
|
|
800
801
|
"button",
|
|
801
802
|
{
|
|
802
803
|
type: "button",
|
|
803
|
-
onClick: () =>
|
|
804
|
+
onClick: () => h == null ? void 0 : h(r.id),
|
|
804
805
|
onMouseEnter: () => a(r.id),
|
|
805
806
|
onMouseLeave: () => a(null),
|
|
806
807
|
disabled: r.completed,
|
|
807
808
|
style: {
|
|
808
809
|
width: "100%",
|
|
809
810
|
padding: "12px 14px",
|
|
810
|
-
background: r.completed ? "rgba(139, 157, 127, 0.06)" :
|
|
811
|
+
background: r.completed ? "rgba(139, 157, 127, 0.06)" : y ? "rgba(231, 212, 162, 0.12)" : "transparent",
|
|
811
812
|
border: "none",
|
|
812
813
|
borderRadius: "10px",
|
|
813
814
|
cursor: r.completed ? "default" : "pointer",
|
|
814
815
|
textAlign: "left",
|
|
815
816
|
transition: "all 0.15s ease",
|
|
816
|
-
marginBottom:
|
|
817
|
+
marginBottom: b < m.length - 1 ? "4px" : "0",
|
|
817
818
|
opacity: r.completed ? 0.7 : 1
|
|
818
819
|
},
|
|
819
820
|
children: /* @__PURE__ */ t(
|
|
@@ -835,13 +836,13 @@ function me({
|
|
|
835
836
|
flexShrink: 0
|
|
836
837
|
},
|
|
837
838
|
children: r.completed ? /* @__PURE__ */ e(
|
|
838
|
-
|
|
839
|
+
E,
|
|
839
840
|
{
|
|
840
841
|
size: 20,
|
|
841
842
|
style: { color: "rgba(139, 157, 127, 0.75)" }
|
|
842
843
|
}
|
|
843
844
|
) : /* @__PURE__ */ e(
|
|
844
|
-
|
|
845
|
+
ae,
|
|
845
846
|
{
|
|
846
847
|
size: 20,
|
|
847
848
|
style: { color: "rgba(30, 33, 37, 0.24)" }
|
|
@@ -912,7 +913,7 @@ function me({
|
|
|
912
913
|
}
|
|
913
914
|
)
|
|
914
915
|
] }),
|
|
915
|
-
!r.completed &&
|
|
916
|
+
!r.completed && y && /* @__PURE__ */ e(
|
|
916
917
|
P,
|
|
917
918
|
{
|
|
918
919
|
size: 16,
|
|
@@ -960,11 +961,11 @@ function me({
|
|
|
960
961
|
);
|
|
961
962
|
}
|
|
962
963
|
function ye({
|
|
963
|
-
text:
|
|
964
|
-
accentColor:
|
|
965
|
-
textColor:
|
|
964
|
+
text: v = "Demo Project",
|
|
965
|
+
accentColor: h = "#B89C6A",
|
|
966
|
+
textColor: p = "rgba(255, 255, 255, 0.95)",
|
|
966
967
|
size: l = "medium",
|
|
967
|
-
position:
|
|
968
|
+
position: f = "fixed"
|
|
968
969
|
}) {
|
|
969
970
|
const a = {
|
|
970
971
|
small: {
|
|
@@ -993,13 +994,13 @@ function ye({
|
|
|
993
994
|
"div",
|
|
994
995
|
{
|
|
995
996
|
style: {
|
|
996
|
-
position:
|
|
997
|
+
position: f,
|
|
997
998
|
top: 0,
|
|
998
999
|
right: 0,
|
|
999
1000
|
width: a.width,
|
|
1000
1001
|
height: a.height,
|
|
1001
1002
|
overflow: "hidden",
|
|
1002
|
-
zIndex:
|
|
1003
|
+
zIndex: f === "fixed" ? 9999 : 1,
|
|
1003
1004
|
pointerEvents: "none"
|
|
1004
1005
|
},
|
|
1005
1006
|
children: [
|
|
@@ -1014,7 +1015,7 @@ function ye({
|
|
|
1014
1015
|
height: 0,
|
|
1015
1016
|
borderStyle: "solid",
|
|
1016
1017
|
borderWidth: `0 ${a.width}px ${a.height}px 0`,
|
|
1017
|
-
borderColor: `transparent ${
|
|
1018
|
+
borderColor: `transparent ${h} transparent transparent`,
|
|
1018
1019
|
opacity: 0.92
|
|
1019
1020
|
}
|
|
1020
1021
|
}
|
|
@@ -1054,12 +1055,12 @@ function ye({
|
|
|
1054
1055
|
fontWeight: a.fontWeight,
|
|
1055
1056
|
letterSpacing: a.letterSpacing,
|
|
1056
1057
|
textTransform: "uppercase",
|
|
1057
|
-
color:
|
|
1058
|
+
color: p,
|
|
1058
1059
|
textShadow: "0 1px 2px rgba(0, 0, 0, 0.15)",
|
|
1059
1060
|
whiteSpace: "nowrap",
|
|
1060
1061
|
userSelect: "none"
|
|
1061
1062
|
},
|
|
1062
|
-
children:
|
|
1063
|
+
children: v
|
|
1063
1064
|
}
|
|
1064
1065
|
)
|
|
1065
1066
|
}
|
|
@@ -1082,234 +1083,24 @@ function ye({
|
|
|
1082
1083
|
}
|
|
1083
1084
|
);
|
|
1084
1085
|
}
|
|
1085
|
-
function ve({
|
|
1086
|
-
providerName: x,
|
|
1087
|
-
description: u,
|
|
1088
|
-
status: s = "available",
|
|
1089
|
-
railColor: l,
|
|
1090
|
-
logoUrl: b,
|
|
1091
|
-
icon: k,
|
|
1092
|
-
onConfigure: a
|
|
1093
|
-
}) {
|
|
1094
|
-
const f = {
|
|
1095
|
-
connected: {
|
|
1096
|
-
label: "Connected",
|
|
1097
|
-
color: "#6B7C93",
|
|
1098
|
-
bgColor: "rgba(107, 124, 147, 0.08)",
|
|
1099
|
-
borderColor: "rgba(107, 124, 147, 0.20)",
|
|
1100
|
-
icon: /* @__PURE__ */ e(I, { size: 14, strokeWidth: 2.5 })
|
|
1101
|
-
},
|
|
1102
|
-
available: {
|
|
1103
|
-
label: "Available",
|
|
1104
|
-
color: "#1E2125",
|
|
1105
|
-
bgColor: "rgba(30, 33, 37, 0.04)",
|
|
1106
|
-
borderColor: "rgba(30, 33, 37, 0.12)",
|
|
1107
|
-
icon: /* @__PURE__ */ e($, { size: 14, strokeWidth: 2 })
|
|
1108
|
-
},
|
|
1109
|
-
"coming-soon": {
|
|
1110
|
-
label: "Coming Soon",
|
|
1111
|
-
color: "rgba(30, 33, 37, 0.42)",
|
|
1112
|
-
bgColor: "transparent",
|
|
1113
|
-
borderColor: "rgba(30, 33, 37, 0.12)",
|
|
1114
|
-
icon: /* @__PURE__ */ e($, { size: 14, strokeWidth: 2, style: { opacity: 0.4 } })
|
|
1115
|
-
}
|
|
1116
|
-
}, d = f[s] || f.available;
|
|
1117
|
-
return /* @__PURE__ */ t(
|
|
1118
|
-
"div",
|
|
1119
|
-
{
|
|
1120
|
-
style: {
|
|
1121
|
-
background: "#FFFFFF",
|
|
1122
|
-
border: `1px solid ${l}20`,
|
|
1123
|
-
borderRadius: "8px",
|
|
1124
|
-
position: "relative",
|
|
1125
|
-
display: "flex",
|
|
1126
|
-
flexDirection: "column",
|
|
1127
|
-
transition: "all 0.15s ease",
|
|
1128
|
-
cursor: s === "coming-soon" ? "default" : "pointer",
|
|
1129
|
-
opacity: s === "coming-soon" ? 0.6 : 1,
|
|
1130
|
-
overflow: "hidden",
|
|
1131
|
-
height: "100%"
|
|
1132
|
-
},
|
|
1133
|
-
className: "hover:shadow-sm",
|
|
1134
|
-
children: [
|
|
1135
|
-
/* @__PURE__ */ e(
|
|
1136
|
-
"div",
|
|
1137
|
-
{
|
|
1138
|
-
style: {
|
|
1139
|
-
position: "absolute",
|
|
1140
|
-
left: 0,
|
|
1141
|
-
top: 0,
|
|
1142
|
-
bottom: 0,
|
|
1143
|
-
width: "4px",
|
|
1144
|
-
background: l,
|
|
1145
|
-
opacity: s === "coming-soon" ? 0.4 : 1
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
),
|
|
1149
|
-
/* @__PURE__ */ t(
|
|
1150
|
-
"div",
|
|
1151
|
-
{
|
|
1152
|
-
style: {
|
|
1153
|
-
padding: "20px",
|
|
1154
|
-
paddingLeft: "24px",
|
|
1155
|
-
display: "flex",
|
|
1156
|
-
flexDirection: "column",
|
|
1157
|
-
gap: "16px",
|
|
1158
|
-
height: "100%"
|
|
1159
|
-
},
|
|
1160
|
-
children: [
|
|
1161
|
-
/* @__PURE__ */ t(
|
|
1162
|
-
"div",
|
|
1163
|
-
{
|
|
1164
|
-
style: {
|
|
1165
|
-
display: "flex",
|
|
1166
|
-
alignItems: "flex-start",
|
|
1167
|
-
justifyContent: "space-between",
|
|
1168
|
-
gap: "12px"
|
|
1169
|
-
},
|
|
1170
|
-
children: [
|
|
1171
|
-
/* @__PURE__ */ e(
|
|
1172
|
-
"div",
|
|
1173
|
-
{
|
|
1174
|
-
style: {
|
|
1175
|
-
width: "48px",
|
|
1176
|
-
height: "48px",
|
|
1177
|
-
borderRadius: "6px",
|
|
1178
|
-
background: `${l}08`,
|
|
1179
|
-
border: `1px solid ${l}18`,
|
|
1180
|
-
display: "flex",
|
|
1181
|
-
alignItems: "center",
|
|
1182
|
-
justifyContent: "center",
|
|
1183
|
-
flexShrink: 0
|
|
1184
|
-
},
|
|
1185
|
-
children: b ? /* @__PURE__ */ e(
|
|
1186
|
-
"img",
|
|
1187
|
-
{
|
|
1188
|
-
src: b,
|
|
1189
|
-
alt: x,
|
|
1190
|
-
style: { width: "32px", height: "32px", objectFit: "contain" }
|
|
1191
|
-
}
|
|
1192
|
-
) : /* @__PURE__ */ e(
|
|
1193
|
-
"div",
|
|
1194
|
-
{
|
|
1195
|
-
style: {
|
|
1196
|
-
color: l,
|
|
1197
|
-
fontSize: "20px",
|
|
1198
|
-
fontWeight: 650,
|
|
1199
|
-
opacity: 0.8
|
|
1200
|
-
},
|
|
1201
|
-
children: k || (x ? x.charAt(0) : "")
|
|
1202
|
-
}
|
|
1203
|
-
)
|
|
1204
|
-
}
|
|
1205
|
-
),
|
|
1206
|
-
/* @__PURE__ */ t(
|
|
1207
|
-
"div",
|
|
1208
|
-
{
|
|
1209
|
-
style: {
|
|
1210
|
-
display: "inline-flex",
|
|
1211
|
-
alignItems: "center",
|
|
1212
|
-
gap: "6px",
|
|
1213
|
-
padding: "4px 10px",
|
|
1214
|
-
borderRadius: "4px",
|
|
1215
|
-
background: d.bgColor,
|
|
1216
|
-
border: `1px solid ${d.borderColor}`,
|
|
1217
|
-
fontSize: "11px",
|
|
1218
|
-
fontWeight: 600,
|
|
1219
|
-
letterSpacing: "0.01em",
|
|
1220
|
-
color: d.color,
|
|
1221
|
-
flexShrink: 0
|
|
1222
|
-
},
|
|
1223
|
-
children: [
|
|
1224
|
-
d.icon,
|
|
1225
|
-
d.label
|
|
1226
|
-
]
|
|
1227
|
-
}
|
|
1228
|
-
)
|
|
1229
|
-
]
|
|
1230
|
-
}
|
|
1231
|
-
),
|
|
1232
|
-
/* @__PURE__ */ t("div", { style: { flex: 1, minHeight: 0 }, children: [
|
|
1233
|
-
/* @__PURE__ */ e(
|
|
1234
|
-
"h3",
|
|
1235
|
-
{
|
|
1236
|
-
style: {
|
|
1237
|
-
fontSize: "15px",
|
|
1238
|
-
fontWeight: 650,
|
|
1239
|
-
color: "rgba(30, 33, 37, 0.92)",
|
|
1240
|
-
marginBottom: "6px",
|
|
1241
|
-
letterSpacing: "-0.01em"
|
|
1242
|
-
},
|
|
1243
|
-
children: x
|
|
1244
|
-
}
|
|
1245
|
-
),
|
|
1246
|
-
/* @__PURE__ */ e(
|
|
1247
|
-
"p",
|
|
1248
|
-
{
|
|
1249
|
-
style: {
|
|
1250
|
-
fontSize: "13px",
|
|
1251
|
-
lineHeight: 1.5,
|
|
1252
|
-
color: "rgba(30, 33, 37, 0.65)"
|
|
1253
|
-
},
|
|
1254
|
-
children: u
|
|
1255
|
-
}
|
|
1256
|
-
)
|
|
1257
|
-
] }),
|
|
1258
|
-
s !== "coming-soon" && /* @__PURE__ */ t(
|
|
1259
|
-
"button",
|
|
1260
|
-
{
|
|
1261
|
-
onClick: (v) => {
|
|
1262
|
-
v.stopPropagation(), a == null || a();
|
|
1263
|
-
},
|
|
1264
|
-
style: {
|
|
1265
|
-
display: "flex",
|
|
1266
|
-
alignItems: "center",
|
|
1267
|
-
justifyContent: "center",
|
|
1268
|
-
gap: "8px",
|
|
1269
|
-
padding: "8px 14px",
|
|
1270
|
-
border: "1px solid rgba(30, 33, 37, 0.15)",
|
|
1271
|
-
borderRadius: "5px",
|
|
1272
|
-
background: s === "connected" ? "transparent" : "rgba(30, 33, 37, 0.03)",
|
|
1273
|
-
fontSize: "13px",
|
|
1274
|
-
fontWeight: 600,
|
|
1275
|
-
color: "rgba(30, 33, 37, 0.92)",
|
|
1276
|
-
cursor: "pointer",
|
|
1277
|
-
transition: "all 0.15s ease",
|
|
1278
|
-
width: "100%",
|
|
1279
|
-
marginTop: "auto"
|
|
1280
|
-
},
|
|
1281
|
-
className: "hover:bg-[rgba(30,33,37,0.06)] hover:border-[rgba(30,33,37,0.20)]",
|
|
1282
|
-
children: [
|
|
1283
|
-
/* @__PURE__ */ e(Z, { size: 14, strokeWidth: 2.5 }),
|
|
1284
|
-
s === "connected" ? "Configure" : "Connect"
|
|
1285
|
-
]
|
|
1286
|
-
}
|
|
1287
|
-
)
|
|
1288
|
-
]
|
|
1289
|
-
}
|
|
1290
|
-
)
|
|
1291
|
-
]
|
|
1292
|
-
}
|
|
1293
|
-
);
|
|
1294
|
-
}
|
|
1295
1086
|
const ge = "../../assets/chordia-logo.png";
|
|
1296
|
-
function
|
|
1297
|
-
title:
|
|
1298
|
-
subtitle:
|
|
1299
|
-
logo:
|
|
1087
|
+
function ve({
|
|
1088
|
+
title: v = "Chordia",
|
|
1089
|
+
subtitle: h = "Sign in to continue",
|
|
1090
|
+
logo: p,
|
|
1300
1091
|
onLogin: l,
|
|
1301
|
-
loading:
|
|
1302
|
-
error:
|
|
1092
|
+
loading: f = !1,
|
|
1093
|
+
error: C = null,
|
|
1303
1094
|
footer: a,
|
|
1304
|
-
showLabels:
|
|
1305
|
-
emailPlaceholder:
|
|
1306
|
-
passwordPlaceholder:
|
|
1307
|
-
onForgotPassword:
|
|
1095
|
+
showLabels: m = !0,
|
|
1096
|
+
emailPlaceholder: u = "you@company.com",
|
|
1097
|
+
passwordPlaceholder: k = "Password",
|
|
1098
|
+
onForgotPassword: d,
|
|
1308
1099
|
compact: r = !1
|
|
1309
1100
|
}) {
|
|
1310
|
-
const [
|
|
1311
|
-
i.preventDefault(), !(!
|
|
1312
|
-
},
|
|
1101
|
+
const [b, z] = x(""), [y, B] = x(""), [M, W] = x(!1), [s, w] = x(null), T = (i) => {
|
|
1102
|
+
i.preventDefault(), !(!b || !y || f) && (l == null || l(b, y));
|
|
1103
|
+
}, S = b && y && !f, o = "var(--rail-compliance)", n = "201, 138, 90", g = /* @__PURE__ */ t("div", { style: {
|
|
1313
1104
|
width: "100%",
|
|
1314
1105
|
maxWidth: 400,
|
|
1315
1106
|
background: "var(--paper-elevated)",
|
|
@@ -1329,7 +1120,7 @@ function ke({
|
|
|
1329
1120
|
background: `linear-gradient(90deg, var(--state-unknown), ${o})`,
|
|
1330
1121
|
opacity: 0.6
|
|
1331
1122
|
} }),
|
|
1332
|
-
/* @__PURE__ */ e("div", { style: { textAlign: "center", marginBottom: 32 }, children:
|
|
1123
|
+
/* @__PURE__ */ e("div", { style: { textAlign: "center", marginBottom: 32 }, children: p || /* @__PURE__ */ t(D, { children: [
|
|
1333
1124
|
/* @__PURE__ */ e("div", { style: {
|
|
1334
1125
|
display: "inline-flex",
|
|
1335
1126
|
alignItems: "center",
|
|
@@ -1342,20 +1133,20 @@ function ke({
|
|
|
1342
1133
|
"img",
|
|
1343
1134
|
{
|
|
1344
1135
|
src: ge,
|
|
1345
|
-
alt:
|
|
1136
|
+
alt: v,
|
|
1346
1137
|
style: { height: 28, display: "block" }
|
|
1347
1138
|
}
|
|
1348
1139
|
) }),
|
|
1349
|
-
|
|
1140
|
+
h && /* @__PURE__ */ e("p", { style: {
|
|
1350
1141
|
fontSize: "var(--text-sm)",
|
|
1351
1142
|
color: "var(--text-muted)",
|
|
1352
1143
|
marginTop: 4,
|
|
1353
1144
|
marginBottom: 0
|
|
1354
|
-
}, children:
|
|
1145
|
+
}, children: h })
|
|
1355
1146
|
] }) }),
|
|
1356
1147
|
/* @__PURE__ */ t("form", { onSubmit: T, children: [
|
|
1357
1148
|
/* @__PURE__ */ t("div", { style: { marginBottom: 18 }, children: [
|
|
1358
|
-
|
|
1149
|
+
m && /* @__PURE__ */ e("label", { style: {
|
|
1359
1150
|
display: "block",
|
|
1360
1151
|
fontSize: "var(--text-sm)",
|
|
1361
1152
|
fontWeight: 550,
|
|
@@ -1367,7 +1158,7 @@ function ke({
|
|
|
1367
1158
|
/* @__PURE__ */ e(le, { size: 15, style: {
|
|
1368
1159
|
position: "absolute",
|
|
1369
1160
|
left: 12,
|
|
1370
|
-
color:
|
|
1161
|
+
color: s === "email" ? `rgba(${n}, 0.7)` : "var(--text-faint)",
|
|
1371
1162
|
pointerEvents: "none",
|
|
1372
1163
|
transition: "color 0.2s ease"
|
|
1373
1164
|
} }),
|
|
@@ -1375,9 +1166,9 @@ function ke({
|
|
|
1375
1166
|
"input",
|
|
1376
1167
|
{
|
|
1377
1168
|
type: "email",
|
|
1378
|
-
value:
|
|
1169
|
+
value: b,
|
|
1379
1170
|
onChange: (i) => z(i.target.value),
|
|
1380
|
-
placeholder:
|
|
1171
|
+
placeholder: u,
|
|
1381
1172
|
required: !0,
|
|
1382
1173
|
autoFocus: !0,
|
|
1383
1174
|
autoComplete: "email",
|
|
@@ -1386,14 +1177,14 @@ function ke({
|
|
|
1386
1177
|
padding: "11px 12px 11px 38px",
|
|
1387
1178
|
fontSize: "var(--text-md)",
|
|
1388
1179
|
border: "1px solid",
|
|
1389
|
-
borderColor:
|
|
1180
|
+
borderColor: s === "email" ? o : "var(--border)",
|
|
1390
1181
|
borderRadius: "var(--radius)",
|
|
1391
|
-
backgroundColor:
|
|
1182
|
+
backgroundColor: s === "email" ? "rgba(255,255,255,0.95)" : "var(--paper)",
|
|
1392
1183
|
color: "var(--text-ink)",
|
|
1393
1184
|
fontFamily: "var(--font-sans)",
|
|
1394
1185
|
outline: "none",
|
|
1395
1186
|
transition: "border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",
|
|
1396
|
-
boxShadow:
|
|
1187
|
+
boxShadow: s === "email" ? `0 0 0 3px rgba(${n}, 0.1)` : "none"
|
|
1397
1188
|
},
|
|
1398
1189
|
onFocus: () => w("email"),
|
|
1399
1190
|
onBlur: () => w(null)
|
|
@@ -1402,7 +1193,7 @@ function ke({
|
|
|
1402
1193
|
] })
|
|
1403
1194
|
] }),
|
|
1404
1195
|
/* @__PURE__ */ t("div", { style: { marginBottom: 6 }, children: [
|
|
1405
|
-
|
|
1196
|
+
m && /* @__PURE__ */ e("label", { style: {
|
|
1406
1197
|
display: "block",
|
|
1407
1198
|
fontSize: "var(--text-sm)",
|
|
1408
1199
|
fontWeight: 550,
|
|
@@ -1414,17 +1205,17 @@ function ke({
|
|
|
1414
1205
|
/* @__PURE__ */ e(se, { size: 15, style: {
|
|
1415
1206
|
position: "absolute",
|
|
1416
1207
|
left: 12,
|
|
1417
|
-
color:
|
|
1208
|
+
color: s === "password" ? `rgba(${n}, 0.7)` : "var(--text-faint)",
|
|
1418
1209
|
pointerEvents: "none",
|
|
1419
1210
|
transition: "color 0.2s ease"
|
|
1420
1211
|
} }),
|
|
1421
1212
|
/* @__PURE__ */ e(
|
|
1422
1213
|
"input",
|
|
1423
1214
|
{
|
|
1424
|
-
type:
|
|
1425
|
-
value:
|
|
1426
|
-
onChange: (i) =>
|
|
1427
|
-
placeholder:
|
|
1215
|
+
type: M ? "text" : "password",
|
|
1216
|
+
value: y,
|
|
1217
|
+
onChange: (i) => B(i.target.value),
|
|
1218
|
+
placeholder: k,
|
|
1428
1219
|
required: !0,
|
|
1429
1220
|
autoComplete: "current-password",
|
|
1430
1221
|
style: {
|
|
@@ -1432,14 +1223,14 @@ function ke({
|
|
|
1432
1223
|
padding: "11px 42px 11px 38px",
|
|
1433
1224
|
fontSize: "var(--text-md)",
|
|
1434
1225
|
border: "1px solid",
|
|
1435
|
-
borderColor:
|
|
1226
|
+
borderColor: s === "password" ? o : "var(--border)",
|
|
1436
1227
|
borderRadius: "var(--radius)",
|
|
1437
|
-
backgroundColor:
|
|
1228
|
+
backgroundColor: s === "password" ? "rgba(255,255,255,0.95)" : "var(--paper)",
|
|
1438
1229
|
color: "var(--text-ink)",
|
|
1439
1230
|
fontFamily: "var(--font-sans)",
|
|
1440
1231
|
outline: "none",
|
|
1441
1232
|
transition: "border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease",
|
|
1442
|
-
boxShadow:
|
|
1233
|
+
boxShadow: s === "password" ? `0 0 0 3px rgba(${n}, 0.1)` : "none"
|
|
1443
1234
|
},
|
|
1444
1235
|
onFocus: () => w("password"),
|
|
1445
1236
|
onBlur: () => w(null)
|
|
@@ -1449,7 +1240,7 @@ function ke({
|
|
|
1449
1240
|
"button",
|
|
1450
1241
|
{
|
|
1451
1242
|
type: "button",
|
|
1452
|
-
onClick: () =>
|
|
1243
|
+
onClick: () => W(!M),
|
|
1453
1244
|
style: {
|
|
1454
1245
|
position: "absolute",
|
|
1455
1246
|
right: 8,
|
|
@@ -1470,16 +1261,16 @@ function ke({
|
|
|
1470
1261
|
onMouseLeave: (i) => {
|
|
1471
1262
|
i.currentTarget.style.color = "var(--text-faint)";
|
|
1472
1263
|
},
|
|
1473
|
-
children:
|
|
1264
|
+
children: M ? /* @__PURE__ */ e(de, { size: 16 }) : /* @__PURE__ */ e(ce, { size: 16 })
|
|
1474
1265
|
}
|
|
1475
1266
|
)
|
|
1476
1267
|
] })
|
|
1477
1268
|
] }),
|
|
1478
|
-
|
|
1269
|
+
d && /* @__PURE__ */ e("div", { style: { textAlign: "right", marginBottom: 4 }, children: /* @__PURE__ */ e(
|
|
1479
1270
|
"button",
|
|
1480
1271
|
{
|
|
1481
1272
|
type: "button",
|
|
1482
|
-
onClick:
|
|
1273
|
+
onClick: d,
|
|
1483
1274
|
style: {
|
|
1484
1275
|
background: "none",
|
|
1485
1276
|
border: "none",
|
|
@@ -1499,7 +1290,7 @@ function ke({
|
|
|
1499
1290
|
children: "Forgot password?"
|
|
1500
1291
|
}
|
|
1501
1292
|
) }),
|
|
1502
|
-
|
|
1293
|
+
C && /* @__PURE__ */ e("div", { style: {
|
|
1503
1294
|
fontSize: "var(--text-sm)",
|
|
1504
1295
|
color: "var(--text-strong)",
|
|
1505
1296
|
marginTop: 12,
|
|
@@ -1509,24 +1300,24 @@ function ke({
|
|
|
1509
1300
|
borderRadius: "var(--radius-sm)",
|
|
1510
1301
|
textAlign: "center",
|
|
1511
1302
|
fontWeight: 500
|
|
1512
|
-
}, children:
|
|
1303
|
+
}, children: C }),
|
|
1513
1304
|
/* @__PURE__ */ e(
|
|
1514
1305
|
"button",
|
|
1515
1306
|
{
|
|
1516
1307
|
type: "submit",
|
|
1517
|
-
disabled: !
|
|
1308
|
+
disabled: !S,
|
|
1518
1309
|
style: {
|
|
1519
1310
|
width: "100%",
|
|
1520
1311
|
padding: "11px 0",
|
|
1521
1312
|
marginTop: 20,
|
|
1522
|
-
background:
|
|
1313
|
+
background: S ? "var(--text-ink)" : "var(--text-xfaint)",
|
|
1523
1314
|
color: "#ffffff",
|
|
1524
1315
|
border: "none",
|
|
1525
1316
|
borderRadius: "var(--radius)",
|
|
1526
1317
|
fontSize: "var(--text-md)",
|
|
1527
1318
|
fontWeight: 600,
|
|
1528
1319
|
fontFamily: "var(--font-sans)",
|
|
1529
|
-
cursor:
|
|
1320
|
+
cursor: S ? "pointer" : "not-allowed",
|
|
1530
1321
|
transition: "opacity 0.15s ease, transform 0.1s ease",
|
|
1531
1322
|
display: "flex",
|
|
1532
1323
|
alignItems: "center",
|
|
@@ -1534,18 +1325,18 @@ function ke({
|
|
|
1534
1325
|
gap: 8
|
|
1535
1326
|
},
|
|
1536
1327
|
onMouseEnter: (i) => {
|
|
1537
|
-
|
|
1328
|
+
S && (i.currentTarget.style.opacity = "0.85", i.currentTarget.style.transform = "translateY(-1px)");
|
|
1538
1329
|
},
|
|
1539
1330
|
onMouseLeave: (i) => {
|
|
1540
1331
|
i.currentTarget.style.opacity = "1", i.currentTarget.style.transform = "translateY(0)";
|
|
1541
1332
|
},
|
|
1542
1333
|
onMouseDown: (i) => {
|
|
1543
|
-
|
|
1334
|
+
S && (i.currentTarget.style.transform = "translateY(0)");
|
|
1544
1335
|
},
|
|
1545
1336
|
onMouseUp: (i) => {
|
|
1546
|
-
|
|
1337
|
+
S && (i.currentTarget.style.transform = "translateY(-1px)");
|
|
1547
1338
|
},
|
|
1548
|
-
children:
|
|
1339
|
+
children: f ? "Signing in…" : /* @__PURE__ */ t(D, { children: [
|
|
1549
1340
|
"Sign In",
|
|
1550
1341
|
/* @__PURE__ */ e(pe, { size: 16 })
|
|
1551
1342
|
] })
|
|
@@ -1570,87 +1361,87 @@ function ke({
|
|
|
1570
1361
|
}, children: a })
|
|
1571
1362
|
] })
|
|
1572
1363
|
] });
|
|
1573
|
-
return r ?
|
|
1364
|
+
return r ? g : /* @__PURE__ */ e("div", { style: {
|
|
1574
1365
|
display: "flex",
|
|
1575
1366
|
alignItems: "center",
|
|
1576
1367
|
justifyContent: "center",
|
|
1577
1368
|
minHeight: "100vh",
|
|
1578
1369
|
background: "var(--bg-chordia)",
|
|
1579
1370
|
padding: "var(--spacing-6)"
|
|
1580
|
-
}, children:
|
|
1371
|
+
}, children: g });
|
|
1581
1372
|
}
|
|
1582
|
-
function
|
|
1583
|
-
left:
|
|
1584
|
-
right:
|
|
1585
|
-
defaultWidth:
|
|
1373
|
+
function ke({
|
|
1374
|
+
left: v,
|
|
1375
|
+
right: h,
|
|
1376
|
+
defaultWidth: p = 260,
|
|
1586
1377
|
defaultRatio: l,
|
|
1587
|
-
minWidth:
|
|
1588
|
-
maxWidth:
|
|
1378
|
+
minWidth: f = 180,
|
|
1379
|
+
maxWidth: C = 450,
|
|
1589
1380
|
minRatio: a,
|
|
1590
|
-
maxRatio:
|
|
1591
|
-
collapsedWidth:
|
|
1592
|
-
collapsed:
|
|
1593
|
-
onCollapsedChange:
|
|
1381
|
+
maxRatio: m,
|
|
1382
|
+
collapsedWidth: u = 0,
|
|
1383
|
+
collapsed: k,
|
|
1384
|
+
onCollapsedChange: d,
|
|
1594
1385
|
collapseSide: r = "left",
|
|
1595
|
-
collapseThreshold:
|
|
1386
|
+
collapseThreshold: b,
|
|
1596
1387
|
dividerWidth: z = 7,
|
|
1597
|
-
style:
|
|
1388
|
+
style: y
|
|
1598
1389
|
}) {
|
|
1599
|
-
const
|
|
1600
|
-
(
|
|
1601
|
-
const
|
|
1602
|
-
|
|
1390
|
+
const B = k !== void 0, [M, W] = x(!1), s = B ? k : M, w = H(
|
|
1391
|
+
(c) => {
|
|
1392
|
+
const R = typeof c == "function" ? c(s) : c;
|
|
1393
|
+
B || W(R), d == null || d(R);
|
|
1603
1394
|
},
|
|
1604
|
-
[
|
|
1605
|
-
), T =
|
|
1606
|
-
|
|
1395
|
+
[B, s, d]
|
|
1396
|
+
), T = F(null), [S, o] = x(0), [n, g] = x(p), [i, I] = x(!1), [V, Z] = x(!1), $ = F(0), U = F(0);
|
|
1397
|
+
ee(() => {
|
|
1607
1398
|
if (!T.current)
|
|
1608
1399
|
return;
|
|
1609
|
-
const
|
|
1610
|
-
o(
|
|
1611
|
-
}, []),
|
|
1400
|
+
const c = T.current.offsetWidth;
|
|
1401
|
+
o(c), !V && c > 0 && (l != null && g(Math.round(c * l)), Z(!0));
|
|
1402
|
+
}, []), X(() => {
|
|
1612
1403
|
if (!T.current)
|
|
1613
1404
|
return;
|
|
1614
|
-
const
|
|
1615
|
-
for (const A of
|
|
1405
|
+
const c = new ResizeObserver((R) => {
|
|
1406
|
+
for (const A of R)
|
|
1616
1407
|
o(A.contentRect.width);
|
|
1617
1408
|
});
|
|
1618
|
-
return
|
|
1409
|
+
return c.observe(T.current), () => c.disconnect();
|
|
1619
1410
|
}, []);
|
|
1620
|
-
const L = a != null ? Math.round(
|
|
1621
|
-
(
|
|
1622
|
-
|
|
1411
|
+
const L = a != null ? Math.round(S * a) : f, O = m != null ? Math.round(S * 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);
|
|
1623
1414
|
},
|
|
1624
|
-
[n,
|
|
1415
|
+
[n, s, u]
|
|
1625
1416
|
);
|
|
1626
|
-
|
|
1417
|
+
X(() => {
|
|
1627
1418
|
if (!i)
|
|
1628
1419
|
return;
|
|
1629
|
-
const
|
|
1630
|
-
const
|
|
1631
|
-
if ((r === "left" || r === "both") &&
|
|
1632
|
-
|
|
1420
|
+
const c = (A) => {
|
|
1421
|
+
const K = A.clientX - $.current, q = U.current + K;
|
|
1422
|
+
if ((r === "left" || r === "both") && q < Y) {
|
|
1423
|
+
s || w(!0);
|
|
1633
1424
|
return;
|
|
1634
1425
|
}
|
|
1635
|
-
|
|
1636
|
-
},
|
|
1637
|
-
return document.addEventListener("mousemove",
|
|
1638
|
-
document.removeEventListener("mousemove",
|
|
1426
|
+
s && w(!1), g(Math.min(Math.max(q, L), O));
|
|
1427
|
+
}, R = () => I(!1);
|
|
1428
|
+
return document.addEventListener("mousemove", c), document.addEventListener("mouseup", R), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", () => {
|
|
1429
|
+
document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", R), document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
1639
1430
|
};
|
|
1640
1431
|
}, [
|
|
1641
1432
|
i,
|
|
1642
|
-
|
|
1433
|
+
s,
|
|
1643
1434
|
L,
|
|
1435
|
+
O,
|
|
1644
1436
|
Y,
|
|
1645
|
-
|
|
1646
|
-
C,
|
|
1437
|
+
S,
|
|
1647
1438
|
z,
|
|
1648
1439
|
r,
|
|
1649
1440
|
w
|
|
1650
1441
|
]);
|
|
1651
|
-
const
|
|
1652
|
-
r !== "none" && w((
|
|
1653
|
-
}, [w, r]),
|
|
1442
|
+
const J = H(() => {
|
|
1443
|
+
r !== "none" && w((c) => !c);
|
|
1444
|
+
}, [w, r]), G = s ? u : n;
|
|
1654
1445
|
return /* @__PURE__ */ t(
|
|
1655
1446
|
"div",
|
|
1656
1447
|
{
|
|
@@ -1660,27 +1451,27 @@ function Se({
|
|
|
1660
1451
|
height: "100%",
|
|
1661
1452
|
overflow: "hidden",
|
|
1662
1453
|
position: "relative",
|
|
1663
|
-
...
|
|
1454
|
+
...y
|
|
1664
1455
|
},
|
|
1665
1456
|
children: [
|
|
1666
|
-
(
|
|
1457
|
+
(G > 0 || !s) && /* @__PURE__ */ e(
|
|
1667
1458
|
"div",
|
|
1668
1459
|
{
|
|
1669
1460
|
style: {
|
|
1670
|
-
width:
|
|
1461
|
+
width: G,
|
|
1671
1462
|
flexShrink: 0,
|
|
1672
1463
|
overflow: "hidden",
|
|
1673
1464
|
transition: i ? "none" : "width 0.2s ease",
|
|
1674
1465
|
height: "100%"
|
|
1675
1466
|
},
|
|
1676
|
-
children: !
|
|
1467
|
+
children: !s && v
|
|
1677
1468
|
}
|
|
1678
1469
|
),
|
|
1679
1470
|
/* @__PURE__ */ t(
|
|
1680
1471
|
"div",
|
|
1681
1472
|
{
|
|
1682
|
-
onMouseDown:
|
|
1683
|
-
onDoubleClick:
|
|
1473
|
+
onMouseDown: _,
|
|
1474
|
+
onDoubleClick: J,
|
|
1684
1475
|
style: {
|
|
1685
1476
|
width: `${z}px`,
|
|
1686
1477
|
flexShrink: 0,
|
|
@@ -1736,7 +1527,7 @@ function Se({
|
|
|
1736
1527
|
overflow: "hidden",
|
|
1737
1528
|
height: "100%"
|
|
1738
1529
|
},
|
|
1739
|
-
children:
|
|
1530
|
+
children: h
|
|
1740
1531
|
}
|
|
1741
1532
|
)
|
|
1742
1533
|
]
|
|
@@ -1746,9 +1537,9 @@ function Se({
|
|
|
1746
1537
|
export {
|
|
1747
1538
|
ye as DemoProjectBanner,
|
|
1748
1539
|
fe as FirstCallScreen,
|
|
1749
|
-
|
|
1750
|
-
|
|
1540
|
+
Ce as IntegrationCard,
|
|
1541
|
+
ve as LoginForm,
|
|
1751
1542
|
me as OnboardingChecklist,
|
|
1752
|
-
|
|
1543
|
+
ke as SplitPane
|
|
1753
1544
|
};
|
|
1754
1545
|
//# sourceMappingURL=layout.es.js.map
|