@burdenoff/microfe-headshotmarketing 2026.1202.2 → 2026.1203.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 (53) hide show
  1. package/dist/generated/wspace-operations.d.ts +598 -0
  2. package/dist/generated/wspace-operations.js +728 -443
  3. package/dist/generated/wspace-operations.js.map +1 -1
  4. package/dist/generated/wspace-types.d.ts +281 -4
  5. package/dist/generated/wspace-types.js +21 -19
  6. package/dist/generated/wspace-types.js.map +1 -1
  7. package/dist/headshotmarketing/components/CrmRecordSelection.js +92 -47
  8. package/dist/headshotmarketing/components/CrmRecordSelection.js.map +1 -1
  9. package/dist/headshotmarketing/components/EntityTagPicker.d.ts +9 -0
  10. package/dist/headshotmarketing/components/EntityTagPicker.js +261 -0
  11. package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -0
  12. package/dist/headshotmarketing/components/index.d.ts +1 -0
  13. package/dist/headshotmarketing/components/index.js +2 -1
  14. package/dist/headshotmarketing/hooks/useEntityTags.d.ts +31 -0
  15. package/dist/headshotmarketing/hooks/useEntityTags.js +34 -0
  16. package/dist/headshotmarketing/hooks/useEntityTags.js.map +1 -0
  17. package/dist/headshotmarketing/pages/HomePage.js +33 -26
  18. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +182 -174
  20. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/ads/AdsPage.js +0 -8
  22. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +173 -164
  24. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +0 -4
  26. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  27. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +0 -4
  28. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +0 -4
  30. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/automation/AutomationPage.js +28 -25
  32. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  33. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +460 -275
  34. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +163 -155
  36. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +2 -0
  38. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +136 -128
  40. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/content/ContentPage.js +1 -0
  42. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/crm/ContactsPage.js +1 -0
  44. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +430 -253
  46. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +0 -3
  48. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/social-media/PostsPage.js +3 -6
  50. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +0 -8
  52. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  53. package/package.json +1 -1
@@ -18,14 +18,15 @@ import { ChartCard as de } from "../../components/ChartCard.js";
18
18
  import { QueryStateBoundary as fe } from "../../components/QueryStateBoundary.js";
19
19
  import { useHeadshotMarketing as pe } from "../../context/HeadshotMarketingContext.js";
20
20
  import { CampaignAiPanel as me } from "./CampaignAiPanel.js";
21
+ import { EntityTagPicker as he } from "../../components/EntityTagPicker.js";
21
22
  import { useState as m } from "react";
22
- import { Activity as he, Archive as ge, ArrowLeft as h, Calendar as _e, Clock as ve, Copy as ye, DollarSign as g, Edit as _, FileText as v, Image as y, Pause as be, Play as xe, Target as b, Trash2 as Se, TrendingUp as x } from "lucide-react";
23
- import { useParams as Ce } from "react-router";
24
- import { jsx as S, jsxs as C } from "react/jsx-runtime";
25
- import { CTAOverflowMenu as w, EmphasisPanel as T, NextSteps as E, PagePurpose as D, useConfirm as O } from "@burdenoff/fe-libs/ui";
23
+ import { Activity as ge, Archive as _e, ArrowLeft as h, Calendar as ve, Clock as ye, Copy as be, DollarSign as g, Edit as _, FileText as v, Image as y, Pause as xe, Play as Se, Target as b, Trash2 as Ce, TrendingUp as x } from "lucide-react";
24
+ import { useParams as S } from "react-router";
25
+ import { jsx as C, jsxs as w } from "react/jsx-runtime";
26
+ import { CTAOverflowMenu as T, EmphasisPanel as E, NextSteps as D, PagePurpose as O, useConfirm as k } from "@burdenoff/fe-libs/ui";
26
27
  // src/headshotmarketing/pages/campaigns/CampaignDetailsPage.tsx
27
- var k = [{ query: r }, i];
28
- function A(e) {
28
+ var A = [{ query: r }, i];
29
+ function we(e) {
29
30
  return e.toLowerCase().split(/[_\s]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
30
31
  }
31
32
  var j = [
@@ -36,14 +37,14 @@ var j = [
36
37
  "var(--color-chart-5)",
37
38
  "var(--color-chart-6)"
38
39
  ];
39
- function we(e) {
40
+ function Te(e) {
40
41
  return e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase();
41
42
  }
42
43
  var M = () => {
43
- let r = O(), { navigate: i, basePath: M } = pe(), { campaignId: N } = Ce(), { data: Te, loading: Ee, error: De, refetch: Oe } = o({
44
+ let r = k(), { navigate: i, basePath: M } = pe(), { campaignId: N } = S(), { data: Ee, loading: De, error: Oe, refetch: ke } = o({
44
45
  skip: !N,
45
46
  variables: N ? { id: N } : void 0
46
- }), [ke, { loading: Ae }] = a(), [P, { loading: je }] = ae(), [Me, { loading: Ne }] = ie(), [F, I] = m("overview"), [L, R] = m(null), z = Te?.headshotmarketingCampaign, B = z ? ce(z) : null, V = z?.status, H = V === c.Paused, Pe = V === c.Archived, U = je || Ne || Ae, { data: Fe, loading: Ie, error: Le } = s({
47
+ }), [Ae, { loading: je }] = a(), [Me, { loading: Ne }] = ae(), [P, { loading: Pe }] = ie(), [F, I] = m("overview"), [L, R] = m(null), z = Ee?.headshotmarketingCampaign, B = z ? ce(z) : null, V = z?.status, H = V === c.Paused, Fe = V === c.Archived, U = Ne || Pe || je, { data: Ie, loading: Le, error: Re } = s({
47
48
  skip: !N,
48
49
  variables: { filter: {
49
50
  resourceId: N,
@@ -51,22 +52,22 @@ var M = () => {
51
52
  } },
52
53
  errorPolicy: "all",
53
54
  fetchPolicy: "cache-and-network"
54
- }), W = Fe?.getActivities ?? [], G = async (e) => {
55
+ }), W = Ie?.getActivities ?? [], G = async (e) => {
55
56
  if (N) {
56
57
  R(null);
57
58
  try {
58
- await P({
59
+ await Me({
59
60
  variables: {
60
61
  id: N,
61
62
  input: { status: e }
62
63
  },
63
- refetchQueries: k
64
+ refetchQueries: A
64
65
  });
65
66
  } catch (e) {
66
67
  R(e instanceof Error ? e.message : "Failed to update campaign.");
67
68
  }
68
69
  }
69
- }, Re = async () => {
70
+ }, ze = async () => {
70
71
  if (z) {
71
72
  R(null);
72
73
  try {
@@ -80,9 +81,9 @@ var M = () => {
80
81
  endDate: z.endDate ?? null,
81
82
  tags: z.tags,
82
83
  goals: z.goals ?? void 0
83
- }, t = (await Me({
84
+ }, t = (await P({
84
85
  variables: { input: e },
85
- refetchQueries: k,
86
+ refetchQueries: A,
86
87
  awaitRefetchQueries: !0
87
88
  })).data?.createHeadshotmarketingCampaign?.id;
88
89
  t && i(M + "/campaigns/" + t);
@@ -90,7 +91,7 @@ var M = () => {
90
91
  R(e instanceof Error ? e.message : "Failed to duplicate campaign.");
91
92
  }
92
93
  }
93
- }, ze = async () => {
94
+ }, Be = async () => {
94
95
  if (N && B && await r({
95
96
  title: `Delete campaign "${B.name}"?`,
96
97
  description: "This cannot be undone.",
@@ -99,9 +100,9 @@ var M = () => {
99
100
  })) {
100
101
  R(null);
101
102
  try {
102
- await ke({
103
+ await Ae({
103
104
  variables: { id: N },
104
- refetchQueries: k,
105
+ refetchQueries: A,
105
106
  awaitRefetchQueries: !0
106
107
  }), i(M + "/campaigns");
107
108
  } catch (e) {
@@ -109,139 +110,139 @@ var M = () => {
109
110
  }
110
111
  }
111
112
  };
112
- if (!B) return /* @__PURE__ */ S(d, {
113
+ if (!B) return /* @__PURE__ */ C(d, {
113
114
  title: "Campaign Details",
114
- children: /* @__PURE__ */ S(fe, {
115
- loading: Ee,
116
- error: De,
117
- onRetry: () => void Oe(),
115
+ children: /* @__PURE__ */ C(fe, {
116
+ loading: De,
117
+ error: Oe,
118
+ onRetry: () => void ke(),
118
119
  hasData: !1,
119
- children: /* @__PURE__ */ S(p, {
120
+ children: /* @__PURE__ */ C(p, {
120
121
  illustration: "empty-generic",
121
122
  title: "Campaign not found",
122
123
  description: "The campaign you're looking for doesn't exist or has been removed.",
123
- action: /* @__PURE__ */ C("button", {
124
+ action: /* @__PURE__ */ w("button", {
124
125
  onClick: () => i(M + "/campaigns"),
125
126
  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",
126
- children: [/* @__PURE__ */ S(h, { className: "h-4 w-4" }), "Back to Campaigns"]
127
+ children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Back to Campaigns"]
127
128
  })
128
129
  })
129
130
  })
130
131
  });
131
- let K = B.budget.total > 0 ? Math.round(B.budget.spent / B.budget.total * 100) : 0, q = new Date(B.timeline.startDate), J = new Date(B.timeline.endDate), Be = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / 864e5)), X = Math.max(0, Math.ceil((Be.getTime() - q.getTime()) / 864e5)), Ve = Math.max(0, Y - X), Z = Math.min(Math.round(X / Y * 100), 100), Q = B.team, $ = B.assets.filter((e) => e.match(/\.(pdf|docx?|xlsx?|pptx?|txt|csv|rtf|odt|ods)$/i)), He = le(B);
132
- return /* @__PURE__ */ C(d, {
132
+ let K = B.budget.total > 0 ? Math.round(B.budget.spent / B.budget.total * 100) : 0, q = new Date(B.timeline.startDate), J = new Date(B.timeline.endDate), Ve = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / 864e5)), X = Math.max(0, Math.ceil((Ve.getTime() - q.getTime()) / 864e5)), He = Math.max(0, Y - X), Z = Math.min(Math.round(X / Y * 100), 100), Q = B.team, $ = B.assets.filter((e) => e.match(/\.(pdf|docx?|xlsx?|pptx?|txt|csv|rtf|odt|ods)$/i)), Ue = le(B);
133
+ return /* @__PURE__ */ w(d, {
133
134
  title: B.name,
134
135
  description: B.description,
135
- actions: /* @__PURE__ */ C("div", {
136
+ actions: /* @__PURE__ */ w("div", {
136
137
  className: "flex flex-wrap items-center gap-2",
137
138
  children: [
138
- /* @__PURE__ */ S(ue, { status: B.status }),
139
- /* @__PURE__ */ C("button", {
139
+ /* @__PURE__ */ C(ue, { status: B.status }),
140
+ /* @__PURE__ */ w("button", {
140
141
  onClick: () => i(M + "/campaigns"),
141
142
  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",
142
- children: [/* @__PURE__ */ S(h, { className: "h-4 w-4" }), "Back"]
143
+ children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Back"]
143
144
  }),
144
- /* @__PURE__ */ C("button", {
145
+ /* @__PURE__ */ w("button", {
145
146
  onClick: () => i(M + "/campaigns/" + B.id + "/edit"),
146
147
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
147
- children: [/* @__PURE__ */ S(_, { className: "h-4 w-4" }), "Edit"]
148
+ children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Edit"]
148
149
  }),
149
- /* @__PURE__ */ S(w, {
150
+ /* @__PURE__ */ C(T, {
150
151
  align: "end",
151
152
  actions: [
152
153
  {
153
154
  label: H ? "Resume" : "Pause",
154
- icon: S(H ? xe : be, { className: "h-4 w-4" }),
155
+ icon: C(H ? Se : xe, { className: "h-4 w-4" }),
155
156
  disabled: U,
156
157
  onSelect: () => void G(H ? c.Active : c.Paused)
157
158
  },
158
159
  {
159
160
  label: "Duplicate",
160
- icon: /* @__PURE__ */ S(ye, { className: "h-4 w-4" }),
161
+ icon: /* @__PURE__ */ C(be, { className: "h-4 w-4" }),
161
162
  disabled: U,
162
- onSelect: () => void Re()
163
+ onSelect: () => void ze()
163
164
  },
164
165
  {
165
166
  label: "Archive",
166
- icon: /* @__PURE__ */ S(ge, { className: "h-4 w-4" }),
167
- disabled: U || Pe,
167
+ icon: /* @__PURE__ */ C(_e, { className: "h-4 w-4" }),
168
+ disabled: U || Fe,
168
169
  onSelect: () => void G(c.Archived)
169
170
  },
170
171
  {
171
172
  label: "Delete",
172
- icon: /* @__PURE__ */ S(Se, { className: "h-4 w-4" }),
173
+ icon: /* @__PURE__ */ C(Ce, { className: "h-4 w-4" }),
173
174
  intent: "destructive",
174
175
  disabled: U,
175
- onSelect: () => void ze()
176
+ onSelect: () => void Be()
176
177
  }
177
178
  ]
178
179
  })
179
180
  ]
180
181
  }),
181
182
  children: [
182
- /* @__PURE__ */ S(D, { children: "Everything about this campaign in one workspace — track budget pacing and ROAS, review performance trends, audience targeting, creative assets and the team working on it. Use the tabs below to dig into each area." }),
183
- /* @__PURE__ */ S(T, { children: /* @__PURE__ */ C("div", {
183
+ /* @__PURE__ */ C(O, { children: "Everything about this campaign in one workspace — track budget pacing and ROAS, review performance trends, audience targeting, creative assets and the team working on it. Use the tabs below to dig into each area." }),
184
+ /* @__PURE__ */ C(E, { children: /* @__PURE__ */ w("div", {
184
185
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5",
185
186
  children: [
186
- /* @__PURE__ */ S(f, {
187
+ /* @__PURE__ */ C(f, {
187
188
  title: "Revenue",
188
189
  value: u(B.metrics.revenue),
189
- icon: /* @__PURE__ */ S(g, { className: "h-5 w-5" })
190
+ icon: /* @__PURE__ */ C(g, { className: "h-5 w-5" })
190
191
  }),
191
- /* @__PURE__ */ S(f, {
192
+ /* @__PURE__ */ C(f, {
192
193
  title: "Conversions",
193
194
  value: se(B.metrics.conversions),
194
- icon: /* @__PURE__ */ S(b, { className: "h-5 w-5" })
195
+ icon: /* @__PURE__ */ C(b, { className: "h-5 w-5" })
195
196
  }),
196
- /* @__PURE__ */ S(f, {
197
+ /* @__PURE__ */ C(f, {
197
198
  title: "ROAS",
198
199
  value: `${B.metrics.roas.toFixed(1)}x`,
199
- icon: /* @__PURE__ */ S(x, { className: "h-5 w-5" })
200
+ icon: /* @__PURE__ */ C(x, { className: "h-5 w-5" })
200
201
  }),
201
- /* @__PURE__ */ S(f, {
202
+ /* @__PURE__ */ C(f, {
202
203
  title: "Budget Used",
203
204
  value: `${K}%`,
204
- icon: /* @__PURE__ */ S(g, { className: "h-5 w-5" }),
205
+ icon: /* @__PURE__ */ C(g, { className: "h-5 w-5" }),
205
206
  className: "relative"
206
207
  }),
207
- /* @__PURE__ */ S(f, {
208
+ /* @__PURE__ */ C(f, {
208
209
  title: "Days Remaining",
209
- value: String(Ve),
210
- icon: /* @__PURE__ */ S(_e, { className: "h-5 w-5" })
210
+ value: String(He),
211
+ icon: /* @__PURE__ */ C(ve, { className: "h-5 w-5" })
211
212
  })
212
213
  ]
213
214
  }) }),
214
- /* @__PURE__ */ S(E, {
215
+ /* @__PURE__ */ C(D, {
215
216
  storageKey: "headshotmarketing-campaign-details",
216
217
  steps: [
217
218
  {
218
219
  id: "analytics",
219
220
  label: "Review performance",
220
221
  description: "See revenue, cost and conversion trends over time.",
221
- icon: /* @__PURE__ */ S(x, { className: "h-4 w-4" }),
222
+ icon: /* @__PURE__ */ C(x, { className: "h-4 w-4" }),
222
223
  onClick: () => I("analytics")
223
224
  },
224
225
  {
225
226
  id: "audience",
226
227
  label: "Check audience targeting",
227
228
  description: "Confirm demographics, interests and locations.",
228
- icon: /* @__PURE__ */ S(b, { className: "h-4 w-4" }),
229
+ icon: /* @__PURE__ */ C(b, { className: "h-4 w-4" }),
229
230
  onClick: () => I("audience")
230
231
  },
231
232
  {
232
233
  id: "edit",
233
234
  label: "Adjust budget or schedule",
234
235
  description: "Open the campaign editor to refine the setup.",
235
- icon: /* @__PURE__ */ S(_, { className: "h-4 w-4" }),
236
+ icon: /* @__PURE__ */ C(_, { className: "h-4 w-4" }),
236
237
  onClick: () => i(M + "/campaigns/" + B.id + "/edit")
237
238
  }
238
239
  ]
239
240
  }),
240
- L && /* @__PURE__ */ S("div", {
241
+ L && /* @__PURE__ */ C("div", {
241
242
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
242
243
  children: L
243
244
  }),
244
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", {
245
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
245
246
  className: "flex flex-nowrap items-center gap-1 overflow-x-auto border-b border-border-subtle",
246
247
  children: [
247
248
  {
@@ -264,60 +265,60 @@ var M = () => {
264
265
  key: "team",
265
266
  label: "Team"
266
267
  }
267
- ].map((e) => /* @__PURE__ */ S("button", {
268
+ ].map((e) => /* @__PURE__ */ C("button", {
268
269
  onClick: () => I(e.key),
269
270
  className: l("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", F === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
270
271
  children: e.label
271
272
  }, e.key))
272
- }), /* @__PURE__ */ C("div", {
273
+ }), /* @__PURE__ */ w("div", {
273
274
  className: "mt-6",
274
275
  children: [
275
- F === "overview" && /* @__PURE__ */ C("div", {
276
+ F === "overview" && /* @__PURE__ */ w("div", {
276
277
  className: "space-y-6",
277
278
  children: [
278
- /* @__PURE__ */ C("div", {
279
+ /* @__PURE__ */ w("div", {
279
280
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
280
- children: [/* @__PURE__ */ C("div", {
281
+ children: [/* @__PURE__ */ w("div", {
281
282
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
282
283
  children: [
283
- /* @__PURE__ */ C("h4", {
284
+ /* @__PURE__ */ w("h4", {
284
285
  className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
285
- children: [/* @__PURE__ */ S(ve, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
286
+ children: [/* @__PURE__ */ C(ye, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
286
287
  }),
287
- /* @__PURE__ */ C("div", {
288
+ /* @__PURE__ */ w("div", {
288
289
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
289
290
  children: [
290
- /* @__PURE__ */ S("span", { children: q.toLocaleDateString() }),
291
- /* @__PURE__ */ C("span", { children: [Z, "%"] }),
292
- /* @__PURE__ */ S("span", { children: J.toLocaleDateString() })
291
+ /* @__PURE__ */ C("span", { children: q.toLocaleDateString() }),
292
+ /* @__PURE__ */ w("span", { children: [Z, "%"] }),
293
+ /* @__PURE__ */ C("span", { children: J.toLocaleDateString() })
293
294
  ]
294
295
  }),
295
- /* @__PURE__ */ S("div", {
296
+ /* @__PURE__ */ C("div", {
296
297
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
297
- children: /* @__PURE__ */ S("div", {
298
+ children: /* @__PURE__ */ C("div", {
298
299
  className: "h-2.5 rounded-full bg-action-primary-bg transition-all",
299
300
  style: { width: `${Z}%` }
300
301
  })
301
302
  })
302
303
  ]
303
- }), /* @__PURE__ */ C("div", {
304
+ }), /* @__PURE__ */ w("div", {
304
305
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
305
306
  children: [
306
- /* @__PURE__ */ C("h4", {
307
+ /* @__PURE__ */ w("h4", {
307
308
  className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
308
- children: [/* @__PURE__ */ S(g, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
309
+ children: [/* @__PURE__ */ C(g, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
309
310
  }),
310
- /* @__PURE__ */ C("div", {
311
+ /* @__PURE__ */ w("div", {
311
312
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
312
313
  children: [
313
- /* @__PURE__ */ C("span", { children: [u(B.budget.spent), " spent"] }),
314
- /* @__PURE__ */ C("span", { children: [K, "%"] }),
315
- /* @__PURE__ */ C("span", { children: [u(B.budget.total), " total"] })
314
+ /* @__PURE__ */ w("span", { children: [u(B.budget.spent), " spent"] }),
315
+ /* @__PURE__ */ w("span", { children: [K, "%"] }),
316
+ /* @__PURE__ */ w("span", { children: [u(B.budget.total), " total"] })
316
317
  ]
317
318
  }),
318
- /* @__PURE__ */ S("div", {
319
+ /* @__PURE__ */ C("div", {
319
320
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
320
- children: /* @__PURE__ */ S("div", {
321
+ children: /* @__PURE__ */ C("div", {
321
322
  className: l("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
322
323
  style: { width: `${K}%` }
323
324
  })
@@ -325,14 +326,14 @@ var M = () => {
325
326
  ]
326
327
  })]
327
328
  }),
328
- /* @__PURE__ */ C("div", {
329
+ /* @__PURE__ */ w("div", {
329
330
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
330
- children: [/* @__PURE__ */ S("h4", {
331
+ children: [/* @__PURE__ */ C("h4", {
331
332
  className: "text-sm font-semibold text-text-primary mb-3",
332
333
  children: "Active Channels"
333
- }), /* @__PURE__ */ S("div", {
334
+ }), /* @__PURE__ */ C("div", {
334
335
  className: "flex flex-wrap gap-2",
335
- children: B.channels.map((e) => /* @__PURE__ */ S("span", {
336
+ children: B.channels.map((e) => /* @__PURE__ */ C("span", {
336
337
  className: "inline-flex items-center rounded-full bg-bg-sunken px-3 py-1 text-xs font-medium text-text-primary",
337
338
  children: e
338
339
  }, e))
@@ -340,67 +341,74 @@ var M = () => {
340
341
  }),
341
342
  /* @__PURE__ */ C("div", {
342
343
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
343
- children: [/* @__PURE__ */ C("h4", {
344
+ children: /* @__PURE__ */ C(he, {
345
+ entityType: "HEADSHOTMARKETING_CAMPAIGN",
346
+ entityId: B.id
347
+ })
348
+ }),
349
+ /* @__PURE__ */ w("div", {
350
+ className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
351
+ children: [/* @__PURE__ */ w("h4", {
344
352
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
345
- children: [/* @__PURE__ */ S(he, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
346
- }), Ie && W.length === 0 ? /* @__PURE__ */ S("div", {
353
+ children: [/* @__PURE__ */ C(ge, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
354
+ }), Le && W.length === 0 ? /* @__PURE__ */ C("div", {
347
355
  className: "space-y-3 py-2",
348
356
  children: [
349
357
  0,
350
358
  1,
351
359
  2
352
- ].map((e) => /* @__PURE__ */ S("div", { className: "h-10 rounded-md bg-bg-sunken/50 animate-pulse" }, e))
353
- }) : W.length > 0 ? /* @__PURE__ */ S("ul", {
360
+ ].map((e) => /* @__PURE__ */ C("div", { className: "h-10 rounded-md bg-bg-sunken/50 animate-pulse" }, e))
361
+ }) : W.length > 0 ? /* @__PURE__ */ C("ul", {
354
362
  className: "space-y-3",
355
- children: W.map((e) => /* @__PURE__ */ C("li", {
363
+ children: W.map((e) => /* @__PURE__ */ w("li", {
356
364
  className: "flex items-start gap-3",
357
- children: [/* @__PURE__ */ S("span", { className: "mt-1 h-2 w-2 flex-shrink-0 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ C("div", {
365
+ children: [/* @__PURE__ */ C("span", { className: "mt-1 h-2 w-2 flex-shrink-0 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ w("div", {
358
366
  className: "min-w-0 flex-1",
359
- children: [/* @__PURE__ */ S("p", {
367
+ children: [/* @__PURE__ */ C("p", {
360
368
  className: "text-sm text-text-primary break-words",
361
- children: e.description ?? A(e.action)
362
- }), /* @__PURE__ */ S("p", {
369
+ children: e.description ?? we(e.action)
370
+ }), /* @__PURE__ */ C("p", {
363
371
  className: "text-xs text-text-secondary",
364
372
  children: oe(e.timestamp, "relative")
365
373
  })]
366
374
  })]
367
375
  }, e.id))
368
- }) : /* @__PURE__ */ S("p", {
376
+ }) : /* @__PURE__ */ C("p", {
369
377
  className: "text-sm text-text-secondary py-4 text-center",
370
- children: Le ? "Activity is unavailable right now." : "No recent activity yet."
378
+ children: Re ? "Activity is unavailable right now." : "No recent activity yet."
371
379
  })]
372
380
  })
373
381
  ]
374
382
  }),
375
- F === "analytics" && /* @__PURE__ */ S(de, {
383
+ F === "analytics" && /* @__PURE__ */ C(de, {
376
384
  title: "Performance Over Time",
377
385
  subtitle: "Revenue, cost, and conversions trend",
378
- children: /* @__PURE__ */ S(e, {
386
+ children: /* @__PURE__ */ C(e, {
379
387
  width: "100%",
380
388
  height: 350,
381
- children: /* @__PURE__ */ C(t, {
382
- data: He,
389
+ children: /* @__PURE__ */ w(t, {
390
+ data: Ue,
383
391
  children: [
384
- /* @__PURE__ */ S(ne, {
392
+ /* @__PURE__ */ C(ne, {
385
393
  strokeDasharray: "3 3",
386
394
  className: "stroke-border"
387
395
  }),
388
- /* @__PURE__ */ S(ee, {
396
+ /* @__PURE__ */ C(ee, {
389
397
  dataKey: "date",
390
398
  tick: { fontSize: 11 },
391
399
  className: "text-text-secondary",
392
400
  tickFormatter: (e) => e.slice(5)
393
401
  }),
394
- /* @__PURE__ */ S(te, {
402
+ /* @__PURE__ */ C(te, {
395
403
  tick: { fontSize: 11 },
396
404
  className: "text-text-secondary"
397
405
  }),
398
- /* @__PURE__ */ S(re, { contentStyle: {
406
+ /* @__PURE__ */ C(re, { contentStyle: {
399
407
  backgroundColor: "var(--color-card)",
400
408
  border: "1px solid var(--color-border)",
401
409
  borderRadius: 8
402
410
  } }),
403
- /* @__PURE__ */ S(n, {
411
+ /* @__PURE__ */ C(n, {
404
412
  type: "monotone",
405
413
  dataKey: "revenue",
406
414
  stroke: j[0],
@@ -409,7 +417,7 @@ var M = () => {
409
417
  strokeWidth: 2,
410
418
  name: "Revenue"
411
419
  }),
412
- /* @__PURE__ */ S(n, {
420
+ /* @__PURE__ */ C(n, {
413
421
  type: "monotone",
414
422
  dataKey: "cost",
415
423
  stroke: j[3],
@@ -418,7 +426,7 @@ var M = () => {
418
426
  strokeWidth: 2,
419
427
  name: "Cost"
420
428
  }),
421
- /* @__PURE__ */ S(n, {
429
+ /* @__PURE__ */ C(n, {
422
430
  type: "monotone",
423
431
  dataKey: "conversions",
424
432
  stroke: j[1],
@@ -431,30 +439,30 @@ var M = () => {
431
439
  })
432
440
  })
433
441
  }),
434
- F === "audience" && /* @__PURE__ */ C("div", {
442
+ F === "audience" && /* @__PURE__ */ w("div", {
435
443
  className: "space-y-6",
436
- children: [/* @__PURE__ */ C("div", {
444
+ children: [/* @__PURE__ */ w("div", {
437
445
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
438
446
  children: [
439
- /* @__PURE__ */ C("div", {
447
+ /* @__PURE__ */ w("div", {
440
448
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
441
- children: [/* @__PURE__ */ S("h4", {
449
+ children: [/* @__PURE__ */ C("h4", {
442
450
  className: "text-sm font-semibold text-text-primary mb-3",
443
451
  children: "Demographics"
444
- }), /* @__PURE__ */ C("div", {
452
+ }), /* @__PURE__ */ w("div", {
445
453
  className: "space-y-2",
446
- children: [B.targeting.demographics.map((e) => /* @__PURE__ */ C("div", {
454
+ children: [B.targeting.demographics.map((e) => /* @__PURE__ */ w("div", {
447
455
  className: "flex items-center gap-2",
448
- children: [/* @__PURE__ */ S("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ S("span", {
456
+ children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ C("span", {
449
457
  className: "text-sm text-text-primary",
450
458
  children: e
451
459
  })]
452
- }, e)), /* @__PURE__ */ C("div", {
460
+ }, e)), /* @__PURE__ */ w("div", {
453
461
  className: "pt-2 border-t border-border-subtle mt-2",
454
- children: [/* @__PURE__ */ S("p", {
462
+ children: [/* @__PURE__ */ C("p", {
455
463
  className: "text-xs text-text-secondary",
456
464
  children: "Age Range"
457
- }), /* @__PURE__ */ C("p", {
465
+ }), /* @__PURE__ */ w("p", {
458
466
  className: "text-sm font-medium text-text-primary",
459
467
  children: [
460
468
  B.targeting.ageRange.min,
@@ -466,32 +474,32 @@ var M = () => {
466
474
  })]
467
475
  })]
468
476
  }),
469
- /* @__PURE__ */ C("div", {
477
+ /* @__PURE__ */ w("div", {
470
478
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
471
- children: [/* @__PURE__ */ S("h4", {
479
+ children: [/* @__PURE__ */ C("h4", {
472
480
  className: "text-sm font-semibold text-text-primary mb-3",
473
481
  children: "Interests"
474
- }), /* @__PURE__ */ S("div", {
482
+ }), /* @__PURE__ */ C("div", {
475
483
  className: "space-y-2",
476
- children: B.targeting.interests.map((e) => /* @__PURE__ */ C("div", {
484
+ children: B.targeting.interests.map((e) => /* @__PURE__ */ w("div", {
477
485
  className: "flex items-center gap-2",
478
- children: [/* @__PURE__ */ S("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ S("span", {
486
+ children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ C("span", {
479
487
  className: "text-sm text-text-primary",
480
488
  children: e
481
489
  })]
482
490
  }, e))
483
491
  })]
484
492
  }),
485
- /* @__PURE__ */ C("div", {
493
+ /* @__PURE__ */ w("div", {
486
494
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
487
- children: [/* @__PURE__ */ S("h4", {
495
+ children: [/* @__PURE__ */ C("h4", {
488
496
  className: "text-sm font-semibold text-text-primary mb-3",
489
497
  children: "Locations"
490
- }), /* @__PURE__ */ S("div", {
498
+ }), /* @__PURE__ */ C("div", {
491
499
  className: "space-y-2",
492
- children: B.targeting.locations.map((e) => /* @__PURE__ */ C("div", {
500
+ children: B.targeting.locations.map((e) => /* @__PURE__ */ w("div", {
493
501
  className: "flex items-center gap-2",
494
- children: [/* @__PURE__ */ S("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ S("span", {
502
+ children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ C("span", {
495
503
  className: "text-sm text-text-primary",
496
504
  children: e
497
505
  })]
@@ -499,69 +507,69 @@ var M = () => {
499
507
  })]
500
508
  })
501
509
  ]
502
- }), /* @__PURE__ */ S(me, {
510
+ }), /* @__PURE__ */ C(me, {
503
511
  campaignId: B.id,
504
512
  campaignName: B.name
505
513
  })]
506
514
  }),
507
- F === "assets" && /* @__PURE__ */ C("div", {
515
+ F === "assets" && /* @__PURE__ */ w("div", {
508
516
  className: "space-y-6",
509
- children: [/* @__PURE__ */ C("div", {
517
+ children: [/* @__PURE__ */ w("div", {
510
518
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
511
- children: [/* @__PURE__ */ C("h4", {
519
+ children: [/* @__PURE__ */ w("h4", {
512
520
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
513
- children: [/* @__PURE__ */ S(y, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
514
- }), /* @__PURE__ */ S("div", {
521
+ children: [/* @__PURE__ */ C(y, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
522
+ }), /* @__PURE__ */ C("div", {
515
523
  className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",
516
- children: B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).length > 0 ? B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).map((e) => /* @__PURE__ */ S("div", {
524
+ children: B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).length > 0 ? B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).map((e) => /* @__PURE__ */ C("div", {
517
525
  className: "aspect-video rounded-lg border border-border-subtle bg-bg-sunken flex items-center justify-center",
518
- children: /* @__PURE__ */ S(y, { className: "h-8 w-8 text-text-secondary" })
526
+ children: /* @__PURE__ */ C(y, { className: "h-8 w-8 text-text-secondary" })
519
527
  }, e)) : [
520
528
  1,
521
529
  2,
522
530
  3
523
- ].map((e) => /* @__PURE__ */ S("div", {
531
+ ].map((e) => /* @__PURE__ */ C("div", {
524
532
  className: "aspect-video rounded-lg border border-dashed border-border-subtle bg-bg-sunken/30 flex items-center justify-center",
525
- children: /* @__PURE__ */ S(y, { className: "h-8 w-8 text-text-secondary/50" })
533
+ children: /* @__PURE__ */ C(y, { className: "h-8 w-8 text-text-secondary/50" })
526
534
  }, e))
527
535
  })]
528
- }), /* @__PURE__ */ C("div", {
536
+ }), /* @__PURE__ */ w("div", {
529
537
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
530
- children: [/* @__PURE__ */ C("h4", {
538
+ children: [/* @__PURE__ */ w("h4", {
531
539
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
532
- children: [/* @__PURE__ */ S(v, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
533
- }), $.length > 0 ? /* @__PURE__ */ S("div", {
540
+ children: [/* @__PURE__ */ C(v, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
541
+ }), $.length > 0 ? /* @__PURE__ */ C("div", {
534
542
  className: "space-y-2",
535
- children: $.map((e) => /* @__PURE__ */ S("div", {
543
+ children: $.map((e) => /* @__PURE__ */ C("div", {
536
544
  className: "flex items-center justify-between rounded-md border border-border-subtle p-3 hover:bg-bg-sunken/50 transition-colors",
537
- children: /* @__PURE__ */ C("div", {
545
+ children: /* @__PURE__ */ w("div", {
538
546
  className: "flex items-center gap-3",
539
- children: [/* @__PURE__ */ S(v, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ S("p", {
547
+ children: [/* @__PURE__ */ C(v, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ C("p", {
540
548
  className: "text-sm font-medium text-text-primary break-all",
541
549
  children: e.split("/").pop() ?? e
542
550
  })]
543
551
  })
544
552
  }, e))
545
- }) : /* @__PURE__ */ S("p", {
553
+ }) : /* @__PURE__ */ C("p", {
546
554
  className: "text-sm text-text-secondary py-4 text-center",
547
555
  children: "No documents yet."
548
556
  })]
549
557
  })]
550
558
  }),
551
- F === "team" && /* @__PURE__ */ C("div", {
559
+ F === "team" && /* @__PURE__ */ w("div", {
552
560
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
553
- children: [Q.map((e) => /* @__PURE__ */ C("div", {
561
+ children: [Q.map((e) => /* @__PURE__ */ w("div", {
554
562
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop flex items-center gap-4",
555
- children: [/* @__PURE__ */ S("div", {
563
+ children: [/* @__PURE__ */ C("div", {
556
564
  className: "h-12 w-12 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-sm font-semibold text-primary flex-shrink-0",
557
- children: we(e)
558
- }), /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("p", {
565
+ children: Te(e)
566
+ }), /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("p", {
559
567
  className: "text-sm font-semibold text-text-primary",
560
568
  children: e
561
569
  }) })]
562
- }, e)), Q.length === 0 && /* @__PURE__ */ S("div", {
570
+ }, e)), Q.length === 0 && /* @__PURE__ */ C("div", {
563
571
  className: "col-span-full",
564
- children: /* @__PURE__ */ S(p, {
572
+ children: /* @__PURE__ */ C(p, {
565
573
  illustration: "empty-people",
566
574
  title: "No team members",
567
575
  description: "No team members have been assigned to this campaign yet."