@burdenoff/microfe-headshotmarketing 2026.704.3 → 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.
Files changed (164) hide show
  1. package/dist/generated/wspace-operations.js +118 -111
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +27 -19
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/components/Toast.js +56 -2
  6. package/dist/headshotmarketing/components/Toast.js.map +1 -0
  7. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +1 -1
  8. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -1
  9. package/dist/headshotmarketing/pages/HomeFunnel.js +54 -0
  10. package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -0
  11. package/dist/headshotmarketing/pages/HomePage.js +423 -259
  12. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  13. package/dist/headshotmarketing/pages/HomeStatCard.js +79 -0
  14. package/dist/headshotmarketing/pages/HomeStatCard.js.map +1 -0
  15. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js +93 -0
  16. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js.map +1 -0
  17. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +452 -390
  18. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +405 -115
  20. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +566 -346
  22. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +107 -0
  24. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -0
  25. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +213 -0
  26. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -0
  27. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +150 -0
  28. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -0
  29. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +380 -371
  30. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +92 -0
  32. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -0
  33. package/dist/headshotmarketing/pages/builder/SectionContent.js +346 -0
  34. package/dist/headshotmarketing/pages/builder/SectionContent.js.map +1 -0
  35. package/dist/headshotmarketing/pages/builder/SectionInspector.js +358 -0
  36. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -0
  37. package/dist/headshotmarketing/pages/builder/builderCatalog.js +274 -0
  38. package/dist/headshotmarketing/pages/builder/builderCatalog.js.map +1 -0
  39. package/dist/headshotmarketing/pages/content/AIToolsPage.js +479 -193
  40. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +492 -197
  42. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/content/AssetThumbnail.js +37 -0
  44. package/dist/headshotmarketing/pages/content/AssetThumbnail.js.map +1 -0
  45. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +672 -219
  46. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +200 -0
  48. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -0
  49. package/dist/headshotmarketing/pages/content/ContentPage.js +224 -204
  50. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/content/ContentSubNav.js +51 -0
  52. package/dist/headshotmarketing/pages/content/ContentSubNav.js.map +1 -0
  53. package/dist/headshotmarketing/pages/crm/LeadsPage.js +250 -131
  54. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js +179 -0
  56. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js.map +1 -0
  57. package/dist/headshotmarketing/pages/events/CreateEventPage.js +631 -379
  58. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/events/EventImageUpload.js +123 -0
  60. package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -0
  61. package/dist/headshotmarketing/pages/events/EventPagePreview.js +99 -0
  62. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -0
  63. package/dist/headshotmarketing/pages/events/EventsPage.js +267 -228
  64. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js +50 -0
  66. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js.map +1 -0
  67. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +147 -0
  68. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -0
  69. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +562 -419
  70. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +108 -0
  72. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -0
  73. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +100 -0
  74. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -0
  75. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +315 -250
  76. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js +60 -0
  78. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js.map +1 -0
  79. package/dist/headshotmarketing/utils/automationMapper.js +1 -1
  80. package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
  81. package/dist/headshotmarketing/utils/contentMapper.js +4 -24
  82. package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
  83. package/dist/headshotmarketing/utils/eventsMapper.js +9 -9
  84. package/dist/headshotmarketing/utils/eventsMapper.js.map +1 -1
  85. package/dist/headshotmarketing/utils/helpers.js +7 -4
  86. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  87. package/dist/headshotmarketing/utils/influencerMapper.js +1 -1
  88. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  89. package/dist/node_modules/lodash/_arrayEach.js +14 -0
  90. package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
  91. package/dist/node_modules/lodash/_assignValue.js +17 -0
  92. package/dist/node_modules/lodash/_assignValue.js.map +1 -0
  93. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  94. package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
  95. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  96. package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
  97. package/dist/node_modules/lodash/_baseClone.js +64 -0
  98. package/dist/node_modules/lodash/_baseClone.js.map +1 -0
  99. package/dist/node_modules/lodash/_baseCreate.js +21 -0
  100. package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
  101. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  102. package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
  103. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  104. package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
  105. package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
  106. package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
  107. package/dist/node_modules/lodash/_baseUnset.js +26 -0
  108. package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
  109. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  110. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  111. package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
  112. package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
  113. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  114. package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
  115. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  116. package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
  117. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  118. package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
  119. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  120. package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  121. package/dist/node_modules/lodash/_copyArray.js +15 -0
  122. package/dist/node_modules/lodash/_copyArray.js.map +1 -0
  123. package/dist/node_modules/lodash/_copyObject.js +22 -0
  124. package/dist/node_modules/lodash/_copyObject.js.map +1 -0
  125. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  126. package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
  127. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  128. package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  129. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  130. package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
  131. package/dist/node_modules/lodash/_flatRest.js +17 -0
  132. package/dist/node_modules/lodash/_flatRest.js.map +1 -0
  133. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  134. package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  135. package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
  136. package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  137. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  138. package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
  139. package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
  140. package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
  141. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  142. package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
  143. package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
  144. package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  145. package/dist/node_modules/lodash/_parent.js +16 -0
  146. package/dist/node_modules/lodash/_parent.js.map +1 -0
  147. package/dist/node_modules/lodash/flatten.js +15 -0
  148. package/dist/node_modules/lodash/flatten.js.map +1 -0
  149. package/dist/node_modules/lodash/isMap.js +14 -0
  150. package/dist/node_modules/lodash/isMap.js.map +1 -0
  151. package/dist/node_modules/lodash/isSet.js +14 -0
  152. package/dist/node_modules/lodash/isSet.js.map +1 -0
  153. package/dist/node_modules/lodash/keysIn.js +17 -0
  154. package/dist/node_modules/lodash/keysIn.js.map +1 -0
  155. package/dist/node_modules/lodash/omit.js +28 -0
  156. package/dist/node_modules/lodash/omit.js.map +1 -0
  157. package/dist/node_modules/recharts/es6/chart/FunnelChart.js +15 -0
  158. package/dist/node_modules/recharts/es6/chart/FunnelChart.js.map +1 -0
  159. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js +370 -0
  160. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js.map +1 -0
  161. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +1 -1
  162. package/dist/node_modules/recharts/es6/util/FunnelUtils.js +81 -0
  163. package/dist/node_modules/recharts/es6/util/FunnelUtils.js.map +1 -0
  164. package/package.json +1 -1
@@ -1,43 +1,129 @@
1
- import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCreateEventMutation as t } from "../../../generated/wspace-operations.js";
2
- import "../../context/HeadshotmarketingBootstrapContext.js";
3
- import { useHeadshotMarketing as n } from "../../context/HeadshotMarketingContext.js";
4
- import { cn as r, joinPath as i } from "../../utils/helpers.js";
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 { useState as s } from "react";
9
- import { ArrowLeft as c, Clock as l, Plus as u, Save as d, Trash2 as f, User as p } from "lucide-react";
10
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
11
- import { EmphasisPanel as g, PagePurpose as _ } from "@burdenoff/fe-libs/ui";
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 v = () => {
14
- let { navigate: v, basePath: y } = n(), [b, { loading: x, error: S }] = t(), [C, w] = s("basic"), [T, E] = s(null), [D, O] = s({
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
- isVirtual: !0,
104
+ virtualUrl: "",
22
105
  maxCapacity: "",
23
- registrationUrl: ""
24
- }), [k, A] = s([{
106
+ registrationUrl: "",
107
+ coverImageUrl: "",
108
+ confirmationEmail: !0
109
+ }), [I, L] = u([{
25
110
  id: "1",
26
111
  name: "",
27
112
  title: "",
28
- company: ""
29
- }]), [j, M] = s([{
113
+ company: "",
114
+ avatarUrl: ""
115
+ }]), [R, z] = u([{
30
116
  id: "1",
31
117
  time: "09:00",
32
118
  title: "",
33
119
  speaker: ""
34
- }]), [N, P] = s({
120
+ }]), [B, V] = u({
35
121
  budget: "",
36
- tags: "",
122
+ tags: [],
37
123
  emailCampaign: !1,
38
124
  socialPromotion: !1,
39
125
  paidAds: !1
40
- }), F = [
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
- ], I = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", L = () => {
58
- A((e) => [...e, {
59
- id: String(Date.now()),
60
- name: "",
61
- title: "",
62
- company: ""
63
- }]);
64
- }, R = (e) => {
65
- A((t) => t.filter((t) => t.id !== e));
66
- }, z = () => {
67
- M((e) => [...e, {
68
- id: String(Date.now()),
69
- time: "",
70
- title: "",
71
- speaker: ""
72
- }]);
73
- }, B = (e) => {
74
- M((t) => t.filter((t) => t.id !== e));
75
- }, V = (e) => {
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
- }, H = async () => {
83
- if (!D.name.trim()) {
84
- E("Event name is required.");
175
+ }, Y = async (e) => {
176
+ if (!P.name.trim()) {
177
+ k("Event title is required."), O("basic");
85
178
  return;
86
179
  }
87
- if (!D.startDate || !D.endDate) {
88
- E("Start and end date are required.");
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(D.startDate), n = new Date(D.endDate);
184
+ let t = new Date(P.startDate), n = new Date(P.endDate);
92
185
  if (Number.isNaN(t.getTime()) || Number.isNaN(n.getTime())) {
93
- E("Start and end date must be valid.");
186
+ k("Start and end date must be valid."), O("basic");
94
187
  return;
95
188
  }
96
189
  if (n.getTime() < t.getTime()) {
97
- E("End date must be after start date.");
190
+ k("End date must be after the start date."), O("basic");
98
191
  return;
99
192
  }
100
- E(null);
101
- let r = N.tags.split(",").map((e) => e.trim()).filter(Boolean), a = {
102
- title: D.name.trim(),
103
- description: D.description || null,
104
- type: V(D.type),
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: D.isVirtual ? null : D.location || null,
108
- virtualUrl: D.isVirtual && D.location || null,
109
- maxAttendees: D.maxCapacity ? Number(D.maxCapacity) : null,
110
- timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
111
- tags: r,
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: D.registrationUrl || null,
114
- speakers: k,
115
- agenda: j,
116
- marketing: N
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 b({
121
- variables: { input: a },
122
- refetchQueries: [{
123
- query: e,
124
- variables: { limit: 200 }
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
- E(e instanceof Error ? e.message : "Failed to create event.");
231
+ k(e instanceof Error ? e.message : "Failed to save event.");
232
+ } finally {
233
+ j(null);
130
234
  }
131
- }, U = T ?? S?.message ?? null;
132
- return /* @__PURE__ */ h(o, {
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__ */ h("button", {
136
- onClick: () => v(i(y, "events")),
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__ */ m(c, { className: "h-4 w-4" }), "Back"]
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__ */ m(_, { children: "Set up a marketing event end to end — the basics (name, type, date and location), your speakers and agenda, ticketing, and the channels you'll promote it on. Fill in each tab, then publish to open registration." }),
142
- /* @__PURE__ */ m("div", {
143
- className: "border-b border-border-subtle",
144
- children: /* @__PURE__ */ m("div", {
145
- className: "flex flex-nowrap gap-6 overflow-x-auto",
146
- children: F.map((e) => /* @__PURE__ */ m("button", {
147
- onClick: () => w(e.key),
148
- className: r("whitespace-nowrap pb-3 text-sm font-medium transition-colors border-b-2", C === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
149
- children: e.label
150
- }, e.key))
151
- })
152
- }),
153
- /* @__PURE__ */ m("div", {
154
- className: "max-w-2xl",
155
- children: /* @__PURE__ */ h(g, {
156
- className: "p-6",
157
- children: [
158
- C === "basic" && /* @__PURE__ */ h("div", {
159
- className: "space-y-4",
160
- children: [
161
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
162
- className: "block text-sm font-medium text-text-primary mb-1",
163
- children: "Event Name"
164
- }), /* @__PURE__ */ m("input", {
165
- type: "text",
166
- value: D.name,
167
- onChange: (e) => O((t) => ({
168
- ...t,
169
- name: e.target.value
170
- })),
171
- placeholder: "Enter event name",
172
- className: I
173
- })] }),
174
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
175
- className: "block text-sm font-medium text-text-primary mb-1",
176
- children: "Description"
177
- }), /* @__PURE__ */ m("textarea", {
178
- value: D.description,
179
- onChange: (e) => O((t) => ({
180
- ...t,
181
- description: e.target.value
182
- })),
183
- placeholder: "Describe your event",
184
- rows: 3,
185
- className: r(I, "resize-none")
186
- })] }),
187
- /* @__PURE__ */ h("div", {
188
- className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
189
- children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
190
- className: "block text-sm font-medium text-text-primary mb-1",
191
- children: "Event Type"
192
- }), /* @__PURE__ */ h("select", {
193
- value: D.type,
194
- onChange: (e) => O((t) => ({
195
- ...t,
196
- type: e.target.value
197
- })),
198
- className: I,
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__ */ m("option", {
201
- value: "webinar",
202
- children: "Webinar"
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__ */ m("option", {
205
- value: "conference",
206
- children: "Conference"
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__ */ m("option", {
209
- value: "workshop",
210
- children: "Workshop"
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__ */ m("option", {
213
- value: "meetup",
214
- children: "Meetup"
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
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
273
- className: "block text-sm font-medium text-text-primary mb-1",
274
- children: D.isVirtual ? "Platform URL" : "Location"
275
- }), /* @__PURE__ */ m("input", {
276
- type: "text",
277
- value: D.location,
278
- onChange: (e) => O((t) => ({
279
- ...t,
280
- location: e.target.value
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__ */ m("input", {
308
- type: "text",
309
- placeholder: "Name",
310
- value: e.name,
311
- onChange: (t) => A((n) => n.map((n) => n.id === e.id ? {
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
- name: t.target.value
499
+ time: t.target.value
314
500
  } : n)),
315
- className: I
501
+ className: n(H, "w-28")
316
502
  }),
317
- /* @__PURE__ */ m("input", {
503
+ /* @__PURE__ */ x("input", {
318
504
  type: "text",
319
- placeholder: "Title",
505
+ placeholder: "Session title",
320
506
  value: e.title,
321
- onChange: (t) => A((n) => n.map((n) => n.id === e.id ? {
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: I
511
+ className: n(H, "min-w-[10rem] flex-1")
326
512
  }),
327
- /* @__PURE__ */ m("input", {
513
+ /* @__PURE__ */ x("input", {
328
514
  type: "text",
329
- placeholder: "Company",
330
- value: e.company,
331
- onChange: (t) => A((n) => n.map((n) => n.id === e.id ? {
515
+ placeholder: "Speaker",
516
+ value: e.speaker,
517
+ onChange: (t) => z((n) => n.map((n) => n.id === e.id ? {
332
518
  ...n,
333
- company: t.target.value
519
+ speaker: t.target.value
334
520
  } : n)),
335
- className: I
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
- }, e.id)), /* @__PURE__ */ h("button", {
340
- onClick: L,
341
- className: "inline-flex items-center gap-2 text-sm text-primary hover:underline",
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__ */ m("div", {
351
- className: "flex items-center gap-1 text-text-secondary pt-2",
352
- children: /* @__PURE__ */ m(l, { className: "h-3.5 w-3.5" })
353
- }),
354
- /* @__PURE__ */ m("input", {
355
- type: "time",
356
- value: e.time,
357
- onChange: (t) => M((n) => n.map((n) => n.id === e.id ? {
358
- ...n,
359
- time: t.target.value
360
- } : n)),
361
- className: r(I, "w-28")
362
- }),
363
- /* @__PURE__ */ m("input", {
364
- type: "text",
365
- placeholder: "Session title",
366
- value: e.title,
367
- onChange: (t) => M((n) => n.map((n) => n.id === e.id ? {
368
- ...n,
369
- title: t.target.value
370
- } : n)),
371
- className: r(I, "flex-1")
372
- }),
373
- /* @__PURE__ */ m("input", {
374
- type: "text",
375
- placeholder: "Speaker",
376
- value: e.speaker,
377
- onChange: (t) => M((n) => n.map((n) => n.id === e.id ? {
378
- ...n,
379
- speaker: t.target.value
380
- } : n)),
381
- className: r(I, "w-40")
382
- }),
383
- j.length > 1 && /* @__PURE__ */ m("button", {
384
- onClick: () => B(e.id),
385
- className: "p-2 rounded-md hover:bg-bg-sunken text-text-secondary hover:text-status-error-text",
386
- children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
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
- }, e.id)), /* @__PURE__ */ h("button", {
390
- onClick: z,
391
- className: "inline-flex items-center gap-2 text-sm text-primary hover:underline",
392
- children: [/* @__PURE__ */ m(u, { className: "h-4 w-4" }), "Add Agenda Item"]
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__ */ h("div", { children: [/* @__PURE__ */ m("label", {
399
- className: "block text-sm font-medium text-text-primary mb-1",
400
- children: "Marketing Budget ($)"
401
- }), /* @__PURE__ */ m("input", {
402
- type: "number",
403
- value: N.budget,
404
- onChange: (e) => P((t) => ({
405
- ...t,
406
- budget: e.target.value
407
- })),
408
- placeholder: "5000",
409
- className: I
410
- })] }),
411
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
412
- className: "block text-sm font-medium text-text-primary mb-1",
413
- children: "Tags"
414
- }), /* @__PURE__ */ m("input", {
415
- type: "text",
416
- value: N.tags,
417
- onChange: (e) => P((t) => ({
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
- key: "emailCampaign",
432
- label: "Email Campaign"
433
- },
434
- {
435
- key: "socialPromotion",
436
- label: "Social Media Promotion"
437
- },
438
- {
439
- key: "paidAds",
440
- label: "Paid Advertising"
441
- }
442
- ].map((e) => /* @__PURE__ */ h("label", {
443
- className: "flex items-center gap-2 text-sm text-text-primary",
444
- children: [/* @__PURE__ */ m("input", {
445
- type: "checkbox",
446
- checked: N[e.key],
447
- onChange: (t) => P((n) => ({
448
- ...n,
449
- [e.key]: t.target.checked
450
- })),
451
- className: "rounded border-border-subtle"
452
- }), e.label]
453
- }, e.key))
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
- U && /* @__PURE__ */ m("div", {
458
- className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
459
- children: U
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__ */ h("div", {
462
- className: "flex items-center justify-end gap-3 mt-6 pt-4 border-t border-border-subtle",
463
- children: [/* @__PURE__ */ m("button", {
464
- onClick: () => v(i(y, "events")),
465
- className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
466
- children: "Cancel"
467
- }), /* @__PURE__ */ h("button", {
468
- onClick: () => {
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 { v as CreateEventPage };
735
+ export { T as CreateEventPage };
484
736
 
485
737
  //# sourceMappingURL=CreateEventPage.js.map