@burdenoff/microfe-headshotmarketing 2026.1203.1 → 2026.1203.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.
- package/dist/generated/wspace-operations.d.ts +252 -0
- package/dist/generated/wspace-operations.js +406 -243
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +167 -2
- package/dist/generated/wspace-types.js +21 -19
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/CrmRecordSelection.js +88 -51
- package/dist/headshotmarketing/components/CrmRecordSelection.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +460 -275
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +433 -264
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCancelRegistrationMutation as t, useHeadshotmarketingCheckInAttendeeMutation as n, useHeadshotmarketingDeleteEventMutation as r, useHeadshotmarketingEventByIdQuery as ee,
|
|
2
|
-
import { HeadshotmarketingEventStatus as
|
|
1
|
+
import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCancelRegistrationMutation as t, useHeadshotmarketingCheckInAttendeeMutation as n, useHeadshotmarketingDeleteEventMutation as r, useHeadshotmarketingEventByIdQuery as ee, useHeadshotmarketingEventfullyManagedEventsQuery as te, useHeadshotmarketingLinkEventfullyManagedEventMutation as ne, useHeadshotmarketingSyncEventfullyManagedEventMutation as re, useHeadshotmarketingUnlinkEventfullyManagedEventMutation as i, useHeadshotmarketingUpdateEventMutation as a } from "../../../generated/wspace-operations.js";
|
|
2
|
+
import { HeadshotmarketingEventStatus as o, HeadshotmarketingEventSyncDirection as s, HeadshotmarketingEventType as c } from "../../../generated/wspace-types.js";
|
|
3
3
|
import "../../components/index.js";
|
|
4
|
-
import { formatNumber as
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import { StatCard as
|
|
7
|
-
import { EmptyState as
|
|
8
|
-
import { StatusBadge as
|
|
9
|
-
import { Modal as
|
|
10
|
-
import { QueryStateBoundary as
|
|
11
|
-
import { EntityTagPicker as
|
|
12
|
-
import { useHeadshotMarketing as
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { ArrowLeft as
|
|
15
|
-
import { useParams as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { EmphasisPanel as
|
|
4
|
+
import { formatNumber as l, formatPercentage as u, joinPath as d } from "../../utils/helpers.js";
|
|
5
|
+
import { PageLayout as f } from "../../components/PageLayout.js";
|
|
6
|
+
import { StatCard as p } from "../../components/StatCard.js";
|
|
7
|
+
import { EmptyState as m } from "../../components/EmptyState.js";
|
|
8
|
+
import { StatusBadge as h } from "../../components/StatusBadge.js";
|
|
9
|
+
import { Modal as ie } from "../../components/Modal.js";
|
|
10
|
+
import { QueryStateBoundary as ae } from "../../components/QueryStateBoundary.js";
|
|
11
|
+
import { EntityTagPicker as oe } from "../../components/EntityTagPicker.js";
|
|
12
|
+
import { useHeadshotMarketing as se } from "../../context/HeadshotMarketingContext.js";
|
|
13
|
+
import { useMemo as ce, useState as g } from "react";
|
|
14
|
+
import { ArrowLeft as _, ArrowUpRight as le, CalendarClock as ue, Check as de, Clock as fe, Edit as pe, Gauge as me, Link2 as v, MapPin as he, RefreshCw as ge, Tag as _e, Ticket as ve, Trash2 as ye, Unlink as be, UserCheck as xe, Users as Se, Video as y, X as b } from "lucide-react";
|
|
15
|
+
import { useParams as x } from "react-router";
|
|
16
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
17
|
+
import { EmphasisPanel as T, PagePurpose as E, ThemedSelect as D, useConfirm as O } from "@burdenoff/fe-libs/ui";
|
|
18
18
|
// src/headshotmarketing/pages/events/EventDetailsPage.tsx
|
|
19
|
-
var
|
|
19
|
+
var k = [{ query: e }], A = [
|
|
20
20
|
{
|
|
21
|
-
value:
|
|
21
|
+
value: o.Draft,
|
|
22
22
|
label: "Draft"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
value:
|
|
25
|
+
value: o.Published,
|
|
26
26
|
label: "Published"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
value:
|
|
29
|
+
value: o.RegistrationOpen,
|
|
30
30
|
label: "Registration Open"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
value:
|
|
33
|
+
value: o.RegistrationClosed,
|
|
34
34
|
label: "Registration Closed"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
value:
|
|
37
|
+
value: o.InProgress,
|
|
38
38
|
label: "In Progress"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
value:
|
|
41
|
+
value: o.Completed,
|
|
42
42
|
label: "Completed"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
value:
|
|
45
|
+
value: o.Cancelled,
|
|
46
46
|
label: "Cancelled"
|
|
47
47
|
}
|
|
48
|
-
],
|
|
48
|
+
], j = [
|
|
49
49
|
{
|
|
50
|
-
value:
|
|
50
|
+
value: c.Webinar,
|
|
51
51
|
label: "Webinar"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
value:
|
|
54
|
+
value: c.Conference,
|
|
55
55
|
label: "Conference"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
value:
|
|
58
|
+
value: c.Workshop,
|
|
59
59
|
label: "Workshop"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
value:
|
|
62
|
+
value: c.Meetup,
|
|
63
63
|
label: "Meetup"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
value:
|
|
66
|
+
value: c.Tradeshow,
|
|
67
67
|
label: "Tradeshow"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
value:
|
|
70
|
+
value: c.ProductLaunch,
|
|
71
71
|
label: "Product Launch"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
value:
|
|
74
|
+
value: c.Networking,
|
|
75
75
|
label: "Networking"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
value:
|
|
78
|
+
value: c.Other,
|
|
79
79
|
label: "Other"
|
|
80
80
|
}
|
|
81
81
|
];
|
|
82
|
-
function
|
|
82
|
+
function M(e) {
|
|
83
83
|
try {
|
|
84
84
|
let t = new URL(e);
|
|
85
85
|
return t.protocol === "http:" || t.protocol === "https:";
|
|
@@ -87,13 +87,13 @@ function R(e) {
|
|
|
87
87
|
return !1;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function N(e) {
|
|
91
91
|
let t = new Date(e);
|
|
92
92
|
if (Number.isNaN(t.getTime())) return "";
|
|
93
93
|
let n = (e) => String(e).padStart(2, "0");
|
|
94
94
|
return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function P(e, t) {
|
|
97
97
|
let n = new Date(e);
|
|
98
98
|
if (Number.isNaN(n.getTime())) return "Date to be announced";
|
|
99
99
|
let r = {
|
|
@@ -112,240 +112,287 @@ function B(e, t) {
|
|
|
112
112
|
} catch {}
|
|
113
113
|
return new Intl.DateTimeFormat("en-US", r).format(n);
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
let e =
|
|
117
|
-
skip: !
|
|
118
|
-
variables:
|
|
119
|
-
}), [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
115
|
+
var F = () => {
|
|
116
|
+
let e = O(), { navigate: o, basePath: c } = se(), { eventId: F } = x(), { data: Ce, loading: we, error: Te, refetch: I } = ee({
|
|
117
|
+
skip: !F,
|
|
118
|
+
variables: F ? { id: F } : void 0
|
|
119
|
+
}), [Ee, { loading: L }] = a(), [De, { loading: Oe }] = r(), [ke, { loading: Ae }] = n(), [je, { loading: Me }] = t(), [Ne, { loading: Pe }] = ne(), [Fe, { loading: Ie }] = i(), [Le, { loading: R }] = re(), z = te({
|
|
120
|
+
variables: {
|
|
121
|
+
limit: 50,
|
|
122
|
+
offset: 0
|
|
123
|
+
},
|
|
124
|
+
skip: !F,
|
|
125
|
+
fetchPolicy: "cache-and-network"
|
|
126
|
+
}), [Re, B] = g(!1), [V, H] = g(null), [U, W] = g(null), [G, ze] = g(""), [K, Be] = g(s.Bidirectional), [q, J] = g(null), Y = Ce?.headshotmarketingEvent ?? null, X = () => o(d(c, "events")), Ve = () => {
|
|
127
|
+
Y && (W(null), H({
|
|
128
|
+
title: Y.title,
|
|
129
|
+
description: Y.description ?? "",
|
|
130
|
+
type: Y.type,
|
|
131
|
+
status: Y.status,
|
|
132
|
+
startDate: N(Y.startDate),
|
|
133
|
+
endDate: N(Y.endDate),
|
|
134
|
+
timezone: Y.timezone ?? "",
|
|
135
|
+
location: Y.location ?? "",
|
|
136
|
+
virtualUrl: Y.virtualUrl ?? "",
|
|
137
|
+
maxAttendees: Y.maxAttendees ? String(Y.maxAttendees) : ""
|
|
138
|
+
}), B(!0));
|
|
139
|
+
}, He = async () => {
|
|
140
|
+
if (F && V) {
|
|
141
|
+
if (!V.title.trim()) W("Event title is required.");
|
|
142
|
+
else if (!V.startDate || !V.endDate) W("Start and end date/time are required.");
|
|
136
143
|
else {
|
|
137
|
-
|
|
144
|
+
W(null);
|
|
138
145
|
try {
|
|
139
|
-
await
|
|
146
|
+
await Ee({
|
|
140
147
|
variables: {
|
|
141
|
-
id:
|
|
148
|
+
id: F,
|
|
142
149
|
input: {
|
|
143
|
-
title:
|
|
144
|
-
description:
|
|
145
|
-
type:
|
|
146
|
-
status:
|
|
147
|
-
startDate: new Date(
|
|
148
|
-
endDate: new Date(
|
|
149
|
-
timezone:
|
|
150
|
-
location:
|
|
151
|
-
virtualUrl:
|
|
152
|
-
maxAttendees:
|
|
150
|
+
title: V.title.trim(),
|
|
151
|
+
description: V.description || null,
|
|
152
|
+
type: V.type,
|
|
153
|
+
status: V.status,
|
|
154
|
+
startDate: new Date(V.startDate).toISOString(),
|
|
155
|
+
endDate: new Date(V.endDate).toISOString(),
|
|
156
|
+
timezone: V.timezone || null,
|
|
157
|
+
location: V.location || null,
|
|
158
|
+
virtualUrl: V.virtualUrl || null,
|
|
159
|
+
maxAttendees: V.maxAttendees ? Number(V.maxAttendees) : null
|
|
153
160
|
}
|
|
154
161
|
},
|
|
155
|
-
refetchQueries:
|
|
156
|
-
}),
|
|
162
|
+
refetchQueries: k
|
|
163
|
+
}), B(!1), await I();
|
|
157
164
|
} catch (e) {
|
|
158
|
-
|
|
165
|
+
W(e instanceof Error ? e.message : "Failed to update event.");
|
|
159
166
|
}
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
|
-
},
|
|
163
|
-
if (
|
|
164
|
-
title: `Delete event "${
|
|
169
|
+
}, Ue = async () => {
|
|
170
|
+
if (F && Y && await e({
|
|
171
|
+
title: `Delete event "${Y.title}"?`,
|
|
165
172
|
description: "This cannot be undone.",
|
|
166
173
|
tone: "danger",
|
|
167
174
|
confirmLabel: "Delete event"
|
|
168
175
|
})) {
|
|
169
|
-
|
|
176
|
+
W(null);
|
|
170
177
|
try {
|
|
171
|
-
await
|
|
172
|
-
variables: { id:
|
|
173
|
-
refetchQueries:
|
|
178
|
+
await De({
|
|
179
|
+
variables: { id: F },
|
|
180
|
+
refetchQueries: k,
|
|
174
181
|
awaitRefetchQueries: !0
|
|
175
|
-
}),
|
|
182
|
+
}), X();
|
|
176
183
|
} catch (e) {
|
|
177
|
-
|
|
184
|
+
W(e instanceof Error ? e.message : "Failed to delete event.");
|
|
178
185
|
}
|
|
179
186
|
}
|
|
180
|
-
},
|
|
181
|
-
|
|
187
|
+
}, We = async (e) => {
|
|
188
|
+
W(null);
|
|
182
189
|
try {
|
|
183
|
-
await
|
|
190
|
+
await ke({ variables: { registrationId: e } }), await I();
|
|
184
191
|
} catch (e) {
|
|
185
|
-
|
|
192
|
+
W(e instanceof Error ? e.message : "Failed to check in attendee.");
|
|
186
193
|
}
|
|
187
|
-
},
|
|
188
|
-
|
|
194
|
+
}, Ge = async (e) => {
|
|
195
|
+
W(null);
|
|
189
196
|
try {
|
|
190
|
-
await
|
|
197
|
+
await je({ variables: { registrationId: e } }), await I();
|
|
191
198
|
} catch (e) {
|
|
192
|
-
|
|
199
|
+
W(e instanceof Error ? e.message : "Failed to cancel registration.");
|
|
193
200
|
}
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
201
|
+
}, Z = async (e) => {
|
|
202
|
+
if (F) {
|
|
203
|
+
if (!e && !G) W("Select an EventfullyManaged event to link.");
|
|
204
|
+
else {
|
|
205
|
+
W(null), J(null);
|
|
206
|
+
try {
|
|
207
|
+
await Ne({ variables: {
|
|
208
|
+
eventId: F,
|
|
209
|
+
eventfullyManagedEventId: e ? void 0 : G,
|
|
210
|
+
createRemoteIfMissing: e
|
|
211
|
+
} }), await I(), await z.refetch(), J("Event linked to EventfullyManaged.");
|
|
212
|
+
} catch (e) {
|
|
213
|
+
W(e instanceof Error ? e.message : "Failed to link EventfullyManaged event.");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}, Ke = async () => {
|
|
218
|
+
if (F) {
|
|
219
|
+
W(null), J(null);
|
|
220
|
+
try {
|
|
221
|
+
await Fe({ variables: { eventId: F } }), await I(), J("Event unlinked from EventfullyManaged.");
|
|
222
|
+
} catch (e) {
|
|
223
|
+
W(e instanceof Error ? e.message : "Failed to unlink EventfullyManaged event.");
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}, qe = async () => {
|
|
227
|
+
if (F) {
|
|
228
|
+
W(null), J(null);
|
|
229
|
+
try {
|
|
230
|
+
let e = await Le({ variables: {
|
|
231
|
+
eventId: F,
|
|
232
|
+
direction: K
|
|
233
|
+
} });
|
|
234
|
+
await I();
|
|
235
|
+
let t = e.data?.headshotmarketingSyncEventfullyManagedEvent;
|
|
236
|
+
t && J(`Synced (${t.direction}): ${t.speakersPulled} speakers pulled / ${t.speakersPushed} pushed, ${t.registrationsPulled} registrations pulled / ${t.registrationsPushed} pushed, ${t.contactsUpserted} CRM contacts upserted, ${t.checkInsPulled} check-ins pulled / ${t.checkInsPushed} pushed.`);
|
|
237
|
+
} catch (e) {
|
|
238
|
+
W(e instanceof Error ? e.message : "Failed to sync with EventfullyManaged.");
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}, Je = ce(() => !Y || !Y.maxAttendees || Y.maxAttendees <= 0 ? 0 : Math.min(Y.registrationCount / Y.maxAttendees * 100, 100), [Y]), Q = z.data?.headshotmarketingEventfullyManagedEvents ?? [], $ = L || Oe || Ae || Me || Pe || Ie || R;
|
|
242
|
+
return Y ? /* @__PURE__ */ w(f, {
|
|
243
|
+
title: Y.title,
|
|
244
|
+
description: Y.description || void 0,
|
|
245
|
+
actions: /* @__PURE__ */ w("div", {
|
|
199
246
|
className: "flex flex-wrap items-center gap-2",
|
|
200
247
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
onClick:
|
|
248
|
+
/* @__PURE__ */ C(h, { status: Y.status.toLowerCase() }),
|
|
249
|
+
/* @__PURE__ */ w("button", {
|
|
250
|
+
onClick: X,
|
|
204
251
|
className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Back"]
|
|
206
253
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
onClick:
|
|
254
|
+
/* @__PURE__ */ w("button", {
|
|
255
|
+
onClick: Ve,
|
|
209
256
|
disabled: $,
|
|
210
257
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ C(pe, { className: "h-4 w-4" }), "Manage"]
|
|
212
259
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
onClick: () => void
|
|
260
|
+
/* @__PURE__ */ w("button", {
|
|
261
|
+
onClick: () => void Ue(),
|
|
215
262
|
disabled: $,
|
|
216
263
|
className: "inline-flex items-center gap-2 rounded-md border border-status-error-border/40 bg-status-error-bg/10 px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/20 disabled:opacity-60",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ C(ye, { className: "h-4 w-4" }), "Delete"]
|
|
218
265
|
})
|
|
219
266
|
]
|
|
220
267
|
}),
|
|
221
268
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
|
|
269
|
+
/* @__PURE__ */ C(E, { children: "Full detail view for this event — schedule, location, speakers and live registration status. Use Manage to edit details or move the event through its lifecycle (Draft → Published → Registration Open → In Progress → Completed)." }),
|
|
270
|
+
U && /* @__PURE__ */ C("div", {
|
|
224
271
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
225
|
-
children:
|
|
272
|
+
children: U
|
|
226
273
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ C(T, { children: /* @__PURE__ */ w("div", {
|
|
228
275
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
229
276
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ C(p, {
|
|
231
278
|
featured: !0,
|
|
232
279
|
title: "Registrations",
|
|
233
|
-
value:
|
|
234
|
-
icon: /* @__PURE__ */
|
|
280
|
+
value: l(Y.registrationCount),
|
|
281
|
+
icon: /* @__PURE__ */ C(ve, { className: "h-5 w-5" })
|
|
235
282
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ C(p, {
|
|
237
284
|
title: "Capacity",
|
|
238
|
-
value:
|
|
239
|
-
icon: /* @__PURE__ */
|
|
285
|
+
value: Y.maxAttendees ? l(Y.maxAttendees) : "—",
|
|
286
|
+
icon: /* @__PURE__ */ C(Se, { className: "h-5 w-5" })
|
|
240
287
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ C(p, {
|
|
242
289
|
title: "Fill Rate",
|
|
243
|
-
value:
|
|
244
|
-
icon: /* @__PURE__ */
|
|
290
|
+
value: Y.maxAttendees ? u(Je, 0) : "N/A",
|
|
291
|
+
icon: /* @__PURE__ */ C(me, { className: "h-5 w-5" })
|
|
245
292
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ C(p, {
|
|
247
294
|
title: "Speakers",
|
|
248
|
-
value:
|
|
249
|
-
icon: /* @__PURE__ */
|
|
295
|
+
value: Y.speakers.length,
|
|
296
|
+
icon: /* @__PURE__ */ C(xe, { className: "h-5 w-5" })
|
|
250
297
|
})
|
|
251
298
|
]
|
|
252
299
|
}) }),
|
|
253
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ C("div", {
|
|
254
301
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
255
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ C(oe, {
|
|
256
303
|
entityType: "HEADSHOTMARKETING_EVENT",
|
|
257
|
-
entityId:
|
|
304
|
+
entityId: Y.id
|
|
258
305
|
})
|
|
259
306
|
}),
|
|
260
|
-
|
|
307
|
+
Y.coverImageUrl && /* @__PURE__ */ C("div", {
|
|
261
308
|
className: "overflow-hidden rounded-xl border border-border-seam bg-bg-sunken",
|
|
262
|
-
children: /* @__PURE__ */
|
|
263
|
-
src:
|
|
309
|
+
children: /* @__PURE__ */ C("img", {
|
|
310
|
+
src: Y.coverImageUrl,
|
|
264
311
|
alt: "",
|
|
265
312
|
className: "h-56 w-full object-cover"
|
|
266
313
|
})
|
|
267
314
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ w("div", {
|
|
269
316
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ w("div", {
|
|
271
318
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop lg:col-span-2",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
273
320
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
274
321
|
children: "Schedule & Location"
|
|
275
|
-
}), /* @__PURE__ */
|
|
322
|
+
}), /* @__PURE__ */ w("div", {
|
|
276
323
|
className: "space-y-3 text-sm",
|
|
277
324
|
children: [
|
|
278
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ w("div", {
|
|
279
326
|
className: "flex items-start gap-2 text-text-secondary",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
327
|
+
children: [/* @__PURE__ */ C(fe, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
281
328
|
className: "text-text-primary",
|
|
282
|
-
children:
|
|
283
|
-
}), /* @__PURE__ */
|
|
329
|
+
children: P(Y.startDate, Y.timezone)
|
|
330
|
+
}), /* @__PURE__ */ w("p", {
|
|
284
331
|
className: "text-xs",
|
|
285
332
|
children: [
|
|
286
333
|
"to ",
|
|
287
|
-
|
|
288
|
-
|
|
334
|
+
P(Y.endDate, Y.timezone),
|
|
335
|
+
Y.timezone ? ` (${Y.timezone})` : ""
|
|
289
336
|
]
|
|
290
337
|
})] })]
|
|
291
338
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ w("div", {
|
|
293
340
|
className: "flex items-center gap-2 text-text-secondary",
|
|
294
|
-
children: [
|
|
295
|
-
href:
|
|
341
|
+
children: [Y.virtualUrl ? /* @__PURE__ */ C(y, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ C(he, { className: "h-4 w-4 shrink-0" }), Y.virtualUrl && M(Y.virtualUrl) ? /* @__PURE__ */ w("a", {
|
|
342
|
+
href: Y.virtualUrl,
|
|
296
343
|
target: "_blank",
|
|
297
344
|
rel: "noopener noreferrer",
|
|
298
345
|
className: "inline-flex items-center gap-1 text-action-primary-bg hover:underline",
|
|
299
|
-
children: [
|
|
300
|
-
}) :
|
|
346
|
+
children: [Y.virtualUrl, /* @__PURE__ */ C(le, { className: "h-3.5 w-3.5" })]
|
|
347
|
+
}) : Y.virtualUrl ? /* @__PURE__ */ C("span", { children: Y.virtualUrl }) : /* @__PURE__ */ C("span", { children: Y.location || "Location TBD" })]
|
|
301
348
|
}),
|
|
302
|
-
|
|
349
|
+
Y.tags && Y.tags.length > 0 && /* @__PURE__ */ w("div", {
|
|
303
350
|
className: "flex flex-wrap items-center gap-1.5 pt-2",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ C(_e, { className: "h-3.5 w-3.5 text-text-secondary" }), Y.tags.map((e) => /* @__PURE__ */ C("span", {
|
|
305
352
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-primary",
|
|
306
353
|
children: e
|
|
307
354
|
}, e))]
|
|
308
355
|
})
|
|
309
356
|
]
|
|
310
357
|
})]
|
|
311
|
-
}), /* @__PURE__ */
|
|
358
|
+
}), /* @__PURE__ */ w("div", {
|
|
312
359
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
360
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
314
361
|
className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
316
|
-
}), /* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ C(ue, { className: "h-4 w-4 text-text-secondary" }), "Type"]
|
|
363
|
+
}), /* @__PURE__ */ C("p", {
|
|
317
364
|
className: "text-sm text-text-primary",
|
|
318
|
-
children:
|
|
365
|
+
children: j.find((e) => e.value === Y.type)?.label ?? Y.type
|
|
319
366
|
})]
|
|
320
367
|
})]
|
|
321
368
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ w("div", {
|
|
323
370
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
371
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
325
372
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
326
373
|
children: "Speakers"
|
|
327
|
-
}),
|
|
374
|
+
}), Y.speakers.length === 0 ? /* @__PURE__ */ C("p", {
|
|
328
375
|
className: "py-4 text-center text-sm text-text-secondary",
|
|
329
376
|
children: "No speakers added yet."
|
|
330
|
-
}) : /* @__PURE__ */
|
|
377
|
+
}) : /* @__PURE__ */ C("div", {
|
|
331
378
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
332
|
-
children:
|
|
379
|
+
children: Y.speakers.map((e) => /* @__PURE__ */ w("div", {
|
|
333
380
|
className: "flex items-start gap-3 rounded-lg border border-border-subtle p-4",
|
|
334
|
-
children: [/* @__PURE__ */
|
|
381
|
+
children: [/* @__PURE__ */ C("div", {
|
|
335
382
|
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10 text-sm font-semibold text-primary",
|
|
336
383
|
children: e.name.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase()
|
|
337
|
-
}), /* @__PURE__ */
|
|
384
|
+
}), /* @__PURE__ */ w("div", {
|
|
338
385
|
className: "min-w-0",
|
|
339
386
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ C("p", {
|
|
341
388
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
342
389
|
children: e.name
|
|
343
390
|
}),
|
|
344
|
-
(e.title || e.company) && /* @__PURE__ */
|
|
391
|
+
(e.title || e.company) && /* @__PURE__ */ C("p", {
|
|
345
392
|
className: "truncate text-xs text-text-secondary",
|
|
346
393
|
children: [e.title, e.company].filter(Boolean).join(" · ")
|
|
347
394
|
}),
|
|
348
|
-
e.topic && /* @__PURE__ */
|
|
395
|
+
e.topic && /* @__PURE__ */ w("p", {
|
|
349
396
|
className: "mt-1 text-xs text-text-secondary",
|
|
350
397
|
children: ["Topic: ", e.topic]
|
|
351
398
|
})
|
|
@@ -354,79 +401,201 @@ var V = () => {
|
|
|
354
401
|
}, e.id))
|
|
355
402
|
})]
|
|
356
403
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ w("div", {
|
|
405
|
+
"data-testid": "eventfully-managed-sync-card",
|
|
406
|
+
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
407
|
+
children: [
|
|
408
|
+
/* @__PURE__ */ w("div", {
|
|
409
|
+
className: "mb-3 flex flex-wrap items-center justify-between gap-2",
|
|
410
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("h4", {
|
|
411
|
+
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
412
|
+
children: [/* @__PURE__ */ C(v, { className: "h-4 w-4 text-primary" }), "EventfullyManaged Sync"]
|
|
413
|
+
}), /* @__PURE__ */ C("p", {
|
|
414
|
+
className: "text-xs text-text-secondary",
|
|
415
|
+
children: "Link this event to EventfullyManaged to synchronize metadata, speakers, registrations, CRM contacts, and check-ins."
|
|
416
|
+
})] }), Y.eventfullyManagedSyncStatus && /* @__PURE__ */ C(h, { status: Y.eventfullyManagedSyncStatus.toLowerCase() })]
|
|
417
|
+
}),
|
|
418
|
+
q && /* @__PURE__ */ C("div", {
|
|
419
|
+
role: "status",
|
|
420
|
+
className: "mb-3 rounded-md border border-status-success-border/40 bg-status-success-bg/10 px-3 py-2 text-xs text-status-success-text",
|
|
421
|
+
children: q
|
|
422
|
+
}),
|
|
423
|
+
Y.eventfullyManagedSyncError && /* @__PURE__ */ w("div", {
|
|
424
|
+
role: "alert",
|
|
425
|
+
className: "mb-3 rounded-md border border-status-error-border/40 bg-status-error-bg/10 px-3 py-2 text-xs text-status-error-text",
|
|
426
|
+
children: ["Last sync error: ", Y.eventfullyManagedSyncError]
|
|
427
|
+
}),
|
|
428
|
+
Y.eventfullyManagedEventId ? /* @__PURE__ */ w("div", {
|
|
429
|
+
className: "flex flex-wrap items-center justify-between gap-3",
|
|
430
|
+
children: [/* @__PURE__ */ w("div", {
|
|
431
|
+
className: "space-y-0.5 text-xs text-text-secondary",
|
|
432
|
+
children: [/* @__PURE__ */ w("p", { children: [
|
|
433
|
+
"Linked EventfullyManaged ID:",
|
|
434
|
+
" ",
|
|
435
|
+
/* @__PURE__ */ C("span", {
|
|
436
|
+
className: "font-mono font-medium text-text-primary",
|
|
437
|
+
children: Y.eventfullyManagedEventId
|
|
438
|
+
})
|
|
439
|
+
] }), Y.eventfullyManagedLastSyncedAt && /* @__PURE__ */ w("p", { children: [
|
|
440
|
+
"Last synced:",
|
|
441
|
+
" ",
|
|
442
|
+
P(Y.eventfullyManagedLastSyncedAt, Y.timezone)
|
|
443
|
+
] })]
|
|
444
|
+
}), /* @__PURE__ */ w("div", {
|
|
445
|
+
className: "flex flex-wrap items-center gap-2",
|
|
446
|
+
children: [
|
|
447
|
+
/* @__PURE__ */ w(D, {
|
|
448
|
+
"aria-label": "Sync direction",
|
|
449
|
+
value: K,
|
|
450
|
+
onChange: (e) => Be(e.target.value),
|
|
451
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs text-text-primary",
|
|
452
|
+
children: [
|
|
453
|
+
/* @__PURE__ */ C("option", {
|
|
454
|
+
value: s.Bidirectional,
|
|
455
|
+
children: "Bidirectional"
|
|
456
|
+
}),
|
|
457
|
+
/* @__PURE__ */ C("option", {
|
|
458
|
+
value: s.Pull,
|
|
459
|
+
children: "Pull from EventfullyManaged"
|
|
460
|
+
}),
|
|
461
|
+
/* @__PURE__ */ C("option", {
|
|
462
|
+
value: s.Push,
|
|
463
|
+
children: "Push to EventfullyManaged"
|
|
464
|
+
})
|
|
465
|
+
]
|
|
466
|
+
}),
|
|
467
|
+
/* @__PURE__ */ w("button", {
|
|
468
|
+
type: "button",
|
|
469
|
+
"data-testid": "eventfully-sync-now",
|
|
470
|
+
onClick: () => void qe(),
|
|
471
|
+
disabled: $,
|
|
472
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
473
|
+
children: [/* @__PURE__ */ C(ge, { className: R ? "h-3.5 w-3.5 animate-spin" : "h-3.5 w-3.5" }), R ? "Syncing…" : "Sync Now"]
|
|
474
|
+
}),
|
|
475
|
+
/* @__PURE__ */ w("button", {
|
|
476
|
+
type: "button",
|
|
477
|
+
"data-testid": "eventfully-unlink",
|
|
478
|
+
onClick: () => void Ke(),
|
|
479
|
+
disabled: $,
|
|
480
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
481
|
+
children: [/* @__PURE__ */ C(be, { className: "h-3.5 w-3.5" }), "Unlink"]
|
|
482
|
+
})
|
|
483
|
+
]
|
|
484
|
+
})]
|
|
485
|
+
}) : /* @__PURE__ */ w("div", {
|
|
486
|
+
className: "flex flex-wrap items-center gap-2",
|
|
487
|
+
children: [
|
|
488
|
+
/* @__PURE__ */ w(D, {
|
|
489
|
+
"aria-label": "Select EventfullyManaged event",
|
|
490
|
+
value: G,
|
|
491
|
+
onChange: (e) => ze(e.target.value),
|
|
492
|
+
className: "min-w-[14rem] flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-xs text-text-primary",
|
|
493
|
+
children: [/* @__PURE__ */ C("option", {
|
|
494
|
+
value: "",
|
|
495
|
+
children: z.loading ? "Loading EventfullyManaged events…" : Q.length > 0 ? "Choose an EventfullyManaged event…" : "No existing EventfullyManaged events found"
|
|
496
|
+
}), Q.map((e) => /* @__PURE__ */ w("option", {
|
|
497
|
+
value: e.id,
|
|
498
|
+
children: [
|
|
499
|
+
e.name,
|
|
500
|
+
" (",
|
|
501
|
+
e.status,
|
|
502
|
+
")"
|
|
503
|
+
]
|
|
504
|
+
}, e.id))]
|
|
505
|
+
}),
|
|
506
|
+
/* @__PURE__ */ w("button", {
|
|
507
|
+
type: "button",
|
|
508
|
+
"data-testid": "eventfully-link-existing",
|
|
509
|
+
onClick: () => void Z(!1),
|
|
510
|
+
disabled: $ || !G,
|
|
511
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
512
|
+
children: [/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5" }), "Link Selected"]
|
|
513
|
+
}),
|
|
514
|
+
/* @__PURE__ */ C("button", {
|
|
515
|
+
type: "button",
|
|
516
|
+
"data-testid": "eventfully-create-and-link",
|
|
517
|
+
onClick: () => void Z(!0),
|
|
518
|
+
disabled: $,
|
|
519
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
520
|
+
children: "Create & Link in EventfullyManaged"
|
|
521
|
+
})
|
|
522
|
+
]
|
|
523
|
+
})
|
|
524
|
+
]
|
|
525
|
+
}),
|
|
526
|
+
/* @__PURE__ */ w("div", {
|
|
358
527
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
528
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
360
529
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
361
530
|
children: [
|
|
362
531
|
"Registrations (",
|
|
363
|
-
|
|
532
|
+
Y.registrations.length,
|
|
364
533
|
")"
|
|
365
534
|
]
|
|
366
|
-
}),
|
|
535
|
+
}), Y.registrations.length === 0 ? /* @__PURE__ */ C("p", {
|
|
367
536
|
className: "py-4 text-center text-sm text-text-secondary",
|
|
368
537
|
children: "No registrations yet."
|
|
369
|
-
}) : /* @__PURE__ */
|
|
538
|
+
}) : /* @__PURE__ */ C("div", {
|
|
370
539
|
className: "overflow-x-auto",
|
|
371
|
-
children: /* @__PURE__ */
|
|
540
|
+
children: /* @__PURE__ */ w("table", {
|
|
372
541
|
className: "w-full text-sm",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
542
|
+
children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", {
|
|
374
543
|
className: "border-b border-border-subtle text-start text-xs text-text-secondary",
|
|
375
544
|
children: [
|
|
376
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ C("th", {
|
|
377
546
|
className: "py-2 pe-4 font-medium",
|
|
378
547
|
children: "Attendee"
|
|
379
548
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ C("th", {
|
|
381
550
|
className: "py-2 pe-4 font-medium",
|
|
382
551
|
children: "Company"
|
|
383
552
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ C("th", {
|
|
385
554
|
className: "py-2 pe-4 font-medium",
|
|
386
555
|
children: "Status"
|
|
387
556
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ C("th", {
|
|
389
558
|
className: "py-2 pe-4 font-medium",
|
|
390
559
|
children: "Actions"
|
|
391
560
|
})
|
|
392
561
|
]
|
|
393
|
-
}) }), /* @__PURE__ */
|
|
562
|
+
}) }), /* @__PURE__ */ C("tbody", { children: Y.registrations.map((e) => {
|
|
394
563
|
let t = e.status.toLowerCase(), n = e.status === "REGISTERED" || e.status === "CONFIRMED" || e.status === "WAITLISTED", r = e.status !== "CANCELLED" && e.status !== "CHECKED_IN";
|
|
395
|
-
return /* @__PURE__ */
|
|
564
|
+
return /* @__PURE__ */ w("tr", {
|
|
396
565
|
className: "border-b border-border-subtle/60 last:border-0",
|
|
397
566
|
children: [
|
|
398
|
-
/* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ w("td", {
|
|
399
568
|
className: "py-2 pe-4",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
569
|
+
children: [/* @__PURE__ */ C("p", {
|
|
401
570
|
className: "font-medium text-text-primary",
|
|
402
571
|
children: e.attendeeName
|
|
403
|
-
}), /* @__PURE__ */
|
|
572
|
+
}), /* @__PURE__ */ C("p", {
|
|
404
573
|
className: "text-xs text-text-secondary",
|
|
405
574
|
children: e.attendeeEmail
|
|
406
575
|
})]
|
|
407
576
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ C("td", {
|
|
409
578
|
className: "py-2 pe-4 text-text-secondary",
|
|
410
579
|
children: e.attendeeCompany || "—"
|
|
411
580
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ C("td", {
|
|
413
582
|
className: "py-2 pe-4",
|
|
414
|
-
children: /* @__PURE__ */
|
|
583
|
+
children: /* @__PURE__ */ C(h, { status: t })
|
|
415
584
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ C("td", {
|
|
417
586
|
className: "py-2 pe-4",
|
|
418
|
-
children: /* @__PURE__ */
|
|
587
|
+
children: /* @__PURE__ */ w("div", {
|
|
419
588
|
className: "flex items-center gap-2",
|
|
420
|
-
children: [n && /* @__PURE__ */
|
|
421
|
-
onClick: () => void
|
|
589
|
+
children: [n && /* @__PURE__ */ w("button", {
|
|
590
|
+
onClick: () => void We(e.id),
|
|
422
591
|
disabled: $,
|
|
423
592
|
className: "inline-flex items-center gap-1 rounded-md border border-border-subtle px-2 py-1 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
424
|
-
children: [/* @__PURE__ */
|
|
425
|
-
}), r && /* @__PURE__ */
|
|
426
|
-
onClick: () => void
|
|
593
|
+
children: [/* @__PURE__ */ C(de, { className: "h-3 w-3" }), "Check in"]
|
|
594
|
+
}), r && /* @__PURE__ */ w("button", {
|
|
595
|
+
onClick: () => void Ge(e.id),
|
|
427
596
|
disabled: $,
|
|
428
597
|
className: "inline-flex items-center gap-1 rounded-md border border-status-error-border/40 px-2 py-1 text-xs font-medium text-status-error-text hover:bg-status-error-bg/10 disabled:opacity-60",
|
|
429
|
-
children: [/* @__PURE__ */
|
|
598
|
+
children: [/* @__PURE__ */ C(b, { className: "h-3 w-3" }), "Cancel"]
|
|
430
599
|
})]
|
|
431
600
|
})
|
|
432
601
|
})
|
|
@@ -436,190 +605,190 @@ var V = () => {
|
|
|
436
605
|
})
|
|
437
606
|
})]
|
|
438
607
|
}),
|
|
439
|
-
|
|
440
|
-
open:
|
|
441
|
-
onClose: () =>
|
|
608
|
+
V && /* @__PURE__ */ C(ie, {
|
|
609
|
+
open: Re,
|
|
610
|
+
onClose: () => B(!1),
|
|
442
611
|
title: "Manage Event",
|
|
443
612
|
description: "Update event details or move it through its lifecycle.",
|
|
444
613
|
size: "lg",
|
|
445
|
-
footer: /* @__PURE__ */
|
|
446
|
-
onClick: () =>
|
|
614
|
+
footer: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("button", {
|
|
615
|
+
onClick: () => B(!1),
|
|
447
616
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
448
617
|
children: "Cancel"
|
|
449
|
-
}), /* @__PURE__ */
|
|
450
|
-
onClick: () => void
|
|
451
|
-
disabled:
|
|
618
|
+
}), /* @__PURE__ */ C("button", {
|
|
619
|
+
onClick: () => void He(),
|
|
620
|
+
disabled: L,
|
|
452
621
|
className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
|
|
453
|
-
children:
|
|
622
|
+
children: L ? "Saving..." : "Save Changes"
|
|
454
623
|
})] }),
|
|
455
|
-
children: /* @__PURE__ */
|
|
624
|
+
children: /* @__PURE__ */ w("div", {
|
|
456
625
|
className: "space-y-4",
|
|
457
626
|
children: [
|
|
458
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
459
628
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
460
629
|
children: "Title"
|
|
461
|
-
}), /* @__PURE__ */
|
|
630
|
+
}), /* @__PURE__ */ C("input", {
|
|
462
631
|
type: "text",
|
|
463
|
-
value:
|
|
464
|
-
onChange: (e) =>
|
|
465
|
-
...
|
|
632
|
+
value: V.title,
|
|
633
|
+
onChange: (e) => H({
|
|
634
|
+
...V,
|
|
466
635
|
title: e.target.value
|
|
467
636
|
}),
|
|
468
637
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
469
638
|
})] }),
|
|
470
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
471
640
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
472
641
|
children: "Description"
|
|
473
|
-
}), /* @__PURE__ */
|
|
642
|
+
}), /* @__PURE__ */ C("textarea", {
|
|
474
643
|
rows: 3,
|
|
475
|
-
value:
|
|
476
|
-
onChange: (e) =>
|
|
477
|
-
...
|
|
644
|
+
value: V.description,
|
|
645
|
+
onChange: (e) => H({
|
|
646
|
+
...V,
|
|
478
647
|
description: e.target.value
|
|
479
648
|
}),
|
|
480
649
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
481
650
|
})] }),
|
|
482
|
-
/* @__PURE__ */
|
|
651
|
+
/* @__PURE__ */ w("div", {
|
|
483
652
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
484
|
-
children: [/* @__PURE__ */
|
|
653
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
485
654
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
486
655
|
children: "Type"
|
|
487
|
-
}), /* @__PURE__ */
|
|
488
|
-
value:
|
|
489
|
-
onChange: (e) =>
|
|
490
|
-
...
|
|
656
|
+
}), /* @__PURE__ */ C(D, {
|
|
657
|
+
value: V.type,
|
|
658
|
+
onChange: (e) => H({
|
|
659
|
+
...V,
|
|
491
660
|
type: e.target.value
|
|
492
661
|
}),
|
|
493
662
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
494
|
-
children:
|
|
663
|
+
children: j.map((e) => /* @__PURE__ */ C("option", {
|
|
495
664
|
value: e.value,
|
|
496
665
|
children: e.label
|
|
497
666
|
}, e.value))
|
|
498
|
-
})] }), /* @__PURE__ */
|
|
667
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
499
668
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
500
669
|
children: "Status"
|
|
501
|
-
}), /* @__PURE__ */
|
|
502
|
-
value:
|
|
503
|
-
onChange: (e) =>
|
|
504
|
-
...
|
|
670
|
+
}), /* @__PURE__ */ C(D, {
|
|
671
|
+
value: V.status,
|
|
672
|
+
onChange: (e) => H({
|
|
673
|
+
...V,
|
|
505
674
|
status: e.target.value
|
|
506
675
|
}),
|
|
507
676
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
508
|
-
children:
|
|
677
|
+
children: A.map((e) => /* @__PURE__ */ C("option", {
|
|
509
678
|
value: e.value,
|
|
510
679
|
children: e.label
|
|
511
680
|
}, e.value))
|
|
512
681
|
})] })]
|
|
513
682
|
}),
|
|
514
|
-
/* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ w("div", {
|
|
515
684
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
516
|
-
children: [/* @__PURE__ */
|
|
685
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
517
686
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
518
687
|
children: "Start"
|
|
519
|
-
}), /* @__PURE__ */
|
|
688
|
+
}), /* @__PURE__ */ C("input", {
|
|
520
689
|
type: "datetime-local",
|
|
521
|
-
value:
|
|
522
|
-
onChange: (e) =>
|
|
523
|
-
...
|
|
690
|
+
value: V.startDate,
|
|
691
|
+
onChange: (e) => H({
|
|
692
|
+
...V,
|
|
524
693
|
startDate: e.target.value
|
|
525
694
|
}),
|
|
526
695
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
527
|
-
})] }), /* @__PURE__ */
|
|
696
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
528
697
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
529
698
|
children: "End"
|
|
530
|
-
}), /* @__PURE__ */
|
|
699
|
+
}), /* @__PURE__ */ C("input", {
|
|
531
700
|
type: "datetime-local",
|
|
532
|
-
value:
|
|
533
|
-
onChange: (e) =>
|
|
534
|
-
...
|
|
701
|
+
value: V.endDate,
|
|
702
|
+
onChange: (e) => H({
|
|
703
|
+
...V,
|
|
535
704
|
endDate: e.target.value
|
|
536
705
|
}),
|
|
537
706
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
538
707
|
})] })]
|
|
539
708
|
}),
|
|
540
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ w("div", {
|
|
541
710
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
542
|
-
children: [/* @__PURE__ */
|
|
711
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
543
712
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
544
713
|
children: "Location"
|
|
545
|
-
}), /* @__PURE__ */
|
|
714
|
+
}), /* @__PURE__ */ C("input", {
|
|
546
715
|
type: "text",
|
|
547
|
-
value:
|
|
548
|
-
onChange: (e) =>
|
|
549
|
-
...
|
|
716
|
+
value: V.location,
|
|
717
|
+
onChange: (e) => H({
|
|
718
|
+
...V,
|
|
550
719
|
location: e.target.value
|
|
551
720
|
}),
|
|
552
721
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
553
|
-
})] }), /* @__PURE__ */
|
|
722
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
554
723
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
555
724
|
children: "Virtual URL"
|
|
556
|
-
}), /* @__PURE__ */
|
|
725
|
+
}), /* @__PURE__ */ C("input", {
|
|
557
726
|
type: "url",
|
|
558
|
-
value:
|
|
559
|
-
onChange: (e) =>
|
|
560
|
-
...
|
|
727
|
+
value: V.virtualUrl,
|
|
728
|
+
onChange: (e) => H({
|
|
729
|
+
...V,
|
|
561
730
|
virtualUrl: e.target.value
|
|
562
731
|
}),
|
|
563
732
|
placeholder: "https://",
|
|
564
733
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
565
734
|
})] })]
|
|
566
735
|
}),
|
|
567
|
-
/* @__PURE__ */
|
|
736
|
+
/* @__PURE__ */ w("div", {
|
|
568
737
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
569
|
-
children: [/* @__PURE__ */
|
|
738
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
570
739
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
571
740
|
children: "Timezone (IANA)"
|
|
572
|
-
}), /* @__PURE__ */
|
|
741
|
+
}), /* @__PURE__ */ C("input", {
|
|
573
742
|
type: "text",
|
|
574
|
-
value:
|
|
575
|
-
onChange: (e) =>
|
|
576
|
-
...
|
|
743
|
+
value: V.timezone,
|
|
744
|
+
onChange: (e) => H({
|
|
745
|
+
...V,
|
|
577
746
|
timezone: e.target.value
|
|
578
747
|
}),
|
|
579
748
|
placeholder: "America/New_York",
|
|
580
749
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
581
|
-
})] }), /* @__PURE__ */
|
|
750
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
582
751
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
583
752
|
children: "Max Attendees"
|
|
584
|
-
}), /* @__PURE__ */
|
|
753
|
+
}), /* @__PURE__ */ C("input", {
|
|
585
754
|
type: "number",
|
|
586
755
|
min: 0,
|
|
587
|
-
value:
|
|
588
|
-
onChange: (e) =>
|
|
589
|
-
...
|
|
756
|
+
value: V.maxAttendees,
|
|
757
|
+
onChange: (e) => H({
|
|
758
|
+
...V,
|
|
590
759
|
maxAttendees: e.target.value
|
|
591
760
|
}),
|
|
592
761
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
593
762
|
})] })]
|
|
594
763
|
}),
|
|
595
|
-
|
|
764
|
+
U && /* @__PURE__ */ C("p", {
|
|
596
765
|
className: "text-sm text-status-error-text",
|
|
597
|
-
children:
|
|
766
|
+
children: U
|
|
598
767
|
})
|
|
599
768
|
]
|
|
600
769
|
})
|
|
601
770
|
})
|
|
602
771
|
]
|
|
603
|
-
}) : /* @__PURE__ */
|
|
772
|
+
}) : /* @__PURE__ */ C(f, {
|
|
604
773
|
title: "Event Details",
|
|
605
|
-
children: /* @__PURE__ */
|
|
606
|
-
loading:
|
|
607
|
-
error:
|
|
608
|
-
onRetry: () => void
|
|
774
|
+
children: /* @__PURE__ */ C(ae, {
|
|
775
|
+
loading: we,
|
|
776
|
+
error: Te,
|
|
777
|
+
onRetry: () => void I(),
|
|
609
778
|
hasData: !1,
|
|
610
|
-
children: /* @__PURE__ */
|
|
779
|
+
children: /* @__PURE__ */ C(m, {
|
|
611
780
|
illustration: "empty-generic",
|
|
612
781
|
title: "Event not found",
|
|
613
782
|
description: "The event you're looking for doesn't exist or has been removed.",
|
|
614
|
-
action: /* @__PURE__ */
|
|
615
|
-
onClick:
|
|
783
|
+
action: /* @__PURE__ */ w("button", {
|
|
784
|
+
onClick: X,
|
|
616
785
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
617
|
-
children: [/* @__PURE__ */
|
|
786
|
+
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Back to Events"]
|
|
618
787
|
})
|
|
619
788
|
})
|
|
620
789
|
})
|
|
621
790
|
});
|
|
622
791
|
};
|
|
623
|
-
export {
|
|
792
|
+
export { F as EventDetailsPage };
|
|
624
793
|
|
|
625
794
|
//# sourceMappingURL=EventDetailsPage.js.map
|