@burdenoff/microfe-headshotmarketing 2026.716.2 → 2026.719.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 +234 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +201 -72
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts +1 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +54 -50
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +10 -1
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +281 -249
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +180 -165
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.d.ts +4 -0
- package/dist/headshotmarketing/pages/events/EventDetailsPage.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +617 -0
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -0
- package/dist/headshotmarketing/pages/events/EventsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +91 -84
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/types/index.d.ts +1 -1
- package/dist/headshotmarketing/types/index.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/campaignMapper.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/campaignMapper.js +1 -0
- package/dist/headshotmarketing/utils/campaignMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import "../../hooks/index.js";
|
|
|
10
10
|
import { EventImageUpload as c } from "./EventImageUpload.js";
|
|
11
11
|
import { EventPagePreview as te } from "./EventPagePreview.js";
|
|
12
12
|
import { useMemo as l, useState as u } from "react";
|
|
13
|
-
import { ArrowLeft as ne, ChevronDown as re, ChevronUp as ie, Clock as
|
|
13
|
+
import { ArrowLeft as ne, ChevronDown as re, ChevronUp as ie, Clock as ae, Eye as d, Globe as f, GripVertical as p, Loader2 as m, Mail as oe, MapPin as h, Plus as g, Rocket as se, Save as ce, Trash2 as _, UserRound as le, Users as ue, Video as v } from "lucide-react";
|
|
14
14
|
import { gql as y } from "@apollo/client";
|
|
15
15
|
import { useMutation as b } from "@apollo/client/react";
|
|
16
16
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
@@ -26,6 +26,14 @@ var fe = y`
|
|
|
26
26
|
status
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
`, pe = y`
|
|
30
|
+
mutation HeadshotmarketingCreateEventSpeakerForEvent(
|
|
31
|
+
$input: HeadshotmarketingCreateEventSpeakerInput!
|
|
32
|
+
) {
|
|
33
|
+
headshotmarketingCreateEventSpeaker(input: $input) {
|
|
34
|
+
id
|
|
35
|
+
}
|
|
36
|
+
}
|
|
29
37
|
`, w = [
|
|
30
38
|
{
|
|
31
39
|
value: "webinar",
|
|
@@ -59,7 +67,7 @@ var fe = y`
|
|
|
59
67
|
value: "other",
|
|
60
68
|
label: "Other"
|
|
61
69
|
}
|
|
62
|
-
],
|
|
70
|
+
], T = [
|
|
63
71
|
{
|
|
64
72
|
key: "in_person",
|
|
65
73
|
label: "In-person",
|
|
@@ -73,9 +81,9 @@ var fe = y`
|
|
|
73
81
|
{
|
|
74
82
|
key: "hybrid",
|
|
75
83
|
label: "Hybrid",
|
|
76
|
-
icon:
|
|
84
|
+
icon: f
|
|
77
85
|
}
|
|
78
|
-
],
|
|
86
|
+
], E = [
|
|
79
87
|
"UTC",
|
|
80
88
|
"America/New_York",
|
|
81
89
|
"America/Chicago",
|
|
@@ -91,14 +99,14 @@ var fe = y`
|
|
|
91
99
|
"Asia/Singapore",
|
|
92
100
|
"Asia/Tokyo",
|
|
93
101
|
"Australia/Sydney"
|
|
94
|
-
],
|
|
95
|
-
let { navigate:
|
|
102
|
+
], D = () => {
|
|
103
|
+
let { navigate: f, basePath: h } = t(), { refetch: v } = ee(), [y, { error: D }] = e(), [me] = b(fe), [he] = b(pe), O = l(() => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC", []), ge = l(() => Array.from(new Set([O, ...E])), [O]), [k, A] = u("basic"), [_e, j] = u(null), [M, N] = u(null), [P, F] = u(null), [I, ve] = u({
|
|
96
104
|
name: "",
|
|
97
105
|
description: "",
|
|
98
106
|
type: "webinar",
|
|
99
107
|
startDate: "",
|
|
100
108
|
endDate: "",
|
|
101
|
-
timezone:
|
|
109
|
+
timezone: O,
|
|
102
110
|
locationMode: "virtual",
|
|
103
111
|
location: "",
|
|
104
112
|
virtualUrl: "",
|
|
@@ -106,24 +114,24 @@ var fe = y`
|
|
|
106
114
|
registrationUrl: "",
|
|
107
115
|
coverImageUrl: "",
|
|
108
116
|
confirmationEmail: !0
|
|
109
|
-
}), [
|
|
117
|
+
}), [L, R] = u([{
|
|
110
118
|
id: "1",
|
|
111
119
|
name: "",
|
|
112
120
|
title: "",
|
|
113
121
|
company: "",
|
|
114
122
|
avatarUrl: ""
|
|
115
|
-
}]), [
|
|
123
|
+
}]), [z, B] = u([{
|
|
116
124
|
id: "1",
|
|
117
125
|
time: "09:00",
|
|
118
126
|
title: "",
|
|
119
127
|
speaker: ""
|
|
120
|
-
}]), [
|
|
128
|
+
}]), [V, H] = u({
|
|
121
129
|
budget: "",
|
|
122
130
|
tags: [],
|
|
123
131
|
emailCampaign: !1,
|
|
124
132
|
socialPromotion: !1,
|
|
125
133
|
paidAds: !1
|
|
126
|
-
}),
|
|
134
|
+
}), ye = [
|
|
127
135
|
{
|
|
128
136
|
key: "basic",
|
|
129
137
|
label: "Basic Info"
|
|
@@ -140,28 +148,28 @@ var fe = y`
|
|
|
140
148
|
key: "marketing",
|
|
141
149
|
label: "Marketing"
|
|
142
150
|
}
|
|
143
|
-
],
|
|
151
|
+
], U = "w-full min-h-[42px] rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", W = "block text-sm font-medium text-text-primary mb-1", G = "rounded-xl border border-border-seam bg-gloss-card p-5 shadow-pop", K = (e) => ve((t) => ({
|
|
144
152
|
...t,
|
|
145
153
|
...e
|
|
146
|
-
})),
|
|
154
|
+
})), be = l(() => w.find((e) => e.value === I.type)?.label ?? "Event", [I.type]), xe = () => R((e) => [...e, {
|
|
147
155
|
id: String(Date.now()),
|
|
148
156
|
name: "",
|
|
149
157
|
title: "",
|
|
150
158
|
company: "",
|
|
151
159
|
avatarUrl: ""
|
|
152
|
-
}]),
|
|
160
|
+
}]), Se = (e) => R((t) => t.filter((t) => t.id !== e)), q = (e, t) => R((n) => n.map((n) => n.id === e ? {
|
|
153
161
|
...n,
|
|
154
162
|
...t
|
|
155
|
-
} : n)),
|
|
163
|
+
} : n)), J = (e, t) => R((n) => {
|
|
156
164
|
if (e === t || t < 0 || t >= n.length) return n;
|
|
157
165
|
let r = [...n], [i] = r.splice(e, 1);
|
|
158
166
|
return r.splice(t, 0, i), r;
|
|
159
|
-
}),
|
|
167
|
+
}), Ce = () => B((e) => [...e, {
|
|
160
168
|
id: String(Date.now()),
|
|
161
169
|
time: "",
|
|
162
170
|
title: "",
|
|
163
171
|
speaker: ""
|
|
164
|
-
}]),
|
|
172
|
+
}]), we = (e) => B((t) => t.filter((t) => t.id !== e)), Te = (e) => {
|
|
165
173
|
switch (e) {
|
|
166
174
|
case "conference": return a.Conference;
|
|
167
175
|
case "workshop": return a.Workshop;
|
|
@@ -173,71 +181,78 @@ var fe = y`
|
|
|
173
181
|
default: return a.Webinar;
|
|
174
182
|
}
|
|
175
183
|
}, Y = async (e) => {
|
|
176
|
-
if (!
|
|
177
|
-
|
|
184
|
+
if (!I.name.trim()) {
|
|
185
|
+
j("Event title is required."), A("basic");
|
|
178
186
|
return;
|
|
179
187
|
}
|
|
180
|
-
if (!
|
|
181
|
-
|
|
188
|
+
if (!I.startDate || !I.endDate) {
|
|
189
|
+
j("Start and end date are required."), A("basic");
|
|
182
190
|
return;
|
|
183
191
|
}
|
|
184
|
-
let t = new Date(
|
|
192
|
+
let t = new Date(I.startDate), n = new Date(I.endDate);
|
|
185
193
|
if (Number.isNaN(t.getTime()) || Number.isNaN(n.getTime())) {
|
|
186
|
-
|
|
194
|
+
j("Start and end date must be valid."), A("basic");
|
|
187
195
|
return;
|
|
188
196
|
}
|
|
189
197
|
if (n.getTime() < t.getTime()) {
|
|
190
|
-
|
|
198
|
+
j("End date must be after the start date."), A("basic");
|
|
191
199
|
return;
|
|
192
200
|
}
|
|
193
|
-
|
|
194
|
-
let a =
|
|
195
|
-
title:
|
|
196
|
-
description:
|
|
197
|
-
type:
|
|
201
|
+
j(null);
|
|
202
|
+
let a = I.locationMode === "virtual", o = I.locationMode === "in_person", s = {
|
|
203
|
+
title: I.name.trim(),
|
|
204
|
+
description: I.description || null,
|
|
205
|
+
type: Te(I.type),
|
|
198
206
|
startDate: t.toISOString(),
|
|
199
207
|
endDate: n.toISOString(),
|
|
200
|
-
location: a ? null :
|
|
201
|
-
virtualUrl: o ? null :
|
|
202
|
-
maxAttendees:
|
|
203
|
-
timezone:
|
|
204
|
-
coverImageUrl:
|
|
205
|
-
tags:
|
|
208
|
+
location: a ? null : I.location.trim() || null,
|
|
209
|
+
virtualUrl: o ? null : I.virtualUrl.trim() || null,
|
|
210
|
+
maxAttendees: I.maxCapacity ? Number(I.maxCapacity) : null,
|
|
211
|
+
timezone: I.timezone || O,
|
|
212
|
+
coverImageUrl: I.coverImageUrl || null,
|
|
213
|
+
tags: V.tags,
|
|
206
214
|
metadata: {
|
|
207
|
-
registrationUrl:
|
|
208
|
-
confirmationEmail:
|
|
209
|
-
locationMode:
|
|
210
|
-
|
|
211
|
-
...e,
|
|
212
|
-
sortOrder: t
|
|
213
|
-
})),
|
|
214
|
-
agenda: R,
|
|
215
|
+
registrationUrl: I.registrationUrl || null,
|
|
216
|
+
confirmationEmail: I.confirmationEmail,
|
|
217
|
+
locationMode: I.locationMode,
|
|
218
|
+
agenda: z,
|
|
215
219
|
marketing: {
|
|
216
|
-
budget:
|
|
217
|
-
emailCampaign:
|
|
218
|
-
socialPromotion:
|
|
219
|
-
paidAds:
|
|
220
|
+
budget: V.budget,
|
|
221
|
+
emailCampaign: V.emailCampaign,
|
|
222
|
+
socialPromotion: V.socialPromotion,
|
|
223
|
+
paidAds: V.paidAds
|
|
220
224
|
}
|
|
221
225
|
}
|
|
222
226
|
};
|
|
223
|
-
|
|
227
|
+
N(e);
|
|
224
228
|
try {
|
|
225
229
|
let t = (await y({ variables: { input: s } })).data?.headshotmarketingCreateEvent.id;
|
|
226
|
-
|
|
230
|
+
if (t) {
|
|
231
|
+
let e = L.filter((e) => e.name.trim());
|
|
232
|
+
for (let [n, r] of e.entries()) await he({ variables: { input: {
|
|
233
|
+
eventId: t,
|
|
234
|
+
name: r.name.trim(),
|
|
235
|
+
title: r.title.trim() || null,
|
|
236
|
+
company: r.company.trim() || null,
|
|
237
|
+
avatarUrl: r.avatarUrl || null,
|
|
238
|
+
sortOrder: n
|
|
239
|
+
} } });
|
|
240
|
+
}
|
|
241
|
+
e === "publish" && t && await me({ variables: {
|
|
227
242
|
id: t,
|
|
228
243
|
input: { status: i.Published }
|
|
229
|
-
} }), await v(),
|
|
244
|
+
} }), await v(), f(r(h, "events"));
|
|
230
245
|
} catch (e) {
|
|
231
|
-
|
|
246
|
+
j(e instanceof Error ? e.message : "Failed to save event.");
|
|
232
247
|
} finally {
|
|
233
|
-
|
|
248
|
+
N(null);
|
|
234
249
|
}
|
|
235
|
-
}, X = _e ??
|
|
250
|
+
}, X = _e ?? D?.message ?? null, Z = I.locationMode !== "virtual", Q = I.locationMode !== "in_person", $ = M !== null;
|
|
236
251
|
return /* @__PURE__ */ S(o, {
|
|
237
252
|
title: "Create Event",
|
|
238
253
|
description: "Set up a new marketing event",
|
|
239
254
|
actions: /* @__PURE__ */ S("button", {
|
|
240
|
-
onClick: () =>
|
|
255
|
+
onClick: () => f(r(h, "events")),
|
|
241
256
|
className: "inline-flex min-h-[40px] items-center gap-2 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
242
257
|
children: [/* @__PURE__ */ x(ne, { className: "h-4 w-4" }), "Back to Events"]
|
|
243
258
|
}),
|
|
@@ -251,16 +266,16 @@ var fe = y`
|
|
|
251
266
|
className: "border-b border-border-subtle",
|
|
252
267
|
children: /* @__PURE__ */ x("div", {
|
|
253
268
|
className: "flex flex-nowrap gap-6 overflow-x-auto",
|
|
254
|
-
children:
|
|
255
|
-
onClick: () =>
|
|
256
|
-
className: n("-mb-px whitespace-nowrap border-b-2 pb-3 text-sm font-medium transition-colors",
|
|
269
|
+
children: ye.map((e) => /* @__PURE__ */ x("button", {
|
|
270
|
+
onClick: () => A(e.key),
|
|
271
|
+
className: n("-mb-px whitespace-nowrap border-b-2 pb-3 text-sm font-medium transition-colors", k === e.key ? "border-action-primary-bg text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
257
272
|
children: e.label
|
|
258
273
|
}, e.key))
|
|
259
274
|
})
|
|
260
275
|
}), /* @__PURE__ */ S("div", {
|
|
261
|
-
className:
|
|
276
|
+
className: G,
|
|
262
277
|
children: [
|
|
263
|
-
|
|
278
|
+
k === "basic" && /* @__PURE__ */ S("div", {
|
|
264
279
|
className: "space-y-5",
|
|
265
280
|
children: [
|
|
266
281
|
/* @__PURE__ */ S("div", {
|
|
@@ -268,22 +283,22 @@ var fe = y`
|
|
|
268
283
|
children: [/* @__PURE__ */ S("div", {
|
|
269
284
|
className: "sm:col-span-2",
|
|
270
285
|
children: [/* @__PURE__ */ x("label", {
|
|
271
|
-
className:
|
|
286
|
+
className: W,
|
|
272
287
|
children: "Event Title"
|
|
273
288
|
}), /* @__PURE__ */ x("input", {
|
|
274
289
|
type: "text",
|
|
275
|
-
value:
|
|
276
|
-
onChange: (e) =>
|
|
290
|
+
value: I.name,
|
|
291
|
+
onChange: (e) => K({ name: e.target.value }),
|
|
277
292
|
placeholder: "e.g. Q3 Product Webinar",
|
|
278
|
-
className:
|
|
293
|
+
className: U
|
|
279
294
|
})]
|
|
280
295
|
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
281
|
-
className:
|
|
296
|
+
className: W,
|
|
282
297
|
children: "Event Type"
|
|
283
298
|
}), /* @__PURE__ */ x("select", {
|
|
284
|
-
value:
|
|
285
|
-
onChange: (e) =>
|
|
286
|
-
className:
|
|
299
|
+
value: I.type,
|
|
300
|
+
onChange: (e) => K({ type: e.target.value }),
|
|
301
|
+
className: U,
|
|
287
302
|
children: w.map((e) => /* @__PURE__ */ x("option", {
|
|
288
303
|
value: e.value,
|
|
289
304
|
children: e.label
|
|
@@ -291,45 +306,45 @@ var fe = y`
|
|
|
291
306
|
})] })]
|
|
292
307
|
}),
|
|
293
308
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
294
|
-
className:
|
|
309
|
+
className: W,
|
|
295
310
|
children: "Description"
|
|
296
311
|
}), /* @__PURE__ */ x("textarea", {
|
|
297
|
-
value:
|
|
298
|
-
onChange: (e) =>
|
|
312
|
+
value: I.description,
|
|
313
|
+
onChange: (e) => K({ description: e.target.value }),
|
|
299
314
|
placeholder: "Describe your event — who it's for and what attendees will get out of it.",
|
|
300
315
|
rows: 4,
|
|
301
|
-
className: n(
|
|
316
|
+
className: n(U, "resize-none")
|
|
302
317
|
})] }),
|
|
303
318
|
/* @__PURE__ */ S("div", {
|
|
304
319
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
305
320
|
children: [
|
|
306
321
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
307
|
-
className:
|
|
322
|
+
className: W,
|
|
308
323
|
children: "Start Date & Time"
|
|
309
324
|
}), /* @__PURE__ */ x("input", {
|
|
310
325
|
type: "datetime-local",
|
|
311
|
-
value:
|
|
312
|
-
onChange: (e) =>
|
|
313
|
-
className:
|
|
326
|
+
value: I.startDate,
|
|
327
|
+
onChange: (e) => K({ startDate: e.target.value }),
|
|
328
|
+
className: U
|
|
314
329
|
})] }),
|
|
315
330
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
316
|
-
className:
|
|
331
|
+
className: W,
|
|
317
332
|
children: "End Date & Time"
|
|
318
333
|
}), /* @__PURE__ */ x("input", {
|
|
319
334
|
type: "datetime-local",
|
|
320
|
-
value:
|
|
321
|
-
onChange: (e) =>
|
|
322
|
-
className:
|
|
335
|
+
value: I.endDate,
|
|
336
|
+
onChange: (e) => K({ endDate: e.target.value }),
|
|
337
|
+
className: U
|
|
323
338
|
})] }),
|
|
324
339
|
/* @__PURE__ */ S("div", {
|
|
325
340
|
className: "sm:col-span-2 lg:col-span-1",
|
|
326
341
|
children: [/* @__PURE__ */ x("label", {
|
|
327
|
-
className:
|
|
342
|
+
className: W,
|
|
328
343
|
children: "Timezone"
|
|
329
344
|
}), /* @__PURE__ */ x("select", {
|
|
330
|
-
value:
|
|
331
|
-
onChange: (e) =>
|
|
332
|
-
className:
|
|
345
|
+
value: I.timezone,
|
|
346
|
+
onChange: (e) => K({ timezone: e.target.value }),
|
|
347
|
+
className: U,
|
|
333
348
|
children: ge.map((e) => /* @__PURE__ */ x("option", {
|
|
334
349
|
value: e,
|
|
335
350
|
children: e.replace(/_/g, " ")
|
|
@@ -339,15 +354,15 @@ var fe = y`
|
|
|
339
354
|
]
|
|
340
355
|
}),
|
|
341
356
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
342
|
-
className:
|
|
357
|
+
className: W,
|
|
343
358
|
children: "Location"
|
|
344
359
|
}), /* @__PURE__ */ x("div", {
|
|
345
360
|
className: "inline-flex w-full flex-wrap gap-1 rounded-md border border-border-subtle bg-bg-surface p-1 sm:w-auto",
|
|
346
|
-
children:
|
|
347
|
-
let t = e.icon, r =
|
|
361
|
+
children: T.map((e) => {
|
|
362
|
+
let t = e.icon, r = I.locationMode === e.key;
|
|
348
363
|
return /* @__PURE__ */ S("button", {
|
|
349
364
|
type: "button",
|
|
350
|
-
onClick: () =>
|
|
365
|
+
onClick: () => K({ locationMode: e.key }),
|
|
351
366
|
className: n("inline-flex min-h-[38px] flex-1 items-center justify-center gap-2 rounded px-3 py-1.5 text-sm font-medium transition-colors sm:flex-none", r ? "bg-action-primary-bg text-action-primary-text shadow-pop" : "text-text-secondary hover:text-text-primary"),
|
|
352
367
|
"aria-pressed": r,
|
|
353
368
|
children: [/* @__PURE__ */ x(t, { className: "h-4 w-4" }), e.label]
|
|
@@ -359,66 +374,66 @@ var fe = y`
|
|
|
359
374
|
children: [Z && /* @__PURE__ */ S("div", {
|
|
360
375
|
className: n(!Q && "sm:col-span-2"),
|
|
361
376
|
children: [/* @__PURE__ */ x("label", {
|
|
362
|
-
className:
|
|
377
|
+
className: W,
|
|
363
378
|
children: "Venue / Address"
|
|
364
379
|
}), /* @__PURE__ */ x("input", {
|
|
365
380
|
type: "text",
|
|
366
|
-
value:
|
|
367
|
-
onChange: (e) =>
|
|
381
|
+
value: I.location,
|
|
382
|
+
onChange: (e) => K({ location: e.target.value }),
|
|
368
383
|
placeholder: "San Francisco, CA",
|
|
369
|
-
className:
|
|
384
|
+
className: U
|
|
370
385
|
})]
|
|
371
386
|
}), Q && /* @__PURE__ */ S("div", {
|
|
372
387
|
className: n(!Z && "sm:col-span-2"),
|
|
373
388
|
children: [/* @__PURE__ */ x("label", {
|
|
374
|
-
className:
|
|
389
|
+
className: W,
|
|
375
390
|
children: "Virtual Meeting URL"
|
|
376
391
|
}), /* @__PURE__ */ x("input", {
|
|
377
392
|
type: "url",
|
|
378
|
-
value:
|
|
379
|
-
onChange: (e) =>
|
|
393
|
+
value: I.virtualUrl,
|
|
394
|
+
onChange: (e) => K({ virtualUrl: e.target.value }),
|
|
380
395
|
placeholder: "https://zoom.us/j/...",
|
|
381
|
-
className:
|
|
396
|
+
className: U
|
|
382
397
|
})]
|
|
383
398
|
})]
|
|
384
399
|
}),
|
|
385
400
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
386
|
-
className:
|
|
401
|
+
className: W,
|
|
387
402
|
children: "Cover Image"
|
|
388
403
|
}), /* @__PURE__ */ x(c, {
|
|
389
404
|
variant: "cover",
|
|
390
|
-
value:
|
|
391
|
-
onChange: (e) =>
|
|
405
|
+
value: I.coverImageUrl,
|
|
406
|
+
onChange: (e) => K({ coverImageUrl: e }),
|
|
392
407
|
label: "Event cover image"
|
|
393
408
|
})] })
|
|
394
409
|
]
|
|
395
410
|
}),
|
|
396
|
-
|
|
411
|
+
k === "speakers" && /* @__PURE__ */ S("div", {
|
|
397
412
|
className: "space-y-3",
|
|
398
|
-
children: [
|
|
413
|
+
children: [L.map((e, t) => /* @__PURE__ */ x("div", {
|
|
399
414
|
onDragOver: (e) => e.preventDefault(),
|
|
400
415
|
onDragEnter: () => {
|
|
401
|
-
|
|
416
|
+
P !== null && P !== t && (J(P, t), F(t));
|
|
402
417
|
},
|
|
403
|
-
className: n("rounded-xl border border-border-seam bg-bg-surface p-4 shadow-pop transition-all",
|
|
418
|
+
className: n("rounded-xl border border-border-seam bg-bg-surface p-4 shadow-pop transition-all", P === t && "opacity-60 ring-2 ring-[var(--color-focus-ring)]"),
|
|
404
419
|
children: /* @__PURE__ */ S("div", {
|
|
405
420
|
className: "flex items-start gap-3",
|
|
406
421
|
children: [
|
|
407
422
|
/* @__PURE__ */ x("button", {
|
|
408
423
|
type: "button",
|
|
409
424
|
draggable: !0,
|
|
410
|
-
onDragStart: () =>
|
|
411
|
-
onDragEnd: () =>
|
|
425
|
+
onDragStart: () => F(t),
|
|
426
|
+
onDragEnd: () => F(null),
|
|
412
427
|
"aria-label": `Drag to reorder speaker ${t + 1}`,
|
|
413
428
|
className: "mt-2 cursor-grab touch-none text-text-secondary hover:text-text-primary active:cursor-grabbing",
|
|
414
|
-
children: /* @__PURE__ */ x(
|
|
429
|
+
children: /* @__PURE__ */ x(p, { className: "h-4 w-4" })
|
|
415
430
|
}),
|
|
416
431
|
/* @__PURE__ */ x(c, {
|
|
417
432
|
variant: "avatar",
|
|
418
433
|
value: e.avatarUrl,
|
|
419
434
|
name: e.name,
|
|
420
435
|
label: `Speaker ${t + 1} avatar`,
|
|
421
|
-
onChange: (t) =>
|
|
436
|
+
onChange: (t) => q(e.id, { avatarUrl: t })
|
|
422
437
|
}),
|
|
423
438
|
/* @__PURE__ */ S("div", {
|
|
424
439
|
className: "min-w-0 flex-1 space-y-2",
|
|
@@ -426,22 +441,22 @@ var fe = y`
|
|
|
426
441
|
type: "text",
|
|
427
442
|
placeholder: "Full name",
|
|
428
443
|
value: e.name,
|
|
429
|
-
onChange: (t) =>
|
|
430
|
-
className: n(
|
|
444
|
+
onChange: (t) => q(e.id, { name: t.target.value }),
|
|
445
|
+
className: n(U, "font-medium")
|
|
431
446
|
}), /* @__PURE__ */ S("div", {
|
|
432
447
|
className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
|
|
433
448
|
children: [/* @__PURE__ */ x("input", {
|
|
434
449
|
type: "text",
|
|
435
450
|
placeholder: "Title (e.g. VP Marketing)",
|
|
436
451
|
value: e.title,
|
|
437
|
-
onChange: (t) =>
|
|
438
|
-
className:
|
|
452
|
+
onChange: (t) => q(e.id, { title: t.target.value }),
|
|
453
|
+
className: U
|
|
439
454
|
}), /* @__PURE__ */ x("input", {
|
|
440
455
|
type: "text",
|
|
441
456
|
placeholder: "Company",
|
|
442
457
|
value: e.company,
|
|
443
|
-
onChange: (t) =>
|
|
444
|
-
className:
|
|
458
|
+
onChange: (t) => q(e.id, { company: t.target.value }),
|
|
459
|
+
className: U
|
|
445
460
|
})]
|
|
446
461
|
})]
|
|
447
462
|
}),
|
|
@@ -450,7 +465,7 @@ var fe = y`
|
|
|
450
465
|
children: [
|
|
451
466
|
/* @__PURE__ */ x("button", {
|
|
452
467
|
type: "button",
|
|
453
|
-
onClick: () =>
|
|
468
|
+
onClick: () => J(t, t - 1),
|
|
454
469
|
disabled: t === 0,
|
|
455
470
|
"aria-label": "Move speaker up",
|
|
456
471
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary disabled:opacity-30",
|
|
@@ -458,15 +473,15 @@ var fe = y`
|
|
|
458
473
|
}),
|
|
459
474
|
/* @__PURE__ */ x("button", {
|
|
460
475
|
type: "button",
|
|
461
|
-
onClick: () =>
|
|
462
|
-
disabled: t ===
|
|
476
|
+
onClick: () => J(t, t + 1),
|
|
477
|
+
disabled: t === L.length - 1,
|
|
463
478
|
"aria-label": "Move speaker down",
|
|
464
479
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary disabled:opacity-30",
|
|
465
480
|
children: /* @__PURE__ */ x(re, { className: "h-4 w-4" })
|
|
466
481
|
}),
|
|
467
|
-
|
|
482
|
+
L.length > 1 && /* @__PURE__ */ x("button", {
|
|
468
483
|
type: "button",
|
|
469
|
-
onClick: () =>
|
|
484
|
+
onClick: () => Se(e.id),
|
|
470
485
|
"aria-label": "Remove speaker",
|
|
471
486
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-status-error-text",
|
|
472
487
|
children: /* @__PURE__ */ x(_, { className: "h-4 w-4" })
|
|
@@ -477,52 +492,52 @@ var fe = y`
|
|
|
477
492
|
})
|
|
478
493
|
}, e.id)), /* @__PURE__ */ S("button", {
|
|
479
494
|
type: "button",
|
|
480
|
-
onClick:
|
|
495
|
+
onClick: xe,
|
|
481
496
|
className: "inline-flex min-h-[40px] items-center gap-2 rounded-md border border-dashed border-border-seam px-3 py-2 text-sm font-medium text-primary transition-colors hover:bg-action-primary-bg/5",
|
|
482
497
|
children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Add Speaker"]
|
|
483
498
|
})]
|
|
484
499
|
}),
|
|
485
|
-
|
|
500
|
+
k === "agenda" && /* @__PURE__ */ S("div", {
|
|
486
501
|
className: "space-y-3",
|
|
487
|
-
children: [
|
|
502
|
+
children: [z.map((e) => /* @__PURE__ */ S("div", {
|
|
488
503
|
className: "flex flex-wrap items-start gap-3 rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
489
504
|
children: [
|
|
490
505
|
/* @__PURE__ */ x("div", {
|
|
491
506
|
className: "flex items-center gap-1 pt-2 text-text-secondary",
|
|
492
|
-
children: /* @__PURE__ */ x(
|
|
507
|
+
children: /* @__PURE__ */ x(ae, { className: "h-3.5 w-3.5" })
|
|
493
508
|
}),
|
|
494
509
|
/* @__PURE__ */ x("input", {
|
|
495
510
|
type: "time",
|
|
496
511
|
value: e.time,
|
|
497
|
-
onChange: (t) =>
|
|
512
|
+
onChange: (t) => B((n) => n.map((n) => n.id === e.id ? {
|
|
498
513
|
...n,
|
|
499
514
|
time: t.target.value
|
|
500
515
|
} : n)),
|
|
501
|
-
className: n(
|
|
516
|
+
className: n(U, "w-28")
|
|
502
517
|
}),
|
|
503
518
|
/* @__PURE__ */ x("input", {
|
|
504
519
|
type: "text",
|
|
505
520
|
placeholder: "Session title",
|
|
506
521
|
value: e.title,
|
|
507
|
-
onChange: (t) =>
|
|
522
|
+
onChange: (t) => B((n) => n.map((n) => n.id === e.id ? {
|
|
508
523
|
...n,
|
|
509
524
|
title: t.target.value
|
|
510
525
|
} : n)),
|
|
511
|
-
className: n(
|
|
526
|
+
className: n(U, "min-w-[10rem] flex-1")
|
|
512
527
|
}),
|
|
513
528
|
/* @__PURE__ */ x("input", {
|
|
514
529
|
type: "text",
|
|
515
530
|
placeholder: "Speaker",
|
|
516
531
|
value: e.speaker,
|
|
517
|
-
onChange: (t) =>
|
|
532
|
+
onChange: (t) => B((n) => n.map((n) => n.id === e.id ? {
|
|
518
533
|
...n,
|
|
519
534
|
speaker: t.target.value
|
|
520
535
|
} : n)),
|
|
521
|
-
className: n(
|
|
536
|
+
className: n(U, "w-40")
|
|
522
537
|
}),
|
|
523
|
-
|
|
538
|
+
z.length > 1 && /* @__PURE__ */ x("button", {
|
|
524
539
|
type: "button",
|
|
525
|
-
onClick: () =>
|
|
540
|
+
onClick: () => we(e.id),
|
|
526
541
|
"aria-label": "Remove agenda item",
|
|
527
542
|
className: "rounded-md p-2 text-text-secondary hover:bg-bg-sunken hover:text-status-error-text",
|
|
528
543
|
children: /* @__PURE__ */ x(_, { className: "h-4 w-4" })
|
|
@@ -530,33 +545,33 @@ var fe = y`
|
|
|
530
545
|
]
|
|
531
546
|
}, e.id)), /* @__PURE__ */ S("button", {
|
|
532
547
|
type: "button",
|
|
533
|
-
onClick:
|
|
548
|
+
onClick: Ce,
|
|
534
549
|
className: "inline-flex min-h-[40px] items-center gap-2 rounded-md border border-dashed border-border-seam px-3 py-2 text-sm font-medium text-primary transition-colors hover:bg-action-primary-bg/5",
|
|
535
550
|
children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Add Agenda Item"]
|
|
536
551
|
})]
|
|
537
552
|
}),
|
|
538
|
-
|
|
553
|
+
k === "marketing" && /* @__PURE__ */ S("div", {
|
|
539
554
|
className: "space-y-5",
|
|
540
555
|
children: [
|
|
541
556
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
542
|
-
className:
|
|
557
|
+
className: W,
|
|
543
558
|
children: "Marketing Budget ($)"
|
|
544
559
|
}), /* @__PURE__ */ x("input", {
|
|
545
560
|
type: "number",
|
|
546
|
-
value:
|
|
547
|
-
onChange: (e) =>
|
|
561
|
+
value: V.budget,
|
|
562
|
+
onChange: (e) => H((t) => ({
|
|
548
563
|
...t,
|
|
549
564
|
budget: e.target.value
|
|
550
565
|
})),
|
|
551
566
|
placeholder: "5000",
|
|
552
|
-
className:
|
|
567
|
+
className: U
|
|
553
568
|
})] }),
|
|
554
569
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
555
|
-
className:
|
|
570
|
+
className: W,
|
|
556
571
|
children: "Tags"
|
|
557
572
|
}), /* @__PURE__ */ x(s, {
|
|
558
|
-
value:
|
|
559
|
-
onChange: (e) =>
|
|
573
|
+
value: V.tags,
|
|
574
|
+
onChange: (e) => H((t) => ({
|
|
560
575
|
...t,
|
|
561
576
|
tags: e
|
|
562
577
|
})),
|
|
@@ -583,8 +598,8 @@ var fe = y`
|
|
|
583
598
|
].map((e) => /* @__PURE__ */ S("label", {
|
|
584
599
|
className: "flex min-h-[42px] cursor-pointer items-center justify-between gap-3 rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
585
600
|
children: [/* @__PURE__ */ x("span", { children: e.label }), /* @__PURE__ */ x(C, {
|
|
586
|
-
checked:
|
|
587
|
-
onCheckedChange: (t) =>
|
|
601
|
+
checked: V[e.key],
|
|
602
|
+
onCheckedChange: (t) => H((n) => ({
|
|
588
603
|
...n,
|
|
589
604
|
[e.key]: t
|
|
590
605
|
}))
|
|
@@ -598,7 +613,7 @@ var fe = y`
|
|
|
598
613
|
}), /* @__PURE__ */ S("div", {
|
|
599
614
|
className: "space-y-4",
|
|
600
615
|
children: [/* @__PURE__ */ S("div", {
|
|
601
|
-
className:
|
|
616
|
+
className: G,
|
|
602
617
|
children: [/* @__PURE__ */ S("div", {
|
|
603
618
|
className: "mb-4 flex items-center gap-2",
|
|
604
619
|
children: [/* @__PURE__ */ x("span", {
|
|
@@ -613,16 +628,16 @@ var fe = y`
|
|
|
613
628
|
children: [
|
|
614
629
|
/* @__PURE__ */ S("div", { children: [
|
|
615
630
|
/* @__PURE__ */ x("label", {
|
|
616
|
-
className:
|
|
631
|
+
className: W,
|
|
617
632
|
children: "Capacity"
|
|
618
633
|
}),
|
|
619
634
|
/* @__PURE__ */ x("input", {
|
|
620
635
|
type: "number",
|
|
621
636
|
min: 0,
|
|
622
|
-
value:
|
|
623
|
-
onChange: (e) =>
|
|
637
|
+
value: I.maxCapacity,
|
|
638
|
+
onChange: (e) => K({ maxCapacity: e.target.value }),
|
|
624
639
|
placeholder: "500",
|
|
625
|
-
className:
|
|
640
|
+
className: U
|
|
626
641
|
}),
|
|
627
642
|
/* @__PURE__ */ x("p", {
|
|
628
643
|
className: "mt-1 text-xs text-text-secondary",
|
|
@@ -630,7 +645,7 @@ var fe = y`
|
|
|
630
645
|
})
|
|
631
646
|
] }),
|
|
632
647
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("label", {
|
|
633
|
-
className:
|
|
648
|
+
className: W,
|
|
634
649
|
children: [
|
|
635
650
|
"Registration URL",
|
|
636
651
|
" ",
|
|
@@ -641,10 +656,10 @@ var fe = y`
|
|
|
641
656
|
]
|
|
642
657
|
}), /* @__PURE__ */ x("input", {
|
|
643
658
|
type: "url",
|
|
644
|
-
value:
|
|
645
|
-
onChange: (e) =>
|
|
659
|
+
value: I.registrationUrl,
|
|
660
|
+
onChange: (e) => K({ registrationUrl: e.target.value }),
|
|
646
661
|
placeholder: "https://…",
|
|
647
|
-
className:
|
|
662
|
+
className: U
|
|
648
663
|
})] }),
|
|
649
664
|
/* @__PURE__ */ S("div", {
|
|
650
665
|
className: "flex items-center justify-between gap-3 rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5",
|
|
@@ -658,32 +673,32 @@ var fe = y`
|
|
|
658
673
|
children: "Auto-send registrants a confirmation."
|
|
659
674
|
})] })]
|
|
660
675
|
}), /* @__PURE__ */ x(C, {
|
|
661
|
-
checked:
|
|
662
|
-
onCheckedChange: (e) =>
|
|
676
|
+
checked: I.confirmationEmail,
|
|
677
|
+
onCheckedChange: (e) => K({ confirmationEmail: e })
|
|
663
678
|
})]
|
|
664
679
|
})
|
|
665
680
|
]
|
|
666
681
|
})]
|
|
667
682
|
}), /* @__PURE__ */ S("div", {
|
|
668
|
-
className:
|
|
683
|
+
className: G,
|
|
669
684
|
children: [/* @__PURE__ */ S("div", {
|
|
670
685
|
className: "mb-4 flex items-center gap-2",
|
|
671
686
|
children: [/* @__PURE__ */ x("span", {
|
|
672
687
|
className: "flex h-8 w-8 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
|
|
673
|
-
children: /* @__PURE__ */ x(
|
|
688
|
+
children: /* @__PURE__ */ x(d, { className: "h-4 w-4" })
|
|
674
689
|
}), /* @__PURE__ */ x("h3", {
|
|
675
690
|
className: "text-sm font-semibold text-text-primary",
|
|
676
691
|
children: "Event Page Preview"
|
|
677
692
|
})]
|
|
678
693
|
}), /* @__PURE__ */ x(te, {
|
|
679
|
-
title:
|
|
680
|
-
typeLabel:
|
|
681
|
-
startDate:
|
|
682
|
-
timezone:
|
|
683
|
-
locationMode:
|
|
684
|
-
location:
|
|
685
|
-
virtualUrl:
|
|
686
|
-
coverImageUrl:
|
|
694
|
+
title: I.name,
|
|
695
|
+
typeLabel: be,
|
|
696
|
+
startDate: I.startDate,
|
|
697
|
+
timezone: I.timezone,
|
|
698
|
+
locationMode: I.locationMode,
|
|
699
|
+
location: I.location,
|
|
700
|
+
virtualUrl: I.virtualUrl,
|
|
701
|
+
coverImageUrl: I.coverImageUrl
|
|
687
702
|
})]
|
|
688
703
|
})]
|
|
689
704
|
})]
|
|
@@ -702,7 +717,7 @@ var fe = y`
|
|
|
702
717
|
children: [
|
|
703
718
|
/* @__PURE__ */ x("button", {
|
|
704
719
|
type: "button",
|
|
705
|
-
onClick: () =>
|
|
720
|
+
onClick: () => f(r(h, "events")),
|
|
706
721
|
disabled: $,
|
|
707
722
|
className: "min-h-[44px] rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
708
723
|
children: "Cancel"
|
|
@@ -714,7 +729,7 @@ var fe = y`
|
|
|
714
729
|
},
|
|
715
730
|
disabled: $,
|
|
716
731
|
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md border border-border-seam bg-bg-surface px-4 py-2 text-sm font-medium text-text-primary shadow-pop hover:bg-bg-sunken disabled:opacity-60",
|
|
717
|
-
children: [
|
|
732
|
+
children: [M === "draft" ? /* @__PURE__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(ce, { className: "h-4 w-4" }), M === "draft" ? "Saving…" : "Save Draft"]
|
|
718
733
|
}),
|
|
719
734
|
/* @__PURE__ */ S("button", {
|
|
720
735
|
type: "button",
|
|
@@ -723,7 +738,7 @@ var fe = y`
|
|
|
723
738
|
},
|
|
724
739
|
disabled: $,
|
|
725
740
|
className: "inline-flex min-h-[44px] 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 disabled:opacity-60",
|
|
726
|
-
children: [
|
|
741
|
+
children: [M === "publish" ? /* @__PURE__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(se, { className: "h-4 w-4" }), M === "publish" ? "Publishing…" : "Publish Event"]
|
|
727
742
|
})
|
|
728
743
|
]
|
|
729
744
|
})]
|
|
@@ -732,6 +747,6 @@ var fe = y`
|
|
|
732
747
|
});
|
|
733
748
|
};
|
|
734
749
|
//#endregion
|
|
735
|
-
export {
|
|
750
|
+
export { D as CreateEventPage };
|
|
736
751
|
|
|
737
752
|
//# sourceMappingURL=CreateEventPage.js.map
|