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