chordia-ui 3.3.0 → 3.3.2

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