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