@burdenoff/microfe-headshotmarketing 2026.626.2 → 2026.703.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/headshotmarketing/pages/HomePage.js +191 -255
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +28 -21
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -310
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/utils/analyticsMapper.js +11 -11
- package/dist/headshotmarketing/utils/analyticsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +4 -4
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,126 +6,42 @@ import { Area as r } from "../../../node_modules/recharts/es6/cartesian/Area.js"
|
|
|
6
6
|
import { XAxis as te } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
|
|
7
7
|
import { YAxis as ne } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
8
8
|
import { AreaChart as re } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
9
|
-
import { HeadshotmarketingCampaignsListDocument as ie, useDeleteHeadshotmarketingCampaignMutation as
|
|
10
|
-
import { cn as
|
|
11
|
-
import { toCampaignModel as
|
|
12
|
-
import { PageLayout as
|
|
13
|
-
import { StatCard as
|
|
14
|
-
import { StatusBadge as
|
|
15
|
-
import { EmptyState as
|
|
16
|
-
import { ChartCard as
|
|
9
|
+
import { HeadshotmarketingCampaignsListDocument as ie, useDeleteHeadshotmarketingCampaignMutation as i, useHeadshotmarketingCampaignByIdQuery as a } from "../../../generated/wspace-operations.js";
|
|
10
|
+
import { cn as o, formatCurrency as s, formatNumber as c } from "../../utils/helpers.js";
|
|
11
|
+
import { toCampaignModel as l, toCampaignPerformanceSeries as ae } from "../../utils/campaignMapper.js";
|
|
12
|
+
import { PageLayout as u } from "../../components/PageLayout.js";
|
|
13
|
+
import { StatCard as d } from "../../components/StatCard.js";
|
|
14
|
+
import { StatusBadge as oe } from "../../components/StatusBadge.js";
|
|
15
|
+
import { EmptyState as f } from "../../components/EmptyState.js";
|
|
16
|
+
import { ChartCard as p } from "../../components/ChartCard.js";
|
|
17
17
|
import "../../components/index.js";
|
|
18
|
-
import { useState as
|
|
19
|
-
import { Activity as
|
|
20
|
-
import { useParams as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import { EmphasisPanel as
|
|
18
|
+
import { useState as m } from "react";
|
|
19
|
+
import { Activity as se, Archive as ce, ArrowLeft as h, Calendar as le, Clock as g, Copy as ue, DollarSign as _, Edit as v, FileText as y, Image as b, MoreVertical as de, Pause as fe, Target as x, Trash2 as pe, TrendingUp as S } from "lucide-react";
|
|
20
|
+
import { useParams as me } from "react-router-dom";
|
|
21
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
22
|
+
import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
23
23
|
//#region src/headshotmarketing/pages/campaigns/CampaignDetailsPage.tsx
|
|
24
|
-
var
|
|
24
|
+
var O = [
|
|
25
25
|
"var(--color-chart-1)",
|
|
26
26
|
"var(--color-chart-2)",
|
|
27
27
|
"var(--color-chart-3)",
|
|
28
28
|
"var(--color-chart-4)",
|
|
29
29
|
"var(--color-chart-5)",
|
|
30
30
|
"var(--color-chart-6)"
|
|
31
|
-
]
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
name: "Carol Williams",
|
|
44
|
-
role: "Email Specialist",
|
|
45
|
-
avatar: "CW"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "David Chen",
|
|
49
|
-
role: "Paid Media Lead",
|
|
50
|
-
avatar: "DC"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: "Emma Davis",
|
|
54
|
-
role: "Creative Director",
|
|
55
|
-
avatar: "ED"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "Frank Lee",
|
|
59
|
-
role: "SEO Analyst",
|
|
60
|
-
avatar: "FL"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "Grace Kim",
|
|
64
|
-
role: "Social Media Manager",
|
|
65
|
-
avatar: "GK"
|
|
66
|
-
}
|
|
67
|
-
], k = [
|
|
68
|
-
{
|
|
69
|
-
id: 1,
|
|
70
|
-
action: "Campaign budget increased by $2,000",
|
|
71
|
-
user: "Alice Johnson",
|
|
72
|
-
time: "2 hours ago",
|
|
73
|
-
type: "budget"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: 2,
|
|
77
|
-
action: "New ad creative \"Spring Banner v3\" uploaded",
|
|
78
|
-
user: "Emma Davis",
|
|
79
|
-
time: "5 hours ago",
|
|
80
|
-
type: "asset"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 3,
|
|
84
|
-
action: "Targeting adjusted: added age group 35-44",
|
|
85
|
-
user: "Bob Smith",
|
|
86
|
-
time: "1 day ago",
|
|
87
|
-
type: "targeting"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
id: 4,
|
|
91
|
-
action: "Performance report generated and shared",
|
|
92
|
-
user: "Frank Lee",
|
|
93
|
-
time: "2 days ago",
|
|
94
|
-
type: "report"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: 5,
|
|
98
|
-
action: "Campaign launched on Instagram channel",
|
|
99
|
-
user: "Grace Kim",
|
|
100
|
-
time: "3 days ago",
|
|
101
|
-
type: "launch"
|
|
102
|
-
}
|
|
103
|
-
], A = [
|
|
104
|
-
{
|
|
105
|
-
name: "Campaign Brief.pdf",
|
|
106
|
-
size: "2.4 MB",
|
|
107
|
-
updated: "Feb 8, 2026"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: "Creative Guidelines.docx",
|
|
111
|
-
size: "1.1 MB",
|
|
112
|
-
updated: "Feb 6, 2026"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: "Audience Research.xlsx",
|
|
116
|
-
size: "890 KB",
|
|
117
|
-
updated: "Feb 3, 2026"
|
|
118
|
-
}
|
|
119
|
-
], j = () => {
|
|
120
|
-
let { navigate: j, basePath: M } = e(), { id: N } = he(), { data: P, loading: F, error: I } = oe({
|
|
121
|
-
skip: !N,
|
|
122
|
-
variables: N ? { id: N } : void 0
|
|
123
|
-
}), [L, { loading: R }] = ae(), [z, B] = f("overview"), [V, H] = f(!1), [U, W] = f(null), G = P?.headshotmarketingCampaign, K = G ? s(G) : null, ge = async () => {
|
|
124
|
-
if (!(!N || !K) && window.confirm(`Delete campaign "${K.name}"? This cannot be undone.`)) {
|
|
125
|
-
W(null);
|
|
31
|
+
];
|
|
32
|
+
function k(e) {
|
|
33
|
+
return e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase();
|
|
34
|
+
}
|
|
35
|
+
var A = () => {
|
|
36
|
+
let { navigate: A, basePath: j } = e(), { id: M } = me(), { data: N, loading: P, error: F } = a({
|
|
37
|
+
skip: !M,
|
|
38
|
+
variables: M ? { id: M } : void 0
|
|
39
|
+
}), [I, { loading: L }] = i(), [R, z] = m("overview"), [B, V] = m(!1), [H, U] = m(null), W = N?.headshotmarketingCampaign, G = W ? l(W) : null, he = async () => {
|
|
40
|
+
if (!(!M || !G) && window.confirm(`Delete campaign "${G.name}"? This cannot be undone.`)) {
|
|
41
|
+
U(null);
|
|
126
42
|
try {
|
|
127
|
-
await
|
|
128
|
-
variables: { id:
|
|
43
|
+
await I({
|
|
44
|
+
variables: { id: M },
|
|
129
45
|
refetchQueries: [{
|
|
130
46
|
query: ie,
|
|
131
47
|
variables: {
|
|
@@ -134,69 +50,69 @@ var D = [
|
|
|
134
50
|
}
|
|
135
51
|
}],
|
|
136
52
|
awaitRefetchQueries: !0
|
|
137
|
-
}), j
|
|
53
|
+
}), A(j + "/campaigns");
|
|
138
54
|
} catch (e) {
|
|
139
|
-
|
|
55
|
+
U(e instanceof Error ? e.message : "Failed to delete campaign.");
|
|
140
56
|
}
|
|
141
57
|
}
|
|
142
58
|
};
|
|
143
|
-
if (!
|
|
59
|
+
if (!G) return /* @__PURE__ */ C(u, {
|
|
144
60
|
title: "Campaign Details",
|
|
145
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ C(f, {
|
|
146
62
|
illustration: "empty-generic",
|
|
147
63
|
title: "Campaign not found",
|
|
148
|
-
description:
|
|
149
|
-
action: /* @__PURE__ */
|
|
150
|
-
onClick: () => j
|
|
64
|
+
description: P ? "Loading campaign details..." : F?.message ?? "The campaign you're looking for doesn't exist or has been removed.",
|
|
65
|
+
action: /* @__PURE__ */ w("button", {
|
|
66
|
+
onClick: () => A(j + "/campaigns"),
|
|
151
67
|
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",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Back to Campaigns"]
|
|
153
69
|
})
|
|
154
70
|
})
|
|
155
71
|
});
|
|
156
|
-
let
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
title:
|
|
159
|
-
description:
|
|
160
|
-
actions: /* @__PURE__ */
|
|
72
|
+
let K = G.budget.total > 0 ? Math.round(G.budget.spent / G.budget.total * 100) : 0, q = new Date(G.timeline.startDate), J = new Date(G.timeline.endDate), ge = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), X = Math.max(0, Math.ceil((ge.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), _e = Math.max(0, Y - X), Z = Math.min(Math.round(X / Y * 100), 100), Q = G.team, $ = G.assets.filter((e) => e.match(/\.(pdf|docx?|xlsx?|pptx?|txt|csv|rtf|odt|ods)$/i)), ve = ae(G);
|
|
73
|
+
return /* @__PURE__ */ w(u, {
|
|
74
|
+
title: G.name,
|
|
75
|
+
description: G.description,
|
|
76
|
+
actions: /* @__PURE__ */ w("div", {
|
|
161
77
|
className: "flex items-center gap-2",
|
|
162
78
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
onClick: () => j
|
|
79
|
+
/* @__PURE__ */ C(oe, { status: G.status }),
|
|
80
|
+
/* @__PURE__ */ w("button", {
|
|
81
|
+
onClick: () => A(j + "/campaigns"),
|
|
166
82
|
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",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Back"]
|
|
168
84
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
onClick: () => j
|
|
85
|
+
/* @__PURE__ */ w("button", {
|
|
86
|
+
onClick: () => A(j + "/campaigns/" + G.id + "/edit"),
|
|
171
87
|
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",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
88
|
+
children: [/* @__PURE__ */ C(v, { className: "h-4 w-4" }), "Edit"]
|
|
173
89
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ w("div", {
|
|
175
91
|
className: "relative",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
177
|
-
onClick: () =>
|
|
92
|
+
children: [/* @__PURE__ */ C("button", {
|
|
93
|
+
onClick: () => V(!B),
|
|
178
94
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
|
|
179
|
-
children: /* @__PURE__ */
|
|
180
|
-
}),
|
|
95
|
+
children: /* @__PURE__ */ C(de, { className: "h-4 w-4" })
|
|
96
|
+
}), B && /* @__PURE__ */ w("div", {
|
|
181
97
|
className: "absolute right-0 top-full mt-1 w-44 rounded-lg border border-border-seam bg-gloss-card shadow-pop p-1 shadow-lg z-10",
|
|
182
98
|
children: [
|
|
183
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ w("button", {
|
|
184
100
|
className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
|
|
185
|
-
children: [/* @__PURE__ */
|
|
101
|
+
children: [/* @__PURE__ */ C(fe, { className: "h-4 w-4" }), " Pause"]
|
|
186
102
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ w("button", {
|
|
188
104
|
className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ C(ue, { className: "h-4 w-4" }), " Duplicate"]
|
|
190
106
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ w("button", {
|
|
192
108
|
className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ C(ce, { className: "h-4 w-4" }), " Archive"]
|
|
194
110
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
onClick:
|
|
197
|
-
disabled:
|
|
111
|
+
/* @__PURE__ */ w("button", {
|
|
112
|
+
onClick: he,
|
|
113
|
+
disabled: L,
|
|
198
114
|
className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-status-error-text hover:bg-bg-sunken disabled:opacity-60",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
115
|
+
children: [/* @__PURE__ */ C(pe, { className: "h-4 w-4" }), " Delete"]
|
|
200
116
|
})
|
|
201
117
|
]
|
|
202
118
|
})]
|
|
@@ -204,69 +120,69 @@ var D = [
|
|
|
204
120
|
]
|
|
205
121
|
}),
|
|
206
122
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ C(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." }),
|
|
124
|
+
/* @__PURE__ */ C(T, { children: /* @__PURE__ */ w("div", {
|
|
209
125
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5",
|
|
210
126
|
children: [
|
|
211
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ C(d, {
|
|
212
128
|
title: "Revenue",
|
|
213
|
-
value:
|
|
214
|
-
icon: /* @__PURE__ */
|
|
129
|
+
value: s(G.metrics.revenue),
|
|
130
|
+
icon: /* @__PURE__ */ C(_, { className: "h-5 w-5" })
|
|
215
131
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ C(d, {
|
|
217
133
|
title: "Conversions",
|
|
218
|
-
value:
|
|
219
|
-
icon: /* @__PURE__ */
|
|
134
|
+
value: c(G.metrics.conversions),
|
|
135
|
+
icon: /* @__PURE__ */ C(x, { className: "h-5 w-5" })
|
|
220
136
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ C(d, {
|
|
222
138
|
title: "ROAS",
|
|
223
|
-
value: `${
|
|
224
|
-
icon: /* @__PURE__ */ S
|
|
139
|
+
value: `${G.metrics.roas.toFixed(1)}x`,
|
|
140
|
+
icon: /* @__PURE__ */ C(S, { className: "h-5 w-5" })
|
|
225
141
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ C(d, {
|
|
227
143
|
title: "Budget Used",
|
|
228
|
-
value: `${
|
|
229
|
-
icon: /* @__PURE__ */
|
|
144
|
+
value: `${K}%`,
|
|
145
|
+
icon: /* @__PURE__ */ C(_, { className: "h-5 w-5" }),
|
|
230
146
|
className: "relative"
|
|
231
147
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ C(d, {
|
|
233
149
|
title: "Days Remaining",
|
|
234
|
-
value: String(
|
|
235
|
-
icon: /* @__PURE__ */
|
|
150
|
+
value: String(_e),
|
|
151
|
+
icon: /* @__PURE__ */ C(le, { className: "h-5 w-5" })
|
|
236
152
|
})
|
|
237
153
|
]
|
|
238
154
|
}) }),
|
|
239
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ C(E, {
|
|
240
156
|
storageKey: "headshotmarketing-campaign-details",
|
|
241
157
|
steps: [
|
|
242
158
|
{
|
|
243
159
|
id: "analytics",
|
|
244
160
|
label: "Review performance",
|
|
245
161
|
description: "See revenue, cost and conversion trends over time.",
|
|
246
|
-
icon: /* @__PURE__ */ S
|
|
247
|
-
onClick: () =>
|
|
162
|
+
icon: /* @__PURE__ */ C(S, { className: "h-4 w-4" }),
|
|
163
|
+
onClick: () => z("analytics")
|
|
248
164
|
},
|
|
249
165
|
{
|
|
250
166
|
id: "audience",
|
|
251
167
|
label: "Check audience targeting",
|
|
252
168
|
description: "Confirm demographics, interests and locations.",
|
|
253
|
-
icon: /* @__PURE__ */
|
|
254
|
-
onClick: () =>
|
|
169
|
+
icon: /* @__PURE__ */ C(x, { className: "h-4 w-4" }),
|
|
170
|
+
onClick: () => z("audience")
|
|
255
171
|
},
|
|
256
172
|
{
|
|
257
173
|
id: "edit",
|
|
258
174
|
label: "Adjust budget or schedule",
|
|
259
175
|
description: "Open the campaign editor to refine the setup.",
|
|
260
|
-
icon: /* @__PURE__ */
|
|
261
|
-
onClick: () => j
|
|
176
|
+
icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
|
|
177
|
+
onClick: () => A(j + "/campaigns/" + G.id + "/edit")
|
|
262
178
|
}
|
|
263
179
|
]
|
|
264
180
|
}),
|
|
265
|
-
|
|
181
|
+
H && /* @__PURE__ */ C("div", {
|
|
266
182
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
267
|
-
children:
|
|
183
|
+
children: H
|
|
268
184
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
|
|
270
186
|
className: "flex items-center gap-1 border-b border-border-subtle",
|
|
271
187
|
children: [
|
|
272
188
|
{
|
|
@@ -289,167 +205,145 @@ var D = [
|
|
|
289
205
|
key: "team",
|
|
290
206
|
label: "Team"
|
|
291
207
|
}
|
|
292
|
-
].map((e) => /* @__PURE__ */
|
|
208
|
+
].map((e) => /* @__PURE__ */ C("button", {
|
|
293
209
|
onClick: () => {
|
|
294
|
-
|
|
210
|
+
z(e.key), V(!1);
|
|
295
211
|
},
|
|
296
|
-
className:
|
|
212
|
+
className: o("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", R === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
297
213
|
children: e.label
|
|
298
214
|
}, e.key))
|
|
299
|
-
}), /* @__PURE__ */
|
|
215
|
+
}), /* @__PURE__ */ w("div", {
|
|
300
216
|
className: "mt-6",
|
|
301
217
|
children: [
|
|
302
|
-
|
|
218
|
+
R === "overview" && /* @__PURE__ */ w("div", {
|
|
303
219
|
className: "space-y-6",
|
|
304
220
|
children: [
|
|
305
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ w("div", {
|
|
306
222
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ w("div", {
|
|
308
224
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
309
225
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ w("h4", {
|
|
311
227
|
className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ C(g, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
|
|
313
229
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ w("div", {
|
|
315
231
|
className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
|
|
316
232
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ C("span", { children: q.toLocaleDateString() }),
|
|
234
|
+
/* @__PURE__ */ w("span", { children: [Z, "%"] }),
|
|
235
|
+
/* @__PURE__ */ C("span", { children: J.toLocaleDateString() })
|
|
320
236
|
]
|
|
321
237
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ C("div", {
|
|
323
239
|
className: "h-2.5 w-full rounded-full bg-bg-sunken",
|
|
324
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ C("div", {
|
|
325
241
|
className: "h-2.5 rounded-full bg-action-primary-bg transition-all",
|
|
326
|
-
style: { width: `${
|
|
242
|
+
style: { width: `${Z}%` }
|
|
327
243
|
})
|
|
328
244
|
})
|
|
329
245
|
]
|
|
330
|
-
}), /* @__PURE__ */
|
|
246
|
+
}), /* @__PURE__ */ w("div", {
|
|
331
247
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
332
248
|
children: [
|
|
333
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ w("h4", {
|
|
334
250
|
className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
335
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
|
|
336
252
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ w("div", {
|
|
338
254
|
className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
|
|
339
255
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ w("span", { children: [s(G.budget.spent), " spent"] }),
|
|
257
|
+
/* @__PURE__ */ w("span", { children: [K, "%"] }),
|
|
258
|
+
/* @__PURE__ */ w("span", { children: [s(G.budget.total), " total"] })
|
|
343
259
|
]
|
|
344
260
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ C("div", {
|
|
346
262
|
className: "h-2.5 w-full rounded-full bg-bg-sunken",
|
|
347
|
-
children: /* @__PURE__ */
|
|
348
|
-
className:
|
|
349
|
-
style: { width: `${
|
|
263
|
+
children: /* @__PURE__ */ C("div", {
|
|
264
|
+
className: o("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
|
|
265
|
+
style: { width: `${K}%` }
|
|
350
266
|
})
|
|
351
267
|
})
|
|
352
268
|
]
|
|
353
269
|
})]
|
|
354
270
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ w("div", {
|
|
356
272
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
273
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
358
274
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
359
275
|
children: "Active Channels"
|
|
360
|
-
}), /* @__PURE__ */
|
|
276
|
+
}), /* @__PURE__ */ C("div", {
|
|
361
277
|
className: "flex flex-wrap gap-2",
|
|
362
|
-
children:
|
|
278
|
+
children: G.channels.map((e) => /* @__PURE__ */ C("span", {
|
|
363
279
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-3 py-1 text-xs font-medium text-text-primary",
|
|
364
280
|
children: e
|
|
365
281
|
}, e))
|
|
366
282
|
})]
|
|
367
283
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ w("div", {
|
|
369
285
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
370
|
-
children: [/* @__PURE__ */
|
|
286
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
371
287
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
372
|
-
children: [/* @__PURE__ */
|
|
373
|
-
}), /* @__PURE__ */
|
|
374
|
-
className: "
|
|
375
|
-
children:
|
|
376
|
-
className: "flex items-start gap-3",
|
|
377
|
-
children: [/* @__PURE__ */ C("div", {
|
|
378
|
-
className: "relative flex-shrink-0",
|
|
379
|
-
children: [/* @__PURE__ */ S("div", {
|
|
380
|
-
className: "h-8 w-8 rounded-full bg-bg-sunken flex items-center justify-center text-xs font-medium text-text-secondary",
|
|
381
|
-
children: e.user.split(" ").map((e) => e[0]).join("")
|
|
382
|
-
}), t < k.length - 1 && /* @__PURE__ */ S("div", { className: "absolute left-4 top-8 h-6 w-px bg-border" })]
|
|
383
|
-
}), /* @__PURE__ */ C("div", {
|
|
384
|
-
className: "flex-1 min-w-0",
|
|
385
|
-
children: [/* @__PURE__ */ S("p", {
|
|
386
|
-
className: "text-sm text-text-primary",
|
|
387
|
-
children: e.action
|
|
388
|
-
}), /* @__PURE__ */ C("p", {
|
|
389
|
-
className: "text-xs text-text-secondary mt-0.5",
|
|
390
|
-
children: [
|
|
391
|
-
e.user,
|
|
392
|
-
" · ",
|
|
393
|
-
e.time
|
|
394
|
-
]
|
|
395
|
-
})]
|
|
396
|
-
})]
|
|
397
|
-
}, e.id))
|
|
288
|
+
children: [/* @__PURE__ */ C(se, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
|
|
289
|
+
}), /* @__PURE__ */ C("p", {
|
|
290
|
+
className: "text-sm text-text-secondary py-4 text-center",
|
|
291
|
+
children: "No recent activity yet."
|
|
398
292
|
})]
|
|
399
293
|
})
|
|
400
294
|
]
|
|
401
295
|
}),
|
|
402
|
-
|
|
296
|
+
R === "analytics" && /* @__PURE__ */ C(p, {
|
|
403
297
|
title: "Performance Over Time",
|
|
404
298
|
subtitle: "Revenue, cost, and conversions trend",
|
|
405
|
-
children: /* @__PURE__ */
|
|
299
|
+
children: /* @__PURE__ */ C(ee, {
|
|
406
300
|
width: "100%",
|
|
407
301
|
height: 350,
|
|
408
|
-
children: /* @__PURE__ */
|
|
409
|
-
data:
|
|
302
|
+
children: /* @__PURE__ */ w(re, {
|
|
303
|
+
data: ve,
|
|
410
304
|
children: [
|
|
411
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ C(n, {
|
|
412
306
|
strokeDasharray: "3 3",
|
|
413
307
|
className: "stroke-border"
|
|
414
308
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ C(te, {
|
|
416
310
|
dataKey: "date",
|
|
417
311
|
tick: { fontSize: 11 },
|
|
418
312
|
className: "text-text-secondary",
|
|
419
313
|
tickFormatter: (e) => e.slice(5)
|
|
420
314
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ C(ne, {
|
|
422
316
|
tick: { fontSize: 11 },
|
|
423
317
|
className: "text-text-secondary"
|
|
424
318
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ C(t, { contentStyle: {
|
|
426
320
|
backgroundColor: "var(--color-card)",
|
|
427
321
|
border: "1px solid var(--color-border)",
|
|
428
322
|
borderRadius: 8
|
|
429
323
|
} }),
|
|
430
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ C(r, {
|
|
431
325
|
type: "monotone",
|
|
432
326
|
dataKey: "revenue",
|
|
433
|
-
stroke:
|
|
434
|
-
fill:
|
|
327
|
+
stroke: O[0],
|
|
328
|
+
fill: O[0],
|
|
435
329
|
fillOpacity: .15,
|
|
436
330
|
strokeWidth: 2,
|
|
437
331
|
name: "Revenue"
|
|
438
332
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ C(r, {
|
|
440
334
|
type: "monotone",
|
|
441
335
|
dataKey: "cost",
|
|
442
|
-
stroke:
|
|
443
|
-
fill:
|
|
336
|
+
stroke: O[3],
|
|
337
|
+
fill: O[3],
|
|
444
338
|
fillOpacity: .1,
|
|
445
339
|
strokeWidth: 2,
|
|
446
340
|
name: "Cost"
|
|
447
341
|
}),
|
|
448
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ C(r, {
|
|
449
343
|
type: "monotone",
|
|
450
344
|
dataKey: "conversions",
|
|
451
|
-
stroke:
|
|
452
|
-
fill:
|
|
345
|
+
stroke: O[1],
|
|
346
|
+
fill: O[1],
|
|
453
347
|
fillOpacity: .1,
|
|
454
348
|
strokeWidth: 2,
|
|
455
349
|
name: "Conversions"
|
|
@@ -458,65 +352,65 @@ var D = [
|
|
|
458
352
|
})
|
|
459
353
|
})
|
|
460
354
|
}),
|
|
461
|
-
|
|
355
|
+
R === "audience" && /* @__PURE__ */ w("div", {
|
|
462
356
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
463
357
|
children: [
|
|
464
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ w("div", {
|
|
465
359
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
360
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
467
361
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
468
362
|
children: "Demographics"
|
|
469
|
-
}), /* @__PURE__ */
|
|
363
|
+
}), /* @__PURE__ */ w("div", {
|
|
470
364
|
className: "space-y-2",
|
|
471
|
-
children: [
|
|
365
|
+
children: [G.targeting.demographics.map((e) => /* @__PURE__ */ w("div", {
|
|
472
366
|
className: "flex items-center gap-2",
|
|
473
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ C("span", {
|
|
474
368
|
className: "text-sm text-text-primary",
|
|
475
369
|
children: e
|
|
476
370
|
})]
|
|
477
|
-
}, e)), /* @__PURE__ */
|
|
371
|
+
}, e)), /* @__PURE__ */ w("div", {
|
|
478
372
|
className: "pt-2 border-t border-border-subtle mt-2",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ C("p", {
|
|
480
374
|
className: "text-xs text-text-secondary",
|
|
481
375
|
children: "Age Range"
|
|
482
|
-
}), /* @__PURE__ */
|
|
376
|
+
}), /* @__PURE__ */ w("p", {
|
|
483
377
|
className: "text-sm font-medium text-text-primary",
|
|
484
378
|
children: [
|
|
485
|
-
|
|
379
|
+
G.targeting.ageRange.min,
|
|
486
380
|
" -",
|
|
487
381
|
" ",
|
|
488
|
-
|
|
382
|
+
G.targeting.ageRange.max
|
|
489
383
|
]
|
|
490
384
|
})]
|
|
491
385
|
})]
|
|
492
386
|
})]
|
|
493
387
|
}),
|
|
494
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ w("div", {
|
|
495
389
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
496
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
497
391
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
498
392
|
children: "Interests"
|
|
499
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ C("div", {
|
|
500
394
|
className: "space-y-2",
|
|
501
|
-
children:
|
|
395
|
+
children: G.targeting.interests.map((e) => /* @__PURE__ */ w("div", {
|
|
502
396
|
className: "flex items-center gap-2",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ C("span", {
|
|
504
398
|
className: "text-sm text-text-primary",
|
|
505
399
|
children: e
|
|
506
400
|
})]
|
|
507
401
|
}, e))
|
|
508
402
|
})]
|
|
509
403
|
}),
|
|
510
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ w("div", {
|
|
511
405
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
512
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
513
407
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
514
408
|
children: "Locations"
|
|
515
|
-
}), /* @__PURE__ */
|
|
409
|
+
}), /* @__PURE__ */ C("div", {
|
|
516
410
|
className: "space-y-2",
|
|
517
|
-
children:
|
|
411
|
+
children: G.targeting.locations.map((e) => /* @__PURE__ */ w("div", {
|
|
518
412
|
className: "flex items-center gap-2",
|
|
519
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ C("span", {
|
|
520
414
|
className: "text-sm text-text-primary",
|
|
521
415
|
children: e
|
|
522
416
|
})]
|
|
@@ -525,70 +419,64 @@ var D = [
|
|
|
525
419
|
})
|
|
526
420
|
]
|
|
527
421
|
}),
|
|
528
|
-
|
|
422
|
+
R === "assets" && /* @__PURE__ */ w("div", {
|
|
529
423
|
className: "space-y-6",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
424
|
+
children: [/* @__PURE__ */ w("div", {
|
|
531
425
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
532
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
533
427
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
534
|
-
children: [/* @__PURE__ */
|
|
535
|
-
}), /* @__PURE__ */
|
|
428
|
+
children: [/* @__PURE__ */ C(b, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
|
|
429
|
+
}), /* @__PURE__ */ C("div", {
|
|
536
430
|
className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",
|
|
537
|
-
children:
|
|
431
|
+
children: G.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).length > 0 ? G.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).map((e) => /* @__PURE__ */ C("div", {
|
|
538
432
|
className: "aspect-video rounded-lg border border-border-subtle bg-bg-sunken flex items-center justify-center",
|
|
539
|
-
children: /* @__PURE__ */
|
|
433
|
+
children: /* @__PURE__ */ C(b, { className: "h-8 w-8 text-text-secondary" })
|
|
540
434
|
}, e)) : [
|
|
541
435
|
1,
|
|
542
436
|
2,
|
|
543
437
|
3
|
|
544
|
-
].map((e) => /* @__PURE__ */
|
|
438
|
+
].map((e) => /* @__PURE__ */ C("div", {
|
|
545
439
|
className: "aspect-video rounded-lg border border-dashed border-border-subtle bg-bg-sunken/30 flex items-center justify-center",
|
|
546
|
-
children: /* @__PURE__ */
|
|
440
|
+
children: /* @__PURE__ */ C(b, { className: "h-8 w-8 text-text-secondary/50" })
|
|
547
441
|
}, e))
|
|
548
442
|
})]
|
|
549
|
-
}), /* @__PURE__ */
|
|
443
|
+
}), /* @__PURE__ */ w("div", {
|
|
550
444
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
551
|
-
children: [/* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
552
446
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
553
|
-
children: [/* @__PURE__ */
|
|
554
|
-
}), /* @__PURE__ */
|
|
447
|
+
children: [/* @__PURE__ */ C(y, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
|
|
448
|
+
}), $.length > 0 ? /* @__PURE__ */ C("div", {
|
|
555
449
|
className: "space-y-2",
|
|
556
|
-
children:
|
|
450
|
+
children: $.map((e) => /* @__PURE__ */ C("div", {
|
|
557
451
|
className: "flex items-center justify-between rounded-md border border-border-subtle p-3 hover:bg-bg-sunken/50 transition-colors",
|
|
558
|
-
children:
|
|
452
|
+
children: /* @__PURE__ */ w("div", {
|
|
559
453
|
className: "flex items-center gap-3",
|
|
560
|
-
children: [/* @__PURE__ */
|
|
561
|
-
className: "text-sm font-medium text-text-primary",
|
|
562
|
-
children: e.
|
|
563
|
-
})
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
children: e.updated
|
|
570
|
-
})]
|
|
571
|
-
}, e.name))
|
|
454
|
+
children: [/* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ C("p", {
|
|
455
|
+
className: "text-sm font-medium text-text-primary break-all",
|
|
456
|
+
children: e.split("/").pop() ?? e
|
|
457
|
+
})]
|
|
458
|
+
})
|
|
459
|
+
}, e))
|
|
460
|
+
}) : /* @__PURE__ */ C("p", {
|
|
461
|
+
className: "text-sm text-text-secondary py-4 text-center",
|
|
462
|
+
children: "No documents yet."
|
|
572
463
|
})]
|
|
573
464
|
})]
|
|
574
465
|
}),
|
|
575
|
-
|
|
466
|
+
R === "team" && /* @__PURE__ */ w("div", {
|
|
576
467
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
577
|
-
children: [
|
|
468
|
+
children: [Q.map((e) => /* @__PURE__ */ w("div", {
|
|
578
469
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop flex items-center gap-4",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ C("div", {
|
|
580
471
|
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",
|
|
581
|
-
children: e
|
|
582
|
-
}), /* @__PURE__ */ C("div", { children:
|
|
472
|
+
children: k(e)
|
|
473
|
+
}), /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("p", {
|
|
583
474
|
className: "text-sm font-semibold text-text-primary",
|
|
584
|
-
children: e
|
|
585
|
-
})
|
|
586
|
-
|
|
587
|
-
children: e.role
|
|
588
|
-
})] })]
|
|
589
|
-
}, e.name)), $.length === 0 && /* @__PURE__ */ S("div", {
|
|
475
|
+
children: e
|
|
476
|
+
}) })]
|
|
477
|
+
}, e)), Q.length === 0 && /* @__PURE__ */ C("div", {
|
|
590
478
|
className: "col-span-full",
|
|
591
|
-
children: /* @__PURE__ */
|
|
479
|
+
children: /* @__PURE__ */ C(f, {
|
|
592
480
|
illustration: "empty-people",
|
|
593
481
|
title: "No team members",
|
|
594
482
|
description: "No team members have been assigned to this campaign yet."
|
|
@@ -601,6 +489,6 @@ var D = [
|
|
|
601
489
|
});
|
|
602
490
|
};
|
|
603
491
|
//#endregion
|
|
604
|
-
export {
|
|
492
|
+
export { A as CampaignDetailsPage };
|
|
605
493
|
|
|
606
494
|
//# sourceMappingURL=CampaignDetailsPage.js.map
|