@burdenoff/microfe-headshotmarketing 2026.1205.1 → 2026.1206.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/generated/global-types.d.ts +3589 -380
- package/dist/generated/wspace-operations.d.ts +101 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +61782 -2332
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
- package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +3 -3
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
- package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
- package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +6 -6
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
- 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 +104 -103
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/index.d.ts +1 -0
- package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
- package/dist/headshotmarketing/utils/readableError.js +12 -0
- package/dist/headshotmarketing/utils/readableError.js.map +1 -0
- package/package.json +5 -3
|
@@ -3,20 +3,21 @@ import { HeadshotmarketingEventStatus as t, HeadshotmarketingEventType as n } fr
|
|
|
3
3
|
import "../../components/index.js";
|
|
4
4
|
import { cn as r, joinPath as i } from "../../utils/helpers.js";
|
|
5
5
|
import { PageLayout as a } from "../../components/PageLayout.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useHeadshotmarketingBootstrap as c } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
6
|
+
import { useHeadshotMarketing as o } from "../../context/HeadshotMarketingContext.js";
|
|
7
|
+
import { TagChipsInput as s } from "../../components/TagChipsInput.js";
|
|
9
8
|
import "../../hooks/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { useHeadshotmarketingBootstrap as ee } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
10
|
+
import { EventImageUpload as c } from "./EventImageUpload.js";
|
|
11
|
+
import { EventPagePreview as te } from "./EventPagePreview.js";
|
|
12
|
+
import { readableError as l, readableErrorOrNull as ne } from "../../utils/readableError.js";
|
|
12
13
|
import { useMemo as u, useState as d } from "react";
|
|
13
|
-
import { ArrowLeft as
|
|
14
|
+
import { ArrowLeft as re, ChevronDown as ie, ChevronUp as f, Clock as ae, Eye as oe, Globe as p, GripVertical as se, Loader2 as m, Mail as ce, MapPin as h, Plus as g, Rocket as le, Save as ue, Trash2 as _, UserRound as de, Users as fe, Video as v } from "lucide-react";
|
|
14
15
|
import { gql as y } from "@apollo/client";
|
|
15
16
|
import { useMutation as b } from "@apollo/client/react";
|
|
16
17
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
17
|
-
import { PagePurpose as
|
|
18
|
+
import { PagePurpose as pe, Switch as C, ThemedSelect as w } from "@burdenoff/fe-libs/ui";
|
|
18
19
|
// src/headshotmarketing/pages/events/CreateEventPage.tsx
|
|
19
|
-
var
|
|
20
|
+
var me = y`
|
|
20
21
|
mutation HeadshotmarketingPublishEvent(
|
|
21
22
|
$id: ID!
|
|
22
23
|
$input: HeadshotmarketingUpdateEventInput!
|
|
@@ -26,7 +27,7 @@ var fe = y`
|
|
|
26
27
|
status
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
`,
|
|
30
|
+
`, he = y`
|
|
30
31
|
mutation HeadshotmarketingCreateEventSpeakerForEvent(
|
|
31
32
|
$input: HeadshotmarketingCreateEventSpeakerInput!
|
|
32
33
|
) {
|
|
@@ -67,7 +68,7 @@ var fe = y`
|
|
|
67
68
|
value: "other",
|
|
68
69
|
label: "Other"
|
|
69
70
|
}
|
|
70
|
-
],
|
|
71
|
+
], ge = [
|
|
71
72
|
{
|
|
72
73
|
key: "in_person",
|
|
73
74
|
label: "In-person",
|
|
@@ -83,7 +84,7 @@ var fe = y`
|
|
|
83
84
|
label: "Hybrid",
|
|
84
85
|
icon: p
|
|
85
86
|
}
|
|
86
|
-
],
|
|
87
|
+
], _e = [
|
|
87
88
|
"UTC",
|
|
88
89
|
"America/New_York",
|
|
89
90
|
"America/Chicago",
|
|
@@ -100,7 +101,7 @@ var fe = y`
|
|
|
100
101
|
"Asia/Tokyo",
|
|
101
102
|
"Australia/Sydney"
|
|
102
103
|
], E = () => {
|
|
103
|
-
let { navigate: p, basePath: h } =
|
|
104
|
+
let { navigate: p, basePath: h } = o(), { refetch: v } = ee(), [y, { error: E }] = e(), [ve] = b(me), [ye] = b(he), D = u(() => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC", []), be = u(() => Array.from(/* @__PURE__ */ new Set([D, ..._e])), [D]), [O, k] = d("basic"), [xe, A] = d(null), [j, M] = d(null), [N, P] = d(null), [F, I] = d({
|
|
104
105
|
name: "",
|
|
105
106
|
description: "",
|
|
106
107
|
type: "webinar",
|
|
@@ -114,24 +115,24 @@ var fe = y`
|
|
|
114
115
|
registrationUrl: "",
|
|
115
116
|
coverImageUrl: "",
|
|
116
117
|
confirmationEmail: !0
|
|
117
|
-
}), [
|
|
118
|
+
}), [L, R] = d([{
|
|
118
119
|
id: "1",
|
|
119
120
|
name: "",
|
|
120
121
|
title: "",
|
|
121
122
|
company: "",
|
|
122
123
|
avatarUrl: ""
|
|
123
|
-
}]), [
|
|
124
|
+
}]), [z, B] = d([{
|
|
124
125
|
id: "1",
|
|
125
126
|
time: "09:00",
|
|
126
127
|
title: "",
|
|
127
128
|
speaker: ""
|
|
128
|
-
}]), [
|
|
129
|
+
}]), [V, H] = d({
|
|
129
130
|
budget: "",
|
|
130
131
|
tags: [],
|
|
131
132
|
emailCampaign: !1,
|
|
132
133
|
socialPromotion: !1,
|
|
133
134
|
paidAds: !1
|
|
134
|
-
}),
|
|
135
|
+
}), Se = [
|
|
135
136
|
{
|
|
136
137
|
key: "basic",
|
|
137
138
|
label: "Basic Info"
|
|
@@ -148,28 +149,28 @@ var fe = y`
|
|
|
148
149
|
key: "marketing",
|
|
149
150
|
label: "Marketing"
|
|
150
151
|
}
|
|
151
|
-
],
|
|
152
|
+
], U = "w-full min-h-[42px] rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", W = "block text-sm font-medium text-text-primary mb-1", G = "rounded-xl border border-border-seam bg-gloss-card p-5 shadow-pop", K = (e) => I((t) => ({
|
|
152
153
|
...t,
|
|
153
154
|
...e
|
|
154
|
-
})),
|
|
155
|
+
})), Ce = u(() => T.find((e) => e.value === F.type)?.label ?? "Event", [F.type]), we = () => R((e) => [...e, {
|
|
155
156
|
id: String(Date.now()),
|
|
156
157
|
name: "",
|
|
157
158
|
title: "",
|
|
158
159
|
company: "",
|
|
159
160
|
avatarUrl: ""
|
|
160
|
-
}]),
|
|
161
|
+
}]), Te = (e) => R((t) => t.filter((t) => t.id !== e)), q = (e, t) => R((n) => n.map((n) => n.id === e ? {
|
|
161
162
|
...n,
|
|
162
163
|
...t
|
|
163
|
-
} : n)),
|
|
164
|
+
} : n)), J = (e, t) => R((n) => {
|
|
164
165
|
if (e === t || t < 0 || t >= n.length) return n;
|
|
165
166
|
let r = [...n], [i] = r.splice(e, 1);
|
|
166
167
|
return r.splice(t, 0, i), r;
|
|
167
|
-
}),
|
|
168
|
+
}), Ee = () => B((e) => [...e, {
|
|
168
169
|
id: String(Date.now()),
|
|
169
170
|
time: "",
|
|
170
171
|
title: "",
|
|
171
172
|
speaker: ""
|
|
172
|
-
}]),
|
|
173
|
+
}]), De = (e) => B((t) => t.filter((t) => t.id !== e)), Oe = (e) => {
|
|
173
174
|
switch (e) {
|
|
174
175
|
case "conference": return n.Conference;
|
|
175
176
|
case "workshop": return n.Workshop;
|
|
@@ -202,7 +203,7 @@ var fe = y`
|
|
|
202
203
|
let a = F.locationMode === "virtual", o = F.locationMode === "in_person", s = {
|
|
203
204
|
title: F.name.trim(),
|
|
204
205
|
description: F.description || null,
|
|
205
|
-
type:
|
|
206
|
+
type: Oe(F.type),
|
|
206
207
|
startDate: n.toISOString(),
|
|
207
208
|
endDate: r.toISOString(),
|
|
208
209
|
location: a ? null : F.location.trim() || null,
|
|
@@ -210,17 +211,17 @@ var fe = y`
|
|
|
210
211
|
maxAttendees: F.maxCapacity ? Number(F.maxCapacity) : null,
|
|
211
212
|
timezone: F.timezone || D,
|
|
212
213
|
coverImageUrl: F.coverImageUrl || null,
|
|
213
|
-
tags:
|
|
214
|
+
tags: V.tags,
|
|
214
215
|
metadata: {
|
|
215
216
|
registrationUrl: F.registrationUrl || null,
|
|
216
217
|
confirmationEmail: F.confirmationEmail,
|
|
217
218
|
locationMode: F.locationMode,
|
|
218
|
-
agenda:
|
|
219
|
+
agenda: z,
|
|
219
220
|
marketing: {
|
|
220
|
-
budget:
|
|
221
|
-
emailCampaign:
|
|
222
|
-
socialPromotion:
|
|
223
|
-
paidAds:
|
|
221
|
+
budget: V.budget,
|
|
222
|
+
emailCampaign: V.emailCampaign,
|
|
223
|
+
socialPromotion: V.socialPromotion,
|
|
224
|
+
paidAds: V.paidAds
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
};
|
|
@@ -228,8 +229,8 @@ var fe = y`
|
|
|
228
229
|
try {
|
|
229
230
|
let n = (await y({ variables: { input: s } })).data?.headshotmarketingCreateEvent.id;
|
|
230
231
|
if (n) {
|
|
231
|
-
let e =
|
|
232
|
-
for (let [t, r] of e.entries()) await
|
|
232
|
+
let e = L.filter((e) => e.name.trim());
|
|
233
|
+
for (let [t, r] of e.entries()) await ye({ variables: { input: {
|
|
233
234
|
eventId: n,
|
|
234
235
|
name: r.name.trim(),
|
|
235
236
|
title: r.title.trim() || null,
|
|
@@ -238,26 +239,26 @@ var fe = y`
|
|
|
238
239
|
sortOrder: t
|
|
239
240
|
} } });
|
|
240
241
|
}
|
|
241
|
-
e === "publish" && n && await
|
|
242
|
+
e === "publish" && n && await ve({ variables: {
|
|
242
243
|
id: n,
|
|
243
244
|
input: { status: t.Published }
|
|
244
245
|
} }), await v(), p(i(h, "events"));
|
|
245
246
|
} catch (e) {
|
|
246
|
-
A(e
|
|
247
|
+
A(l(e, "Failed to save event."));
|
|
247
248
|
} finally {
|
|
248
249
|
M(null);
|
|
249
250
|
}
|
|
250
|
-
}, X =
|
|
251
|
+
}, X = xe ?? ne(E) ?? null, Z = F.locationMode !== "virtual", Q = F.locationMode !== "in_person", $ = j !== null;
|
|
251
252
|
return /* @__PURE__ */ S(a, {
|
|
252
253
|
title: "Create Event",
|
|
253
254
|
description: "Set up a new marketing event",
|
|
254
255
|
actions: /* @__PURE__ */ S("button", {
|
|
255
256
|
onClick: () => p(i(h, "events")),
|
|
256
257
|
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__ */ x(
|
|
258
|
+
children: [/* @__PURE__ */ x(re, { className: "h-4 w-4" }), "Back to Events"]
|
|
258
259
|
}),
|
|
259
260
|
children: [
|
|
260
|
-
/* @__PURE__ */ x(
|
|
261
|
+
/* @__PURE__ */ x(pe, { 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
262
|
/* @__PURE__ */ S("div", {
|
|
262
263
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
263
264
|
children: [/* @__PURE__ */ S("div", {
|
|
@@ -266,14 +267,14 @@ var fe = y`
|
|
|
266
267
|
className: "border-b border-border-subtle",
|
|
267
268
|
children: /* @__PURE__ */ x("div", {
|
|
268
269
|
className: "flex flex-nowrap gap-6 overflow-x-auto",
|
|
269
|
-
children:
|
|
270
|
+
children: Se.map((e) => /* @__PURE__ */ x("button", {
|
|
270
271
|
onClick: () => k(e.key),
|
|
271
272
|
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
273
|
children: e.label
|
|
273
274
|
}, e.key))
|
|
274
275
|
})
|
|
275
276
|
}), /* @__PURE__ */ S("div", {
|
|
276
|
-
className:
|
|
277
|
+
className: G,
|
|
277
278
|
children: [
|
|
278
279
|
O === "basic" && /* @__PURE__ */ S("div", {
|
|
279
280
|
className: "space-y-5",
|
|
@@ -283,22 +284,22 @@ var fe = y`
|
|
|
283
284
|
children: [/* @__PURE__ */ S("div", {
|
|
284
285
|
className: "sm:col-span-2",
|
|
285
286
|
children: [/* @__PURE__ */ x("label", {
|
|
286
|
-
className:
|
|
287
|
+
className: W,
|
|
287
288
|
children: "Event Title"
|
|
288
289
|
}), /* @__PURE__ */ x("input", {
|
|
289
290
|
type: "text",
|
|
290
291
|
value: F.name,
|
|
291
|
-
onChange: (e) =>
|
|
292
|
+
onChange: (e) => K({ name: e.target.value }),
|
|
292
293
|
placeholder: "e.g. Q3 Product Webinar",
|
|
293
|
-
className:
|
|
294
|
+
className: U
|
|
294
295
|
})]
|
|
295
296
|
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
296
|
-
className:
|
|
297
|
+
className: W,
|
|
297
298
|
children: "Event Type"
|
|
298
299
|
}), /* @__PURE__ */ x(w, {
|
|
299
300
|
value: F.type,
|
|
300
|
-
onChange: (e) =>
|
|
301
|
-
className:
|
|
301
|
+
onChange: (e) => K({ type: e.target.value }),
|
|
302
|
+
className: U,
|
|
302
303
|
children: T.map((e) => /* @__PURE__ */ x("option", {
|
|
303
304
|
value: e.value,
|
|
304
305
|
children: e.label
|
|
@@ -306,46 +307,46 @@ var fe = y`
|
|
|
306
307
|
})] })]
|
|
307
308
|
}),
|
|
308
309
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
309
|
-
className:
|
|
310
|
+
className: W,
|
|
310
311
|
children: "Description"
|
|
311
312
|
}), /* @__PURE__ */ x("textarea", {
|
|
312
313
|
value: F.description,
|
|
313
|
-
onChange: (e) =>
|
|
314
|
+
onChange: (e) => K({ description: e.target.value }),
|
|
314
315
|
placeholder: "Describe your event — who it's for and what attendees will get out of it.",
|
|
315
316
|
rows: 4,
|
|
316
|
-
className: r(
|
|
317
|
+
className: r(U, "resize-none")
|
|
317
318
|
})] }),
|
|
318
319
|
/* @__PURE__ */ S("div", {
|
|
319
320
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
320
321
|
children: [
|
|
321
322
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
322
|
-
className:
|
|
323
|
+
className: W,
|
|
323
324
|
children: "Start Date & Time"
|
|
324
325
|
}), /* @__PURE__ */ x("input", {
|
|
325
326
|
type: "datetime-local",
|
|
326
327
|
value: F.startDate,
|
|
327
|
-
onChange: (e) =>
|
|
328
|
-
className:
|
|
328
|
+
onChange: (e) => K({ startDate: e.target.value }),
|
|
329
|
+
className: U
|
|
329
330
|
})] }),
|
|
330
331
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
331
|
-
className:
|
|
332
|
+
className: W,
|
|
332
333
|
children: "End Date & Time"
|
|
333
334
|
}), /* @__PURE__ */ x("input", {
|
|
334
335
|
type: "datetime-local",
|
|
335
336
|
value: F.endDate,
|
|
336
|
-
onChange: (e) =>
|
|
337
|
-
className:
|
|
337
|
+
onChange: (e) => K({ endDate: e.target.value }),
|
|
338
|
+
className: U
|
|
338
339
|
})] }),
|
|
339
340
|
/* @__PURE__ */ S("div", {
|
|
340
341
|
className: "sm:col-span-2 lg:col-span-1",
|
|
341
342
|
children: [/* @__PURE__ */ x("label", {
|
|
342
|
-
className:
|
|
343
|
+
className: W,
|
|
343
344
|
children: "Timezone"
|
|
344
345
|
}), /* @__PURE__ */ x(w, {
|
|
345
346
|
value: F.timezone,
|
|
346
|
-
onChange: (e) =>
|
|
347
|
-
className:
|
|
348
|
-
children:
|
|
347
|
+
onChange: (e) => K({ timezone: e.target.value }),
|
|
348
|
+
className: U,
|
|
349
|
+
children: be.map((e) => /* @__PURE__ */ x("option", {
|
|
349
350
|
value: e,
|
|
350
351
|
children: e.replace(/_/g, " ")
|
|
351
352
|
}, e))
|
|
@@ -354,15 +355,15 @@ var fe = y`
|
|
|
354
355
|
]
|
|
355
356
|
}),
|
|
356
357
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
357
|
-
className:
|
|
358
|
+
className: W,
|
|
358
359
|
children: "Location"
|
|
359
360
|
}), /* @__PURE__ */ x("div", {
|
|
360
361
|
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:
|
|
362
|
+
children: ge.map((e) => {
|
|
362
363
|
let t = e.icon, n = F.locationMode === e.key;
|
|
363
364
|
return /* @__PURE__ */ S("button", {
|
|
364
365
|
type: "button",
|
|
365
|
-
onClick: () =>
|
|
366
|
+
onClick: () => K({ locationMode: e.key }),
|
|
366
367
|
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
368
|
"aria-pressed": n,
|
|
368
369
|
children: [/* @__PURE__ */ x(t, { className: "h-4 w-4" }), e.label]
|
|
@@ -374,46 +375,46 @@ var fe = y`
|
|
|
374
375
|
children: [Z && /* @__PURE__ */ S("div", {
|
|
375
376
|
className: r(!Q && "sm:col-span-2"),
|
|
376
377
|
children: [/* @__PURE__ */ x("label", {
|
|
377
|
-
className:
|
|
378
|
+
className: W,
|
|
378
379
|
children: "Venue / Address"
|
|
379
380
|
}), /* @__PURE__ */ x("input", {
|
|
380
381
|
type: "text",
|
|
381
382
|
value: F.location,
|
|
382
|
-
onChange: (e) =>
|
|
383
|
+
onChange: (e) => K({ location: e.target.value }),
|
|
383
384
|
placeholder: "San Francisco, CA",
|
|
384
|
-
className:
|
|
385
|
+
className: U
|
|
385
386
|
})]
|
|
386
387
|
}), Q && /* @__PURE__ */ S("div", {
|
|
387
388
|
className: r(!Z && "sm:col-span-2"),
|
|
388
389
|
children: [/* @__PURE__ */ x("label", {
|
|
389
|
-
className:
|
|
390
|
+
className: W,
|
|
390
391
|
children: "Virtual Meeting URL"
|
|
391
392
|
}), /* @__PURE__ */ x("input", {
|
|
392
393
|
type: "url",
|
|
393
394
|
value: F.virtualUrl,
|
|
394
|
-
onChange: (e) =>
|
|
395
|
+
onChange: (e) => K({ virtualUrl: e.target.value }),
|
|
395
396
|
placeholder: "https://zoom.us/j/...",
|
|
396
|
-
className:
|
|
397
|
+
className: U
|
|
397
398
|
})]
|
|
398
399
|
})]
|
|
399
400
|
}),
|
|
400
401
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
401
|
-
className:
|
|
402
|
+
className: W,
|
|
402
403
|
children: "Cover Image"
|
|
403
|
-
}), /* @__PURE__ */ x(
|
|
404
|
+
}), /* @__PURE__ */ x(c, {
|
|
404
405
|
variant: "cover",
|
|
405
406
|
value: F.coverImageUrl,
|
|
406
|
-
onChange: (e) =>
|
|
407
|
+
onChange: (e) => K({ coverImageUrl: e }),
|
|
407
408
|
label: "Event cover image"
|
|
408
409
|
})] })
|
|
409
410
|
]
|
|
410
411
|
}),
|
|
411
412
|
O === "speakers" && /* @__PURE__ */ S("div", {
|
|
412
413
|
className: "space-y-3",
|
|
413
|
-
children: [
|
|
414
|
+
children: [L.map((e, t) => /* @__PURE__ */ x("div", {
|
|
414
415
|
onDragOver: (e) => e.preventDefault(),
|
|
415
416
|
onDragEnter: () => {
|
|
416
|
-
N !== null && N !== t && (
|
|
417
|
+
N !== null && N !== t && (J(N, t), P(t));
|
|
417
418
|
},
|
|
418
419
|
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
420
|
children: /* @__PURE__ */ S("div", {
|
|
@@ -426,14 +427,14 @@ var fe = y`
|
|
|
426
427
|
onDragEnd: () => P(null),
|
|
427
428
|
"aria-label": `Drag to reorder speaker ${t + 1}`,
|
|
428
429
|
className: "mt-2 cursor-grab touch-none text-text-secondary hover:text-text-primary active:cursor-grabbing",
|
|
429
|
-
children: /* @__PURE__ */ x(
|
|
430
|
+
children: /* @__PURE__ */ x(se, { className: "h-4 w-4" })
|
|
430
431
|
}),
|
|
431
|
-
/* @__PURE__ */ x(
|
|
432
|
+
/* @__PURE__ */ x(c, {
|
|
432
433
|
variant: "avatar",
|
|
433
434
|
value: e.avatarUrl,
|
|
434
435
|
name: e.name,
|
|
435
436
|
label: `Speaker ${t + 1} avatar`,
|
|
436
|
-
onChange: (t) =>
|
|
437
|
+
onChange: (t) => q(e.id, { avatarUrl: t })
|
|
437
438
|
}),
|
|
438
439
|
/* @__PURE__ */ S("div", {
|
|
439
440
|
className: "min-w-0 flex-1 space-y-2",
|
|
@@ -441,22 +442,22 @@ var fe = y`
|
|
|
441
442
|
type: "text",
|
|
442
443
|
placeholder: "Full name",
|
|
443
444
|
value: e.name,
|
|
444
|
-
onChange: (t) =>
|
|
445
|
-
className: r(
|
|
445
|
+
onChange: (t) => q(e.id, { name: t.target.value }),
|
|
446
|
+
className: r(U, "font-medium")
|
|
446
447
|
}), /* @__PURE__ */ S("div", {
|
|
447
448
|
className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
|
|
448
449
|
children: [/* @__PURE__ */ x("input", {
|
|
449
450
|
type: "text",
|
|
450
451
|
placeholder: "Title (e.g. VP Marketing)",
|
|
451
452
|
value: e.title,
|
|
452
|
-
onChange: (t) =>
|
|
453
|
-
className:
|
|
453
|
+
onChange: (t) => q(e.id, { title: t.target.value }),
|
|
454
|
+
className: U
|
|
454
455
|
}), /* @__PURE__ */ x("input", {
|
|
455
456
|
type: "text",
|
|
456
457
|
placeholder: "Company",
|
|
457
458
|
value: e.company,
|
|
458
|
-
onChange: (t) =>
|
|
459
|
-
className:
|
|
459
|
+
onChange: (t) => q(e.id, { company: t.target.value }),
|
|
460
|
+
className: U
|
|
460
461
|
})]
|
|
461
462
|
})]
|
|
462
463
|
}),
|
|
@@ -465,23 +466,23 @@ var fe = y`
|
|
|
465
466
|
children: [
|
|
466
467
|
/* @__PURE__ */ x("button", {
|
|
467
468
|
type: "button",
|
|
468
|
-
onClick: () =>
|
|
469
|
+
onClick: () => J(t, t - 1),
|
|
469
470
|
disabled: t === 0,
|
|
470
471
|
"aria-label": "Move speaker up",
|
|
471
472
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary disabled:opacity-30",
|
|
472
|
-
children: /* @__PURE__ */ x(
|
|
473
|
+
children: /* @__PURE__ */ x(f, { className: "h-4 w-4" })
|
|
473
474
|
}),
|
|
474
475
|
/* @__PURE__ */ x("button", {
|
|
475
476
|
type: "button",
|
|
476
|
-
onClick: () =>
|
|
477
|
-
disabled: t ===
|
|
477
|
+
onClick: () => J(t, t + 1),
|
|
478
|
+
disabled: t === L.length - 1,
|
|
478
479
|
"aria-label": "Move speaker down",
|
|
479
480
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary disabled:opacity-30",
|
|
480
|
-
children: /* @__PURE__ */ x(
|
|
481
|
+
children: /* @__PURE__ */ x(ie, { className: "h-4 w-4" })
|
|
481
482
|
}),
|
|
482
|
-
|
|
483
|
+
L.length > 1 && /* @__PURE__ */ x("button", {
|
|
483
484
|
type: "button",
|
|
484
|
-
onClick: () =>
|
|
485
|
+
onClick: () => Te(e.id),
|
|
485
486
|
"aria-label": "Remove speaker",
|
|
486
487
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-status-error-text",
|
|
487
488
|
children: /* @__PURE__ */ x(_, { className: "h-4 w-4" })
|
|
@@ -492,52 +493,52 @@ var fe = y`
|
|
|
492
493
|
})
|
|
493
494
|
}, e.id)), /* @__PURE__ */ S("button", {
|
|
494
495
|
type: "button",
|
|
495
|
-
onClick:
|
|
496
|
+
onClick: we,
|
|
496
497
|
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
498
|
children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Add Speaker"]
|
|
498
499
|
})]
|
|
499
500
|
}),
|
|
500
501
|
O === "agenda" && /* @__PURE__ */ S("div", {
|
|
501
502
|
className: "space-y-3",
|
|
502
|
-
children: [
|
|
503
|
+
children: [z.map((e) => /* @__PURE__ */ S("div", {
|
|
503
504
|
className: "flex flex-wrap items-start gap-3 rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
504
505
|
children: [
|
|
505
506
|
/* @__PURE__ */ x("div", {
|
|
506
507
|
className: "flex items-center gap-1 pt-2 text-text-secondary",
|
|
507
|
-
children: /* @__PURE__ */ x(
|
|
508
|
+
children: /* @__PURE__ */ x(ae, { className: "h-3.5 w-3.5" })
|
|
508
509
|
}),
|
|
509
510
|
/* @__PURE__ */ x("input", {
|
|
510
511
|
type: "time",
|
|
511
512
|
value: e.time,
|
|
512
|
-
onChange: (t) =>
|
|
513
|
+
onChange: (t) => B((n) => n.map((n) => n.id === e.id ? {
|
|
513
514
|
...n,
|
|
514
515
|
time: t.target.value
|
|
515
516
|
} : n)),
|
|
516
|
-
className: r(
|
|
517
|
+
className: r(U, "w-28")
|
|
517
518
|
}),
|
|
518
519
|
/* @__PURE__ */ x("input", {
|
|
519
520
|
type: "text",
|
|
520
521
|
placeholder: "Session title",
|
|
521
522
|
value: e.title,
|
|
522
|
-
onChange: (t) =>
|
|
523
|
+
onChange: (t) => B((n) => n.map((n) => n.id === e.id ? {
|
|
523
524
|
...n,
|
|
524
525
|
title: t.target.value
|
|
525
526
|
} : n)),
|
|
526
|
-
className: r(
|
|
527
|
+
className: r(U, "min-w-[10rem] flex-1")
|
|
527
528
|
}),
|
|
528
529
|
/* @__PURE__ */ x("input", {
|
|
529
530
|
type: "text",
|
|
530
531
|
placeholder: "Speaker",
|
|
531
532
|
value: e.speaker,
|
|
532
|
-
onChange: (t) =>
|
|
533
|
+
onChange: (t) => B((n) => n.map((n) => n.id === e.id ? {
|
|
533
534
|
...n,
|
|
534
535
|
speaker: t.target.value
|
|
535
536
|
} : n)),
|
|
536
|
-
className: r(
|
|
537
|
+
className: r(U, "w-40")
|
|
537
538
|
}),
|
|
538
|
-
|
|
539
|
+
z.length > 1 && /* @__PURE__ */ x("button", {
|
|
539
540
|
type: "button",
|
|
540
|
-
onClick: () =>
|
|
541
|
+
onClick: () => De(e.id),
|
|
541
542
|
"aria-label": "Remove agenda item",
|
|
542
543
|
className: "rounded-md p-2 text-text-secondary hover:bg-bg-sunken hover:text-status-error-text",
|
|
543
544
|
children: /* @__PURE__ */ x(_, { className: "h-4 w-4" })
|
|
@@ -545,7 +546,7 @@ var fe = y`
|
|
|
545
546
|
]
|
|
546
547
|
}, e.id)), /* @__PURE__ */ S("button", {
|
|
547
548
|
type: "button",
|
|
548
|
-
onClick:
|
|
549
|
+
onClick: Ee,
|
|
549
550
|
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
551
|
children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Add Agenda Item"]
|
|
551
552
|
})]
|
|
@@ -554,24 +555,24 @@ var fe = y`
|
|
|
554
555
|
className: "space-y-5",
|
|
555
556
|
children: [
|
|
556
557
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
557
|
-
className:
|
|
558
|
+
className: W,
|
|
558
559
|
children: "Marketing Budget ($)"
|
|
559
560
|
}), /* @__PURE__ */ x("input", {
|
|
560
561
|
type: "number",
|
|
561
|
-
value:
|
|
562
|
-
onChange: (e) =>
|
|
562
|
+
value: V.budget,
|
|
563
|
+
onChange: (e) => H((t) => ({
|
|
563
564
|
...t,
|
|
564
565
|
budget: e.target.value
|
|
565
566
|
})),
|
|
566
567
|
placeholder: "5000",
|
|
567
|
-
className:
|
|
568
|
+
className: U
|
|
568
569
|
})] }),
|
|
569
570
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
570
|
-
className:
|
|
571
|
+
className: W,
|
|
571
572
|
children: "Tags"
|
|
572
|
-
}), /* @__PURE__ */ x(
|
|
573
|
-
value:
|
|
574
|
-
onChange: (e) =>
|
|
573
|
+
}), /* @__PURE__ */ x(s, {
|
|
574
|
+
value: V.tags,
|
|
575
|
+
onChange: (e) => H((t) => ({
|
|
575
576
|
...t,
|
|
576
577
|
tags: e
|
|
577
578
|
})),
|
|
@@ -598,8 +599,8 @@ var fe = y`
|
|
|
598
599
|
].map((e) => /* @__PURE__ */ S("label", {
|
|
599
600
|
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
601
|
children: [/* @__PURE__ */ x("span", { children: e.label }), /* @__PURE__ */ x(C, {
|
|
601
|
-
checked:
|
|
602
|
-
onCheckedChange: (t) =>
|
|
602
|
+
checked: V[e.key],
|
|
603
|
+
onCheckedChange: (t) => H((n) => ({
|
|
603
604
|
...n,
|
|
604
605
|
[e.key]: t
|
|
605
606
|
}))
|
|
@@ -613,12 +614,12 @@ var fe = y`
|
|
|
613
614
|
}), /* @__PURE__ */ S("div", {
|
|
614
615
|
className: "space-y-4",
|
|
615
616
|
children: [/* @__PURE__ */ S("div", {
|
|
616
|
-
className:
|
|
617
|
+
className: G,
|
|
617
618
|
children: [/* @__PURE__ */ S("div", {
|
|
618
619
|
className: "mb-4 flex items-center gap-2",
|
|
619
620
|
children: [/* @__PURE__ */ x("span", {
|
|
620
621
|
className: "flex h-8 w-8 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
|
|
621
|
-
children: /* @__PURE__ */ x(
|
|
622
|
+
children: /* @__PURE__ */ x(fe, { className: "h-4 w-4" })
|
|
622
623
|
}), /* @__PURE__ */ x("h3", {
|
|
623
624
|
className: "text-sm font-semibold text-text-primary",
|
|
624
625
|
children: "Registration"
|
|
@@ -628,16 +629,16 @@ var fe = y`
|
|
|
628
629
|
children: [
|
|
629
630
|
/* @__PURE__ */ S("div", { children: [
|
|
630
631
|
/* @__PURE__ */ x("label", {
|
|
631
|
-
className:
|
|
632
|
+
className: W,
|
|
632
633
|
children: "Capacity"
|
|
633
634
|
}),
|
|
634
635
|
/* @__PURE__ */ x("input", {
|
|
635
636
|
type: "number",
|
|
636
637
|
min: 0,
|
|
637
638
|
value: F.maxCapacity,
|
|
638
|
-
onChange: (e) =>
|
|
639
|
+
onChange: (e) => K({ maxCapacity: e.target.value }),
|
|
639
640
|
placeholder: "500",
|
|
640
|
-
className:
|
|
641
|
+
className: U
|
|
641
642
|
}),
|
|
642
643
|
/* @__PURE__ */ x("p", {
|
|
643
644
|
className: "mt-1 text-xs text-text-secondary",
|
|
@@ -645,7 +646,7 @@ var fe = y`
|
|
|
645
646
|
})
|
|
646
647
|
] }),
|
|
647
648
|
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("label", {
|
|
648
|
-
className:
|
|
649
|
+
className: W,
|
|
649
650
|
children: [
|
|
650
651
|
"Registration URL",
|
|
651
652
|
" ",
|
|
@@ -657,15 +658,15 @@ var fe = y`
|
|
|
657
658
|
}), /* @__PURE__ */ x("input", {
|
|
658
659
|
type: "url",
|
|
659
660
|
value: F.registrationUrl,
|
|
660
|
-
onChange: (e) =>
|
|
661
|
+
onChange: (e) => K({ registrationUrl: e.target.value }),
|
|
661
662
|
placeholder: "https://…",
|
|
662
|
-
className:
|
|
663
|
+
className: U
|
|
663
664
|
})] }),
|
|
664
665
|
/* @__PURE__ */ S("div", {
|
|
665
666
|
className: "flex items-center justify-between gap-3 rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5",
|
|
666
667
|
children: [/* @__PURE__ */ S("div", {
|
|
667
668
|
className: "flex items-start gap-2",
|
|
668
|
-
children: [/* @__PURE__ */ x(
|
|
669
|
+
children: [/* @__PURE__ */ x(ce, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
669
670
|
className: "text-sm font-medium text-text-primary",
|
|
670
671
|
children: "Confirmation email"
|
|
671
672
|
}), /* @__PURE__ */ x("p", {
|
|
@@ -674,25 +675,25 @@ var fe = y`
|
|
|
674
675
|
})] })]
|
|
675
676
|
}), /* @__PURE__ */ x(C, {
|
|
676
677
|
checked: F.confirmationEmail,
|
|
677
|
-
onCheckedChange: (e) =>
|
|
678
|
+
onCheckedChange: (e) => K({ confirmationEmail: e })
|
|
678
679
|
})]
|
|
679
680
|
})
|
|
680
681
|
]
|
|
681
682
|
})]
|
|
682
683
|
}), /* @__PURE__ */ S("div", {
|
|
683
|
-
className:
|
|
684
|
+
className: G,
|
|
684
685
|
children: [/* @__PURE__ */ S("div", {
|
|
685
686
|
className: "mb-4 flex items-center gap-2",
|
|
686
687
|
children: [/* @__PURE__ */ x("span", {
|
|
687
688
|
className: "flex h-8 w-8 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
|
|
688
|
-
children: /* @__PURE__ */ x(
|
|
689
|
+
children: /* @__PURE__ */ x(oe, { className: "h-4 w-4" })
|
|
689
690
|
}), /* @__PURE__ */ x("h3", {
|
|
690
691
|
className: "text-sm font-semibold text-text-primary",
|
|
691
692
|
children: "Event Page Preview"
|
|
692
693
|
})]
|
|
693
|
-
}), /* @__PURE__ */ x(
|
|
694
|
+
}), /* @__PURE__ */ x(te, {
|
|
694
695
|
title: F.name,
|
|
695
|
-
typeLabel:
|
|
696
|
+
typeLabel: Ce,
|
|
696
697
|
startDate: F.startDate,
|
|
697
698
|
timezone: F.timezone,
|
|
698
699
|
locationMode: F.locationMode,
|
|
@@ -711,7 +712,7 @@ var fe = y`
|
|
|
711
712
|
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
713
|
children: [/* @__PURE__ */ S("p", {
|
|
713
714
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
714
|
-
children: [/* @__PURE__ */ x(
|
|
715
|
+
children: [/* @__PURE__ */ x(de, { className: "h-3.5 w-3.5" }), "Draft saves privately. Publishing opens registration."]
|
|
715
716
|
}), /* @__PURE__ */ S("div", {
|
|
716
717
|
className: "flex flex-wrap items-center justify-end gap-2",
|
|
717
718
|
children: [
|
|
@@ -729,7 +730,7 @@ var fe = y`
|
|
|
729
730
|
},
|
|
730
731
|
disabled: $,
|
|
731
732
|
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__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(
|
|
733
|
+
children: [j === "draft" ? /* @__PURE__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(ue, { className: "h-4 w-4" }), j === "draft" ? "Saving…" : "Save Draft"]
|
|
733
734
|
}),
|
|
734
735
|
/* @__PURE__ */ S("button", {
|
|
735
736
|
type: "button",
|
|
@@ -738,7 +739,7 @@ var fe = y`
|
|
|
738
739
|
},
|
|
739
740
|
disabled: $,
|
|
740
741
|
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__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(
|
|
742
|
+
children: [j === "publish" ? /* @__PURE__ */ x(m, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(le, { className: "h-4 w-4" }), j === "publish" ? "Publishing…" : "Publish Event"]
|
|
742
743
|
})
|
|
743
744
|
]
|
|
744
745
|
})]
|