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