@burdenoff/microfe-headshotmarketing 2026.1124.3 → 2026.1202.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/headshotmarketing/components/ActionMenu.js +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +33 -33
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
- package/dist/headshotmarketing/components/EmptyState.js +35 -15
- package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
- package/dist/headshotmarketing/components/FilterBar.js +2 -2
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +38 -37
- package/dist/headshotmarketing/components/Pagination.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +1 -1
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +10 -10
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +6 -2
|
@@ -5,18 +5,18 @@ import { cn as r, joinPath as i } from "../../utils/helpers.js";
|
|
|
5
5
|
import { PageLayout as a } from "../../components/PageLayout.js";
|
|
6
6
|
import { TagChipsInput as o } from "../../components/TagChipsInput.js";
|
|
7
7
|
import { useHeadshotMarketing as s } from "../../context/HeadshotMarketingContext.js";
|
|
8
|
-
import { useHeadshotmarketingBootstrap as
|
|
8
|
+
import { useHeadshotmarketingBootstrap as c } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
9
9
|
import "../../hooks/index.js";
|
|
10
|
-
import { EventImageUpload as
|
|
11
|
-
import { EventPagePreview as
|
|
12
|
-
import { useMemo as
|
|
13
|
-
import { ArrowLeft as
|
|
14
|
-
import { gql as
|
|
15
|
-
import { useMutation as
|
|
16
|
-
import { jsx as
|
|
17
|
-
import { PagePurpose as
|
|
10
|
+
import { EventImageUpload as l } from "./EventImageUpload.js";
|
|
11
|
+
import { EventPagePreview as ee } from "./EventPagePreview.js";
|
|
12
|
+
import { useMemo as u, useState as d } from "react";
|
|
13
|
+
import { ArrowLeft as te, ChevronDown as ne, ChevronUp as re, Clock as ie, Eye as f, Globe as p, GripVertical as ae, 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
|
+
import { gql as y } from "@apollo/client";
|
|
15
|
+
import { useMutation as b } from "@apollo/client/react";
|
|
16
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
17
|
+
import { PagePurpose as de, Switch as C, ThemedSelect as w } from "@burdenoff/fe-libs/ui";
|
|
18
18
|
// src/headshotmarketing/pages/events/CreateEventPage.tsx
|
|
19
|
-
var
|
|
19
|
+
var fe = y`
|
|
20
20
|
mutation HeadshotmarketingPublishEvent(
|
|
21
21
|
$id: ID!
|
|
22
22
|
$input: HeadshotmarketingUpdateEventInput!
|
|
@@ -26,7 +26,7 @@ var C = v`
|
|
|
26
26
|
status
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`, pe = y`
|
|
30
30
|
mutation HeadshotmarketingCreateEventSpeakerForEvent(
|
|
31
31
|
$input: HeadshotmarketingCreateEventSpeakerInput!
|
|
32
32
|
) {
|
|
@@ -67,23 +67,23 @@ var C = v`
|
|
|
67
67
|
value: "other",
|
|
68
68
|
label: "Other"
|
|
69
69
|
}
|
|
70
|
-
],
|
|
70
|
+
], me = [
|
|
71
71
|
{
|
|
72
72
|
key: "in_person",
|
|
73
73
|
label: "In-person",
|
|
74
|
-
icon:
|
|
74
|
+
icon: h
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
key: "virtual",
|
|
78
78
|
label: "Virtual",
|
|
79
|
-
icon:
|
|
79
|
+
icon: v
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
key: "hybrid",
|
|
83
83
|
label: "Hybrid",
|
|
84
|
-
icon:
|
|
84
|
+
icon: p
|
|
85
85
|
}
|
|
86
|
-
],
|
|
86
|
+
], he = [
|
|
87
87
|
"UTC",
|
|
88
88
|
"America/New_York",
|
|
89
89
|
"America/Chicago",
|
|
@@ -100,7 +100,7 @@ var C = v`
|
|
|
100
100
|
"Asia/Tokyo",
|
|
101
101
|
"Australia/Sydney"
|
|
102
102
|
], E = () => {
|
|
103
|
-
let { navigate:
|
|
103
|
+
let { navigate: p, basePath: h } = s(), { refetch: v } = c(), [y, { error: E }] = e(), [ge] = b(fe), [_e] = b(pe), D = u(() => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC", []), ve = u(() => Array.from(/* @__PURE__ */ new Set([D, ...he])), [D]), [O, k] = d("basic"), [ye, A] = d(null), [j, M] = d(null), [N, P] = d(null), [F, be] = d({
|
|
104
104
|
name: "",
|
|
105
105
|
description: "",
|
|
106
106
|
type: "webinar",
|
|
@@ -114,24 +114,24 @@ var C = v`
|
|
|
114
114
|
registrationUrl: "",
|
|
115
115
|
coverImageUrl: "",
|
|
116
116
|
confirmationEmail: !0
|
|
117
|
-
}), [I, L] =
|
|
117
|
+
}), [I, L] = d([{
|
|
118
118
|
id: "1",
|
|
119
119
|
name: "",
|
|
120
120
|
title: "",
|
|
121
121
|
company: "",
|
|
122
122
|
avatarUrl: ""
|
|
123
|
-
}]), [R, z] =
|
|
123
|
+
}]), [R, z] = d([{
|
|
124
124
|
id: "1",
|
|
125
125
|
time: "09:00",
|
|
126
126
|
title: "",
|
|
127
127
|
speaker: ""
|
|
128
|
-
}]), [B, V] =
|
|
128
|
+
}]), [B, V] = d({
|
|
129
129
|
budget: "",
|
|
130
130
|
tags: [],
|
|
131
131
|
emailCampaign: !1,
|
|
132
132
|
socialPromotion: !1,
|
|
133
133
|
paidAds: !1
|
|
134
|
-
}),
|
|
134
|
+
}), xe = [
|
|
135
135
|
{
|
|
136
136
|
key: "basic",
|
|
137
137
|
label: "Basic Info"
|
|
@@ -148,28 +148,28 @@ var C = v`
|
|
|
148
148
|
key: "marketing",
|
|
149
149
|
label: "Marketing"
|
|
150
150
|
}
|
|
151
|
-
], H = "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)]", U = "block text-sm font-medium text-text-primary mb-1", W = "rounded-xl border border-border-seam bg-gloss-card p-5 shadow-pop", G = (e) =>
|
|
151
|
+
], H = "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)]", U = "block text-sm font-medium text-text-primary mb-1", W = "rounded-xl border border-border-seam bg-gloss-card p-5 shadow-pop", G = (e) => be((t) => ({
|
|
152
152
|
...t,
|
|
153
153
|
...e
|
|
154
|
-
})),
|
|
154
|
+
})), Se = u(() => T.find((e) => e.value === F.type)?.label ?? "Event", [F.type]), Ce = () => L((e) => [...e, {
|
|
155
155
|
id: String(Date.now()),
|
|
156
156
|
name: "",
|
|
157
157
|
title: "",
|
|
158
158
|
company: "",
|
|
159
159
|
avatarUrl: ""
|
|
160
|
-
}]),
|
|
160
|
+
}]), we = (e) => L((t) => t.filter((t) => t.id !== e)), K = (e, t) => L((n) => n.map((n) => n.id === e ? {
|
|
161
161
|
...n,
|
|
162
162
|
...t
|
|
163
|
-
} : n)),
|
|
163
|
+
} : n)), q = (e, t) => L((n) => {
|
|
164
164
|
if (e === t || t < 0 || t >= n.length) return n;
|
|
165
165
|
let r = [...n], [i] = r.splice(e, 1);
|
|
166
166
|
return r.splice(t, 0, i), r;
|
|
167
|
-
}),
|
|
167
|
+
}), Te = () => z((e) => [...e, {
|
|
168
168
|
id: String(Date.now()),
|
|
169
169
|
time: "",
|
|
170
170
|
title: "",
|
|
171
171
|
speaker: ""
|
|
172
|
-
}]),
|
|
172
|
+
}]), J = (e) => z((t) => t.filter((t) => t.id !== e)), Ee = (e) => {
|
|
173
173
|
switch (e) {
|
|
174
174
|
case "conference": return n.Conference;
|
|
175
175
|
case "workshop": return n.Workshop;
|
|
@@ -202,7 +202,7 @@ var C = v`
|
|
|
202
202
|
let a = F.locationMode === "virtual", o = F.locationMode === "in_person", s = {
|
|
203
203
|
title: F.name.trim(),
|
|
204
204
|
description: F.description || null,
|
|
205
|
-
type:
|
|
205
|
+
type: Ee(F.type),
|
|
206
206
|
startDate: n.toISOString(),
|
|
207
207
|
endDate: r.toISOString(),
|
|
208
208
|
location: a ? null : F.location.trim() || null,
|
|
@@ -226,10 +226,10 @@ var C = v`
|
|
|
226
226
|
};
|
|
227
227
|
M(e);
|
|
228
228
|
try {
|
|
229
|
-
let n = (await
|
|
229
|
+
let n = (await y({ variables: { input: s } })).data?.headshotmarketingCreateEvent.id;
|
|
230
230
|
if (n) {
|
|
231
231
|
let e = I.filter((e) => e.name.trim());
|
|
232
|
-
for (let [t, r] of e.entries()) await
|
|
232
|
+
for (let [t, r] of e.entries()) await _e({ variables: { input: {
|
|
233
233
|
eventId: n,
|
|
234
234
|
name: r.name.trim(),
|
|
235
235
|
title: r.title.trim() || null,
|
|
@@ -238,114 +238,114 @@ var C = v`
|
|
|
238
238
|
sortOrder: t
|
|
239
239
|
} } });
|
|
240
240
|
}
|
|
241
|
-
e === "publish" && n && await
|
|
241
|
+
e === "publish" && n && await ge({ variables: {
|
|
242
242
|
id: n,
|
|
243
243
|
input: { status: t.Published }
|
|
244
|
-
} }), await
|
|
244
|
+
} }), await v(), p(i(h, "events"));
|
|
245
245
|
} catch (e) {
|
|
246
246
|
A(e instanceof Error ? e.message : "Failed to save event.");
|
|
247
247
|
} finally {
|
|
248
248
|
M(null);
|
|
249
249
|
}
|
|
250
|
-
}, X =
|
|
251
|
-
return /* @__PURE__ */
|
|
250
|
+
}, X = ye ?? E?.message ?? null, Z = F.locationMode !== "virtual", Q = F.locationMode !== "in_person", $ = j !== null;
|
|
251
|
+
return /* @__PURE__ */ S(a, {
|
|
252
252
|
title: "Create Event",
|
|
253
253
|
description: "Set up a new marketing event",
|
|
254
|
-
actions: /* @__PURE__ */
|
|
255
|
-
onClick: () =>
|
|
254
|
+
actions: /* @__PURE__ */ S("button", {
|
|
255
|
+
onClick: () => p(i(h, "events")),
|
|
256
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",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ x(te, { className: "h-4 w-4" }), "Back to Events"]
|
|
258
258
|
}),
|
|
259
259
|
children: [
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ x(de, { 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. Save a draft to keep editing, or publish to open registration. The live preview on the right updates as you type." }),
|
|
261
|
+
/* @__PURE__ */ S("div", {
|
|
262
262
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ S("div", {
|
|
264
264
|
className: "space-y-4 lg:col-span-2",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ x("div", {
|
|
266
266
|
className: "border-b border-border-subtle",
|
|
267
|
-
children: /* @__PURE__ */
|
|
267
|
+
children: /* @__PURE__ */ x("div", {
|
|
268
268
|
className: "flex flex-nowrap gap-6 overflow-x-auto",
|
|
269
|
-
children:
|
|
269
|
+
children: xe.map((e) => /* @__PURE__ */ x("button", {
|
|
270
270
|
onClick: () => k(e.key),
|
|
271
271
|
className: r("-mb-px whitespace-nowrap border-b-2 pb-3 text-sm font-medium transition-colors", O === e.key ? "border-action-primary-bg text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
272
272
|
children: e.label
|
|
273
273
|
}, e.key))
|
|
274
274
|
})
|
|
275
|
-
}), /* @__PURE__ */
|
|
275
|
+
}), /* @__PURE__ */ S("div", {
|
|
276
276
|
className: W,
|
|
277
277
|
children: [
|
|
278
|
-
O === "basic" && /* @__PURE__ */
|
|
278
|
+
O === "basic" && /* @__PURE__ */ S("div", {
|
|
279
279
|
className: "space-y-5",
|
|
280
280
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ S("div", {
|
|
282
282
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
283
|
+
children: [/* @__PURE__ */ S("div", {
|
|
284
284
|
className: "sm:col-span-2",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ x("label", {
|
|
286
286
|
className: U,
|
|
287
287
|
children: "Event Title"
|
|
288
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ x("input", {
|
|
289
289
|
type: "text",
|
|
290
290
|
value: F.name,
|
|
291
291
|
onChange: (e) => G({ name: e.target.value }),
|
|
292
292
|
placeholder: "e.g. Q3 Product Webinar",
|
|
293
293
|
className: H
|
|
294
294
|
})]
|
|
295
|
-
}), /* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
296
296
|
className: U,
|
|
297
297
|
children: "Event Type"
|
|
298
|
-
}), /* @__PURE__ */
|
|
298
|
+
}), /* @__PURE__ */ x(w, {
|
|
299
299
|
value: F.type,
|
|
300
300
|
onChange: (e) => G({ type: e.target.value }),
|
|
301
301
|
className: H,
|
|
302
|
-
children: T.map((e) => /* @__PURE__ */
|
|
302
|
+
children: T.map((e) => /* @__PURE__ */ x("option", {
|
|
303
303
|
value: e.value,
|
|
304
304
|
children: e.label
|
|
305
305
|
}, e.value))
|
|
306
306
|
})] })]
|
|
307
307
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
309
309
|
className: U,
|
|
310
310
|
children: "Description"
|
|
311
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ x("textarea", {
|
|
312
312
|
value: F.description,
|
|
313
313
|
onChange: (e) => G({ description: e.target.value }),
|
|
314
314
|
placeholder: "Describe your event — who it's for and what attendees will get out of it.",
|
|
315
315
|
rows: 4,
|
|
316
316
|
className: r(H, "resize-none")
|
|
317
317
|
})] }),
|
|
318
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ S("div", {
|
|
319
319
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
320
320
|
children: [
|
|
321
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
322
322
|
className: U,
|
|
323
323
|
children: "Start Date & Time"
|
|
324
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ x("input", {
|
|
325
325
|
type: "datetime-local",
|
|
326
326
|
value: F.startDate,
|
|
327
327
|
onChange: (e) => G({ startDate: e.target.value }),
|
|
328
328
|
className: H
|
|
329
329
|
})] }),
|
|
330
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
331
331
|
className: U,
|
|
332
332
|
children: "End Date & Time"
|
|
333
|
-
}), /* @__PURE__ */
|
|
333
|
+
}), /* @__PURE__ */ x("input", {
|
|
334
334
|
type: "datetime-local",
|
|
335
335
|
value: F.endDate,
|
|
336
336
|
onChange: (e) => G({ endDate: e.target.value }),
|
|
337
337
|
className: H
|
|
338
338
|
})] }),
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ S("div", {
|
|
340
340
|
className: "sm:col-span-2 lg:col-span-1",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
341
|
+
children: [/* @__PURE__ */ x("label", {
|
|
342
342
|
className: U,
|
|
343
343
|
children: "Timezone"
|
|
344
|
-
}), /* @__PURE__ */
|
|
344
|
+
}), /* @__PURE__ */ x(w, {
|
|
345
345
|
value: F.timezone,
|
|
346
346
|
onChange: (e) => G({ timezone: e.target.value }),
|
|
347
347
|
className: H,
|
|
348
|
-
children:
|
|
348
|
+
children: ve.map((e) => /* @__PURE__ */ x("option", {
|
|
349
349
|
value: e,
|
|
350
350
|
children: e.replace(/_/g, " ")
|
|
351
351
|
}, e))
|
|
@@ -353,42 +353,42 @@ var C = v`
|
|
|
353
353
|
})
|
|
354
354
|
]
|
|
355
355
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
357
357
|
className: U,
|
|
358
358
|
children: "Location"
|
|
359
|
-
}), /* @__PURE__ */
|
|
359
|
+
}), /* @__PURE__ */ x("div", {
|
|
360
360
|
className: "inline-flex w-full flex-wrap gap-1 rounded-md border border-border-subtle bg-bg-surface p-1 sm:w-auto",
|
|
361
|
-
children:
|
|
361
|
+
children: me.map((e) => {
|
|
362
362
|
let t = e.icon, n = F.locationMode === e.key;
|
|
363
|
-
return /* @__PURE__ */
|
|
363
|
+
return /* @__PURE__ */ S("button", {
|
|
364
364
|
type: "button",
|
|
365
365
|
onClick: () => G({ locationMode: e.key }),
|
|
366
366
|
className: r("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", n ? "bg-action-primary-bg text-action-primary-text shadow-pop" : "text-text-secondary hover:text-text-primary"),
|
|
367
367
|
"aria-pressed": n,
|
|
368
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ x(t, { className: "h-4 w-4" }), e.label]
|
|
369
369
|
}, e.key);
|
|
370
370
|
})
|
|
371
371
|
})] }),
|
|
372
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ S("div", {
|
|
373
373
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
374
|
-
children: [Z && /* @__PURE__ */
|
|
374
|
+
children: [Z && /* @__PURE__ */ S("div", {
|
|
375
375
|
className: r(!Q && "sm:col-span-2"),
|
|
376
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ x("label", {
|
|
377
377
|
className: U,
|
|
378
378
|
children: "Venue / Address"
|
|
379
|
-
}), /* @__PURE__ */
|
|
379
|
+
}), /* @__PURE__ */ x("input", {
|
|
380
380
|
type: "text",
|
|
381
381
|
value: F.location,
|
|
382
382
|
onChange: (e) => G({ location: e.target.value }),
|
|
383
383
|
placeholder: "San Francisco, CA",
|
|
384
384
|
className: H
|
|
385
385
|
})]
|
|
386
|
-
}), Q && /* @__PURE__ */
|
|
386
|
+
}), Q && /* @__PURE__ */ S("div", {
|
|
387
387
|
className: r(!Z && "sm:col-span-2"),
|
|
388
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ x("label", {
|
|
389
389
|
className: U,
|
|
390
390
|
children: "Virtual Meeting URL"
|
|
391
|
-
}), /* @__PURE__ */
|
|
391
|
+
}), /* @__PURE__ */ x("input", {
|
|
392
392
|
type: "url",
|
|
393
393
|
value: F.virtualUrl,
|
|
394
394
|
onChange: (e) => G({ virtualUrl: e.target.value }),
|
|
@@ -397,10 +397,10 @@ var C = v`
|
|
|
397
397
|
})]
|
|
398
398
|
})]
|
|
399
399
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
401
401
|
className: U,
|
|
402
402
|
children: "Cover Image"
|
|
403
|
-
}), /* @__PURE__ */
|
|
403
|
+
}), /* @__PURE__ */ x(l, {
|
|
404
404
|
variant: "cover",
|
|
405
405
|
value: F.coverImageUrl,
|
|
406
406
|
onChange: (e) => G({ coverImageUrl: e }),
|
|
@@ -408,105 +408,105 @@ var C = v`
|
|
|
408
408
|
})] })
|
|
409
409
|
]
|
|
410
410
|
}),
|
|
411
|
-
O === "speakers" && /* @__PURE__ */
|
|
411
|
+
O === "speakers" && /* @__PURE__ */ S("div", {
|
|
412
412
|
className: "space-y-3",
|
|
413
|
-
children: [I.map((e, t) => /* @__PURE__ */
|
|
413
|
+
children: [I.map((e, t) => /* @__PURE__ */ x("div", {
|
|
414
414
|
onDragOver: (e) => e.preventDefault(),
|
|
415
415
|
onDragEnter: () => {
|
|
416
|
-
N !== null && N !== t && (
|
|
416
|
+
N !== null && N !== t && (q(N, t), P(t));
|
|
417
417
|
},
|
|
418
418
|
className: r("rounded-xl border border-border-seam bg-bg-surface p-4 shadow-pop transition-all", N === t && "opacity-60 ring-2 ring-[var(--color-focus-ring)]"),
|
|
419
|
-
children: /* @__PURE__ */
|
|
419
|
+
children: /* @__PURE__ */ S("div", {
|
|
420
420
|
className: "flex items-start gap-3",
|
|
421
421
|
children: [
|
|
422
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ x("button", {
|
|
423
423
|
type: "button",
|
|
424
424
|
draggable: !0,
|
|
425
425
|
onDragStart: () => P(t),
|
|
426
426
|
onDragEnd: () => P(null),
|
|
427
427
|
"aria-label": `Drag to reorder speaker ${t + 1}`,
|
|
428
428
|
className: "mt-2 cursor-grab touch-none text-text-secondary hover:text-text-primary active:cursor-grabbing",
|
|
429
|
-
children: /* @__PURE__ */
|
|
429
|
+
children: /* @__PURE__ */ x(ae, { className: "h-4 w-4" })
|
|
430
430
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ x(l, {
|
|
432
432
|
variant: "avatar",
|
|
433
433
|
value: e.avatarUrl,
|
|
434
434
|
name: e.name,
|
|
435
435
|
label: `Speaker ${t + 1} avatar`,
|
|
436
|
-
onChange: (t) =>
|
|
436
|
+
onChange: (t) => K(e.id, { avatarUrl: t })
|
|
437
437
|
}),
|
|
438
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ S("div", {
|
|
439
439
|
className: "min-w-0 flex-1 space-y-2",
|
|
440
|
-
children: [/* @__PURE__ */
|
|
440
|
+
children: [/* @__PURE__ */ x("input", {
|
|
441
441
|
type: "text",
|
|
442
442
|
placeholder: "Full name",
|
|
443
443
|
value: e.name,
|
|
444
|
-
onChange: (t) =>
|
|
444
|
+
onChange: (t) => K(e.id, { name: t.target.value }),
|
|
445
445
|
className: r(H, "font-medium")
|
|
446
|
-
}), /* @__PURE__ */
|
|
446
|
+
}), /* @__PURE__ */ S("div", {
|
|
447
447
|
className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
|
|
448
|
-
children: [/* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ x("input", {
|
|
449
449
|
type: "text",
|
|
450
450
|
placeholder: "Title (e.g. VP Marketing)",
|
|
451
451
|
value: e.title,
|
|
452
|
-
onChange: (t) =>
|
|
452
|
+
onChange: (t) => K(e.id, { title: t.target.value }),
|
|
453
453
|
className: H
|
|
454
|
-
}), /* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ x("input", {
|
|
455
455
|
type: "text",
|
|
456
456
|
placeholder: "Company",
|
|
457
457
|
value: e.company,
|
|
458
|
-
onChange: (t) =>
|
|
458
|
+
onChange: (t) => K(e.id, { company: t.target.value }),
|
|
459
459
|
className: H
|
|
460
460
|
})]
|
|
461
461
|
})]
|
|
462
462
|
}),
|
|
463
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ S("div", {
|
|
464
464
|
className: "flex flex-col items-center gap-1",
|
|
465
465
|
children: [
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ x("button", {
|
|
467
467
|
type: "button",
|
|
468
|
-
onClick: () =>
|
|
468
|
+
onClick: () => q(t, t - 1),
|
|
469
469
|
disabled: t === 0,
|
|
470
470
|
"aria-label": "Move speaker up",
|
|
471
471
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary disabled:opacity-30",
|
|
472
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ x(re, { className: "h-4 w-4" })
|
|
473
473
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ x("button", {
|
|
475
475
|
type: "button",
|
|
476
|
-
onClick: () =>
|
|
476
|
+
onClick: () => q(t, t + 1),
|
|
477
477
|
disabled: t === I.length - 1,
|
|
478
478
|
"aria-label": "Move speaker down",
|
|
479
479
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary disabled:opacity-30",
|
|
480
|
-
children: /* @__PURE__ */
|
|
480
|
+
children: /* @__PURE__ */ x(ne, { className: "h-4 w-4" })
|
|
481
481
|
}),
|
|
482
|
-
I.length > 1 && /* @__PURE__ */
|
|
482
|
+
I.length > 1 && /* @__PURE__ */ x("button", {
|
|
483
483
|
type: "button",
|
|
484
|
-
onClick: () =>
|
|
484
|
+
onClick: () => we(e.id),
|
|
485
485
|
"aria-label": "Remove speaker",
|
|
486
486
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-status-error-text",
|
|
487
|
-
children: /* @__PURE__ */
|
|
487
|
+
children: /* @__PURE__ */ x(_, { className: "h-4 w-4" })
|
|
488
488
|
})
|
|
489
489
|
]
|
|
490
490
|
})
|
|
491
491
|
]
|
|
492
492
|
})
|
|
493
|
-
}, e.id)), /* @__PURE__ */
|
|
493
|
+
}, e.id)), /* @__PURE__ */ S("button", {
|
|
494
494
|
type: "button",
|
|
495
|
-
onClick:
|
|
495
|
+
onClick: Ce,
|
|
496
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",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
497
|
+
children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Add Speaker"]
|
|
498
498
|
})]
|
|
499
499
|
}),
|
|
500
|
-
O === "agenda" && /* @__PURE__ */
|
|
500
|
+
O === "agenda" && /* @__PURE__ */ S("div", {
|
|
501
501
|
className: "space-y-3",
|
|
502
|
-
children: [R.map((e) => /* @__PURE__ */
|
|
502
|
+
children: [R.map((e) => /* @__PURE__ */ S("div", {
|
|
503
503
|
className: "flex flex-wrap items-start gap-3 rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
504
504
|
children: [
|
|
505
|
-
/* @__PURE__ */
|
|
505
|
+
/* @__PURE__ */ x("div", {
|
|
506
506
|
className: "flex items-center gap-1 pt-2 text-text-secondary",
|
|
507
|
-
children: /* @__PURE__ */
|
|
507
|
+
children: /* @__PURE__ */ x(ie, { className: "h-3.5 w-3.5" })
|
|
508
508
|
}),
|
|
509
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ x("input", {
|
|
510
510
|
type: "time",
|
|
511
511
|
value: e.time,
|
|
512
512
|
onChange: (t) => z((n) => n.map((n) => n.id === e.id ? {
|
|
@@ -515,7 +515,7 @@ var C = v`
|
|
|
515
515
|
} : n)),
|
|
516
516
|
className: r(H, "w-28")
|
|
517
517
|
}),
|
|
518
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ x("input", {
|
|
519
519
|
type: "text",
|
|
520
520
|
placeholder: "Session title",
|
|
521
521
|
value: e.title,
|
|
@@ -525,7 +525,7 @@ var C = v`
|
|
|
525
525
|
} : n)),
|
|
526
526
|
className: r(H, "min-w-[10rem] flex-1")
|
|
527
527
|
}),
|
|
528
|
-
/* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ x("input", {
|
|
529
529
|
type: "text",
|
|
530
530
|
placeholder: "Speaker",
|
|
531
531
|
value: e.speaker,
|
|
@@ -535,28 +535,28 @@ var C = v`
|
|
|
535
535
|
} : n)),
|
|
536
536
|
className: r(H, "w-40")
|
|
537
537
|
}),
|
|
538
|
-
R.length > 1 && /* @__PURE__ */
|
|
538
|
+
R.length > 1 && /* @__PURE__ */ x("button", {
|
|
539
539
|
type: "button",
|
|
540
|
-
onClick: () =>
|
|
540
|
+
onClick: () => J(e.id),
|
|
541
541
|
"aria-label": "Remove agenda item",
|
|
542
542
|
className: "rounded-md p-2 text-text-secondary hover:bg-bg-sunken hover:text-status-error-text",
|
|
543
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ x(_, { className: "h-4 w-4" })
|
|
544
544
|
})
|
|
545
545
|
]
|
|
546
|
-
}, e.id)), /* @__PURE__ */
|
|
546
|
+
}, e.id)), /* @__PURE__ */ S("button", {
|
|
547
547
|
type: "button",
|
|
548
|
-
onClick:
|
|
548
|
+
onClick: Te,
|
|
549
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",
|
|
550
|
-
children: [/* @__PURE__ */
|
|
550
|
+
children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Add Agenda Item"]
|
|
551
551
|
})]
|
|
552
552
|
}),
|
|
553
|
-
O === "marketing" && /* @__PURE__ */
|
|
553
|
+
O === "marketing" && /* @__PURE__ */ S("div", {
|
|
554
554
|
className: "space-y-5",
|
|
555
555
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
557
557
|
className: U,
|
|
558
558
|
children: "Marketing Budget ($)"
|
|
559
|
-
}), /* @__PURE__ */
|
|
559
|
+
}), /* @__PURE__ */ x("input", {
|
|
560
560
|
type: "number",
|
|
561
561
|
value: B.budget,
|
|
562
562
|
onChange: (e) => V((t) => ({
|
|
@@ -566,10 +566,10 @@ var C = v`
|
|
|
566
566
|
placeholder: "5000",
|
|
567
567
|
className: H
|
|
568
568
|
})] }),
|
|
569
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
570
570
|
className: U,
|
|
571
571
|
children: "Tags"
|
|
572
|
-
}), /* @__PURE__ */
|
|
572
|
+
}), /* @__PURE__ */ x(o, {
|
|
573
573
|
value: B.tags,
|
|
574
574
|
onChange: (e) => V((t) => ({
|
|
575
575
|
...t,
|
|
@@ -577,10 +577,10 @@ var C = v`
|
|
|
577
577
|
})),
|
|
578
578
|
placeholder: "webinar, seo, product…"
|
|
579
579
|
})] }),
|
|
580
|
-
/* @__PURE__ */
|
|
580
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
581
581
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
582
582
|
children: "Promotion Channels"
|
|
583
|
-
}), /* @__PURE__ */
|
|
583
|
+
}), /* @__PURE__ */ x("div", {
|
|
584
584
|
className: "space-y-2",
|
|
585
585
|
children: [
|
|
586
586
|
{
|
|
@@ -595,9 +595,9 @@ var C = v`
|
|
|
595
595
|
key: "paidAds",
|
|
596
596
|
label: "Paid Advertising"
|
|
597
597
|
}
|
|
598
|
-
].map((e) => /* @__PURE__ */
|
|
598
|
+
].map((e) => /* @__PURE__ */ S("label", {
|
|
599
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",
|
|
600
|
-
children: [/* @__PURE__ */
|
|
600
|
+
children: [/* @__PURE__ */ x("span", { children: e.label }), /* @__PURE__ */ x(C, {
|
|
601
601
|
checked: B[e.key],
|
|
602
602
|
onCheckedChange: (t) => V((n) => ({
|
|
603
603
|
...n,
|
|
@@ -610,28 +610,28 @@ var C = v`
|
|
|
610
610
|
})
|
|
611
611
|
]
|
|
612
612
|
})]
|
|
613
|
-
}), /* @__PURE__ */
|
|
613
|
+
}), /* @__PURE__ */ S("div", {
|
|
614
614
|
className: "space-y-4",
|
|
615
|
-
children: [/* @__PURE__ */
|
|
615
|
+
children: [/* @__PURE__ */ S("div", {
|
|
616
616
|
className: W,
|
|
617
|
-
children: [/* @__PURE__ */
|
|
617
|
+
children: [/* @__PURE__ */ S("div", {
|
|
618
618
|
className: "mb-4 flex items-center gap-2",
|
|
619
|
-
children: [/* @__PURE__ */
|
|
619
|
+
children: [/* @__PURE__ */ x("span", {
|
|
620
620
|
className: "flex h-8 w-8 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
|
|
621
|
-
children: /* @__PURE__ */
|
|
622
|
-
}), /* @__PURE__ */
|
|
621
|
+
children: /* @__PURE__ */ x(ue, { className: "h-4 w-4" })
|
|
622
|
+
}), /* @__PURE__ */ x("h3", {
|
|
623
623
|
className: "text-sm font-semibold text-text-primary",
|
|
624
624
|
children: "Registration"
|
|
625
625
|
})]
|
|
626
|
-
}), /* @__PURE__ */
|
|
626
|
+
}), /* @__PURE__ */ S("div", {
|
|
627
627
|
className: "space-y-4",
|
|
628
628
|
children: [
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ S("div", { children: [
|
|
630
|
+
/* @__PURE__ */ x("label", {
|
|
631
631
|
className: U,
|
|
632
632
|
children: "Capacity"
|
|
633
633
|
}),
|
|
634
|
-
/* @__PURE__ */
|
|
634
|
+
/* @__PURE__ */ x("input", {
|
|
635
635
|
type: "number",
|
|
636
636
|
min: 0,
|
|
637
637
|
value: F.maxCapacity,
|
|
@@ -639,60 +639,60 @@ var C = v`
|
|
|
639
639
|
placeholder: "500",
|
|
640
640
|
className: H
|
|
641
641
|
}),
|
|
642
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ x("p", {
|
|
643
643
|
className: "mt-1 text-xs text-text-secondary",
|
|
644
644
|
children: "0 registered · seats open on publish"
|
|
645
645
|
})
|
|
646
646
|
] }),
|
|
647
|
-
/* @__PURE__ */
|
|
647
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("label", {
|
|
648
648
|
className: U,
|
|
649
649
|
children: [
|
|
650
650
|
"Registration URL",
|
|
651
651
|
" ",
|
|
652
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ x("span", {
|
|
653
653
|
className: "font-normal text-text-secondary",
|
|
654
654
|
children: "(optional)"
|
|
655
655
|
})
|
|
656
656
|
]
|
|
657
|
-
}), /* @__PURE__ */
|
|
657
|
+
}), /* @__PURE__ */ x("input", {
|
|
658
658
|
type: "url",
|
|
659
659
|
value: F.registrationUrl,
|
|
660
660
|
onChange: (e) => G({ registrationUrl: e.target.value }),
|
|
661
661
|
placeholder: "https://…",
|
|
662
662
|
className: H
|
|
663
663
|
})] }),
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ S("div", {
|
|
665
665
|
className: "flex items-center justify-between gap-3 rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5",
|
|
666
|
-
children: [/* @__PURE__ */
|
|
666
|
+
children: [/* @__PURE__ */ S("div", {
|
|
667
667
|
className: "flex items-start gap-2",
|
|
668
|
-
children: [/* @__PURE__ */
|
|
668
|
+
children: [/* @__PURE__ */ x(oe, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
669
669
|
className: "text-sm font-medium text-text-primary",
|
|
670
670
|
children: "Confirmation email"
|
|
671
|
-
}), /* @__PURE__ */
|
|
671
|
+
}), /* @__PURE__ */ x("p", {
|
|
672
672
|
className: "text-xs text-text-secondary",
|
|
673
673
|
children: "Auto-send registrants a confirmation."
|
|
674
674
|
})] })]
|
|
675
|
-
}), /* @__PURE__ */
|
|
675
|
+
}), /* @__PURE__ */ x(C, {
|
|
676
676
|
checked: F.confirmationEmail,
|
|
677
677
|
onCheckedChange: (e) => G({ confirmationEmail: e })
|
|
678
678
|
})]
|
|
679
679
|
})
|
|
680
680
|
]
|
|
681
681
|
})]
|
|
682
|
-
}), /* @__PURE__ */
|
|
682
|
+
}), /* @__PURE__ */ S("div", {
|
|
683
683
|
className: W,
|
|
684
|
-
children: [/* @__PURE__ */
|
|
684
|
+
children: [/* @__PURE__ */ S("div", {
|
|
685
685
|
className: "mb-4 flex items-center gap-2",
|
|
686
|
-
children: [/* @__PURE__ */
|
|
686
|
+
children: [/* @__PURE__ */ x("span", {
|
|
687
687
|
className: "flex h-8 w-8 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
|
|
688
|
-
children: /* @__PURE__ */
|
|
689
|
-
}), /* @__PURE__ */
|
|
688
|
+
children: /* @__PURE__ */ x(f, { className: "h-4 w-4" })
|
|
689
|
+
}), /* @__PURE__ */ x("h3", {
|
|
690
690
|
className: "text-sm font-semibold text-text-primary",
|
|
691
691
|
children: "Event Page Preview"
|
|
692
692
|
})]
|
|
693
|
-
}), /* @__PURE__ */
|
|
693
|
+
}), /* @__PURE__ */ x(ee, {
|
|
694
694
|
title: F.name,
|
|
695
|
-
typeLabel:
|
|
695
|
+
typeLabel: Se,
|
|
696
696
|
startDate: F.startDate,
|
|
697
697
|
timezone: F.timezone,
|
|
698
698
|
locationMode: F.locationMode,
|
|
@@ -703,42 +703,42 @@ var C = v`
|
|
|
703
703
|
})]
|
|
704
704
|
})]
|
|
705
705
|
}),
|
|
706
|
-
X && /* @__PURE__ */
|
|
706
|
+
X && /* @__PURE__ */ x("div", {
|
|
707
707
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
708
708
|
children: X
|
|
709
709
|
}),
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ S("div", {
|
|
711
711
|
className: "flex flex-col-reverse gap-3 rounded-xl border border-border-seam bg-gloss-card p-4 shadow-pop sm:flex-row sm:items-center sm:justify-between",
|
|
712
|
-
children: [/* @__PURE__ */
|
|
712
|
+
children: [/* @__PURE__ */ S("p", {
|
|
713
713
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
714
|
-
children: [/* @__PURE__ */
|
|
715
|
-
}), /* @__PURE__ */
|
|
714
|
+
children: [/* @__PURE__ */ x(le, { className: "h-3.5 w-3.5" }), "Draft saves privately. Publishing opens registration."]
|
|
715
|
+
}), /* @__PURE__ */ S("div", {
|
|
716
716
|
className: "flex flex-wrap items-center justify-end gap-2",
|
|
717
717
|
children: [
|
|
718
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ x("button", {
|
|
719
719
|
type: "button",
|
|
720
|
-
onClick: () =>
|
|
720
|
+
onClick: () => p(i(h, "events")),
|
|
721
721
|
disabled: $,
|
|
722
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",
|
|
723
723
|
children: "Cancel"
|
|
724
724
|
}),
|
|
725
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ S("button", {
|
|
726
726
|
type: "button",
|
|
727
727
|
onClick: () => {
|
|
728
728
|
Y("draft");
|
|
729
729
|
},
|
|
730
730
|
disabled: $,
|
|
731
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",
|
|
732
|
-
children: [j === "draft" ? /* @__PURE__ */
|
|
732
|
+
children: [j === "draft" ? /* @__PURE__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(ce, { className: "h-4 w-4" }), j === "draft" ? "Saving…" : "Save Draft"]
|
|
733
733
|
}),
|
|
734
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ S("button", {
|
|
735
735
|
type: "button",
|
|
736
736
|
onClick: () => {
|
|
737
737
|
Y("publish");
|
|
738
738
|
},
|
|
739
739
|
disabled: $,
|
|
740
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",
|
|
741
|
-
children: [j === "publish" ? /* @__PURE__ */
|
|
741
|
+
children: [j === "publish" ? /* @__PURE__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(se, { className: "h-4 w-4" }), j === "publish" ? "Publishing…" : "Publish Event"]
|
|
742
742
|
})
|
|
743
743
|
]
|
|
744
744
|
})]
|