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