@burdenoff/microfe-timecampus 2026.1203.2 → 2026.1205.1

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 (64) hide show
  1. package/dist/timecampus/components/EmptyState.d.ts +7 -0
  2. package/dist/timecampus/components/EmptyState.js +3 -2
  3. package/dist/timecampus/components/EmptyState.js.map +1 -1
  4. package/dist/timecampus/components/FilterBar.js +1 -0
  5. package/dist/timecampus/pages/admin/AdminPage.js +264 -264
  6. package/dist/timecampus/pages/admin/AdminPage.js.map +1 -1
  7. package/dist/timecampus/pages/application-usage/ApplicationUsagePage.js +78 -78
  8. package/dist/timecampus/pages/application-usage/ApplicationUsagePage.js.map +1 -1
  9. package/dist/timecampus/pages/dashboard/ServerReportExports.js +34 -34
  10. package/dist/timecampus/pages/dashboard/ServerReportExports.js.map +1 -1
  11. package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js +49 -48
  12. package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js.map +1 -1
  13. package/dist/timecampus/pages/extend/AppletDeveloperPage.js +107 -102
  14. package/dist/timecampus/pages/extend/AppletDeveloperPage.js.map +1 -1
  15. package/dist/timecampus/pages/extend/MarketplaceCertificationPage.js +129 -124
  16. package/dist/timecampus/pages/extend/MarketplaceCertificationPage.js.map +1 -1
  17. package/dist/timecampus/pages/extend/ThirdPartyAppletsSection.js +94 -94
  18. package/dist/timecampus/pages/extend/ThirdPartyAppletsSection.js.map +1 -1
  19. package/dist/timecampus/pages/extend/TimeTriggersPage.js +97 -97
  20. package/dist/timecampus/pages/extend/TimeTriggersPage.js.map +1 -1
  21. package/dist/timecampus/pages/focus/FocusProtectionPage.js +120 -120
  22. package/dist/timecampus/pages/focus/FocusProtectionPage.js.map +1 -1
  23. package/dist/timecampus/pages/geofencing/GeofencingPage.js +343 -343
  24. package/dist/timecampus/pages/geofencing/GeofencingPage.js.map +1 -1
  25. package/dist/timecampus/pages/lifetime/LifeTimelinePage.js +25 -25
  26. package/dist/timecampus/pages/lifetime/LifeTimelinePage.js.map +1 -1
  27. package/dist/timecampus/pages/lifetime/RecommendationsPage.js +296 -296
  28. package/dist/timecampus/pages/lifetime/RecommendationsPage.js.map +1 -1
  29. package/dist/timecampus/pages/lifetime/ValuesGoalsPage.js +189 -189
  30. package/dist/timecampus/pages/lifetime/ValuesGoalsPage.js.map +1 -1
  31. package/dist/timecampus/pages/meetings/ActionItemFormModal.js +47 -46
  32. package/dist/timecampus/pages/meetings/ActionItemFormModal.js.map +1 -1
  33. package/dist/timecampus/pages/meetings/MeetingDetailPage.js +206 -206
  34. package/dist/timecampus/pages/meetings/MeetingDetailPage.js.map +1 -1
  35. package/dist/timecampus/pages/meetings/MeetingFormModal.js +72 -71
  36. package/dist/timecampus/pages/meetings/MeetingFormModal.js.map +1 -1
  37. package/dist/timecampus/pages/meetings/ParticipantFormModal.js +32 -31
  38. package/dist/timecampus/pages/meetings/ParticipantFormModal.js.map +1 -1
  39. package/dist/timecampus/pages/pomodoro/PomodoroPage.js +34 -34
  40. package/dist/timecampus/pages/pomodoro/PomodoroPage.js.map +1 -1
  41. package/dist/timecampus/pages/projects/ProjectDetailPage.js +163 -163
  42. package/dist/timecampus/pages/projects/ProjectDetailPage.js.map +1 -1
  43. package/dist/timecampus/pages/projects/ProjectsPage.js +193 -192
  44. package/dist/timecampus/pages/projects/ProjectsPage.js.map +1 -1
  45. package/dist/timecampus/pages/projects/TasksPage.js +92 -92
  46. package/dist/timecampus/pages/projects/TasksPage.js.map +1 -1
  47. package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js +60 -60
  48. package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js.map +1 -1
  49. package/dist/timecampus/pages/settings/IdleDetectionCard.js +33 -33
  50. package/dist/timecampus/pages/settings/IdleDetectionCard.js.map +1 -1
  51. package/dist/timecampus/pages/settings/PrivacySettingsPage.js +32 -32
  52. package/dist/timecampus/pages/settings/PrivacySettingsPage.js.map +1 -1
  53. package/dist/timecampus/pages/time/TimeEntriesPage.js +163 -163
  54. package/dist/timecampus/pages/time/TimeEntriesPage.js.map +1 -1
  55. package/dist/timecampus/pages/time/TimeTrackingPage.js +32 -32
  56. package/dist/timecampus/pages/time/TimeTrackingPage.js.map +1 -1
  57. package/dist/timecampus/pages/time/TimerPage.js +84 -84
  58. package/dist/timecampus/pages/time/TimerPage.js.map +1 -1
  59. package/dist/timecampus/pages/timeline/TimelinePage.js +223 -223
  60. package/dist/timecampus/pages/timeline/TimelinePage.js.map +1 -1
  61. package/dist/timecampus/shared/hooks/useConfirmedAction.d.ts +10 -0
  62. package/dist/timecampus/shared/hooks/useConfirmedAction.js +14 -0
  63. package/dist/timecampus/shared/hooks/useConfirmedAction.js.map +1 -0
  64. package/package.json +2 -2
@@ -4,184 +4,184 @@ import { StatusBadge as ee } from "../../components/StatusBadge.js";
4
4
  import { EmptyState as n } from "../../components/EmptyState.js";
5
5
  import { LoadingSkeleton as te } from "../../components/LoadingSkeleton.js";
6
6
  import { Modal as r } from "../../components/Modal.js";
7
- import { cn as ne, formatCurrency as i } from "../../utils/helpers.js";
8
- import { useTimeCampus as a, useTimeCampusNavigate as o } from "../../providers/TimeCampusProvider.js";
9
- import { useAddParticipantMutation as s, useCompleteActionItemMutation as c, useCreateActionItemMutation as l, useDeleteActionItemMutation as u, useDeleteMeetingMutation as d, useGetMeetingQuery as re, useRateMeetingMutation as ie, useRemoveParticipantMutation as ae, useUpdateActionItemMutation as oe, useUpdateMeetingMutation as se, useUpdateParticipantStatusMutation as ce } from "../../../generated/wspace-operations.js";
10
- import { MeetingActionItemStatus as f, MeetingParticipantStatus as p } from "../../../generated/wspace-types.js";
11
- import { MeetingFormModal as le } from "./MeetingFormModal.js";
12
- import { ParticipantFormModal as ue } from "./ParticipantFormModal.js";
13
- import { ActionItemFormModal as de } from "./ActionItemFormModal.js";
14
- import { useState as m } from "react";
15
- import { CalendarDays as fe, Check as pe, Clock as h, Pencil as g, Plus as _, Star as v, Trash2 as y, UserMinus as b, Users as x } from "lucide-react";
16
- import { Link as S, useParams as C } from "react-router";
17
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
18
- import { NextSteps as D } from "@burdenoff/fe-libs/ui";
7
+ import { cn as ne, formatCurrency as re } from "../../utils/helpers.js";
8
+ import { useTimeCampus as ie, useTimeCampusNavigate as i } from "../../providers/TimeCampusProvider.js";
9
+ import { useAddParticipantMutation as a, useCompleteActionItemMutation as o, useCreateActionItemMutation as s, useDeleteActionItemMutation as c, useDeleteMeetingMutation as l, useGetMeetingQuery as u, useRateMeetingMutation as d, useRemoveParticipantMutation as f, useUpdateActionItemMutation as p, useUpdateMeetingMutation as ae, useUpdateParticipantStatusMutation as oe } from "../../../generated/wspace-operations.js";
10
+ import { MeetingActionItemStatus as m, MeetingParticipantStatus as h } from "../../../generated/wspace-types.js";
11
+ import { MeetingFormModal as se } from "./MeetingFormModal.js";
12
+ import { ParticipantFormModal as ce } from "./ParticipantFormModal.js";
13
+ import { ActionItemFormModal as le } from "./ActionItemFormModal.js";
14
+ import { useState as g } from "react";
15
+ import { CalendarDays as ue, Check as de, Clock as fe, Pencil as _, Plus as v, Star as y, Trash2 as b, UserMinus as x, Users as S } from "lucide-react";
16
+ import { Link as C, useParams as w } from "react-router";
17
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
18
+ import { NextSteps as O, ThemedSelect as k } from "@burdenoff/fe-libs/ui";
19
19
  // src/timecampus/pages/meetings/MeetingDetailPage.tsx
20
- var O = [
21
- p.Pending,
22
- p.Accepted,
23
- p.Tentative,
24
- p.Declined
25
- ], k = {
26
- [f.Completed]: "success",
27
- [f.InProgress]: "info",
28
- [f.Pending]: "warning",
29
- [f.Cancelled]: "muted"
20
+ var A = [
21
+ h.Pending,
22
+ h.Accepted,
23
+ h.Tentative,
24
+ h.Declined
25
+ ], j = {
26
+ [m.Completed]: "success",
27
+ [m.InProgress]: "info",
28
+ [m.Pending]: "warning",
29
+ [m.Cancelled]: "muted"
30
30
  };
31
- function A(e) {
31
+ function M(e) {
32
32
  return e.replace(/[^a-zA-Z0-9]/g, "").slice(0, 2).toUpperCase() || "?";
33
33
  }
34
- function j(e) {
34
+ function N(e) {
35
35
  let t = e.replace(/_/g, " ").toLowerCase();
36
36
  return t.charAt(0).toUpperCase() + t.slice(1);
37
37
  }
38
- function M() {
39
- let { id: p } = C(), { workspaceId: M = "", currentUser: N } = a(), P = o(), F = p ?? "", { data: I, loading: L, error: R, refetch: z } = re({
38
+ function P() {
39
+ let { id: h } = w(), { workspaceId: P = "", currentUser: F } = ie(), I = i(), L = h ?? "", { data: R, loading: z, error: B, refetch: V } = u({
40
40
  variables: {
41
- id: F,
42
- workspaceId: M
41
+ id: L,
42
+ workspaceId: P
43
43
  },
44
- skip: !M || !p
45
- }), [B, { loading: me, error: he }] = se(), [ge, { loading: V }] = d(), [_e, { loading: ve }] = ie(), [ye, { loading: be, error: xe }] = s(), [Se] = ae(), [Ce] = ce(), [we, { loading: Te, error: Ee }] = l(), [De, { loading: Oe, error: ke }] = oe(), [Ae] = c(), [je] = u(), [Me, H] = m(!1), [Ne, U] = m(!1), [Pe, W] = m(!1), [G, K] = m(null), [q, J] = m(null), [Y, X] = m(null), Z = I?.meeting;
46
- if (L) return /* @__PURE__ */ T(e, {
44
+ skip: !P || !h
45
+ }), [pe, { loading: me, error: he }] = ae(), [ge, { loading: H }] = l(), [_e, { loading: ve }] = d(), [ye, { loading: be, error: xe }] = a(), [Se] = f(), [Ce] = oe(), [we, { loading: Te, error: Ee }] = s(), [De, { loading: Oe, error: ke }] = p(), [Ae] = o(), [je] = c(), [Me, U] = g(!1), [Ne, W] = g(!1), [Pe, G] = g(!1), [K, q] = g(null), [J, Y] = g(null), [X, Z] = g(null), Q = R?.meeting;
46
+ if (z) return /* @__PURE__ */ E(e, {
47
47
  title: "Meeting Details",
48
- description: `Meeting ID: ${p}`,
49
- children: /* @__PURE__ */ T(te, { variant: "detail" })
48
+ description: `Meeting ID: ${h}`,
49
+ children: /* @__PURE__ */ E(te, { variant: "detail" })
50
50
  });
51
- if (R || !Z) return /* @__PURE__ */ T(e, {
51
+ if (B || !Q) return /* @__PURE__ */ E(e, {
52
52
  title: "Meeting Details",
53
- description: `Meeting ID: ${p}`,
54
- children: /* @__PURE__ */ T("div", {
53
+ description: `Meeting ID: ${h}`,
54
+ children: /* @__PURE__ */ E("div", {
55
55
  className: "rounded-lg border border-status-error-bg/40 bg-status-error-bg p-4 text-sm text-status-error-text",
56
- children: R ? "Failed to load meeting details. Please try again later." : "Meeting not found."
56
+ children: B ? "Failed to load meeting details. Please try again later." : "Meeting not found."
57
57
  })
58
58
  });
59
- let Fe = Z.actionItems.filter((e) => e.status !== "COMPLETED").length, Q = Z.rating ?? 0, Ie = async (e) => {
60
- await B({ variables: {
61
- id: F,
62
- workspaceId: M,
59
+ let Fe = Q.actionItems.filter((e) => e.status !== "COMPLETED").length, $ = Q.rating ?? 0, Ie = async (e) => {
60
+ await pe({ variables: {
61
+ id: L,
62
+ workspaceId: P,
63
63
  input: e
64
- } }), await z(), H(!1);
64
+ } }), await V(), U(!1);
65
65
  }, Le = async () => {
66
66
  await ge({ variables: {
67
- id: F,
68
- workspaceId: M
69
- } }), U(!1), P("/meetings");
67
+ id: L,
68
+ workspaceId: P
69
+ } }), W(!1), I("/meetings");
70
70
  }, Re = async (e) => {
71
71
  await _e({ variables: {
72
- id: F,
73
- workspaceId: M,
72
+ id: L,
73
+ workspaceId: P,
74
74
  rating: e
75
- } }), await z();
75
+ } }), await V();
76
76
  }, ze = async (e) => {
77
77
  await ye({ variables: {
78
- meetingId: F,
79
- workspaceId: M,
78
+ meetingId: L,
79
+ workspaceId: P,
80
80
  input: e
81
- } }), await z(), W(!1);
82
- }, $ = async () => {
83
- G && (await Se({ variables: {
84
- meetingId: F,
85
- participantId: G.id,
86
- workspaceId: M
87
- } }), K(null), await z());
88
- }, Be = async (e, t) => {
81
+ } }), await V(), G(!1);
82
+ }, Be = async () => {
83
+ K && (await Se({ variables: {
84
+ meetingId: L,
85
+ participantId: K.id,
86
+ workspaceId: P
87
+ } }), q(null), await V());
88
+ }, Ve = async (e, t) => {
89
89
  await Ce({ variables: {
90
- meetingId: F,
90
+ meetingId: L,
91
91
  participantId: e,
92
- workspaceId: M,
92
+ workspaceId: P,
93
93
  status: t
94
- } }), await z();
95
- }, Ve = async (e) => {
94
+ } }), await V();
95
+ }, He = async (e) => {
96
96
  await we({ variables: {
97
- meetingId: F,
98
- workspaceId: M,
97
+ meetingId: L,
98
+ workspaceId: P,
99
99
  input: e
100
- } }), await z(), J(null);
101
- }, He = async (e, t) => {
100
+ } }), await V(), Y(null);
101
+ }, Ue = async (e, t) => {
102
102
  await De({ variables: {
103
103
  id: e,
104
- workspaceId: M,
104
+ workspaceId: P,
105
105
  input: t
106
- } }), await z(), J(null);
107
- }, Ue = async (e) => {
106
+ } }), await V(), Y(null);
107
+ }, We = async (e) => {
108
108
  await Ae({ variables: {
109
109
  id: e,
110
- workspaceId: M
111
- } }), await z();
110
+ workspaceId: P
111
+ } }), await V();
112
112
  };
113
- return /* @__PURE__ */ E(e, {
113
+ return /* @__PURE__ */ D(e, {
114
114
  title: "Meeting Details",
115
- description: Z.title,
115
+ description: Q.title,
116
116
  purpose: "The full record of one meeting — who attended, what it cost in people's time, and the action items it produced — so you can follow up on commitments and judge whether the meeting was worth it.",
117
- actions: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("button", {
118
- onClick: () => H(!0),
119
- className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
120
- children: [/* @__PURE__ */ T(g, { className: "h-4 w-4" }), "Edit"]
121
- }), /* @__PURE__ */ E("button", {
117
+ actions: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("button", {
122
118
  onClick: () => U(!0),
119
+ className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
120
+ children: [/* @__PURE__ */ E(_, { className: "h-4 w-4" }), "Edit"]
121
+ }), /* @__PURE__ */ D("button", {
122
+ onClick: () => W(!0),
123
123
  className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/40",
124
- children: [/* @__PURE__ */ T(y, { className: "h-4 w-4" }), "Delete"]
124
+ children: [/* @__PURE__ */ E(b, { className: "h-4 w-4" }), "Delete"]
125
125
  })] }),
126
126
  children: [
127
- /* @__PURE__ */ T(D, {
127
+ /* @__PURE__ */ E(O, {
128
128
  storageKey: "timecampus-meeting-detail",
129
129
  className: "mb-6",
130
130
  steps: [{
131
131
  id: "all-meetings",
132
132
  label: "Back to all meetings",
133
133
  description: "Browse and schedule other meetings.",
134
- onClick: () => P("/meetings")
134
+ onClick: () => I("/meetings")
135
135
  }, {
136
136
  id: "analytics",
137
137
  label: "See meeting analytics",
138
138
  description: "Understand your overall meeting load and cost.",
139
- onClick: () => P("/meetings/analytics")
139
+ onClick: () => I("/meetings/analytics")
140
140
  }]
141
141
  }),
142
- /* @__PURE__ */ E("div", {
142
+ /* @__PURE__ */ D("div", {
143
143
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
144
144
  children: [
145
- /* @__PURE__ */ T(t, {
145
+ /* @__PURE__ */ E(t, {
146
146
  featured: !0,
147
147
  title: "Duration",
148
- value: `${Z.duration ?? 0} min`,
149
- icon: /* @__PURE__ */ T(h, { className: "h-5 w-5" })
148
+ value: `${Q.duration ?? 0} min`,
149
+ icon: /* @__PURE__ */ E(fe, { className: "h-5 w-5" })
150
150
  }),
151
- /* @__PURE__ */ T(t, {
151
+ /* @__PURE__ */ E(t, {
152
152
  title: "Participants",
153
- value: String(Z.participants.length),
154
- icon: /* @__PURE__ */ T(x, { className: "h-5 w-5" })
153
+ value: String(Q.participants.length),
154
+ icon: /* @__PURE__ */ E(S, { className: "h-5 w-5" })
155
155
  }),
156
- /* @__PURE__ */ T(t, {
156
+ /* @__PURE__ */ E(t, {
157
157
  title: "Cost",
158
- value: Z.cost == null ? "N/A" : i(Z.cost),
158
+ value: Q.cost == null ? "N/A" : re(Q.cost),
159
159
  description: "Based on participant rates"
160
160
  }),
161
- /* @__PURE__ */ T(t, {
161
+ /* @__PURE__ */ E(t, {
162
162
  title: "Action Items",
163
- value: String(Z.actionItems.length),
163
+ value: String(Q.actionItems.length),
164
164
  description: `${Fe} pending`
165
165
  })
166
166
  ]
167
167
  }),
168
- Z.calendarEventId && /* @__PURE__ */ E(S, {
169
- to: `/calendar/event/${Z.calendarEventId}`,
168
+ Q.calendarEventId && /* @__PURE__ */ D(C, {
169
+ to: `/calendar/event/${Q.calendarEventId}`,
170
170
  className: "inline-flex w-fit items-center gap-1.5 rounded-full border border-border-subtle bg-bg-surface px-3 py-1.5 text-xs font-medium text-text-secondary hover:bg-bg-sunken/50 hover:text-text-primary",
171
- children: [/* @__PURE__ */ T(fe, { className: "h-3.5 w-3.5" }), "View in Calendar"]
171
+ children: [/* @__PURE__ */ E(ue, { className: "h-3.5 w-3.5" }), "View in Calendar"]
172
172
  }),
173
- /* @__PURE__ */ E("div", {
173
+ /* @__PURE__ */ D("div", {
174
174
  className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-6",
175
175
  children: [
176
- /* @__PURE__ */ T("h3", {
176
+ /* @__PURE__ */ E("h3", {
177
177
  className: "mb-1 text-sm font-semibold text-text-primary",
178
178
  children: "Rate this meeting"
179
179
  }),
180
- /* @__PURE__ */ T("p", {
180
+ /* @__PURE__ */ E("p", {
181
181
  className: "mb-3 text-xs text-text-secondary",
182
182
  children: "Was it worth the time? Your rating feeds meeting analytics."
183
183
  }),
184
- /* @__PURE__ */ E("div", {
184
+ /* @__PURE__ */ D("div", {
185
185
  className: "flex items-center gap-1",
186
186
  children: [[
187
187
  1,
@@ -189,258 +189,258 @@ function M() {
189
189
  3,
190
190
  4,
191
191
  5
192
- ].map((e) => /* @__PURE__ */ T("button", {
192
+ ].map((e) => /* @__PURE__ */ E("button", {
193
193
  onClick: () => Re(e),
194
194
  disabled: ve,
195
195
  "aria-label": `Rate ${e} star${e > 1 ? "s" : ""}`,
196
196
  className: "rounded-md p-1 text-text-secondary hover:bg-bg-sunken disabled:opacity-50",
197
- children: /* @__PURE__ */ T(v, { className: ne("h-6 w-6", e <= Q ? "fill-status-warning-text text-status-warning-text" : "text-text-secondary") })
198
- }, e)), Q > 0 && /* @__PURE__ */ E("span", {
197
+ children: /* @__PURE__ */ E(y, { className: ne("h-6 w-6", e <= $ ? "fill-status-warning-text text-status-warning-text" : "text-text-secondary") })
198
+ }, e)), $ > 0 && /* @__PURE__ */ D("span", {
199
199
  className: "ms-2 text-sm text-text-secondary",
200
- children: [Q, " / 5"]
200
+ children: [$, " / 5"]
201
201
  })]
202
202
  })
203
203
  ]
204
204
  }),
205
- /* @__PURE__ */ E("div", {
205
+ /* @__PURE__ */ D("div", {
206
206
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
207
- children: [/* @__PURE__ */ E("div", {
207
+ children: [/* @__PURE__ */ D("div", {
208
208
  className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-6",
209
- children: [/* @__PURE__ */ E("div", {
209
+ children: [/* @__PURE__ */ D("div", {
210
210
  className: "mb-4 flex items-center justify-between",
211
- children: [/* @__PURE__ */ T("h3", {
211
+ children: [/* @__PURE__ */ E("h3", {
212
212
  className: "text-sm font-semibold text-text-primary",
213
213
  children: "Participants"
214
- }), /* @__PURE__ */ E("button", {
215
- onClick: () => W(!0),
214
+ }), /* @__PURE__ */ D("button", {
215
+ onClick: () => G(!0),
216
216
  className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-2.5 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90",
217
- children: [/* @__PURE__ */ T(_, { className: "h-3.5 w-3.5" }), "Add"]
217
+ children: [/* @__PURE__ */ E(v, { className: "h-3.5 w-3.5" }), "Add"]
218
218
  })]
219
- }), Z.participants.length > 0 ? /* @__PURE__ */ T("div", {
219
+ }), Q.participants.length > 0 ? /* @__PURE__ */ E("div", {
220
220
  className: "space-y-2",
221
- children: Z.participants.map((e) => /* @__PURE__ */ E("div", {
221
+ children: Q.participants.map((e) => /* @__PURE__ */ D("div", {
222
222
  className: "flex items-center justify-between gap-2 rounded-lg border border-border-subtle px-3 py-2",
223
- children: [/* @__PURE__ */ E("div", {
223
+ children: [/* @__PURE__ */ D("div", {
224
224
  className: "flex min-w-0 items-center gap-2.5",
225
- children: [/* @__PURE__ */ T("span", {
225
+ children: [/* @__PURE__ */ E("span", {
226
226
  className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10 text-[11px] font-semibold text-primary",
227
- children: A(e.userId)
228
- }), /* @__PURE__ */ E("div", {
227
+ children: M(e.userId)
228
+ }), /* @__PURE__ */ D("div", {
229
229
  className: "min-w-0",
230
- children: [/* @__PURE__ */ T("p", {
230
+ children: [/* @__PURE__ */ E("p", {
231
231
  className: "truncate text-sm text-text-primary",
232
232
  children: e.userId
233
- }), /* @__PURE__ */ T("p", {
233
+ }), /* @__PURE__ */ E("p", {
234
234
  className: "text-xs text-text-secondary",
235
235
  children: e.role
236
236
  })]
237
237
  })]
238
- }), /* @__PURE__ */ E("div", {
238
+ }), /* @__PURE__ */ D("div", {
239
239
  className: "flex items-center gap-2",
240
- children: [/* @__PURE__ */ T("select", {
240
+ children: [/* @__PURE__ */ E(k, {
241
241
  value: e.status,
242
- onChange: (t) => Be(e.id, t.target.value),
242
+ onChange: (t) => Ve(e.id, t.target.value),
243
243
  className: "rounded-md border border-border-subtle bg-bg-surface px-2 py-1 text-xs text-text-primary",
244
244
  "aria-label": "Participant status",
245
- children: O.map((e) => /* @__PURE__ */ T("option", {
245
+ children: A.map((e) => /* @__PURE__ */ E("option", {
246
246
  value: e,
247
247
  children: e
248
248
  }, e))
249
- }), /* @__PURE__ */ T("button", {
250
- onClick: () => K(e),
249
+ }), /* @__PURE__ */ E("button", {
250
+ onClick: () => q(e),
251
251
  className: "rounded-md p-1 text-text-secondary hover:bg-status-error-bg hover:text-status-error-text",
252
252
  "aria-label": "Remove participant",
253
- children: /* @__PURE__ */ T(b, { className: "h-4 w-4" })
253
+ children: /* @__PURE__ */ E(x, { className: "h-4 w-4" })
254
254
  })]
255
255
  })]
256
256
  }, e.id))
257
- }) : /* @__PURE__ */ T(n, {
257
+ }) : /* @__PURE__ */ E(n, {
258
258
  illustration: "empty-people",
259
259
  title: "No participants added",
260
260
  description: "Add attendees to capture who was in the room and what it cost.",
261
- action: /* @__PURE__ */ E("button", {
262
- onClick: () => W(!0),
261
+ action: /* @__PURE__ */ D("button", {
262
+ onClick: () => G(!0),
263
263
  className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
264
- children: [/* @__PURE__ */ T(_, { className: "h-4 w-4" }), "Add participant"]
264
+ children: [/* @__PURE__ */ E(v, { className: "h-4 w-4" }), "Add participant"]
265
265
  })
266
266
  })]
267
- }), /* @__PURE__ */ E("div", {
267
+ }), /* @__PURE__ */ D("div", {
268
268
  className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-6",
269
- children: [/* @__PURE__ */ E("div", {
269
+ children: [/* @__PURE__ */ D("div", {
270
270
  className: "mb-4 flex items-center justify-between",
271
- children: [/* @__PURE__ */ T("h3", {
271
+ children: [/* @__PURE__ */ E("h3", {
272
272
  className: "text-sm font-semibold text-text-primary",
273
273
  children: "Action Items"
274
- }), /* @__PURE__ */ E("button", {
275
- onClick: () => J({ mode: "create" }),
274
+ }), /* @__PURE__ */ D("button", {
275
+ onClick: () => Y({ mode: "create" }),
276
276
  className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-2.5 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90",
277
- children: [/* @__PURE__ */ T(_, { className: "h-3.5 w-3.5" }), "Add"]
277
+ children: [/* @__PURE__ */ E(v, { className: "h-3.5 w-3.5" }), "Add"]
278
278
  })]
279
- }), Z.actionItems.length > 0 ? /* @__PURE__ */ T("div", {
279
+ }), Q.actionItems.length > 0 ? /* @__PURE__ */ E("div", {
280
280
  className: "space-y-2",
281
- children: Z.actionItems.map((e) => /* @__PURE__ */ E("div", {
281
+ children: Q.actionItems.map((e) => /* @__PURE__ */ D("div", {
282
282
  className: "flex items-center justify-between gap-2 rounded-lg border border-border-subtle px-3 py-2",
283
- children: [/* @__PURE__ */ E("div", {
283
+ children: [/* @__PURE__ */ D("div", {
284
284
  className: "min-w-0",
285
- children: [/* @__PURE__ */ T("p", {
285
+ children: [/* @__PURE__ */ E("p", {
286
286
  className: "truncate text-sm text-text-primary",
287
287
  children: e.title
288
- }), /* @__PURE__ */ T("div", {
288
+ }), /* @__PURE__ */ E("div", {
289
289
  className: "mt-1",
290
- children: /* @__PURE__ */ T(ee, {
291
- label: j(e.status),
292
- variant: k[e.status]
290
+ children: /* @__PURE__ */ E(ee, {
291
+ label: N(e.status),
292
+ variant: j[e.status]
293
293
  })
294
294
  })]
295
- }), /* @__PURE__ */ E("div", {
295
+ }), /* @__PURE__ */ D("div", {
296
296
  className: "flex items-center gap-1",
297
297
  children: [
298
- e.status !== f.Completed && /* @__PURE__ */ T("button", {
299
- onClick: () => Ue(e.id),
298
+ e.status !== m.Completed && /* @__PURE__ */ E("button", {
299
+ onClick: () => We(e.id),
300
300
  className: "rounded-md p-1 text-text-secondary hover:bg-status-success-bg hover:text-status-success-text",
301
301
  "aria-label": "Complete action item",
302
- children: /* @__PURE__ */ T(pe, { className: "h-4 w-4" })
302
+ children: /* @__PURE__ */ E(de, { className: "h-4 w-4" })
303
303
  }),
304
- /* @__PURE__ */ T("button", {
305
- onClick: () => J({
304
+ /* @__PURE__ */ E("button", {
305
+ onClick: () => Y({
306
306
  mode: "edit",
307
307
  item: e
308
308
  }),
309
309
  className: "rounded-md p-1 text-text-secondary hover:bg-bg-sunken hover:text-text-primary",
310
310
  "aria-label": "Edit action item",
311
- children: /* @__PURE__ */ T(g, { className: "h-4 w-4" })
311
+ children: /* @__PURE__ */ E(_, { className: "h-4 w-4" })
312
312
  }),
313
- /* @__PURE__ */ T("button", {
314
- onClick: () => X(e),
313
+ /* @__PURE__ */ E("button", {
314
+ onClick: () => Z(e),
315
315
  className: "rounded-md p-1 text-text-secondary hover:bg-status-error-bg hover:text-status-error-text",
316
316
  "aria-label": "Delete action item",
317
- children: /* @__PURE__ */ T(y, { className: "h-4 w-4" })
317
+ children: /* @__PURE__ */ E(b, { className: "h-4 w-4" })
318
318
  })
319
319
  ]
320
320
  })]
321
321
  }, e.id))
322
- }) : /* @__PURE__ */ T(n, {
322
+ }) : /* @__PURE__ */ E(n, {
323
323
  illustration: "empty-generic",
324
324
  title: "No action items",
325
325
  description: "Capture follow-ups here so commitments from the meeting don't get lost.",
326
- action: /* @__PURE__ */ E("button", {
327
- onClick: () => J({ mode: "create" }),
326
+ action: /* @__PURE__ */ D("button", {
327
+ onClick: () => Y({ mode: "create" }),
328
328
  className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
329
- children: [/* @__PURE__ */ T(_, { className: "h-4 w-4" }), "Add action item"]
329
+ children: [/* @__PURE__ */ E(v, { className: "h-4 w-4" }), "Add action item"]
330
330
  })
331
331
  })]
332
332
  })]
333
333
  }),
334
- Me && /* @__PURE__ */ T(le, {
334
+ Me && /* @__PURE__ */ E(se, {
335
335
  open: !0,
336
- onClose: () => H(!1),
337
- workspaceId: M,
338
- meeting: Z,
336
+ onClose: () => U(!1),
337
+ workspaceId: P,
338
+ meeting: Q,
339
339
  submitting: me,
340
340
  error: !!he,
341
341
  onUpdate: Ie
342
342
  }),
343
- /* @__PURE__ */ T(r, {
343
+ /* @__PURE__ */ E(r, {
344
344
  open: Ne,
345
- onClose: () => U(!1),
345
+ onClose: () => W(!1),
346
346
  title: "Delete meeting",
347
347
  description: "This permanently removes the meeting and its analytics.",
348
348
  size: "sm",
349
- footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
350
- onClick: () => U(!1),
349
+ footer: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
350
+ onClick: () => W(!1),
351
351
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
352
352
  children: "Cancel"
353
- }), /* @__PURE__ */ T("button", {
353
+ }), /* @__PURE__ */ E("button", {
354
354
  onClick: Le,
355
- disabled: V,
355
+ disabled: H,
356
356
  className: "rounded-md bg-status-error-bg px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/90 disabled:opacity-50",
357
- children: V ? "Deleting..." : "Delete"
357
+ children: H ? "Deleting..." : "Delete"
358
358
  })] }),
359
- children: /* @__PURE__ */ E("p", {
359
+ children: /* @__PURE__ */ D("p", {
360
360
  className: "text-sm text-text-secondary",
361
361
  children: [
362
362
  "Are you sure you want to delete",
363
363
  " ",
364
- /* @__PURE__ */ T("span", {
364
+ /* @__PURE__ */ E("span", {
365
365
  className: "font-medium text-text-primary",
366
- children: Z.title
366
+ children: Q.title
367
367
  }),
368
368
  "? This action cannot be undone."
369
369
  ]
370
370
  })
371
371
  }),
372
- Pe && /* @__PURE__ */ T(ue, {
372
+ Pe && /* @__PURE__ */ E(ce, {
373
373
  open: !0,
374
- onClose: () => W(!1),
375
- defaultUserId: N?.id,
374
+ onClose: () => G(!1),
375
+ defaultUserId: F?.id,
376
376
  submitting: be,
377
377
  error: !!xe,
378
378
  onSubmit: ze
379
379
  }),
380
- /* @__PURE__ */ T(r, {
381
- open: !!G,
382
- onClose: () => K(null),
380
+ /* @__PURE__ */ E(r, {
381
+ open: !!K,
382
+ onClose: () => q(null),
383
383
  title: "Remove participant",
384
384
  size: "sm",
385
- footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
386
- onClick: () => K(null),
385
+ footer: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
386
+ onClick: () => q(null),
387
387
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
388
388
  children: "Cancel"
389
- }), /* @__PURE__ */ T("button", {
390
- onClick: $,
389
+ }), /* @__PURE__ */ E("button", {
390
+ onClick: Be,
391
391
  className: "rounded-md bg-status-error-bg px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/90",
392
392
  children: "Remove"
393
393
  })] }),
394
- children: /* @__PURE__ */ E("p", {
394
+ children: /* @__PURE__ */ D("p", {
395
395
  className: "text-sm text-text-secondary",
396
396
  children: [
397
397
  "Remove",
398
398
  " ",
399
- /* @__PURE__ */ T("span", {
399
+ /* @__PURE__ */ E("span", {
400
400
  className: "font-medium text-text-primary",
401
- children: G?.userId
401
+ children: K?.userId
402
402
  }),
403
403
  " ",
404
404
  "from this meeting?"
405
405
  ]
406
406
  })
407
407
  }),
408
- q && /* @__PURE__ */ T(de, {
408
+ J && /* @__PURE__ */ E(le, {
409
409
  open: !0,
410
- onClose: () => J(null),
411
- item: q.mode === "edit" ? q.item : void 0,
412
- submitting: q.mode === "edit" ? Oe : Te,
413
- error: !!(q.mode === "edit" ? ke : Ee),
414
- onCreate: Ve,
415
- onUpdate: q.mode === "edit" ? (e) => He(q.item.id, e) : void 0
410
+ onClose: () => Y(null),
411
+ item: J.mode === "edit" ? J.item : void 0,
412
+ submitting: J.mode === "edit" ? Oe : Te,
413
+ error: !!(J.mode === "edit" ? ke : Ee),
414
+ onCreate: He,
415
+ onUpdate: J.mode === "edit" ? (e) => Ue(J.item.id, e) : void 0
416
416
  }),
417
- /* @__PURE__ */ T(r, {
418
- open: !!Y,
419
- onClose: () => X(null),
417
+ /* @__PURE__ */ E(r, {
418
+ open: !!X,
419
+ onClose: () => Z(null),
420
420
  title: "Delete action item",
421
421
  size: "sm",
422
- footer: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("button", {
423
- onClick: () => X(null),
422
+ footer: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
423
+ onClick: () => Z(null),
424
424
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
425
425
  children: "Cancel"
426
- }), /* @__PURE__ */ T("button", {
426
+ }), /* @__PURE__ */ E("button", {
427
427
  onClick: async () => {
428
- Y && (await je({ variables: {
429
- id: Y.id,
430
- workspaceId: M
431
- } }), X(null), await z());
428
+ X && (await je({ variables: {
429
+ id: X.id,
430
+ workspaceId: P
431
+ } }), Z(null), await V());
432
432
  },
433
433
  className: "rounded-md bg-status-error-bg px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/90",
434
434
  children: "Delete"
435
435
  })] }),
436
- children: /* @__PURE__ */ E("p", {
436
+ children: /* @__PURE__ */ D("p", {
437
437
  className: "text-sm text-text-secondary",
438
438
  children: [
439
439
  "Delete action item",
440
440
  " ",
441
- /* @__PURE__ */ T("span", {
441
+ /* @__PURE__ */ E("span", {
442
442
  className: "font-medium text-text-primary",
443
- children: Y?.title
443
+ children: X?.title
444
444
  }),
445
445
  "?"
446
446
  ]
@@ -449,6 +449,6 @@ function M() {
449
449
  ]
450
450
  });
451
451
  }
452
- export { M as MeetingDetailPage };
452
+ export { P as MeetingDetailPage };
453
453
 
454
454
  //# sourceMappingURL=MeetingDetailPage.js.map