@burdenoff/microfe-headshotmarketing 2026.625.1 → 2026.626.1

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