@burdenoff/microfe-headshotmarketing 2026.624.1 → 2026.625.2

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 (101) hide show
  1. package/dist/headshotmarketing/components/ChartCard.js +11 -9
  2. package/dist/headshotmarketing/components/ChartCard.js.map +1 -1
  3. package/dist/headshotmarketing/components/DataTable.js +3 -3
  4. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  5. package/dist/headshotmarketing/components/EmptyState.js +17 -10
  6. package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
  7. package/dist/headshotmarketing/components/FilterBar.js +1 -1
  8. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  9. package/dist/headshotmarketing/components/Modal.js +2 -2
  10. package/dist/headshotmarketing/components/Modal.js.map +1 -1
  11. package/dist/headshotmarketing/components/StatCard.js +19 -16
  12. package/dist/headshotmarketing/components/StatCard.js.map +1 -1
  13. package/dist/headshotmarketing/components/StatusBadge.js +25 -25
  14. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  15. package/dist/headshotmarketing/pages/HomePage.js +259 -233
  16. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  17. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +239 -223
  18. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +167 -152
  20. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/ads/AdsPage.js +150 -111
  22. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +137 -122
  24. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +105 -103
  26. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  27. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +49 -47
  28. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +106 -104
  30. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +30 -28
  32. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  33. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +98 -86
  34. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +29 -27
  36. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/automation/AutomationPage.js +100 -61
  38. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/automation/TriggersPage.js +112 -101
  40. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +59 -57
  42. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +155 -139
  44. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +267 -262
  46. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +221 -192
  48. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +88 -94
  50. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +162 -149
  52. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +142 -140
  54. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/content/AIToolsPage.js +86 -78
  56. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +59 -47
  58. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +30 -28
  60. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +46 -44
  62. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/content/ContentPage.js +85 -78
  64. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/crm/ContactsPage.js +227 -212
  66. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  67. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +63 -62
  68. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +76 -75
  70. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/crm/CrmPage.js +170 -128
  72. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/crm/LeadsPage.js +60 -53
  74. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/crm/PipelinePage.js +185 -169
  76. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/events/CreateEventPage.js +344 -339
  78. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/events/EventsPage.js +107 -94
  80. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +162 -147
  82. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +105 -97
  84. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +62 -34
  86. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +203 -188
  88. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +134 -127
  90. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +40 -38
  92. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +74 -73
  94. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/social-media/PostsPage.js +160 -148
  96. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  97. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +41 -40
  98. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  99. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +121 -93
  100. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  101. package/package.json +2 -2
@@ -9,8 +9,9 @@ import { useEffect as u, useState as d } from "react";
9
9
  import { ArrowLeft as f, FileText as te, Image as ne, Rocket as re, Save as ie, Upload as ae, Video as oe, X as p } from "lucide-react";
10
10
  import { useParams as m } from "react-router-dom";
11
11
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
12
+ import { PagePurpose as _ } from "@burdenoff/fe-libs/ui";
12
13
  //#region src/headshotmarketing/pages/campaigns/CreateCampaignPage.tsx
13
- var _ = [
14
+ var v = [
14
15
  "Brand Awareness",
15
16
  "Lead Generation",
16
17
  "Sales Conversion",
@@ -19,7 +20,7 @@ var _ = [
19
20
  "Engagement",
20
21
  "Product Launch",
21
22
  "Market Research"
22
- ], v = [
23
+ ], y = [
23
24
  "Google Ads",
24
25
  "Facebook",
25
26
  "Instagram",
@@ -30,7 +31,7 @@ var _ = [
30
31
  "Email",
31
32
  "Blog",
32
33
  "Display Network"
33
- ], y = [
34
+ ], se = [
34
35
  "Impressions",
35
36
  "Clicks",
36
37
  "CTR",
@@ -41,7 +42,7 @@ var _ = [
41
42
  "Revenue",
42
43
  "Engagement Rate",
43
44
  "Reach"
44
- ], b = [
45
+ ], ce = [
45
46
  {
46
47
  value: "email",
47
48
  label: "Email"
@@ -70,20 +71,20 @@ var _ = [
70
71
  value: "content",
71
72
  label: "Content"
72
73
  }
73
- ], se = [
74
+ ], le = [
74
75
  "USD",
75
76
  "EUR",
76
77
  "GBP",
77
78
  "CAD",
78
79
  "AUD"
79
- ], ce = [
80
+ ], ue = [
80
81
  "Urban Professionals",
81
82
  "College Students",
82
83
  "Parents",
83
84
  "Retirees",
84
85
  "Tech Enthusiasts",
85
86
  "Small Business Owners"
86
- ], le = [
87
+ ], de = [
87
88
  {
88
89
  key: "basics",
89
90
  label: "Basics"
@@ -105,64 +106,64 @@ var _ = [
105
106
  label: "Tracking"
106
107
  }
107
108
  ];
108
- function x(e) {
109
+ function b(e) {
109
110
  return typeof e == "object" && e && !Array.isArray(e) ? e : {};
110
111
  }
111
- function S(e) {
112
+ function x(e) {
112
113
  return Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
113
114
  }
114
- function C(e, t) {
115
+ function S(e, t) {
115
116
  let n = Number(e);
116
117
  return Number.isFinite(n) ? String(n) : t;
117
118
  }
118
- function w(e, t) {
119
- let n = x(t.ageRange);
119
+ function C(e, t) {
120
+ let n = b(t.ageRange);
120
121
  return {
121
122
  name: e?.name ?? "",
122
123
  description: e?.description ?? "",
123
124
  type: e?.type ?? "",
124
- objectives: S(t.objectives),
125
+ objectives: x(t.objectives),
125
126
  channels: e?.channels ?? [],
126
127
  budget: e ? String(e.budget.total) : "",
127
128
  currency: String(t.currency ?? e?.budget.currency ?? "USD"),
128
129
  startDate: e?.timeline.startDate ?? "",
129
130
  endDate: e?.timeline.endDate ?? "",
130
- kpis: S(t.kpis),
131
+ kpis: x(t.kpis),
131
132
  tags: e?.tags ?? [],
132
- ageMin: C(n.min, "18"),
133
- ageMax: C(n.max, "65"),
133
+ ageMin: S(n.min, "18"),
134
+ ageMax: S(n.max, "65"),
134
135
  demographics: e?.targeting.demographics ?? []
135
136
  };
136
137
  }
137
- var T = () => {
138
- let { navigate: S, basePath: C } = e(), { id: T } = m(), { data: ue, loading: E, error: de } = ee({
139
- skip: !T,
140
- variables: T ? { id: T } : void 0
141
- }), D = ue?.headshotmarketingCampaign, O = D ? o(D) : null, k = x(D?.goals), A = !!T, [j, { loading: M, error: N }] = r(), [P, { loading: F, error: I }] = i(), [L, R] = d("basics"), [z, B] = d(""), [V, H] = d(""), [fe, U] = d(null), [W, G] = d(() => w(O, k));
138
+ var w = () => {
139
+ let { navigate: x, basePath: S } = e(), { id: w } = m(), { data: fe, loading: T, error: pe } = ee({
140
+ skip: !w,
141
+ variables: w ? { id: w } : void 0
142
+ }), E = fe?.headshotmarketingCampaign, D = E ? o(E) : null, O = b(E?.goals), k = !!w, [A, { loading: j, error: M }] = r(), [N, { loading: P, error: F }] = i(), [I, L] = d("basics"), [R, z] = d(""), [B, V] = d(""), [me, H] = d(null), [U, W] = d(() => C(D, O));
142
143
  u(() => {
143
- O && G(w(O, k));
144
- }, [D?.id, D?.updatedAt]);
145
- let K = (e, t) => {
146
- G((n) => ({
144
+ D && W(C(D, O));
145
+ }, [E?.id, E?.updatedAt]);
146
+ let G = (e, t) => {
147
+ W((n) => ({
147
148
  ...n,
148
149
  [e]: t
149
150
  }));
150
- }, q = (e, t) => {
151
- G((n) => ({
151
+ }, K = (e, t) => {
152
+ W((n) => ({
152
153
  ...n,
153
154
  [e]: n[e].includes(t) ? n[e].filter((e) => e !== t) : [...n[e], t]
154
155
  }));
155
- }, J = () => {
156
- let e = z.trim();
157
- e && !W.tags.includes(e) && K("tags", [...W.tags, e]), B("");
158
- }, pe = (e) => {
159
- K("tags", W.tags.filter((t) => t !== e));
160
- }, Y = (e) => {
161
- let t = (e || V).trim();
162
- t && !W.demographics.includes(t) && K("demographics", [...W.demographics, t]), H("");
163
- }, me = (e) => {
164
- K("demographics", W.demographics.filter((t) => t !== e));
156
+ }, q = () => {
157
+ let e = R.trim();
158
+ e && !U.tags.includes(e) && G("tags", [...U.tags, e]), z("");
165
159
  }, he = (e) => {
160
+ G("tags", U.tags.filter((t) => t !== e));
161
+ }, J = (e) => {
162
+ let t = (e || B).trim();
163
+ t && !U.demographics.includes(t) && G("demographics", [...U.demographics, t]), V("");
164
+ }, ge = (e) => {
165
+ G("demographics", U.demographics.filter((t) => t !== e));
166
+ }, _e = (e) => {
166
167
  switch (e) {
167
168
  case "email": return l.Email;
168
169
  case "social": return l.Social;
@@ -172,67 +173,67 @@ var T = () => {
172
173
  case "influencer": return l.Influencer;
173
174
  default: return l.Content;
174
175
  }
175
- }, ge = (e) => {
176
+ }, Y = (e) => {
176
177
  if (e === "draft") return c.Draft;
177
- if (W.startDate) {
178
- let e = new Date(W.startDate).getTime();
178
+ if (U.startDate) {
179
+ let e = new Date(U.startDate).getTime();
179
180
  if (Number.isFinite(e) && e > Date.now()) return c.Scheduled;
180
181
  }
181
182
  return c.Active;
182
- }, _e = () => {
183
- if (!W.name.trim()) return "Campaign name is required.";
184
- if (!W.type) return "Campaign type is required.";
185
- if (W.budget) {
186
- let e = Number(W.budget);
183
+ }, ve = () => {
184
+ if (!U.name.trim()) return "Campaign name is required.";
185
+ if (!U.type) return "Campaign type is required.";
186
+ if (U.budget) {
187
+ let e = Number(U.budget);
187
188
  if (!Number.isFinite(e) || e < 0) return "Budget must be a valid non-negative number.";
188
189
  }
189
- let e = Number(W.ageMin), t = Number(W.ageMax);
190
+ let e = Number(U.ageMin), t = Number(U.ageMax);
190
191
  if (!Number.isFinite(e) || !Number.isFinite(t) || e > t) return "Age range is invalid.";
191
- if (W.startDate && W.endDate) {
192
- let e = new Date(W.startDate).getTime(), t = new Date(W.endDate).getTime();
192
+ if (U.startDate && U.endDate) {
193
+ let e = new Date(U.startDate).getTime(), t = new Date(U.endDate).getTime();
193
194
  if (Number.isFinite(e) && Number.isFinite(t) && t < e) return "End date must be on or after start date.";
194
195
  }
195
196
  return null;
196
197
  }, X = (e) => {
197
- let t = W.type ? he(W.type) : l.Content;
198
+ let t = U.type ? _e(U.type) : l.Content;
198
199
  return {
199
- name: W.name,
200
- description: W.description || null,
200
+ name: U.name,
201
+ description: U.description || null,
201
202
  type: t,
202
- status: ge(e),
203
- budget: W.budget ? Number(W.budget) : null,
204
- startDate: W.startDate || null,
205
- endDate: W.endDate || null,
206
- tags: W.tags,
207
- metadata: { currency: W.currency },
203
+ status: Y(e),
204
+ budget: U.budget ? Number(U.budget) : null,
205
+ startDate: U.startDate || null,
206
+ endDate: U.endDate || null,
207
+ tags: U.tags,
208
+ metadata: { currency: U.currency },
208
209
  goals: {
209
- currency: W.currency,
210
- objectives: W.objectives,
211
- channels: W.channels,
212
- kpis: W.kpis,
213
- demographics: W.demographics,
210
+ currency: U.currency,
211
+ objectives: U.objectives,
212
+ channels: U.channels,
213
+ kpis: U.kpis,
214
+ demographics: U.demographics,
214
215
  ageRange: {
215
- min: Number(W.ageMin || "18"),
216
- max: Number(W.ageMax || "65")
216
+ min: Number(U.ageMin || "18"),
217
+ max: Number(U.ageMax || "65")
217
218
  }
218
219
  }
219
220
  };
220
221
  }, Z = async (e) => {
221
- let r = _e();
222
+ let r = ve();
222
223
  if (r) {
223
- U(r);
224
+ H(r);
224
225
  return;
225
226
  }
226
- U(null);
227
+ H(null);
227
228
  try {
228
- A && T ? await P({
229
+ k && w ? await N({
229
230
  variables: {
230
- id: T,
231
+ id: w,
231
232
  input: X(e)
232
233
  },
233
234
  refetchQueries: [{
234
235
  query: t,
235
- variables: { id: T }
236
+ variables: { id: w }
236
237
  }, {
237
238
  query: n,
238
239
  variables: {
@@ -241,7 +242,7 @@ var T = () => {
241
242
  }
242
243
  }],
243
244
  awaitRefetchQueries: !0
244
- }) : await j({
245
+ }) : await A({
245
246
  variables: { input: X(e) },
246
247
  refetchQueries: [{
247
248
  query: n,
@@ -251,21 +252,21 @@ var T = () => {
251
252
  }
252
253
  }],
253
254
  awaitRefetchQueries: !0
254
- }), S(C + "/campaigns");
255
+ }), x(S + "/campaigns");
255
256
  } catch (e) {
256
- U(e instanceof Error ? e.message : "Failed to save campaign.");
257
+ H(e instanceof Error ? e.message : "Failed to save campaign.");
257
258
  }
258
- }, Q = M || F, $ = fe ?? N?.message ?? I?.message ?? null;
259
- return A && E && !O ? /* @__PURE__ */ h(s, {
259
+ }, Q = j || P, $ = me ?? M?.message ?? F?.message ?? null;
260
+ return k && T && !D ? /* @__PURE__ */ h(s, {
260
261
  title: "Edit Campaign",
261
262
  children: /* @__PURE__ */ h("div", {
262
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6 text-sm text-text-secondary",
263
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-sm text-text-secondary",
263
264
  children: "Loading campaign details..."
264
265
  })
265
- }) : A && !E && !O ? /* @__PURE__ */ h(s, {
266
+ }) : k && !T && !D ? /* @__PURE__ */ h(s, {
266
267
  title: "Edit Campaign",
267
268
  children: /* @__PURE__ */ g("div", {
268
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
269
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
269
270
  children: [
270
271
  /* @__PURE__ */ h("p", {
271
272
  className: "text-sm font-medium text-text-primary",
@@ -273,28 +274,29 @@ var T = () => {
273
274
  }),
274
275
  /* @__PURE__ */ h("p", {
275
276
  className: "text-xs text-text-secondary mt-1",
276
- children: de?.message ?? "The requested campaign could not be loaded."
277
+ children: pe?.message ?? "The requested campaign could not be loaded."
277
278
  }),
278
279
  /* @__PURE__ */ g("button", {
279
- onClick: () => S(C + "/campaigns"),
280
+ onClick: () => x(S + "/campaigns"),
280
281
  className: "mt-4 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",
281
282
  children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), "Back to Campaigns"]
282
283
  })
283
284
  ]
284
285
  })
285
286
  }) : /* @__PURE__ */ g(s, {
286
- title: A ? "Edit Campaign" : "Create Campaign",
287
+ title: k ? "Edit Campaign" : "Create Campaign",
287
288
  actions: /* @__PURE__ */ g("button", {
288
- onClick: () => S(C + "/campaigns"),
289
- className: "inline-flex items-center gap-2 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
289
+ onClick: () => x(S + "/campaigns"),
290
+ className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
290
291
  children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), "Back to Campaigns"]
291
292
  }),
292
293
  children: [
294
+ /* @__PURE__ */ h(_, { children: k ? "Refine this campaign's setup — its goals, audience targeting, creative, budget and the KPIs you'll track. Changes apply the next time the campaign runs." : "Set up a new campaign step by step: name it and pick a type, define who you're targeting, attach creative, set a budget and timeline, then choose the KPIs you want to measure. Save as a draft anytime or launch when ready." }),
293
295
  /* @__PURE__ */ h("div", {
294
296
  className: "flex items-center gap-1 border-b border-border-subtle",
295
- children: le.map((e, t) => /* @__PURE__ */ g("button", {
296
- onClick: () => R(e.key),
297
- className: a("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", L === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
297
+ children: de.map((e, t) => /* @__PURE__ */ g("button", {
298
+ onClick: () => L(e.key),
299
+ className: a("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", I === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
298
300
  children: [/* @__PURE__ */ g("span", {
299
301
  className: "mr-1.5 text-xs text-text-secondary",
300
302
  children: [t + 1, "."]
@@ -302,9 +304,9 @@ var T = () => {
302
304
  }, e.key))
303
305
  }),
304
306
  /* @__PURE__ */ g("div", {
305
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6 shadow-sm",
307
+ className: "rounded-lg border border-border-seam bg-gloss-card p-6 shadow-pop",
306
308
  children: [
307
- L === "basics" && /* @__PURE__ */ g("div", {
309
+ I === "basics" && /* @__PURE__ */ g("div", {
308
310
  className: "space-y-6 max-w-2xl",
309
311
  children: [
310
312
  /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
@@ -312,8 +314,8 @@ var T = () => {
312
314
  children: "Campaign Name"
313
315
  }), /* @__PURE__ */ h("input", {
314
316
  type: "text",
315
- value: W.name,
316
- onChange: (e) => K("name", e.target.value),
317
+ value: U.name,
318
+ onChange: (e) => G("name", e.target.value),
317
319
  placeholder: "Enter campaign name...",
318
320
  className: "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)]"
319
321
  })] }),
@@ -321,13 +323,13 @@ var T = () => {
321
323
  className: "block text-sm font-medium text-text-primary mb-1.5",
322
324
  children: "Campaign Type"
323
325
  }), /* @__PURE__ */ g("select", {
324
- value: W.type,
325
- onChange: (e) => K("type", e.target.value),
326
+ value: U.type,
327
+ onChange: (e) => G("type", e.target.value),
326
328
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
327
329
  children: [/* @__PURE__ */ h("option", {
328
330
  value: "",
329
331
  children: "Select type..."
330
- }), b.map((e) => /* @__PURE__ */ h("option", {
332
+ }), ce.map((e) => /* @__PURE__ */ h("option", {
331
333
  value: e.value,
332
334
  children: e.label
333
335
  }, e.value))]
@@ -336,8 +338,8 @@ var T = () => {
336
338
  className: "block text-sm font-medium text-text-primary mb-1.5",
337
339
  children: "Description"
338
340
  }), /* @__PURE__ */ h("textarea", {
339
- value: W.description,
340
- onChange: (e) => K("description", e.target.value),
341
+ value: U.description,
342
+ onChange: (e) => G("description", e.target.value),
341
343
  placeholder: "Describe the campaign goals and strategy...",
342
344
  rows: 4,
343
345
  className: "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)] resize-none"
@@ -347,15 +349,15 @@ var T = () => {
347
349
  children: "Objectives"
348
350
  }), /* @__PURE__ */ h("div", {
349
351
  className: "flex flex-wrap gap-2",
350
- children: _.map((e) => /* @__PURE__ */ h("button", {
351
- onClick: () => q("objectives", e),
352
- className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", W.objectives.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
352
+ children: v.map((e) => /* @__PURE__ */ h("button", {
353
+ onClick: () => K("objectives", e),
354
+ className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", U.objectives.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
353
355
  children: e
354
356
  }, e))
355
357
  })] })
356
358
  ]
357
359
  }),
358
- L === "targeting" && /* @__PURE__ */ g("div", {
360
+ I === "targeting" && /* @__PURE__ */ g("div", {
359
361
  className: "space-y-6 max-w-2xl",
360
362
  children: [
361
363
  /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
@@ -366,8 +368,8 @@ var T = () => {
366
368
  children: [
367
369
  /* @__PURE__ */ h("input", {
368
370
  type: "number",
369
- value: W.ageMin,
370
- onChange: (e) => K("ageMin", e.target.value),
371
+ value: U.ageMin,
372
+ onChange: (e) => G("ageMin", e.target.value),
371
373
  min: 13,
372
374
  max: 100,
373
375
  className: "w-24 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
@@ -378,8 +380,8 @@ var T = () => {
378
380
  }),
379
381
  /* @__PURE__ */ h("input", {
380
382
  type: "number",
381
- value: W.ageMax,
382
- onChange: (e) => K("ageMax", e.target.value),
383
+ value: U.ageMax,
384
+ onChange: (e) => G("ageMax", e.target.value),
383
385
  min: 13,
384
386
  max: 100,
385
387
  className: "w-24 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
@@ -393,10 +395,10 @@ var T = () => {
393
395
  }),
394
396
  /* @__PURE__ */ h("div", {
395
397
  className: "flex flex-wrap gap-2 mb-2",
396
- children: W.demographics.map((e) => /* @__PURE__ */ g("span", {
398
+ children: U.demographics.map((e) => /* @__PURE__ */ g("span", {
397
399
  className: "inline-flex items-center gap-1 rounded-full border border-border-subtle bg-bg-sunken px-2.5 py-1 text-xs font-medium text-text-primary",
398
400
  children: [e, /* @__PURE__ */ h("button", {
399
- onClick: () => me(e),
401
+ onClick: () => ge(e),
400
402
  className: "text-text-secondary hover:text-text-primary",
401
403
  children: /* @__PURE__ */ h(p, { className: "h-3 w-3" })
402
404
  })]
@@ -406,21 +408,21 @@ var T = () => {
406
408
  className: "flex items-center gap-2 mb-2",
407
409
  children: [/* @__PURE__ */ h("input", {
408
410
  type: "text",
409
- value: V,
410
- onChange: (e) => H(e.target.value),
411
- onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), Y()),
411
+ value: B,
412
+ onChange: (e) => V(e.target.value),
413
+ onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), J()),
412
414
  placeholder: "Add demographic...",
413
415
  className: "flex-1 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)]"
414
416
  }), /* @__PURE__ */ h("button", {
415
- onClick: () => Y(),
417
+ onClick: () => J(),
416
418
  className: "rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
417
419
  children: "Add"
418
420
  })]
419
421
  }),
420
422
  /* @__PURE__ */ h("div", {
421
423
  className: "flex flex-wrap gap-1.5",
422
- children: ce.filter((e) => !W.demographics.includes(e)).map((e) => /* @__PURE__ */ g("button", {
423
- onClick: () => Y(e),
424
+ children: ue.filter((e) => !U.demographics.includes(e)).map((e) => /* @__PURE__ */ g("button", {
425
+ onClick: () => J(e),
424
426
  className: "rounded-full border border-dashed border-border-subtle px-2.5 py-1 text-xs text-text-secondary hover:text-text-primary hover:border-foreground transition-colors",
425
427
  children: ["+ ", e]
426
428
  }, e))
@@ -431,15 +433,15 @@ var T = () => {
431
433
  children: "Channels"
432
434
  }), /* @__PURE__ */ h("div", {
433
435
  className: "flex flex-wrap gap-2",
434
- children: v.map((e) => /* @__PURE__ */ h("button", {
435
- onClick: () => q("channels", e),
436
- className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", W.channels.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
436
+ children: y.map((e) => /* @__PURE__ */ h("button", {
437
+ onClick: () => K("channels", e),
438
+ className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", U.channels.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
437
439
  children: e
438
440
  }, e))
439
441
  })] })
440
442
  ]
441
443
  }),
442
- L === "content" && /* @__PURE__ */ g("div", {
444
+ I === "content" && /* @__PURE__ */ g("div", {
443
445
  className: "space-y-6",
444
446
  children: [/* @__PURE__ */ h("p", {
445
447
  className: "text-sm text-text-secondary",
@@ -485,7 +487,7 @@ var T = () => {
485
487
  }, e.label))
486
488
  })]
487
489
  }),
488
- L === "budget" && /* @__PURE__ */ g("div", {
490
+ I === "budget" && /* @__PURE__ */ g("div", {
489
491
  className: "space-y-6 max-w-2xl",
490
492
  children: [/* @__PURE__ */ g("div", {
491
493
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
@@ -494,8 +496,8 @@ var T = () => {
494
496
  children: "Budget"
495
497
  }), /* @__PURE__ */ h("input", {
496
498
  type: "number",
497
- value: W.budget,
498
- onChange: (e) => K("budget", e.target.value),
499
+ value: U.budget,
500
+ onChange: (e) => G("budget", e.target.value),
499
501
  placeholder: "0",
500
502
  min: 0,
501
503
  className: "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)]"
@@ -503,10 +505,10 @@ var T = () => {
503
505
  className: "block text-sm font-medium text-text-primary mb-1.5",
504
506
  children: "Currency"
505
507
  }), /* @__PURE__ */ h("select", {
506
- value: W.currency,
507
- onChange: (e) => K("currency", e.target.value),
508
+ value: U.currency,
509
+ onChange: (e) => G("currency", e.target.value),
508
510
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
509
- children: se.map((e) => /* @__PURE__ */ h("option", {
511
+ children: le.map((e) => /* @__PURE__ */ h("option", {
510
512
  value: e,
511
513
  children: e
512
514
  }, e))
@@ -518,30 +520,30 @@ var T = () => {
518
520
  children: "Start Date"
519
521
  }), /* @__PURE__ */ h("input", {
520
522
  type: "date",
521
- value: W.startDate,
522
- onChange: (e) => K("startDate", e.target.value),
523
+ value: U.startDate,
524
+ onChange: (e) => G("startDate", e.target.value),
523
525
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
524
526
  })] }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
525
527
  className: "block text-sm font-medium text-text-primary mb-1.5",
526
528
  children: "End Date"
527
529
  }), /* @__PURE__ */ h("input", {
528
530
  type: "date",
529
- value: W.endDate,
530
- onChange: (e) => K("endDate", e.target.value),
531
+ value: U.endDate,
532
+ onChange: (e) => G("endDate", e.target.value),
531
533
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
532
534
  })] })]
533
535
  })]
534
536
  }),
535
- L === "tracking" && /* @__PURE__ */ g("div", {
537
+ I === "tracking" && /* @__PURE__ */ g("div", {
536
538
  className: "space-y-6 max-w-2xl",
537
539
  children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
538
540
  className: "block text-sm font-medium text-text-primary mb-2",
539
541
  children: "Key Performance Indicators"
540
542
  }), /* @__PURE__ */ h("div", {
541
543
  className: "flex flex-wrap gap-2",
542
- children: y.map((e) => /* @__PURE__ */ h("button", {
543
- onClick: () => q("kpis", e),
544
- className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", W.kpis.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
544
+ children: se.map((e) => /* @__PURE__ */ h("button", {
545
+ onClick: () => K("kpis", e),
546
+ className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", U.kpis.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
545
547
  children: e
546
548
  }, e))
547
549
  })] }), /* @__PURE__ */ g("div", { children: [
@@ -551,10 +553,10 @@ var T = () => {
551
553
  }),
552
554
  /* @__PURE__ */ h("div", {
553
555
  className: "flex flex-wrap gap-2 mb-2",
554
- children: W.tags.map((e) => /* @__PURE__ */ g("span", {
556
+ children: U.tags.map((e) => /* @__PURE__ */ g("span", {
555
557
  className: "inline-flex items-center gap-1 rounded-full border border-border-subtle bg-bg-sunken px-2.5 py-1 text-xs font-medium text-text-primary",
556
558
  children: [e, /* @__PURE__ */ h("button", {
557
- onClick: () => pe(e),
559
+ onClick: () => he(e),
558
560
  className: "text-text-secondary hover:text-text-primary",
559
561
  children: /* @__PURE__ */ h(p, { className: "h-3 w-3" })
560
562
  })]
@@ -564,13 +566,13 @@ var T = () => {
564
566
  className: "flex items-center gap-2",
565
567
  children: [/* @__PURE__ */ h("input", {
566
568
  type: "text",
567
- value: z,
568
- onChange: (e) => B(e.target.value),
569
- onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), J()),
569
+ value: R,
570
+ onChange: (e) => z(e.target.value),
571
+ onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), q()),
570
572
  placeholder: "Add a tag...",
571
573
  className: "flex-1 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)]"
572
574
  }), /* @__PURE__ */ h("button", {
573
- onClick: J,
575
+ onClick: q,
574
576
  className: "rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
575
577
  children: "Add"
576
578
  })]
@@ -584,24 +586,24 @@ var T = () => {
584
586
  children: $
585
587
  }),
586
588
  /* @__PURE__ */ g("div", {
587
- className: "flex items-center justify-end gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
589
+ className: "flex items-center justify-end gap-3 rounded-lg border border-border-seam bg-gloss-card p-4 shadow-pop",
588
590
  children: [
589
591
  /* @__PURE__ */ h("button", {
590
- onClick: () => S(C + "/campaigns"),
592
+ onClick: () => x(S + "/campaigns"),
591
593
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
592
594
  children: "Cancel"
593
595
  }),
594
596
  /* @__PURE__ */ g("button", {
595
597
  onClick: () => Z("draft"),
596
598
  disabled: Q,
597
- className: "inline-flex items-center gap-2 rounded-md border border-border-subtle bg-bg-surface px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
599
+ className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
598
600
  children: [/* @__PURE__ */ h(ie, { className: "h-4 w-4" }), "Save Draft"]
599
601
  }),
600
602
  /* @__PURE__ */ g("button", {
601
603
  onClick: () => Z("launch"),
602
604
  disabled: Q,
603
605
  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",
604
- children: [/* @__PURE__ */ h(re, { className: "h-4 w-4" }), A ? "Update Campaign" : "Create Campaign"]
606
+ children: [/* @__PURE__ */ h(re, { className: "h-4 w-4" }), k ? "Update Campaign" : "Create Campaign"]
605
607
  })
606
608
  ]
607
609
  })
@@ -609,6 +611,6 @@ var T = () => {
609
611
  });
610
612
  };
611
613
  //#endregion
612
- export { T as CreateCampaignPage };
614
+ export { w as CreateCampaignPage };
613
615
 
614
616
  //# sourceMappingURL=CreateCampaignPage.js.map