chordia-ui 3.3.8 → 3.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentLiftCard.cjs.js.map +1 -1
- package/dist/AgentLiftCard.es.js +5 -3
- package/dist/AgentLiftCard.es.js.map +1 -1
- package/dist/CustomFilterChips.cjs.js.map +1 -1
- package/dist/CustomFilterChips.es.js +2 -1
- package/dist/CustomFilterChips.es.js.map +1 -1
- package/dist/FileUploadingState.cjs.js.map +1 -1
- package/dist/FileUploadingState.es.js +16 -10
- package/dist/FileUploadingState.es.js.map +1 -1
- package/dist/IntegrationCard.cjs.js.map +1 -1
- package/dist/IntegrationCard.es.js +3 -3
- package/dist/IntegrationCard.es.js.map +1 -1
- package/dist/SectionLabel.cjs.js.map +1 -1
- package/dist/SectionLabel.es.js.map +1 -1
- package/dist/SmallButton.cjs.js.map +1 -1
- package/dist/SmallButton.es.js +16 -16
- package/dist/SmallButton.es.js.map +1 -1
- package/dist/SummarySection.cjs.js.map +1 -1
- package/dist/SummarySection.es.js +11 -9
- package/dist/SummarySection.es.js.map +1 -1
- package/dist/TextInput.cjs.js.map +1 -1
- package/dist/TextInput.es.js.map +1 -1
- package/dist/Timeline.cjs.js.map +1 -1
- package/dist/Timeline.es.js +14 -8
- package/dist/Timeline.es.js.map +1 -1
- package/dist/Tooltip.cjs.js +1 -1
- package/dist/Tooltip.cjs.js.map +1 -1
- package/dist/Tooltip.es.js +31 -20
- package/dist/Tooltip.es.js.map +1 -1
- package/dist/TourGuideTooltip.cjs.js.map +1 -1
- package/dist/TourGuideTooltip.es.js +2 -1
- package/dist/TourGuideTooltip.es.js.map +1 -1
- package/dist/UpdatedInteractionRecording.cjs.js +1 -1
- package/dist/UpdatedInteractionRecording.cjs.js.map +1 -1
- package/dist/UpdatedInteractionRecording.es.js +79 -97
- package/dist/UpdatedInteractionRecording.es.js.map +1 -1
- package/dist/UploadInteraction.cjs.js.map +1 -1
- package/dist/UploadInteraction.es.js.map +1 -1
- package/dist/colors.cjs.js +2 -0
- package/dist/colors.cjs.js.map +1 -0
- package/dist/colors.es.js +2 -0
- package/dist/colors.es.js.map +1 -0
- package/dist/components/UpdatedInteractionDetails.cjs.js +10 -1
- package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.es.js +1531 -9
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/dist/components/chat.cjs.js +30 -1
- package/dist/components/chat.cjs.js.map +1 -1
- package/dist/components/chat.es.js +2222 -7
- package/dist/components/chat.es.js.map +1 -1
- package/dist/components/common.cjs.js +1 -1
- package/dist/components/common.es.js +32 -25
- package/dist/components/common.es.js.map +1 -1
- package/dist/components/data.cjs.js +1 -1
- package/dist/components/data.cjs.js.map +1 -1
- package/dist/components/data.es.js +1033 -4
- package/dist/components/data.es.js.map +1 -1
- package/dist/components/layout.cjs.js +3 -1
- package/dist/components/layout.cjs.js.map +1 -1
- package/dist/components/layout.es.js +1533 -8
- package/dist/components/layout.es.js.map +1 -1
- package/dist/components/login.cjs.js +1 -1
- package/dist/components/login.es.js +6 -2
- package/dist/components/login.es.js.map +1 -1
- package/dist/components/media.cjs.js +1 -1
- package/dist/components/media.cjs.js.map +1 -1
- package/dist/components/media.es.js +220 -6
- package/dist/components/media.es.js.map +1 -1
- package/dist/components/models.cjs.js +1 -1
- package/dist/components/models.cjs.js.map +1 -1
- package/dist/components/models.es.js +91 -2
- package/dist/components/models.es.js.map +1 -1
- package/dist/components/navigation.cjs.js +1 -1
- package/dist/components/navigation.cjs.js.map +1 -1
- package/dist/components/navigation.es.js +766 -7
- package/dist/components/navigation.es.js.map +1 -1
- package/dist/components/notifications.cjs.js +1 -1
- package/dist/components/notifications.cjs.js.map +1 -1
- package/dist/components/notifications.es.js +368 -3
- package/dist/components/notifications.es.js.map +1 -1
- package/dist/components/onboarding.cjs.js +1 -1
- package/dist/components/onboarding.cjs.js.map +1 -1
- package/dist/components/onboarding.es.js +985 -7
- package/dist/components/onboarding.es.js.map +1 -1
- package/dist/components/primitives.cjs.js +1 -1
- package/dist/components/primitives.cjs.js.map +1 -1
- package/dist/components/primitives.es.js +635 -25
- package/dist/components/primitives.es.js.map +1 -1
- package/dist/debugger-wc.cjs.js +4 -4
- package/dist/debugger-wc.cjs.js.map +1 -1
- package/dist/debugger-wc.es.js +15 -11
- package/dist/debugger-wc.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs2.js +2 -49
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs3.js +50 -0
- package/dist/index.cjs3.js.map +1 -0
- package/dist/index.es.js +104 -99
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +2632 -1776
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es3.js +1944 -0
- package/dist/index.es3.js.map +1 -0
- package/dist/pages/interactionDetails.cjs.js +1 -1
- package/dist/pages/interactionDetails.cjs.js.map +1 -1
- package/dist/pages/interactionDetails.es.js +70 -47
- package/dist/pages/interactionDetails.es.js.map +1 -1
- package/dist/sortable.esm.cjs.js +1 -1
- package/dist/sortable.esm.cjs.js.map +1 -1
- package/dist/sortable.esm.es.js +55 -53
- package/dist/sortable.esm.es.js.map +1 -1
- package/dist/{chordia-ui.css → style.css} +1 -1
- package/package.json +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +318 -77
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionRecording.jsx +7 -17
- package/dist/ChartRenderer.cjs.js +0 -31
- package/dist/ChartRenderer.cjs.js.map +0 -1
- package/dist/ChartRenderer.es.js +0 -2210
- package/dist/ChartRenderer.es.js.map +0 -1
- package/dist/GettingStarted.cjs.js +0 -2
- package/dist/GettingStarted.cjs.js.map +0 -1
- package/dist/GettingStarted.es.js +0 -983
- package/dist/GettingStarted.es.js.map +0 -1
- package/dist/InlineConfirm.cjs.js +0 -2
- package/dist/InlineConfirm.cjs.js.map +0 -1
- package/dist/InlineConfirm.es.js +0 -618
- package/dist/InlineConfirm.es.js.map +0 -1
- package/dist/InteractionSummaryCard.cjs.js +0 -2
- package/dist/InteractionSummaryCard.cjs.js.map +0 -1
- package/dist/InteractionSummaryCard.es.js +0 -216
- package/dist/InteractionSummaryCard.es.js.map +0 -1
- package/dist/LoginPage.cjs.js +0 -3
- package/dist/LoginPage.cjs.js.map +0 -1
- package/dist/LoginPage.es.js +0 -2618
- package/dist/LoginPage.es.js.map +0 -1
- package/dist/NavigationBar.cjs.js +0 -2
- package/dist/NavigationBar.cjs.js.map +0 -1
- package/dist/NavigationBar.es.js +0 -762
- package/dist/NavigationBar.es.js.map +0 -1
- package/dist/NotificationPanel.cjs.js +0 -2
- package/dist/NotificationPanel.cjs.js.map +0 -1
- package/dist/NotificationPanel.es.js +0 -371
- package/dist/NotificationPanel.es.js.map +0 -1
- package/dist/OverlayPanel.cjs.js +0 -2
- package/dist/OverlayPanel.cjs.js.map +0 -1
- package/dist/OverlayPanel.es.js +0 -93
- package/dist/OverlayPanel.es.js.map +0 -1
- package/dist/SplitPane.cjs.js +0 -4
- package/dist/SplitPane.cjs.js.map +0 -1
- package/dist/SplitPane.es.js +0 -1531
- package/dist/SplitPane.es.js.map +0 -1
- package/dist/SummaryStatsPanel.cjs.js +0 -2
- package/dist/SummaryStatsPanel.cjs.js.map +0 -1
- package/dist/SummaryStatsPanel.es.js +0 -1027
- package/dist/SummaryStatsPanel.es.js.map +0 -1
- package/dist/UpdatedInteractionDetails.cjs.js +0 -11
- package/dist/UpdatedInteractionDetails.cjs.js.map +0 -1
- package/dist/UpdatedInteractionDetails.es.js +0 -1310
- package/dist/UpdatedInteractionDetails.es.js.map +0 -1
|
@@ -1,10 +1,988 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as te } from "../UploadInteraction.es.js";
|
|
2
|
+
import { U as ot } from "../UploadInteraction.es.js";
|
|
3
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { useState as c, useRef as L, useEffect as O } from "react";
|
|
5
|
+
import { Check as re, SquareUser as ne, ChevronDown as G, Trash as oe, Briefcase as ie, MessageSquare as le, Database as ae, Users as se, BookOpen as de, SlidersHorizontal as ce } from "lucide-react";
|
|
6
|
+
import { I as pe } from "../IntegrationCard.es.js";
|
|
7
|
+
const M = "var(--font-sans)", ge = {
|
|
8
|
+
fontFamily: M
|
|
9
|
+
}, he = {
|
|
10
|
+
fontSize: 20,
|
|
11
|
+
fontWeight: 600,
|
|
12
|
+
fontStyle: "normal",
|
|
13
|
+
fontFamily: M,
|
|
14
|
+
color: "var(--grey-strong)",
|
|
15
|
+
margin: 0,
|
|
16
|
+
lineHeight: "normal"
|
|
17
|
+
}, fe = {
|
|
18
|
+
fontSize: 13,
|
|
19
|
+
fontWeight: 400,
|
|
20
|
+
fontStyle: "normal",
|
|
21
|
+
color: "var(--color-text-secondary)",
|
|
22
|
+
fontFamily: M,
|
|
23
|
+
margin: "4px 0 0",
|
|
24
|
+
lineHeight: "140%"
|
|
25
|
+
}, ye = {
|
|
26
|
+
display: "grid",
|
|
27
|
+
gridTemplateColumns: "repeat(3, 1fr)",
|
|
28
|
+
gap: 16,
|
|
29
|
+
marginTop: 24
|
|
30
|
+
}, ue = [
|
|
31
|
+
{
|
|
32
|
+
providerName: "Five9",
|
|
33
|
+
description: "Cloud contact center platform for voice and digital channels",
|
|
34
|
+
status: "connected",
|
|
35
|
+
railColor: "#5E88B0"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
providerName: "Twilio Flex",
|
|
39
|
+
description: "Programmable contact center with custom workflows",
|
|
40
|
+
status: "available",
|
|
41
|
+
railColor: "#9B7AA8"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
providerName: "Zoom Phone",
|
|
45
|
+
description: "Cloud phone system with recording capabilities",
|
|
46
|
+
status: "coming-soon",
|
|
47
|
+
railColor: "#6B7C93"
|
|
48
|
+
}
|
|
49
|
+
], ve = ({ integrations: a = ue, onConfigure: h }) => /* @__PURE__ */ n("div", { style: ge, children: [
|
|
50
|
+
/* @__PURE__ */ t("h2", { style: he, children: "Connect Data Source" }),
|
|
51
|
+
/* @__PURE__ */ t("p", { style: fe, children: "Choose your preferred platforms to synchronise data." }),
|
|
52
|
+
/* @__PURE__ */ t("div", { style: ye, children: a.map((l) => /* @__PURE__ */ t(
|
|
53
|
+
pe,
|
|
54
|
+
{
|
|
55
|
+
providerName: l.providerName,
|
|
56
|
+
description: l.description,
|
|
57
|
+
status: l.status,
|
|
58
|
+
railColor: l.railColor,
|
|
59
|
+
logoUrl: l.logoUrl,
|
|
60
|
+
icon: l.icon,
|
|
61
|
+
onConfigure: () => h == null ? void 0 : h(l)
|
|
62
|
+
},
|
|
63
|
+
l.providerName
|
|
64
|
+
)) })
|
|
65
|
+
] }), u = "var(--font-sans)", me = ["Super Admin", "Admin", "Analyst", "Supervisor", "Agent"], xe = ({
|
|
66
|
+
title: a = "Create User",
|
|
67
|
+
subtitle: h = "Create users and send invites to add them to the platform.",
|
|
68
|
+
projects: l = ["Andromeda Project"],
|
|
69
|
+
defaultRole: v = "Admin",
|
|
70
|
+
defaultProject: x,
|
|
71
|
+
roles: f = me,
|
|
72
|
+
onSendInvite: g,
|
|
73
|
+
onInvite: b
|
|
74
|
+
}) => {
|
|
75
|
+
const [m, y] = c(""), [s, w] = c([]), [z, F] = c(null), [k, S] = c(""), [I, C] = c(""), [i, D] = c([]), [W, j] = c(null), [R, B] = c(null), K = L(null), A = L(null), H = L(null), q = x || l[0] || "", T = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
76
|
+
O(() => {
|
|
77
|
+
if (W === null && R === null)
|
|
78
|
+
return;
|
|
79
|
+
const e = (r) => {
|
|
80
|
+
H.current && !H.current.contains(r.target) && (j(null), B(null));
|
|
81
|
+
};
|
|
82
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
83
|
+
}, [W, R]), O(() => {
|
|
84
|
+
z !== null && A.current && A.current.focus();
|
|
85
|
+
}, [z]);
|
|
86
|
+
const Z = (e) => {
|
|
87
|
+
const r = e.target.value;
|
|
88
|
+
if (C(""), r.endsWith(",")) {
|
|
89
|
+
const o = r.slice(0, -1).trim();
|
|
90
|
+
if (!o) {
|
|
91
|
+
y("");
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (!T(o)) {
|
|
95
|
+
C(`"${o}" is not a valid email address.`);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
s.includes(o) || w([...s, o]), y("");
|
|
99
|
+
} else
|
|
100
|
+
y(r);
|
|
101
|
+
}, N = (e) => {
|
|
102
|
+
F(e), S(s[e]);
|
|
103
|
+
}, P = (e) => {
|
|
104
|
+
const r = k.trim();
|
|
105
|
+
if (C(""), !r)
|
|
106
|
+
w(s.filter((o, d) => d !== e));
|
|
107
|
+
else if (T(r))
|
|
108
|
+
r !== s[e] && w(s.map((o, d) => d === e ? r : o));
|
|
109
|
+
else {
|
|
110
|
+
C(`"${r}" is not a valid email address.`);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
F(null), S("");
|
|
114
|
+
}, J = (e) => {
|
|
115
|
+
const r = e.target.value;
|
|
116
|
+
r.endsWith(",") ? (S(r.slice(0, -1)), P(z)) : S(r);
|
|
117
|
+
}, Q = (e, r) => {
|
|
118
|
+
e.key === "Enter" && (e.preventDefault(), P(r)), e.key === "Escape" && (F(null), S("")), e.key === "Backspace" && !k && (w(s.filter((o, d) => d !== r)), F(null), S(""));
|
|
119
|
+
}, $ = () => {
|
|
120
|
+
C("");
|
|
121
|
+
const e = m.trim();
|
|
122
|
+
if (e && !T(e)) {
|
|
123
|
+
C(`"${e}" is not a valid email address.`);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const r = [...s];
|
|
127
|
+
if (e && T(e) && r.push(e), !r.length)
|
|
128
|
+
return;
|
|
129
|
+
const o = new Set(i.map((E) => E.email)), d = [...new Set(r)].filter((E) => !o.has(E)).map((E) => ({ email: E, role: v, project: q, invited: !1 }));
|
|
130
|
+
d.length && D([...i, ...d]), w([]), y("");
|
|
131
|
+
}, X = (e) => {
|
|
132
|
+
e.key === "Enter" && (e.preventDefault(), $()), e.key === "Backspace" && !m && s.length && N(s.length - 1);
|
|
133
|
+
}, Y = (e) => {
|
|
134
|
+
D(i.filter((r, o) => o !== e)), j(null);
|
|
135
|
+
}, U = (e, r, o) => {
|
|
136
|
+
D(i.map((d, E) => E === e ? { ...d, [r]: o } : d));
|
|
137
|
+
}, ee = () => {
|
|
138
|
+
i.length && (D(i.map((e) => ({ ...e, invited: !0 }))), g == null || g(i), b == null || b(i.map((e) => e.email)));
|
|
139
|
+
}, V = (e) => e.role && e.project;
|
|
140
|
+
return /* @__PURE__ */ n("div", { style: { fontFamily: u }, children: [
|
|
141
|
+
/* @__PURE__ */ t("h2", { style: { fontSize: 20, fontWeight: 600, color: "var(--grey-strong, #2E3236)", margin: 0, lineHeight: "normal" }, children: a }),
|
|
142
|
+
/* @__PURE__ */ t("p", { style: { fontSize: 13, fontWeight: 400, color: "var(--color-text-secondary, #808183)", margin: "4px 0 0", lineHeight: "140%" }, children: h }),
|
|
143
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12, marginTop: 24 }, children: [
|
|
144
|
+
/* @__PURE__ */ n(
|
|
145
|
+
"div",
|
|
146
|
+
{
|
|
147
|
+
style: {
|
|
148
|
+
display: "flex",
|
|
149
|
+
alignItems: "center",
|
|
150
|
+
flex: 1,
|
|
151
|
+
minHeight: 44,
|
|
152
|
+
padding: "6px 14px",
|
|
153
|
+
borderRadius: 10,
|
|
154
|
+
border: "1px solid var(--color-input-border, #D9D9D9)",
|
|
155
|
+
background: "var(--grey-white, #FFF)",
|
|
156
|
+
boxSizing: "border-box",
|
|
157
|
+
gap: 4,
|
|
158
|
+
flexWrap: "wrap"
|
|
159
|
+
},
|
|
160
|
+
children: [
|
|
161
|
+
s.map((e, r) => /* @__PURE__ */ n(
|
|
162
|
+
"span",
|
|
163
|
+
{
|
|
164
|
+
style: { display: "inline-flex", alignItems: "center", gap: 2 },
|
|
165
|
+
children: [
|
|
166
|
+
z === r ? /* @__PURE__ */ t(
|
|
167
|
+
"input",
|
|
168
|
+
{
|
|
169
|
+
ref: A,
|
|
170
|
+
type: "text",
|
|
171
|
+
autoComplete: "off",
|
|
172
|
+
value: k,
|
|
173
|
+
onChange: J,
|
|
174
|
+
onKeyDown: (o) => Q(o, r),
|
|
175
|
+
onBlur: () => P(r),
|
|
176
|
+
style: {
|
|
177
|
+
border: "none",
|
|
178
|
+
outline: "none",
|
|
179
|
+
fontSize: 14,
|
|
180
|
+
fontWeight: 500,
|
|
181
|
+
fontFamily: u,
|
|
182
|
+
color: "var(--grey-strong, #2E3236)",
|
|
183
|
+
background: "#F3F7F7",
|
|
184
|
+
borderRadius: 6,
|
|
185
|
+
padding: "4px 8px",
|
|
186
|
+
width: `${Math.max(k.length, 1) * 8.5 + 16}px`
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
) : /* @__PURE__ */ t(
|
|
190
|
+
"span",
|
|
191
|
+
{
|
|
192
|
+
onClick: (o) => {
|
|
193
|
+
o.stopPropagation(), N(r);
|
|
194
|
+
},
|
|
195
|
+
style: {
|
|
196
|
+
display: "flex",
|
|
197
|
+
padding: "4px 8px",
|
|
198
|
+
justifyContent: "center",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
gap: 10,
|
|
201
|
+
borderRadius: 6,
|
|
202
|
+
background: "#F3F7F7",
|
|
203
|
+
fontSize: 14,
|
|
204
|
+
fontWeight: 500,
|
|
205
|
+
color: "var(--grey-strong, #2E3236)",
|
|
206
|
+
whiteSpace: "nowrap",
|
|
207
|
+
cursor: "text"
|
|
208
|
+
},
|
|
209
|
+
children: e
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 14, color: "var(--grey-strong, #2E3236)" }, children: "," })
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
r
|
|
216
|
+
)),
|
|
217
|
+
/* @__PURE__ */ t(
|
|
218
|
+
"input",
|
|
219
|
+
{
|
|
220
|
+
ref: K,
|
|
221
|
+
type: "text",
|
|
222
|
+
autoComplete: "off",
|
|
223
|
+
placeholder: s.length ? "" : "Enter email addresses separated by commas",
|
|
224
|
+
value: m,
|
|
225
|
+
onChange: Z,
|
|
226
|
+
onKeyDown: X,
|
|
227
|
+
style: {
|
|
228
|
+
flex: 1,
|
|
229
|
+
minWidth: 80,
|
|
230
|
+
border: "none",
|
|
231
|
+
outline: "none",
|
|
232
|
+
fontSize: 14,
|
|
233
|
+
fontWeight: 400,
|
|
234
|
+
fontFamily: u,
|
|
235
|
+
color: "var(--grey-strong, #2E3236)",
|
|
236
|
+
background: "transparent",
|
|
237
|
+
height: 32
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
)
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
),
|
|
244
|
+
/* @__PURE__ */ t(
|
|
245
|
+
"button",
|
|
246
|
+
{
|
|
247
|
+
onClick: $,
|
|
248
|
+
style: {
|
|
249
|
+
display: "flex",
|
|
250
|
+
height: 44,
|
|
251
|
+
padding: "0 24px",
|
|
252
|
+
justifyContent: "center",
|
|
253
|
+
alignItems: "center",
|
|
254
|
+
borderRadius: 10,
|
|
255
|
+
background: "var(--grey-strong, #2E3236)",
|
|
256
|
+
fontSize: 14,
|
|
257
|
+
fontWeight: 600,
|
|
258
|
+
fontFamily: u,
|
|
259
|
+
color: "var(--grey-white, #FFF)",
|
|
260
|
+
border: "none",
|
|
261
|
+
cursor: "pointer",
|
|
262
|
+
flexShrink: 0
|
|
263
|
+
},
|
|
264
|
+
children: "Add"
|
|
265
|
+
}
|
|
266
|
+
)
|
|
267
|
+
] }),
|
|
268
|
+
I && /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg, #F5F0E8)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text, #2E3236)", fontFamily: u, marginTop: 8 }, children: [
|
|
269
|
+
/* @__PURE__ */ t("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "var(--color-text, #2E3236)", style: { flexShrink: 0 }, children: /* @__PURE__ */ t("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
|
|
270
|
+
I
|
|
271
|
+
] }),
|
|
272
|
+
i.length > 0 && /* @__PURE__ */ n("div", { style: { marginTop: 24 }, children: [
|
|
273
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 12 }, children: [
|
|
274
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 14, fontWeight: 400, fontFamily: "Varta, var(--font-sans)", fontStyle: "normal", lineHeight: "normal", color: "var(--Content-Tertiary, #676767)" }, children: "Invited Members" }),
|
|
275
|
+
i.every((e) => e.invited) ? /* @__PURE__ */ n(
|
|
276
|
+
"button",
|
|
277
|
+
{
|
|
278
|
+
style: {
|
|
279
|
+
display: "flex",
|
|
280
|
+
height: 28,
|
|
281
|
+
minWidth: 80,
|
|
282
|
+
padding: "16px 12px",
|
|
283
|
+
justifyContent: "center",
|
|
284
|
+
alignItems: "center",
|
|
285
|
+
gap: 10,
|
|
286
|
+
borderRadius: 10,
|
|
287
|
+
border: "1px solid var(--Base-absent, #D9D9D9)",
|
|
288
|
+
background: "var(--Base-White, #FFF)",
|
|
289
|
+
fontSize: 14,
|
|
290
|
+
fontWeight: 500,
|
|
291
|
+
fontFamily: u,
|
|
292
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
293
|
+
cursor: "default"
|
|
294
|
+
},
|
|
295
|
+
children: [
|
|
296
|
+
/* @__PURE__ */ t(re, { size: 16 }),
|
|
297
|
+
"Sent"
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
) : /* @__PURE__ */ t(
|
|
301
|
+
"button",
|
|
302
|
+
{
|
|
303
|
+
onClick: ee,
|
|
304
|
+
style: {
|
|
305
|
+
display: "flex",
|
|
306
|
+
height: 28,
|
|
307
|
+
minWidth: 80,
|
|
308
|
+
padding: "16px 12px",
|
|
309
|
+
justifyContent: "center",
|
|
310
|
+
alignItems: "center",
|
|
311
|
+
gap: 10,
|
|
312
|
+
borderRadius: 10,
|
|
313
|
+
border: "1px solid var(--Base-absent, #D9D9D9)",
|
|
314
|
+
background: "var(--Base-White, #FFF)",
|
|
315
|
+
fontSize: 14,
|
|
316
|
+
fontWeight: 500,
|
|
317
|
+
fontFamily: u,
|
|
318
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
319
|
+
cursor: "pointer"
|
|
320
|
+
},
|
|
321
|
+
children: "Send Invite"
|
|
322
|
+
}
|
|
323
|
+
)
|
|
324
|
+
] }),
|
|
325
|
+
/* @__PURE__ */ t("div", { style: { border: "1px solid var(--border, #ECEEF2)", borderRadius: 10, overflow: "visible" }, children: i.map((e, r) => /* @__PURE__ */ n(
|
|
326
|
+
"div",
|
|
327
|
+
{
|
|
328
|
+
style: {
|
|
329
|
+
display: "flex",
|
|
330
|
+
alignItems: "center",
|
|
331
|
+
justifyContent: "space-between",
|
|
332
|
+
padding: "12px 16px",
|
|
333
|
+
borderBottom: r < i.length - 1 ? "1px solid var(--border, #ECEEF2)" : "none",
|
|
334
|
+
position: "relative"
|
|
335
|
+
},
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
338
|
+
/* @__PURE__ */ t(
|
|
339
|
+
"div",
|
|
340
|
+
{
|
|
341
|
+
style: {
|
|
342
|
+
width: 36,
|
|
343
|
+
height: 36,
|
|
344
|
+
borderRadius: 9999,
|
|
345
|
+
background: "var(--hover-warm, #F5F0E8)",
|
|
346
|
+
display: "flex",
|
|
347
|
+
alignItems: "center",
|
|
348
|
+
justifyContent: "center",
|
|
349
|
+
flexShrink: 0
|
|
350
|
+
},
|
|
351
|
+
children: /* @__PURE__ */ t(ne, { size: 24, color: "var(--color-text-secondary, #808183)" })
|
|
352
|
+
}
|
|
353
|
+
),
|
|
354
|
+
/* @__PURE__ */ n("div", { children: [
|
|
355
|
+
/* @__PURE__ */ t("p", { style: { fontSize: 14, fontWeight: 500, color: "var(--grey-strong, #2E3236)", margin: 0, lineHeight: "120%" }, children: e.email }),
|
|
356
|
+
/* @__PURE__ */ t("p", { style: { fontSize: 13, fontWeight: 400, color: "var(--color-text-secondary, #808183)", margin: "2px 0 0", lineHeight: "140%" }, children: e.role && e.project ? `${e.role} · ${e.project}` : "Role & Project is not defined" })
|
|
357
|
+
] })
|
|
358
|
+
] }),
|
|
359
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
360
|
+
e.invited && V(e) && /* @__PURE__ */ t("span", { style: { fontFamily: "Varta, var(--font-sans)", fontSize: 14, fontStyle: "normal", fontWeight: 400, lineHeight: "normal", color: "var(--Content-Tertiary, #676767)", whiteSpace: "nowrap" }, children: "Invite sent" }),
|
|
361
|
+
/* @__PURE__ */ n("div", { style: { position: "relative" }, ref: W === r ? H : null, children: [
|
|
362
|
+
/* @__PURE__ */ n(
|
|
363
|
+
"button",
|
|
364
|
+
{
|
|
365
|
+
onClick: () => j(W === r ? null : r),
|
|
366
|
+
style: {
|
|
367
|
+
display: "flex",
|
|
368
|
+
width: 160,
|
|
369
|
+
height: 32,
|
|
370
|
+
minWidth: 96,
|
|
371
|
+
padding: "16px 12px 16px 16px",
|
|
372
|
+
justifyContent: "center",
|
|
373
|
+
alignItems: "center",
|
|
374
|
+
gap: 10,
|
|
375
|
+
borderRadius: 10,
|
|
376
|
+
border: "1px solid var(--Base-absent, #D9D9D9)",
|
|
377
|
+
background: "var(--Base-White, #FFF)",
|
|
378
|
+
fontSize: 13,
|
|
379
|
+
fontWeight: 500,
|
|
380
|
+
fontFamily: u,
|
|
381
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
382
|
+
cursor: "pointer",
|
|
383
|
+
whiteSpace: "nowrap",
|
|
384
|
+
overflow: "hidden",
|
|
385
|
+
textOverflow: "ellipsis",
|
|
386
|
+
boxSizing: "border-box"
|
|
387
|
+
},
|
|
388
|
+
children: [
|
|
389
|
+
/* @__PURE__ */ t("span", { style: { overflow: "hidden", textOverflow: "ellipsis", flex: 1, textAlign: "left" }, children: V(e) ? `${e.role}, ${e.project}` : "Set Permissions" }),
|
|
390
|
+
/* @__PURE__ */ t(G, { size: 16, color: "var(--Grey-Strong, #808183)", style: { flexShrink: 0 } })
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
),
|
|
394
|
+
W === r && /* @__PURE__ */ n(
|
|
395
|
+
"div",
|
|
396
|
+
{
|
|
397
|
+
style: {
|
|
398
|
+
position: "absolute",
|
|
399
|
+
top: "100%",
|
|
400
|
+
right: 0,
|
|
401
|
+
marginTop: 4,
|
|
402
|
+
display: "flex",
|
|
403
|
+
width: 217,
|
|
404
|
+
padding: "4px 12px",
|
|
405
|
+
flexDirection: "column",
|
|
406
|
+
alignItems: "flex-start",
|
|
407
|
+
gap: 4,
|
|
408
|
+
borderRadius: 10,
|
|
409
|
+
border: "1px solid var(--Border-Subtle, #E6E6E6)",
|
|
410
|
+
background: "var(--Dropdown-Dropdown-Area-Fill, #FFF)",
|
|
411
|
+
boxShadow: "0 8px 24px rgba(0,0,0,0.10)",
|
|
412
|
+
zIndex: 100,
|
|
413
|
+
boxSizing: "border-box"
|
|
414
|
+
},
|
|
415
|
+
children: [
|
|
416
|
+
/* @__PURE__ */ t("div", { style: { padding: "8px 0 4px", fontSize: 14, fontWeight: 600, color: "var(--Content-Primary, #2E3236)", width: "100%" }, children: "Set User Role" }),
|
|
417
|
+
f.map((o) => /* @__PURE__ */ n(
|
|
418
|
+
"div",
|
|
419
|
+
{
|
|
420
|
+
onClick: () => U(r, "role", o),
|
|
421
|
+
style: {
|
|
422
|
+
display: "flex",
|
|
423
|
+
alignItems: "center",
|
|
424
|
+
gap: 8,
|
|
425
|
+
padding: "6px 0",
|
|
426
|
+
cursor: "pointer",
|
|
427
|
+
fontSize: 14,
|
|
428
|
+
fontWeight: 400,
|
|
429
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
430
|
+
width: "100%"
|
|
431
|
+
},
|
|
432
|
+
children: [
|
|
433
|
+
/* @__PURE__ */ n("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
434
|
+
/* @__PURE__ */ t("circle", { cx: "10", cy: "10", r: "7.33", stroke: e.role === o ? "#00A66E" : "#D9D9D9", strokeWidth: "2" }),
|
|
435
|
+
e.role === o && /* @__PURE__ */ t("ellipse", { cx: "10", cy: "10", rx: "4.17", ry: "4.17", fill: "#00A66E" })
|
|
436
|
+
] }),
|
|
437
|
+
o
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
o
|
|
441
|
+
)),
|
|
442
|
+
/* @__PURE__ */ t("div", { style: { height: 1, background: "var(--Border-Subtle, #E6E6E6)", width: "100%" } }),
|
|
443
|
+
/* @__PURE__ */ t("div", { style: { padding: "4px 0", fontSize: 14, fontWeight: 600, color: "var(--Content-Primary, #2E3236)", width: "100%" }, children: "Project Assignment" }),
|
|
444
|
+
/* @__PURE__ */ n("div", { style: { width: "100%", position: "relative" }, children: [
|
|
445
|
+
/* @__PURE__ */ n(
|
|
446
|
+
"div",
|
|
447
|
+
{
|
|
448
|
+
onClick: () => B(R === r ? null : r),
|
|
449
|
+
style: {
|
|
450
|
+
display: "flex",
|
|
451
|
+
alignItems: "center",
|
|
452
|
+
justifyContent: "space-between",
|
|
453
|
+
width: "100%",
|
|
454
|
+
padding: "8px 10px",
|
|
455
|
+
borderRadius: 10,
|
|
456
|
+
border: "1px solid var(--Border-Subtle, #E6E6E6)",
|
|
457
|
+
background: "var(--Base-White, #FFF)",
|
|
458
|
+
fontSize: 14,
|
|
459
|
+
fontWeight: 400,
|
|
460
|
+
fontFamily: u,
|
|
461
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
462
|
+
cursor: "pointer",
|
|
463
|
+
boxSizing: "border-box"
|
|
464
|
+
},
|
|
465
|
+
children: [
|
|
466
|
+
e.project,
|
|
467
|
+
/* @__PURE__ */ t(G, { size: 16, color: "var(--Grey-Strong, #808183)" })
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
),
|
|
471
|
+
R === r && /* @__PURE__ */ t(
|
|
472
|
+
"div",
|
|
473
|
+
{
|
|
474
|
+
style: {
|
|
475
|
+
position: "absolute",
|
|
476
|
+
top: "100%",
|
|
477
|
+
left: 0,
|
|
478
|
+
right: 0,
|
|
479
|
+
marginTop: 4,
|
|
480
|
+
borderRadius: 10,
|
|
481
|
+
border: "1px solid var(--Border-Subtle, #E6E6E6)",
|
|
482
|
+
background: "var(--Dropdown-Dropdown-Area-Fill, #FFF)",
|
|
483
|
+
boxShadow: "0 4px 12px rgba(0,0,0,0.08)",
|
|
484
|
+
zIndex: 101,
|
|
485
|
+
padding: 4
|
|
486
|
+
},
|
|
487
|
+
children: l.map((o) => /* @__PURE__ */ t(
|
|
488
|
+
"div",
|
|
489
|
+
{
|
|
490
|
+
onClick: () => {
|
|
491
|
+
U(r, "project", o), B(null);
|
|
492
|
+
},
|
|
493
|
+
style: {
|
|
494
|
+
display: "flex",
|
|
495
|
+
height: 26,
|
|
496
|
+
padding: "12px 16px 12px 8px",
|
|
497
|
+
alignItems: "center",
|
|
498
|
+
gap: 6,
|
|
499
|
+
alignSelf: "stretch",
|
|
500
|
+
borderRadius: 8,
|
|
501
|
+
background: e.project === o ? "var(--Neutral-50, #F2F2F0)" : "transparent",
|
|
502
|
+
fontSize: 14,
|
|
503
|
+
fontWeight: 400,
|
|
504
|
+
fontFamily: u,
|
|
505
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
506
|
+
cursor: "pointer"
|
|
507
|
+
},
|
|
508
|
+
onMouseEnter: (d) => {
|
|
509
|
+
e.project !== o && (d.currentTarget.style.background = "var(--Neutral-50, #F2F2F0)");
|
|
510
|
+
},
|
|
511
|
+
onMouseLeave: (d) => {
|
|
512
|
+
e.project !== o && (d.currentTarget.style.background = "transparent");
|
|
513
|
+
},
|
|
514
|
+
children: o
|
|
515
|
+
},
|
|
516
|
+
o
|
|
517
|
+
))
|
|
518
|
+
}
|
|
519
|
+
)
|
|
520
|
+
] }),
|
|
521
|
+
/* @__PURE__ */ t("div", { style: { height: 1, background: "var(--Border-Subtle, #E6E6E6)", width: "100%" } }),
|
|
522
|
+
/* @__PURE__ */ n(
|
|
523
|
+
"div",
|
|
524
|
+
{
|
|
525
|
+
onClick: () => Y(r),
|
|
526
|
+
style: {
|
|
527
|
+
display: "flex",
|
|
528
|
+
alignItems: "center",
|
|
529
|
+
gap: 8,
|
|
530
|
+
padding: "6px 0",
|
|
531
|
+
cursor: "pointer",
|
|
532
|
+
fontSize: 14,
|
|
533
|
+
fontWeight: 500,
|
|
534
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
535
|
+
width: "100%"
|
|
536
|
+
},
|
|
537
|
+
children: [
|
|
538
|
+
/* @__PURE__ */ t(oe, { size: 16 }),
|
|
539
|
+
"Remove"
|
|
540
|
+
]
|
|
541
|
+
}
|
|
542
|
+
)
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
)
|
|
546
|
+
] })
|
|
547
|
+
] })
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
e.email
|
|
551
|
+
)) })
|
|
552
|
+
] })
|
|
553
|
+
] });
|
|
554
|
+
}, p = "var(--font-sans)", be = [
|
|
555
|
+
{ id: "workspace", label: "Workspace Name", description: "Give your project a title.", icon: ie },
|
|
556
|
+
{ id: "interaction", label: "Add Interaction", description: "Connect data to see patterns.", icon: le },
|
|
557
|
+
{ id: "connect", label: "Connect Data", description: "Link your platform for auto-evaluation.", icon: ae },
|
|
558
|
+
{ id: "invite", label: "Invite Team", description: "Add members to collaborate.", icon: se },
|
|
559
|
+
{ id: "concepts", label: "Learn Concepts", description: "Explore conditions and evidence.", icon: de },
|
|
560
|
+
{ id: "scope", label: "Define Scope", description: "Customize evaluation signals.", icon: ce }
|
|
561
|
+
], Se = {
|
|
562
|
+
fontFamily: p,
|
|
563
|
+
background: "var(--grey-white)",
|
|
564
|
+
minHeight: "100vh",
|
|
565
|
+
boxSizing: "border-box"
|
|
566
|
+
}, we = {
|
|
567
|
+
padding: "24px 48px",
|
|
568
|
+
borderBottom: "1px solid var(--border)",
|
|
569
|
+
background: "var(--grey-white)"
|
|
570
|
+
}, Fe = {
|
|
571
|
+
display: "flex",
|
|
572
|
+
alignItems: "center",
|
|
573
|
+
justifyContent: "space-between",
|
|
574
|
+
marginBottom: 8
|
|
575
|
+
}, ke = {
|
|
576
|
+
fontSize: 24,
|
|
577
|
+
fontWeight: 600,
|
|
578
|
+
fontStyle: "normal",
|
|
579
|
+
fontFamily: p,
|
|
580
|
+
color: "var(--grey-strong)",
|
|
581
|
+
margin: 0,
|
|
582
|
+
lineHeight: "normal"
|
|
583
|
+
}, Ce = {
|
|
584
|
+
fontSize: 14,
|
|
585
|
+
fontWeight: 400,
|
|
586
|
+
lineHeight: "140%",
|
|
587
|
+
color: "var(--text-muted)",
|
|
588
|
+
margin: "4px 0 0",
|
|
589
|
+
fontFamily: p
|
|
590
|
+
}, Ee = {
|
|
591
|
+
display: "flex",
|
|
592
|
+
alignItems: "center",
|
|
593
|
+
gap: 12
|
|
594
|
+
}, ze = {
|
|
595
|
+
display: "flex",
|
|
596
|
+
height: 36,
|
|
597
|
+
padding: "0 16px",
|
|
598
|
+
justifyContent: "center",
|
|
599
|
+
alignItems: "center",
|
|
600
|
+
borderRadius: 10,
|
|
601
|
+
background: "transparent",
|
|
602
|
+
border: "1px solid var(--border-strong)",
|
|
603
|
+
fontSize: 14,
|
|
604
|
+
fontWeight: 500,
|
|
605
|
+
fontFamily: p,
|
|
606
|
+
color: "var(--text-base)",
|
|
607
|
+
cursor: "pointer",
|
|
608
|
+
transition: "var(--transition-fast)",
|
|
609
|
+
outline: "none"
|
|
610
|
+
}, We = {
|
|
611
|
+
display: "flex",
|
|
612
|
+
height: 36,
|
|
613
|
+
padding: "0 20px",
|
|
614
|
+
justifyContent: "center",
|
|
615
|
+
alignItems: "center",
|
|
616
|
+
borderRadius: 10,
|
|
617
|
+
background: "var(--grey-strong)",
|
|
618
|
+
fontSize: 14,
|
|
619
|
+
fontWeight: 600,
|
|
620
|
+
fontFamily: p,
|
|
621
|
+
color: "var(--grey-white)",
|
|
622
|
+
border: "none",
|
|
623
|
+
cursor: "pointer",
|
|
624
|
+
transition: "var(--transition-fast)",
|
|
625
|
+
outline: "none"
|
|
626
|
+
}, Ie = {
|
|
627
|
+
width: "100%",
|
|
628
|
+
height: 6,
|
|
629
|
+
borderRadius: 3,
|
|
630
|
+
background: "var(--border)",
|
|
631
|
+
overflow: "hidden",
|
|
632
|
+
marginTop: 12
|
|
633
|
+
}, De = (a) => ({
|
|
634
|
+
width: `${a}%`,
|
|
635
|
+
height: "100%",
|
|
636
|
+
borderRadius: 3,
|
|
637
|
+
background: "var(--color-green)",
|
|
638
|
+
transition: "width 0.4s ease-out"
|
|
639
|
+
}), Re = {
|
|
640
|
+
display: "flex",
|
|
641
|
+
flex: 1,
|
|
642
|
+
minHeight: "calc(100vh - 140px)"
|
|
643
|
+
}, Te = {
|
|
644
|
+
width: 312,
|
|
645
|
+
minWidth: 312,
|
|
646
|
+
borderRight: "1px solid var(--border)",
|
|
647
|
+
padding: "24px 24px",
|
|
648
|
+
background: "var(--grey-white)",
|
|
649
|
+
boxSizing: "border-box"
|
|
650
|
+
}, je = {
|
|
651
|
+
fontSize: 13,
|
|
652
|
+
fontWeight: 500,
|
|
653
|
+
color: "var(--text-muted)",
|
|
654
|
+
fontFamily: p,
|
|
655
|
+
margin: "0 0 12px"
|
|
656
|
+
}, Be = {
|
|
657
|
+
display: "flex",
|
|
658
|
+
width: 264,
|
|
659
|
+
flexDirection: "column",
|
|
660
|
+
alignItems: "flex-start",
|
|
661
|
+
gap: 8,
|
|
662
|
+
alignSelf: "stretch"
|
|
663
|
+
}, Ae = (a) => ({
|
|
664
|
+
display: "flex",
|
|
665
|
+
alignItems: "center",
|
|
666
|
+
gap: 4,
|
|
667
|
+
padding: "8px 4px",
|
|
668
|
+
cursor: "pointer",
|
|
669
|
+
transition: "var(--transition-fast)",
|
|
670
|
+
background: a ? "var(--hover-warm)" : "var(--grey-white)",
|
|
671
|
+
borderRadius: 8,
|
|
672
|
+
alignSelf: "stretch"
|
|
673
|
+
}), He = {
|
|
674
|
+
width: 40,
|
|
675
|
+
height: 40,
|
|
676
|
+
flexShrink: 0,
|
|
677
|
+
display: "flex",
|
|
678
|
+
alignItems: "center",
|
|
679
|
+
justifyContent: "center"
|
|
680
|
+
}, Pe = {
|
|
681
|
+
fontSize: 14,
|
|
682
|
+
fontWeight: 600,
|
|
683
|
+
fontStyle: "normal",
|
|
684
|
+
color: "var(--grey-strong)",
|
|
685
|
+
fontFamily: p,
|
|
686
|
+
margin: 0,
|
|
687
|
+
lineHeight: "120%"
|
|
688
|
+
}, Le = {
|
|
689
|
+
fontSize: 12,
|
|
690
|
+
fontWeight: 400,
|
|
691
|
+
color: "var(--text-muted)",
|
|
692
|
+
fontFamily: p,
|
|
693
|
+
margin: "2px 0 0",
|
|
694
|
+
lineHeight: 1.3
|
|
695
|
+
}, Me = {
|
|
696
|
+
flex: 1,
|
|
697
|
+
padding: "40px 48px",
|
|
698
|
+
background: "var(--grey-white)",
|
|
699
|
+
boxSizing: "border-box"
|
|
700
|
+
}, Ne = {
|
|
701
|
+
fontSize: 20,
|
|
702
|
+
fontWeight: 600,
|
|
703
|
+
fontStyle: "normal",
|
|
704
|
+
fontFamily: p,
|
|
705
|
+
color: "var(--grey-strong)",
|
|
706
|
+
margin: 0,
|
|
707
|
+
lineHeight: "normal"
|
|
708
|
+
}, $e = {
|
|
709
|
+
fontSize: 13,
|
|
710
|
+
fontWeight: 400,
|
|
711
|
+
fontStyle: "normal",
|
|
712
|
+
color: "var(--color-text-secondary)",
|
|
713
|
+
fontFamily: p,
|
|
714
|
+
margin: "4px 0 0",
|
|
715
|
+
lineHeight: "140%"
|
|
716
|
+
}, _ = {
|
|
717
|
+
fontSize: 16,
|
|
718
|
+
fontWeight: 600,
|
|
719
|
+
fontStyle: "normal",
|
|
720
|
+
color: "var(--grey-strong)",
|
|
721
|
+
fontFamily: p,
|
|
722
|
+
lineHeight: "normal",
|
|
723
|
+
margin: 0,
|
|
724
|
+
display: "block"
|
|
725
|
+
}, Ue = {
|
|
726
|
+
width: "100%",
|
|
727
|
+
height: 44,
|
|
728
|
+
padding: "0 14px",
|
|
729
|
+
borderRadius: 6,
|
|
730
|
+
border: "1px solid var(--color-input-border)",
|
|
731
|
+
fontSize: 16,
|
|
732
|
+
fontWeight: 400,
|
|
733
|
+
fontStyle: "normal",
|
|
734
|
+
lineHeight: "normal",
|
|
735
|
+
fontFamily: p,
|
|
736
|
+
color: "var(--color-text-secondary)",
|
|
737
|
+
background: "var(--grey-white)",
|
|
738
|
+
boxSizing: "border-box",
|
|
739
|
+
outline: "none",
|
|
740
|
+
transition: "var(--transition-fast)"
|
|
741
|
+
}, Ve = {
|
|
742
|
+
position: "relative",
|
|
743
|
+
marginTop: 8
|
|
744
|
+
}, Oe = {
|
|
745
|
+
width: "100%",
|
|
746
|
+
minHeight: 160,
|
|
747
|
+
padding: "12px 14px 28px 14px",
|
|
748
|
+
borderRadius: 6,
|
|
749
|
+
border: "1px solid var(--color-input-border)",
|
|
750
|
+
fontSize: 16,
|
|
751
|
+
fontWeight: 400,
|
|
752
|
+
fontStyle: "normal",
|
|
753
|
+
lineHeight: "140%",
|
|
754
|
+
fontFamily: p,
|
|
755
|
+
color: "var(--color-text-secondary)",
|
|
756
|
+
background: "var(--grey-white)",
|
|
757
|
+
boxSizing: "border-box",
|
|
758
|
+
outline: "none",
|
|
759
|
+
resize: "vertical",
|
|
760
|
+
transition: "var(--transition-fast)"
|
|
761
|
+
}, Ge = {
|
|
762
|
+
position: "absolute",
|
|
763
|
+
bottom: 10,
|
|
764
|
+
right: 14,
|
|
765
|
+
fontSize: 12,
|
|
766
|
+
fontWeight: 400,
|
|
767
|
+
color: "var(--text-faint)",
|
|
768
|
+
fontFamily: p,
|
|
769
|
+
margin: 0,
|
|
770
|
+
pointerEvents: "none"
|
|
771
|
+
};
|
|
772
|
+
function _e() {
|
|
773
|
+
return /* @__PURE__ */ t(
|
|
774
|
+
"div",
|
|
775
|
+
{
|
|
776
|
+
style: {
|
|
777
|
+
width: 24,
|
|
778
|
+
height: 24,
|
|
779
|
+
borderRadius: 6,
|
|
780
|
+
background: "var(--grey-strong)",
|
|
781
|
+
display: "flex",
|
|
782
|
+
alignItems: "center",
|
|
783
|
+
justifyContent: "center",
|
|
784
|
+
flexShrink: 0
|
|
785
|
+
},
|
|
786
|
+
children: /* @__PURE__ */ t("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ t("path", { d: "M2.5 7.5L5.5 10.5L11.5 4", stroke: "var(--grey-white)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
787
|
+
}
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
function Ke() {
|
|
791
|
+
return /* @__PURE__ */ n(
|
|
792
|
+
"div",
|
|
793
|
+
{
|
|
794
|
+
style: {
|
|
795
|
+
width: 24,
|
|
796
|
+
height: 24,
|
|
797
|
+
borderRadius: "50%",
|
|
798
|
+
border: "2px solid var(--grey-muted)",
|
|
799
|
+
background: "transparent",
|
|
800
|
+
display: "flex",
|
|
801
|
+
alignItems: "center",
|
|
802
|
+
justifyContent: "center",
|
|
803
|
+
flexShrink: 0,
|
|
804
|
+
gap: 2,
|
|
805
|
+
boxSizing: "border-box"
|
|
806
|
+
},
|
|
807
|
+
children: [
|
|
808
|
+
/* @__PURE__ */ t("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } }),
|
|
809
|
+
/* @__PURE__ */ t("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } }),
|
|
810
|
+
/* @__PURE__ */ t("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } })
|
|
811
|
+
]
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
function qe({ step: a, isCompleted: h, isActive: l, onClick: v }) {
|
|
816
|
+
const [x, f] = c(!1);
|
|
817
|
+
return /* @__PURE__ */ n(
|
|
818
|
+
"div",
|
|
819
|
+
{
|
|
820
|
+
style: {
|
|
821
|
+
...Ae(l),
|
|
822
|
+
...x && !l ? { background: "var(--hover-warm-subtle)" } : {}
|
|
823
|
+
},
|
|
824
|
+
onClick: v,
|
|
825
|
+
onMouseEnter: () => f(!0),
|
|
826
|
+
onMouseLeave: () => f(!1),
|
|
827
|
+
children: [
|
|
828
|
+
/* @__PURE__ */ t("div", { style: He, children: h ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(Ke, {}) }),
|
|
829
|
+
/* @__PURE__ */ n("div", { children: [
|
|
830
|
+
/* @__PURE__ */ t("p", { style: Pe, children: a.label }),
|
|
831
|
+
/* @__PURE__ */ t("p", { style: Le, children: a.description })
|
|
832
|
+
] })
|
|
833
|
+
]
|
|
834
|
+
}
|
|
835
|
+
);
|
|
836
|
+
}
|
|
837
|
+
function Ze({ workspaceName: a, setWorkspaceName: h, description: l, setDescription: v, maxDescLength: x }) {
|
|
838
|
+
const [f, g] = c(!1), [b, m] = c(!1);
|
|
839
|
+
return /* @__PURE__ */ n("div", { children: [
|
|
840
|
+
/* @__PURE__ */ t("h2", { style: Ne, children: "Name of your workspace" }),
|
|
841
|
+
/* @__PURE__ */ t("p", { style: $e, children: "Tell us about the project or company you're organizing here." }),
|
|
842
|
+
/* @__PURE__ */ n("div", { style: { marginTop: 28 }, children: [
|
|
843
|
+
/* @__PURE__ */ t("label", { style: _, children: "Workspace Name" }),
|
|
844
|
+
/* @__PURE__ */ t(
|
|
845
|
+
"input",
|
|
846
|
+
{
|
|
847
|
+
type: "text",
|
|
848
|
+
placeholder: "e.g. Acme Marketing",
|
|
849
|
+
value: a,
|
|
850
|
+
onChange: (y) => h(y.target.value),
|
|
851
|
+
onFocus: () => g(!0),
|
|
852
|
+
onBlur: () => g(!1),
|
|
853
|
+
style: {
|
|
854
|
+
...Ue,
|
|
855
|
+
marginTop: 8,
|
|
856
|
+
borderColor: f ? "var(--color-green)" : "var(--color-input-border)",
|
|
857
|
+
boxShadow: f ? "0 0 0 3px var(--color-green-ring)" : "none"
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
)
|
|
861
|
+
] }),
|
|
862
|
+
/* @__PURE__ */ n("div", { style: { marginTop: 24 }, children: [
|
|
863
|
+
/* @__PURE__ */ t("label", { style: _, children: "Description" }),
|
|
864
|
+
/* @__PURE__ */ n("div", { style: Ve, children: [
|
|
865
|
+
/* @__PURE__ */ t(
|
|
866
|
+
"textarea",
|
|
867
|
+
{
|
|
868
|
+
placeholder: "what's the goal of this workspace?",
|
|
869
|
+
value: l,
|
|
870
|
+
onChange: (y) => {
|
|
871
|
+
y.target.value.length <= x && v(y.target.value);
|
|
872
|
+
},
|
|
873
|
+
onFocus: () => m(!0),
|
|
874
|
+
onBlur: () => m(!1),
|
|
875
|
+
style: {
|
|
876
|
+
...Oe,
|
|
877
|
+
borderColor: b ? "var(--color-green)" : "var(--color-input-border)",
|
|
878
|
+
boxShadow: b ? "0 0 0 3px var(--color-green-ring)" : "none"
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
),
|
|
882
|
+
/* @__PURE__ */ n("span", { style: Ge, children: [
|
|
883
|
+
l.length,
|
|
884
|
+
"/",
|
|
885
|
+
x
|
|
886
|
+
] })
|
|
887
|
+
] })
|
|
888
|
+
] })
|
|
889
|
+
] });
|
|
890
|
+
}
|
|
891
|
+
const tt = ({
|
|
892
|
+
steps: a = be,
|
|
893
|
+
completedSteps: h = ["workspace", "invite"],
|
|
894
|
+
initialActiveStep: l = "workspace",
|
|
895
|
+
onSaveNext: v,
|
|
896
|
+
onRemindLater: x,
|
|
897
|
+
onStepChange: f
|
|
898
|
+
}) => {
|
|
899
|
+
const [g, b] = c(l), [m, y] = c(""), [s, w] = c(""), z = 1e3, F = h.length, k = a.length, S = F / k * 100, I = (i) => {
|
|
900
|
+
b(i), f == null || f(i);
|
|
901
|
+
};
|
|
902
|
+
return /* @__PURE__ */ n("div", { style: Se, children: [
|
|
903
|
+
/* @__PURE__ */ n("div", { style: we, children: [
|
|
904
|
+
/* @__PURE__ */ n("div", { style: Fe, children: [
|
|
905
|
+
/* @__PURE__ */ n("div", { children: [
|
|
906
|
+
/* @__PURE__ */ t("h1", { style: ke, children: "Getting started with Chordia" }),
|
|
907
|
+
/* @__PURE__ */ t("p", { style: Ce, children: "Complete these steps to get the most out of Chordia." })
|
|
908
|
+
] }),
|
|
909
|
+
/* @__PURE__ */ n("div", { style: Ee, children: [
|
|
910
|
+
/* @__PURE__ */ t(
|
|
911
|
+
"button",
|
|
912
|
+
{
|
|
913
|
+
style: ze,
|
|
914
|
+
onClick: x,
|
|
915
|
+
onMouseEnter: (i) => {
|
|
916
|
+
i.currentTarget.style.background = "var(--hover-warm-subtle)";
|
|
917
|
+
},
|
|
918
|
+
onMouseLeave: (i) => {
|
|
919
|
+
i.currentTarget.style.background = "transparent";
|
|
920
|
+
},
|
|
921
|
+
children: "Remind me Later"
|
|
922
|
+
}
|
|
923
|
+
),
|
|
924
|
+
/* @__PURE__ */ t(
|
|
925
|
+
"button",
|
|
926
|
+
{
|
|
927
|
+
style: We,
|
|
928
|
+
onClick: () => {
|
|
929
|
+
v == null || v({ stepId: g, workspaceName: m, description: s });
|
|
930
|
+
},
|
|
931
|
+
onMouseEnter: (i) => {
|
|
932
|
+
i.currentTarget.style.opacity = "0.85";
|
|
933
|
+
},
|
|
934
|
+
onMouseLeave: (i) => {
|
|
935
|
+
i.currentTarget.style.opacity = "1";
|
|
936
|
+
},
|
|
937
|
+
children: "Save & Next"
|
|
938
|
+
}
|
|
939
|
+
)
|
|
940
|
+
] })
|
|
941
|
+
] }),
|
|
942
|
+
/* @__PURE__ */ t("div", { style: Ie, children: /* @__PURE__ */ t("div", { style: De(S) }) })
|
|
943
|
+
] }),
|
|
944
|
+
/* @__PURE__ */ n("div", { style: Re, children: [
|
|
945
|
+
/* @__PURE__ */ n("div", { style: Te, children: [
|
|
946
|
+
/* @__PURE__ */ n("p", { style: je, children: [
|
|
947
|
+
F,
|
|
948
|
+
" of ",
|
|
949
|
+
k,
|
|
950
|
+
" steps completed"
|
|
951
|
+
] }),
|
|
952
|
+
/* @__PURE__ */ t("div", { style: Be, children: a.map((i) => /* @__PURE__ */ t(
|
|
953
|
+
qe,
|
|
954
|
+
{
|
|
955
|
+
step: i,
|
|
956
|
+
isCompleted: h.includes(i.id),
|
|
957
|
+
isActive: g === i.id,
|
|
958
|
+
onClick: () => I(i.id)
|
|
959
|
+
},
|
|
960
|
+
i.id
|
|
961
|
+
)) })
|
|
962
|
+
] }),
|
|
963
|
+
/* @__PURE__ */ n("div", { style: Me, children: [
|
|
964
|
+
g === "workspace" && /* @__PURE__ */ t(
|
|
965
|
+
Ze,
|
|
966
|
+
{
|
|
967
|
+
workspaceName: m,
|
|
968
|
+
setWorkspaceName: y,
|
|
969
|
+
description: s,
|
|
970
|
+
setDescription: w,
|
|
971
|
+
maxDescLength: z
|
|
972
|
+
}
|
|
973
|
+
),
|
|
974
|
+
g === "interaction" && /* @__PURE__ */ t(te, {}),
|
|
975
|
+
g === "connect" && /* @__PURE__ */ t(ve, {}),
|
|
976
|
+
g === "invite" && /* @__PURE__ */ t(xe, {})
|
|
977
|
+
] })
|
|
978
|
+
] })
|
|
979
|
+
] });
|
|
980
|
+
};
|
|
3
981
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
982
|
+
xe as AddTeammates,
|
|
983
|
+
ve as ConnectData,
|
|
984
|
+
tt as GettingStarted,
|
|
985
|
+
ot as UploadEvaluate,
|
|
986
|
+
te as UploadInteraction
|
|
9
987
|
};
|
|
10
988
|
//# sourceMappingURL=onboarding.es.js.map
|