@burdenoff/microfe-headshotmarketing 2026.625.1 → 2026.625.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/headshotmarketing/pages/HomePage.js +176 -175
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +234 -218
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +162 -147
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +138 -99
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +133 -118
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +101 -99
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +40 -38
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +98 -96
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +95 -83
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +98 -59
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +105 -94
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +43 -41
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +155 -139
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +266 -261
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +201 -173
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +85 -91
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +160 -147
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +136 -134
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +82 -74
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +58 -46
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +39 -37
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +82 -75
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +227 -212
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +62 -61
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +75 -74
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +162 -120
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +58 -51
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +173 -157
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +344 -339
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +100 -87
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +162 -147
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +91 -83
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +56 -28
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +199 -184
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +118 -111
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +27 -25
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +55 -54
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +149 -137
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +27 -26
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +104 -76
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,9 +7,10 @@ import { HeadshotmarketingEventType as a } from "../../../generated/wspace-types
|
|
|
7
7
|
import { useState as o } from "react";
|
|
8
8
|
import { ArrowLeft as s, Clock as c, Plus as l, Save as u, Trash2 as d, User as f } from "lucide-react";
|
|
9
9
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
|
+
import { PagePurpose as h } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/headshotmarketing/pages/events/CreateEventPage.tsx
|
|
11
|
-
var
|
|
12
|
-
let { navigate:
|
|
12
|
+
var g = () => {
|
|
13
|
+
let { navigate: g } = e(), [_, { loading: v, error: y }] = n(), [b, x] = o("basic"), [S, C] = o(null), [w, T] = o({
|
|
13
14
|
name: "",
|
|
14
15
|
description: "",
|
|
15
16
|
type: "webinar",
|
|
@@ -19,23 +20,23 @@ var h = () => {
|
|
|
19
20
|
isVirtual: !0,
|
|
20
21
|
maxCapacity: "",
|
|
21
22
|
registrationUrl: ""
|
|
22
|
-
}), [
|
|
23
|
+
}), [E, D] = o([{
|
|
23
24
|
id: "1",
|
|
24
25
|
name: "",
|
|
25
26
|
title: "",
|
|
26
27
|
company: ""
|
|
27
|
-
}]), [
|
|
28
|
+
}]), [O, k] = o([{
|
|
28
29
|
id: "1",
|
|
29
30
|
time: "09:00",
|
|
30
31
|
title: "",
|
|
31
32
|
speaker: ""
|
|
32
|
-
}]), [
|
|
33
|
+
}]), [A, j] = o({
|
|
33
34
|
budget: "",
|
|
34
35
|
tags: "",
|
|
35
36
|
emailCampaign: !1,
|
|
36
37
|
socialPromotion: !1,
|
|
37
38
|
paidAds: !1
|
|
38
|
-
}),
|
|
39
|
+
}), M = [
|
|
39
40
|
{
|
|
40
41
|
key: "basic",
|
|
41
42
|
label: "Basic Info"
|
|
@@ -52,70 +53,70 @@ var h = () => {
|
|
|
52
53
|
key: "marketing",
|
|
53
54
|
label: "Marketing"
|
|
54
55
|
}
|
|
55
|
-
],
|
|
56
|
-
|
|
56
|
+
], N = "w-full 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)]", P = () => {
|
|
57
|
+
D((e) => [...e, {
|
|
57
58
|
id: String(Date.now()),
|
|
58
59
|
name: "",
|
|
59
60
|
title: "",
|
|
60
61
|
company: ""
|
|
61
62
|
}]);
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
63
|
+
}, F = (e) => {
|
|
64
|
+
D((t) => t.filter((t) => t.id !== e));
|
|
65
|
+
}, I = () => {
|
|
66
|
+
k((e) => [...e, {
|
|
66
67
|
id: String(Date.now()),
|
|
67
68
|
time: "",
|
|
68
69
|
title: "",
|
|
69
70
|
speaker: ""
|
|
70
71
|
}]);
|
|
71
|
-
}, I = (e) => {
|
|
72
|
-
O((t) => t.filter((t) => t.id !== e));
|
|
73
72
|
}, L = (e) => {
|
|
73
|
+
k((t) => t.filter((t) => t.id !== e));
|
|
74
|
+
}, R = (e) => {
|
|
74
75
|
switch (e) {
|
|
75
76
|
case "conference": return a.Conference;
|
|
76
77
|
case "workshop": return a.Workshop;
|
|
77
78
|
case "meetup": return a.Meetup;
|
|
78
79
|
default: return a.Webinar;
|
|
79
80
|
}
|
|
80
|
-
},
|
|
81
|
-
if (!
|
|
82
|
-
|
|
81
|
+
}, z = async () => {
|
|
82
|
+
if (!w.name.trim()) {
|
|
83
|
+
C("Event name is required.");
|
|
83
84
|
return;
|
|
84
85
|
}
|
|
85
|
-
if (!
|
|
86
|
-
|
|
86
|
+
if (!w.startDate || !w.endDate) {
|
|
87
|
+
C("Start and end date are required.");
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
|
-
let e = new Date(
|
|
90
|
+
let e = new Date(w.startDate), n = new Date(w.endDate);
|
|
90
91
|
if (Number.isNaN(e.getTime()) || Number.isNaN(n.getTime())) {
|
|
91
|
-
|
|
92
|
+
C("Start and end date must be valid.");
|
|
92
93
|
return;
|
|
93
94
|
}
|
|
94
95
|
if (n.getTime() < e.getTime()) {
|
|
95
|
-
|
|
96
|
+
C("End date must be after start date.");
|
|
96
97
|
return;
|
|
97
98
|
}
|
|
98
|
-
|
|
99
|
-
let r =
|
|
100
|
-
title:
|
|
101
|
-
description:
|
|
102
|
-
type:
|
|
99
|
+
C(null);
|
|
100
|
+
let r = A.tags.split(",").map((e) => e.trim()).filter(Boolean), i = {
|
|
101
|
+
title: w.name.trim(),
|
|
102
|
+
description: w.description || null,
|
|
103
|
+
type: R(w.type),
|
|
103
104
|
startDate: e.toISOString(),
|
|
104
105
|
endDate: n.toISOString(),
|
|
105
|
-
location:
|
|
106
|
-
virtualUrl:
|
|
107
|
-
maxAttendees:
|
|
106
|
+
location: w.isVirtual ? null : w.location || null,
|
|
107
|
+
virtualUrl: w.isVirtual && w.location || null,
|
|
108
|
+
maxAttendees: w.maxCapacity ? Number(w.maxCapacity) : null,
|
|
108
109
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
109
110
|
tags: r,
|
|
110
111
|
metadata: {
|
|
111
|
-
registrationUrl:
|
|
112
|
-
speakers:
|
|
113
|
-
agenda:
|
|
114
|
-
marketing:
|
|
112
|
+
registrationUrl: w.registrationUrl || null,
|
|
113
|
+
speakers: E,
|
|
114
|
+
agenda: O,
|
|
115
|
+
marketing: A
|
|
115
116
|
}
|
|
116
117
|
};
|
|
117
118
|
try {
|
|
118
|
-
await
|
|
119
|
+
await _({
|
|
119
120
|
variables: { input: i },
|
|
120
121
|
refetchQueries: [{
|
|
121
122
|
query: t,
|
|
@@ -125,358 +126,362 @@ var h = () => {
|
|
|
125
126
|
}
|
|
126
127
|
}],
|
|
127
128
|
awaitRefetchQueries: !0
|
|
128
|
-
}),
|
|
129
|
+
}), g("events");
|
|
129
130
|
} catch (e) {
|
|
130
|
-
|
|
131
|
+
C(e instanceof Error ? e.message : "Failed to create event.");
|
|
131
132
|
}
|
|
132
|
-
},
|
|
133
|
+
}, B = S ?? y?.message ?? null;
|
|
133
134
|
return /* @__PURE__ */ m(i, {
|
|
134
135
|
title: "Create Event",
|
|
135
136
|
description: "Set up a new marketing event",
|
|
136
137
|
actions: /* @__PURE__ */ m("button", {
|
|
137
|
-
onClick: () =>
|
|
138
|
+
onClick: () => g("events"),
|
|
138
139
|
className: "inline-flex 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",
|
|
139
140
|
children: [/* @__PURE__ */ p(s, { className: "h-4 w-4" }), "Back"]
|
|
140
141
|
}),
|
|
141
|
-
children: [
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
className: "
|
|
145
|
-
children:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
type: "text",
|
|
164
|
-
value: C.name,
|
|
165
|
-
onChange: (e) => w((t) => ({
|
|
166
|
-
...t,
|
|
167
|
-
name: e.target.value
|
|
168
|
-
})),
|
|
169
|
-
placeholder: "Enter event name",
|
|
170
|
-
className: M
|
|
171
|
-
})] }),
|
|
172
|
-
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
173
|
-
className: "block text-sm font-medium text-text-primary mb-1",
|
|
174
|
-
children: "Description"
|
|
175
|
-
}), /* @__PURE__ */ p("textarea", {
|
|
176
|
-
value: C.description,
|
|
177
|
-
onChange: (e) => w((t) => ({
|
|
178
|
-
...t,
|
|
179
|
-
description: e.target.value
|
|
180
|
-
})),
|
|
181
|
-
placeholder: "Describe your event",
|
|
182
|
-
rows: 3,
|
|
183
|
-
className: r(M, "resize-none")
|
|
184
|
-
})] }),
|
|
185
|
-
/* @__PURE__ */ m("div", {
|
|
186
|
-
className: "grid grid-cols-2 gap-4",
|
|
187
|
-
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
188
|
-
className: "block text-sm font-medium text-text-primary mb-1",
|
|
189
|
-
children: "Event Type"
|
|
190
|
-
}), /* @__PURE__ */ m("select", {
|
|
191
|
-
value: C.type,
|
|
192
|
-
onChange: (e) => w((t) => ({
|
|
193
|
-
...t,
|
|
194
|
-
type: e.target.value
|
|
195
|
-
})),
|
|
196
|
-
className: M,
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ p("option", {
|
|
199
|
-
value: "webinar",
|
|
200
|
-
children: "Webinar"
|
|
201
|
-
}),
|
|
202
|
-
/* @__PURE__ */ p("option", {
|
|
203
|
-
value: "conference",
|
|
204
|
-
children: "Conference"
|
|
205
|
-
}),
|
|
206
|
-
/* @__PURE__ */ p("option", {
|
|
207
|
-
value: "workshop",
|
|
208
|
-
children: "Workshop"
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ p("option", {
|
|
211
|
-
value: "meetup",
|
|
212
|
-
children: "Meetup"
|
|
213
|
-
})
|
|
214
|
-
]
|
|
215
|
-
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ p(h, { children: "Set up a marketing event end to end — the basics (name, type, date and location), your speakers and agenda, ticketing, and the channels you'll promote it on. Fill in each tab, then publish to open registration." }),
|
|
144
|
+
/* @__PURE__ */ p("div", {
|
|
145
|
+
className: "border-b border-border-subtle",
|
|
146
|
+
children: /* @__PURE__ */ p("div", {
|
|
147
|
+
className: "flex gap-6",
|
|
148
|
+
children: M.map((e) => /* @__PURE__ */ p("button", {
|
|
149
|
+
onClick: () => x(e.key),
|
|
150
|
+
className: r("pb-3 text-sm font-medium transition-colors border-b-2", b === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
151
|
+
children: e.label
|
|
152
|
+
}, e.key))
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ p("div", {
|
|
156
|
+
className: "max-w-2xl",
|
|
157
|
+
children: /* @__PURE__ */ m("div", {
|
|
158
|
+
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
159
|
+
children: [
|
|
160
|
+
b === "basic" && /* @__PURE__ */ m("div", {
|
|
161
|
+
className: "space-y-4",
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
216
164
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
217
|
-
children: "
|
|
165
|
+
children: "Event Name"
|
|
218
166
|
}), /* @__PURE__ */ p("input", {
|
|
219
|
-
type: "
|
|
220
|
-
value:
|
|
221
|
-
onChange: (e) =>
|
|
167
|
+
type: "text",
|
|
168
|
+
value: w.name,
|
|
169
|
+
onChange: (e) => T((t) => ({
|
|
222
170
|
...t,
|
|
223
|
-
|
|
171
|
+
name: e.target.value
|
|
224
172
|
})),
|
|
225
|
-
placeholder: "
|
|
226
|
-
className:
|
|
227
|
-
})] })
|
|
228
|
-
|
|
229
|
-
/* @__PURE__ */ m("div", {
|
|
230
|
-
className: "grid grid-cols-2 gap-4",
|
|
231
|
-
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
173
|
+
placeholder: "Enter event name",
|
|
174
|
+
className: N
|
|
175
|
+
})] }),
|
|
176
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
232
177
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
233
|
-
children: "
|
|
234
|
-
}), /* @__PURE__ */ p("
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
onChange: (e) => w((t) => ({
|
|
178
|
+
children: "Description"
|
|
179
|
+
}), /* @__PURE__ */ p("textarea", {
|
|
180
|
+
value: w.description,
|
|
181
|
+
onChange: (e) => T((t) => ({
|
|
238
182
|
...t,
|
|
239
|
-
|
|
183
|
+
description: e.target.value
|
|
240
184
|
})),
|
|
241
|
-
|
|
242
|
-
|
|
185
|
+
placeholder: "Describe your event",
|
|
186
|
+
rows: 3,
|
|
187
|
+
className: r(N, "resize-none")
|
|
188
|
+
})] }),
|
|
189
|
+
/* @__PURE__ */ m("div", {
|
|
190
|
+
className: "grid grid-cols-2 gap-4",
|
|
191
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
192
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
193
|
+
children: "Event Type"
|
|
194
|
+
}), /* @__PURE__ */ m("select", {
|
|
195
|
+
value: w.type,
|
|
196
|
+
onChange: (e) => T((t) => ({
|
|
197
|
+
...t,
|
|
198
|
+
type: e.target.value
|
|
199
|
+
})),
|
|
200
|
+
className: N,
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ p("option", {
|
|
203
|
+
value: "webinar",
|
|
204
|
+
children: "Webinar"
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ p("option", {
|
|
207
|
+
value: "conference",
|
|
208
|
+
children: "Conference"
|
|
209
|
+
}),
|
|
210
|
+
/* @__PURE__ */ p("option", {
|
|
211
|
+
value: "workshop",
|
|
212
|
+
children: "Workshop"
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ p("option", {
|
|
215
|
+
value: "meetup",
|
|
216
|
+
children: "Meetup"
|
|
217
|
+
})
|
|
218
|
+
]
|
|
219
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
220
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
221
|
+
children: "Max Capacity"
|
|
222
|
+
}), /* @__PURE__ */ p("input", {
|
|
223
|
+
type: "number",
|
|
224
|
+
value: w.maxCapacity,
|
|
225
|
+
onChange: (e) => T((t) => ({
|
|
226
|
+
...t,
|
|
227
|
+
maxCapacity: e.target.value
|
|
228
|
+
})),
|
|
229
|
+
placeholder: "500",
|
|
230
|
+
className: N
|
|
231
|
+
})] })]
|
|
232
|
+
}),
|
|
233
|
+
/* @__PURE__ */ m("div", {
|
|
234
|
+
className: "grid grid-cols-2 gap-4",
|
|
235
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
236
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
237
|
+
children: "Start Date & Time"
|
|
238
|
+
}), /* @__PURE__ */ p("input", {
|
|
239
|
+
type: "datetime-local",
|
|
240
|
+
value: w.startDate,
|
|
241
|
+
onChange: (e) => T((t) => ({
|
|
242
|
+
...t,
|
|
243
|
+
startDate: e.target.value
|
|
244
|
+
})),
|
|
245
|
+
className: N
|
|
246
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
247
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
248
|
+
children: "End Date & Time"
|
|
249
|
+
}), /* @__PURE__ */ p("input", {
|
|
250
|
+
type: "datetime-local",
|
|
251
|
+
value: w.endDate,
|
|
252
|
+
onChange: (e) => T((t) => ({
|
|
253
|
+
...t,
|
|
254
|
+
endDate: e.target.value
|
|
255
|
+
})),
|
|
256
|
+
className: N
|
|
257
|
+
})] })]
|
|
258
|
+
}),
|
|
259
|
+
/* @__PURE__ */ p("div", {
|
|
260
|
+
className: "flex items-center gap-3",
|
|
261
|
+
children: /* @__PURE__ */ m("label", {
|
|
262
|
+
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
263
|
+
children: [/* @__PURE__ */ p("input", {
|
|
264
|
+
type: "checkbox",
|
|
265
|
+
checked: w.isVirtual,
|
|
266
|
+
onChange: (e) => T((t) => ({
|
|
267
|
+
...t,
|
|
268
|
+
isVirtual: e.target.checked
|
|
269
|
+
})),
|
|
270
|
+
className: "rounded border-border-subtle"
|
|
271
|
+
}), "Virtual Event"]
|
|
272
|
+
})
|
|
273
|
+
}),
|
|
274
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
243
275
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
244
|
-
children: "
|
|
276
|
+
children: w.isVirtual ? "Platform URL" : "Location"
|
|
245
277
|
}), /* @__PURE__ */ p("input", {
|
|
246
|
-
type: "
|
|
247
|
-
value:
|
|
248
|
-
onChange: (e) =>
|
|
278
|
+
type: "text",
|
|
279
|
+
value: w.location,
|
|
280
|
+
onChange: (e) => T((t) => ({
|
|
249
281
|
...t,
|
|
250
|
-
|
|
282
|
+
location: e.target.value
|
|
251
283
|
})),
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
checked: C.isVirtual,
|
|
262
|
-
onChange: (e) => w((t) => ({
|
|
263
|
-
...t,
|
|
264
|
-
isVirtual: e.target.checked
|
|
265
|
-
})),
|
|
266
|
-
className: "rounded border-border-subtle"
|
|
267
|
-
}), "Virtual Event"]
|
|
268
|
-
})
|
|
269
|
-
}),
|
|
270
|
-
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
271
|
-
className: "block text-sm font-medium text-text-primary mb-1",
|
|
272
|
-
children: C.isVirtual ? "Platform URL" : "Location"
|
|
273
|
-
}), /* @__PURE__ */ p("input", {
|
|
274
|
-
type: "text",
|
|
275
|
-
value: C.location,
|
|
276
|
-
onChange: (e) => w((t) => ({
|
|
277
|
-
...t,
|
|
278
|
-
location: e.target.value
|
|
279
|
-
})),
|
|
280
|
-
placeholder: C.isVirtual ? "https://zoom.us/..." : "San Francisco, CA",
|
|
281
|
-
className: M
|
|
282
|
-
})] })
|
|
283
|
-
]
|
|
284
|
-
}),
|
|
285
|
-
y === "speakers" && /* @__PURE__ */ m("div", {
|
|
286
|
-
className: "space-y-4",
|
|
287
|
-
children: [T.map((e, t) => /* @__PURE__ */ m("div", {
|
|
288
|
-
className: "rounded-md border border-border-subtle p-4",
|
|
289
|
-
children: [/* @__PURE__ */ m("div", {
|
|
290
|
-
className: "flex items-center justify-between mb-3",
|
|
284
|
+
placeholder: w.isVirtual ? "https://zoom.us/..." : "San Francisco, CA",
|
|
285
|
+
className: N
|
|
286
|
+
})] })
|
|
287
|
+
]
|
|
288
|
+
}),
|
|
289
|
+
b === "speakers" && /* @__PURE__ */ m("div", {
|
|
290
|
+
className: "space-y-4",
|
|
291
|
+
children: [E.map((e, t) => /* @__PURE__ */ m("div", {
|
|
292
|
+
className: "rounded-md border border-border-subtle p-4",
|
|
291
293
|
children: [/* @__PURE__ */ m("div", {
|
|
292
|
-
className: "flex items-center
|
|
293
|
-
children: [/* @__PURE__ */
|
|
294
|
-
className: "
|
|
295
|
-
children: ["
|
|
294
|
+
className: "flex items-center justify-between mb-3",
|
|
295
|
+
children: [/* @__PURE__ */ m("div", {
|
|
296
|
+
className: "flex items-center gap-2",
|
|
297
|
+
children: [/* @__PURE__ */ p(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ m("span", {
|
|
298
|
+
className: "text-sm font-medium text-text-primary",
|
|
299
|
+
children: ["Speaker ", t + 1]
|
|
300
|
+
})]
|
|
301
|
+
}), E.length > 1 && /* @__PURE__ */ p("button", {
|
|
302
|
+
onClick: () => F(e.id),
|
|
303
|
+
className: "p-1 rounded-md hover:bg-bg-sunken text-text-secondary hover:text-status-error-text",
|
|
304
|
+
children: /* @__PURE__ */ p(d, { className: "h-4 w-4" })
|
|
296
305
|
})]
|
|
297
|
-
}),
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
306
|
+
}), /* @__PURE__ */ m("div", {
|
|
307
|
+
className: "grid grid-cols-3 gap-3",
|
|
308
|
+
children: [
|
|
309
|
+
/* @__PURE__ */ p("input", {
|
|
310
|
+
type: "text",
|
|
311
|
+
placeholder: "Name",
|
|
312
|
+
value: e.name,
|
|
313
|
+
onChange: (t) => D((n) => n.map((n) => n.id === e.id ? {
|
|
314
|
+
...n,
|
|
315
|
+
name: t.target.value
|
|
316
|
+
} : n)),
|
|
317
|
+
className: N
|
|
318
|
+
}),
|
|
319
|
+
/* @__PURE__ */ p("input", {
|
|
320
|
+
type: "text",
|
|
321
|
+
placeholder: "Title",
|
|
322
|
+
value: e.title,
|
|
323
|
+
onChange: (t) => D((n) => n.map((n) => n.id === e.id ? {
|
|
324
|
+
...n,
|
|
325
|
+
title: t.target.value
|
|
326
|
+
} : n)),
|
|
327
|
+
className: N
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ p("input", {
|
|
330
|
+
type: "text",
|
|
331
|
+
placeholder: "Company",
|
|
332
|
+
value: e.company,
|
|
333
|
+
onChange: (t) => D((n) => n.map((n) => n.id === e.id ? {
|
|
334
|
+
...n,
|
|
335
|
+
company: t.target.value
|
|
336
|
+
} : n)),
|
|
337
|
+
className: N
|
|
338
|
+
})
|
|
339
|
+
]
|
|
301
340
|
})]
|
|
302
|
-
}), /* @__PURE__ */ m("
|
|
303
|
-
|
|
341
|
+
}, e.id)), /* @__PURE__ */ m("button", {
|
|
342
|
+
onClick: P,
|
|
343
|
+
className: "inline-flex items-center gap-2 text-sm text-primary hover:underline",
|
|
344
|
+
children: [/* @__PURE__ */ p(l, { className: "h-4 w-4" }), "Add Speaker"]
|
|
345
|
+
})]
|
|
346
|
+
}),
|
|
347
|
+
b === "agenda" && /* @__PURE__ */ m("div", {
|
|
348
|
+
className: "space-y-4",
|
|
349
|
+
children: [O.map((e) => /* @__PURE__ */ m("div", {
|
|
350
|
+
className: "flex items-start gap-3",
|
|
304
351
|
children: [
|
|
352
|
+
/* @__PURE__ */ p("div", {
|
|
353
|
+
className: "flex items-center gap-1 text-text-secondary pt-2",
|
|
354
|
+
children: /* @__PURE__ */ p(c, { className: "h-3.5 w-3.5" })
|
|
355
|
+
}),
|
|
305
356
|
/* @__PURE__ */ p("input", {
|
|
306
|
-
type: "
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
onChange: (t) => E((n) => n.map((n) => n.id === e.id ? {
|
|
357
|
+
type: "time",
|
|
358
|
+
value: e.time,
|
|
359
|
+
onChange: (t) => k((n) => n.map((n) => n.id === e.id ? {
|
|
310
360
|
...n,
|
|
311
|
-
|
|
361
|
+
time: t.target.value
|
|
312
362
|
} : n)),
|
|
313
|
-
className:
|
|
363
|
+
className: r(N, "w-28")
|
|
314
364
|
}),
|
|
315
365
|
/* @__PURE__ */ p("input", {
|
|
316
366
|
type: "text",
|
|
317
|
-
placeholder: "
|
|
367
|
+
placeholder: "Session title",
|
|
318
368
|
value: e.title,
|
|
319
|
-
onChange: (t) =>
|
|
369
|
+
onChange: (t) => k((n) => n.map((n) => n.id === e.id ? {
|
|
320
370
|
...n,
|
|
321
371
|
title: t.target.value
|
|
322
372
|
} : n)),
|
|
323
|
-
className:
|
|
373
|
+
className: r(N, "flex-1")
|
|
324
374
|
}),
|
|
325
375
|
/* @__PURE__ */ p("input", {
|
|
326
376
|
type: "text",
|
|
327
|
-
placeholder: "
|
|
328
|
-
value: e.
|
|
329
|
-
onChange: (t) =>
|
|
377
|
+
placeholder: "Speaker",
|
|
378
|
+
value: e.speaker,
|
|
379
|
+
onChange: (t) => k((n) => n.map((n) => n.id === e.id ? {
|
|
330
380
|
...n,
|
|
331
|
-
|
|
381
|
+
speaker: t.target.value
|
|
332
382
|
} : n)),
|
|
333
|
-
className:
|
|
383
|
+
className: r(N, "w-40")
|
|
384
|
+
}),
|
|
385
|
+
O.length > 1 && /* @__PURE__ */ p("button", {
|
|
386
|
+
onClick: () => L(e.id),
|
|
387
|
+
className: "p-2 rounded-md hover:bg-bg-sunken text-text-secondary hover:text-status-error-text",
|
|
388
|
+
children: /* @__PURE__ */ p(d, { className: "h-4 w-4" })
|
|
334
389
|
})
|
|
335
390
|
]
|
|
391
|
+
}, e.id)), /* @__PURE__ */ m("button", {
|
|
392
|
+
onClick: I,
|
|
393
|
+
className: "inline-flex items-center gap-2 text-sm text-primary hover:underline",
|
|
394
|
+
children: [/* @__PURE__ */ p(l, { className: "h-4 w-4" }), "Add Agenda Item"]
|
|
336
395
|
})]
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
className: "
|
|
340
|
-
children: [/* @__PURE__ */ p(l, { className: "h-4 w-4" }), "Add Speaker"]
|
|
341
|
-
})]
|
|
342
|
-
}),
|
|
343
|
-
y === "agenda" && /* @__PURE__ */ m("div", {
|
|
344
|
-
className: "space-y-4",
|
|
345
|
-
children: [D.map((e) => /* @__PURE__ */ m("div", {
|
|
346
|
-
className: "flex items-start gap-3",
|
|
396
|
+
}),
|
|
397
|
+
b === "marketing" && /* @__PURE__ */ m("div", {
|
|
398
|
+
className: "space-y-4",
|
|
347
399
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
className: "
|
|
350
|
-
children:
|
|
351
|
-
}),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
className:
|
|
360
|
-
}),
|
|
361
|
-
/* @__PURE__ */ p("
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
onChange: (t) => O((n) => n.map((n) => n.id === e.id ? {
|
|
366
|
-
...n,
|
|
367
|
-
title: t.target.value
|
|
368
|
-
} : n)),
|
|
369
|
-
className: r(M, "flex-1")
|
|
370
|
-
}),
|
|
371
|
-
/* @__PURE__ */ p("input", {
|
|
400
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
401
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
402
|
+
children: "Marketing Budget ($)"
|
|
403
|
+
}), /* @__PURE__ */ p("input", {
|
|
404
|
+
type: "number",
|
|
405
|
+
value: A.budget,
|
|
406
|
+
onChange: (e) => j((t) => ({
|
|
407
|
+
...t,
|
|
408
|
+
budget: e.target.value
|
|
409
|
+
})),
|
|
410
|
+
placeholder: "5000",
|
|
411
|
+
className: N
|
|
412
|
+
})] }),
|
|
413
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
414
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
415
|
+
children: "Tags"
|
|
416
|
+
}), /* @__PURE__ */ p("input", {
|
|
372
417
|
type: "text",
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
className:
|
|
380
|
-
}),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
418
|
+
value: A.tags,
|
|
419
|
+
onChange: (e) => j((t) => ({
|
|
420
|
+
...t,
|
|
421
|
+
tags: e.target.value
|
|
422
|
+
})),
|
|
423
|
+
placeholder: "webinar, seo, marketing",
|
|
424
|
+
className: N
|
|
425
|
+
})] }),
|
|
426
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
427
|
+
className: "block text-sm font-medium text-text-primary mb-2",
|
|
428
|
+
children: "Promotion Channels"
|
|
429
|
+
}), /* @__PURE__ */ p("div", {
|
|
430
|
+
className: "space-y-2",
|
|
431
|
+
children: [
|
|
432
|
+
{
|
|
433
|
+
key: "emailCampaign",
|
|
434
|
+
label: "Email Campaign"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
key: "socialPromotion",
|
|
438
|
+
label: "Social Media Promotion"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
key: "paidAds",
|
|
442
|
+
label: "Paid Advertising"
|
|
443
|
+
}
|
|
444
|
+
].map((e) => /* @__PURE__ */ m("label", {
|
|
445
|
+
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
446
|
+
children: [/* @__PURE__ */ p("input", {
|
|
447
|
+
type: "checkbox",
|
|
448
|
+
checked: A[e.key],
|
|
449
|
+
onChange: (t) => j((n) => ({
|
|
450
|
+
...n,
|
|
451
|
+
[e.key]: t.target.checked
|
|
452
|
+
})),
|
|
453
|
+
className: "rounded border-border-subtle"
|
|
454
|
+
}), e.label]
|
|
455
|
+
}, e.key))
|
|
456
|
+
})] })
|
|
386
457
|
]
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
className: "
|
|
390
|
-
children:
|
|
391
|
-
})
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
410
|
-
className: "block text-sm font-medium text-text-primary mb-1",
|
|
411
|
-
children: "Tags"
|
|
412
|
-
}), /* @__PURE__ */ p("input", {
|
|
413
|
-
type: "text",
|
|
414
|
-
value: k.tags,
|
|
415
|
-
onChange: (e) => A((t) => ({
|
|
416
|
-
...t,
|
|
417
|
-
tags: e.target.value
|
|
418
|
-
})),
|
|
419
|
-
placeholder: "webinar, seo, marketing",
|
|
420
|
-
className: M
|
|
421
|
-
})] }),
|
|
422
|
-
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
423
|
-
className: "block text-sm font-medium text-text-primary mb-2",
|
|
424
|
-
children: "Promotion Channels"
|
|
425
|
-
}), /* @__PURE__ */ p("div", {
|
|
426
|
-
className: "space-y-2",
|
|
427
|
-
children: [
|
|
428
|
-
{
|
|
429
|
-
key: "emailCampaign",
|
|
430
|
-
label: "Email Campaign"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
key: "socialPromotion",
|
|
434
|
-
label: "Social Media Promotion"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
key: "paidAds",
|
|
438
|
-
label: "Paid Advertising"
|
|
439
|
-
}
|
|
440
|
-
].map((e) => /* @__PURE__ */ m("label", {
|
|
441
|
-
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
442
|
-
children: [/* @__PURE__ */ p("input", {
|
|
443
|
-
type: "checkbox",
|
|
444
|
-
checked: k[e.key],
|
|
445
|
-
onChange: (t) => A((n) => ({
|
|
446
|
-
...n,
|
|
447
|
-
[e.key]: t.target.checked
|
|
448
|
-
})),
|
|
449
|
-
className: "rounded border-border-subtle"
|
|
450
|
-
}), e.label]
|
|
451
|
-
}, e.key))
|
|
452
|
-
})] })
|
|
453
|
-
]
|
|
454
|
-
}),
|
|
455
|
-
z && /* @__PURE__ */ p("div", {
|
|
456
|
-
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
457
|
-
children: z
|
|
458
|
-
}),
|
|
459
|
-
/* @__PURE__ */ m("div", {
|
|
460
|
-
className: "flex items-center justify-end gap-3 mt-6 pt-4 border-t border-border-subtle",
|
|
461
|
-
children: [/* @__PURE__ */ p("button", {
|
|
462
|
-
onClick: () => h("events"),
|
|
463
|
-
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
464
|
-
children: "Cancel"
|
|
465
|
-
}), /* @__PURE__ */ m("button", {
|
|
466
|
-
onClick: () => {
|
|
467
|
-
R();
|
|
468
|
-
},
|
|
469
|
-
disabled: _,
|
|
470
|
-
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 disabled:opacity-60",
|
|
471
|
-
children: [/* @__PURE__ */ p(u, { className: "h-4 w-4" }), _ ? "Creating..." : "Create Event"]
|
|
472
|
-
})]
|
|
473
|
-
})
|
|
474
|
-
]
|
|
458
|
+
}),
|
|
459
|
+
B && /* @__PURE__ */ p("div", {
|
|
460
|
+
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
461
|
+
children: B
|
|
462
|
+
}),
|
|
463
|
+
/* @__PURE__ */ m("div", {
|
|
464
|
+
className: "flex items-center justify-end gap-3 mt-6 pt-4 border-t border-border-subtle",
|
|
465
|
+
children: [/* @__PURE__ */ p("button", {
|
|
466
|
+
onClick: () => g("events"),
|
|
467
|
+
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
468
|
+
children: "Cancel"
|
|
469
|
+
}), /* @__PURE__ */ m("button", {
|
|
470
|
+
onClick: () => {
|
|
471
|
+
z();
|
|
472
|
+
},
|
|
473
|
+
disabled: v,
|
|
474
|
+
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 disabled:opacity-60",
|
|
475
|
+
children: [/* @__PURE__ */ p(u, { className: "h-4 w-4" }), v ? "Creating..." : "Create Event"]
|
|
476
|
+
})]
|
|
477
|
+
})
|
|
478
|
+
]
|
|
479
|
+
})
|
|
475
480
|
})
|
|
476
|
-
|
|
481
|
+
]
|
|
477
482
|
});
|
|
478
483
|
};
|
|
479
484
|
//#endregion
|
|
480
|
-
export {
|
|
485
|
+
export { g as CreateEventPage };
|
|
481
486
|
|
|
482
487
|
//# sourceMappingURL=CreateEventPage.js.map
|