@burdenoff/microfe-headshotmarketing 2026.827.1 → 2026.830.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/HeadshotMarketingRoot.d.ts.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoot.js +43 -49
- package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.d.ts.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +87 -79
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +23 -23
- package/dist/headshotmarketing/components/QueryStateBoundary.js +12 -12
- package/dist/headshotmarketing/hooks/index.d.ts +1 -0
- package/dist/headshotmarketing/hooks/index.d.ts.map +1 -1
- package/dist/headshotmarketing/hooks/index.js +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +164 -164
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +57 -57
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +5 -5
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/shared/hooks/useTr.d.ts +17 -0
- package/dist/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/shared/hooks/useTr.js +14 -0
- package/dist/shared/hooks/useTr.js.map +1 -0
- package/package.json +1 -1
|
@@ -4,31 +4,31 @@ import { Tooltip as n } from "../../node_modules/recharts/es6/component/Tooltip.
|
|
|
4
4
|
import { ResponsiveContainer as r } from "../../node_modules/recharts/es6/component/ResponsiveContainer.js";
|
|
5
5
|
import { Cell as i } from "../../node_modules/recharts/es6/component/Cell.js";
|
|
6
6
|
import { Pie as ee } from "../../node_modules/recharts/es6/polar/Pie.js";
|
|
7
|
-
import { CartesianGrid as
|
|
8
|
-
import { Area as
|
|
9
|
-
import { XAxis as
|
|
10
|
-
import { YAxis as
|
|
11
|
-
import { PieChart as
|
|
12
|
-
import { AreaChart as
|
|
13
|
-
import { cn as
|
|
14
|
-
import { toCampaignModel as
|
|
15
|
-
import { toAdCampaignModel as
|
|
16
|
-
import { toCampaignTimeSeries as
|
|
17
|
-
import { StatCard as
|
|
18
|
-
import { DataTable as
|
|
19
|
-
import { StatusBadge as
|
|
20
|
-
import { EmptyState as
|
|
21
|
-
import { ChartCard as
|
|
22
|
-
import { QueryStateBoundary as
|
|
7
|
+
import { CartesianGrid as te } from "../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
|
|
8
|
+
import { Area as a } from "../../node_modules/recharts/es6/cartesian/Area.js";
|
|
9
|
+
import { XAxis as ne } from "../../node_modules/recharts/es6/cartesian/XAxis.js";
|
|
10
|
+
import { YAxis as re } from "../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
11
|
+
import { PieChart as ie } from "../../node_modules/recharts/es6/chart/PieChart.js";
|
|
12
|
+
import { AreaChart as ae } from "../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
13
|
+
import { cn as o, exportRowsToCsv as oe, formatCurrency as s, formatNumber as c, formatPercentage as l } from "../utils/helpers.js";
|
|
14
|
+
import { toCampaignModel as se } from "../utils/campaignMapper.js";
|
|
15
|
+
import { toAdCampaignModel as ce } from "../utils/adsMapper.js";
|
|
16
|
+
import { toCampaignTimeSeries as le, toChannelPerformance as ue } from "../utils/analyticsMapper.js";
|
|
17
|
+
import { StatCard as u } from "../components/StatCard.js";
|
|
18
|
+
import { DataTable as d } from "../components/DataTable.js";
|
|
19
|
+
import { StatusBadge as f } from "../components/StatusBadge.js";
|
|
20
|
+
import { EmptyState as p } from "../components/EmptyState.js";
|
|
21
|
+
import { ChartCard as m } from "../components/ChartCard.js";
|
|
22
|
+
import { QueryStateBoundary as de } from "../components/QueryStateBoundary.js";
|
|
23
23
|
import "../components/index.js";
|
|
24
|
-
import { useHeadshotmarketingBootstrap as
|
|
25
|
-
import { HomeStatCard as
|
|
26
|
-
import { HomeFunnel as
|
|
27
|
-
import { useState as
|
|
28
|
-
import { AlertCircle as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
24
|
+
import { useHeadshotmarketingBootstrap as fe } from "../hooks/useHeadshotmarketingBootstrap.js";
|
|
25
|
+
import { HomeStatCard as h } from "./HomeStatCard.js";
|
|
26
|
+
import { HomeFunnel as pe } from "./HomeFunnel.js";
|
|
27
|
+
import { useState as g } from "react";
|
|
28
|
+
import { AlertCircle as _, AlertTriangle as v, ArrowRight as me, CheckCircle2 as y, DollarSign as he, Download as ge, Eye as _e, Info as b, Megaphone as x, MousePointerClick as ve, Percent as ye, RefreshCw as be, Target as S, TrendingUp as C, UserPlus as xe, Users as Se } from "lucide-react";
|
|
29
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
30
|
+
import { AuroraBackground as E, EmphasisPanel as D, GradientText as O, NextSteps as k, PagePurpose as A, ShowMore as j } from "@burdenoff/fe-libs/ui";
|
|
31
|
+
import { useI18n as Ce } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
32
32
|
//#region src/headshotmarketing/pages/HomePage.tsx
|
|
33
33
|
var M = [
|
|
34
34
|
"var(--color-chart-1)",
|
|
@@ -38,10 +38,10 @@ var M = [
|
|
|
38
38
|
"var(--color-chart-5)",
|
|
39
39
|
"var(--color-chart-6)"
|
|
40
40
|
], we = {
|
|
41
|
-
success:
|
|
42
|
-
warning:
|
|
43
|
-
error:
|
|
44
|
-
info:
|
|
41
|
+
success: y,
|
|
42
|
+
warning: v,
|
|
43
|
+
error: _,
|
|
44
|
+
info: b
|
|
45
45
|
}, Te = {
|
|
46
46
|
success: "border-status-success-border bg-status-success-bg text-status-success-text",
|
|
47
47
|
warning: "border-status-warning-border bg-status-warning-bg text-status-warning-text",
|
|
@@ -53,10 +53,10 @@ var M = [
|
|
|
53
53
|
error: "text-status-error-text",
|
|
54
54
|
info: "text-status-info-text"
|
|
55
55
|
}, N = () => {
|
|
56
|
-
let { navigate:
|
|
57
|
-
let n =
|
|
56
|
+
let { navigate: _, basePath: v } = e(), { t: y } = Ce(), N = (e, t) => {
|
|
57
|
+
let n = y(e);
|
|
58
58
|
return n === e ? t : n;
|
|
59
|
-
}, { data: P, loading: F, error: De, refetch: I } =
|
|
59
|
+
}, { data: P, loading: F, error: De, refetch: I } = fe(), [L, Oe] = g("overview"), [R, ke] = g("revenue"), z = (P?.headshotmarketingCampaigns.items ?? []).map((e) => se(e)), Ae = (P?.headshotmarketingAdCampaigns.items ?? []).map((e) => ce(e)), B = le(z), V = ue(z, Ae), je = B.map((e) => e.revenue), Me = B.map((e) => e.conversions), Ne = B.map((e) => e.cost > 0 ? e.revenue / e.cost : 0), H = N("headshotmarketing.home.charts.revenue", "Revenue"), U = N("headshotmarketing.home.charts.spend", "Spend"), Pe = R === "revenue" ? M[0] : M[3], Fe = R === "revenue" ? "url(#hm-rev-grad)" : "url(#hm-cost-grad)", Ie = R === "revenue" ? H : U, Le = R === "revenue" ? "cost" : "revenue", Re = R === "revenue" ? M[3] : M[0], ze = R === "revenue" ? U : H, Be = [
|
|
60
60
|
{
|
|
61
61
|
key: "name",
|
|
62
62
|
header: N("headshotmarketing.home.table.columns.name", "Name"),
|
|
@@ -66,7 +66,7 @@ var M = [
|
|
|
66
66
|
key: "type",
|
|
67
67
|
header: N("headshotmarketing.home.table.columns.type", "Type"),
|
|
68
68
|
sortable: !0,
|
|
69
|
-
render: (e) => /* @__PURE__ */
|
|
69
|
+
render: (e) => /* @__PURE__ */ w("span", {
|
|
70
70
|
className: "capitalize",
|
|
71
71
|
children: e.type
|
|
72
72
|
})
|
|
@@ -74,25 +74,25 @@ var M = [
|
|
|
74
74
|
{
|
|
75
75
|
key: "status",
|
|
76
76
|
header: N("headshotmarketing.home.table.columns.status", "Status"),
|
|
77
|
-
render: (e) => /* @__PURE__ */
|
|
77
|
+
render: (e) => /* @__PURE__ */ w(f, { status: e.status })
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
key: "impressions",
|
|
81
81
|
header: N("headshotmarketing.home.table.columns.impressions", "Impressions"),
|
|
82
82
|
sortable: !0,
|
|
83
|
-
render: (e) =>
|
|
83
|
+
render: (e) => c(e.metrics.impressions)
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: "clicks",
|
|
87
87
|
header: N("headshotmarketing.home.table.columns.clicks", "Clicks"),
|
|
88
88
|
sortable: !0,
|
|
89
|
-
render: (e) =>
|
|
89
|
+
render: (e) => c(e.metrics.clicks)
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: "conversions",
|
|
93
93
|
header: N("headshotmarketing.home.table.columns.conversions", "Conversions"),
|
|
94
94
|
sortable: !0,
|
|
95
|
-
render: (e) =>
|
|
95
|
+
render: (e) => c(e.metrics.conversions)
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
key: "roas",
|
|
@@ -105,7 +105,7 @@ var M = [
|
|
|
105
105
|
key: "name",
|
|
106
106
|
header: N("headshotmarketing.home.table.columns.name", "Name"),
|
|
107
107
|
sortable: !0,
|
|
108
|
-
render: (e) => /* @__PURE__ */
|
|
108
|
+
render: (e) => /* @__PURE__ */ w("span", {
|
|
109
109
|
className: "font-medium text-text-primary",
|
|
110
110
|
children: e.name
|
|
111
111
|
})
|
|
@@ -113,7 +113,7 @@ var M = [
|
|
|
113
113
|
{
|
|
114
114
|
key: "type",
|
|
115
115
|
header: N("headshotmarketing.home.table.columns.type", "Type"),
|
|
116
|
-
render: (e) => /* @__PURE__ */
|
|
116
|
+
render: (e) => /* @__PURE__ */ w("span", {
|
|
117
117
|
className: "capitalize",
|
|
118
118
|
children: e.type
|
|
119
119
|
})
|
|
@@ -121,14 +121,14 @@ var M = [
|
|
|
121
121
|
{
|
|
122
122
|
key: "status",
|
|
123
123
|
header: N("headshotmarketing.home.table.columns.status", "Status"),
|
|
124
|
-
render: (e) => /* @__PURE__ */
|
|
124
|
+
render: (e) => /* @__PURE__ */ w(f, { status: e.status })
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
key: "spend",
|
|
128
128
|
header: N("headshotmarketing.home.table.columns.spend", "Spend"),
|
|
129
129
|
sortable: !0,
|
|
130
130
|
className: "tabular-nums",
|
|
131
|
-
render: (e) =>
|
|
131
|
+
render: (e) => s(e.metrics.cost)
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
key: "roas",
|
|
@@ -171,7 +171,7 @@ var M = [
|
|
|
171
171
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
172
172
|
}]
|
|
173
173
|
}, qe = () => {
|
|
174
|
-
|
|
174
|
+
oe("headshotmarketing-dashboard", [
|
|
175
175
|
"Name",
|
|
176
176
|
"Type",
|
|
177
177
|
"Status",
|
|
@@ -210,37 +210,37 @@ var M = [
|
|
|
210
210
|
label: N("headshotmarketing.home.tabs.campaigns", "Campaigns")
|
|
211
211
|
}
|
|
212
212
|
];
|
|
213
|
-
return /* @__PURE__ */
|
|
213
|
+
return /* @__PURE__ */ T("div", {
|
|
214
214
|
className: "space-y-6",
|
|
215
215
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ T("header", {
|
|
217
217
|
className: "relative overflow-hidden rounded-card border border-border-seam bg-gloss-card px-6 py-7 shadow-[var(--shadow-pop)] sm:px-8",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
218
|
+
children: [/* @__PURE__ */ w(E, { intensity: "subtle" }), /* @__PURE__ */ T("div", {
|
|
219
219
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
|
|
221
221
|
className: "text-2xl font-bold tracking-tight text-text-primary sm:text-3xl",
|
|
222
|
-
children: /* @__PURE__ */
|
|
223
|
-
}), /* @__PURE__ */
|
|
222
|
+
children: /* @__PURE__ */ w(O, { children: N("headshotmarketing.home.title", "Dashboard") })
|
|
223
|
+
}), /* @__PURE__ */ w("p", {
|
|
224
224
|
className: "mt-1 text-sm text-text-secondary",
|
|
225
225
|
children: N("headshotmarketing.home.subtitle", "Your marketing performance at a glance.")
|
|
226
|
-
})] }), /* @__PURE__ */
|
|
226
|
+
})] }), /* @__PURE__ */ T("div", {
|
|
227
227
|
className: "flex flex-wrap items-center gap-2",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ T("button", {
|
|
229
229
|
type: "button",
|
|
230
230
|
onClick: () => I(),
|
|
231
231
|
disabled: F,
|
|
232
232
|
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60",
|
|
233
|
-
children: [/* @__PURE__ */
|
|
234
|
-
className:
|
|
233
|
+
children: [/* @__PURE__ */ w(be, {
|
|
234
|
+
className: o("h-4 w-4", F && "animate-spin"),
|
|
235
235
|
"aria-hidden": "true"
|
|
236
236
|
}), N("headshotmarketing.home.actions.refresh", "Refresh")]
|
|
237
|
-
}), /* @__PURE__ */
|
|
237
|
+
}), /* @__PURE__ */ T("button", {
|
|
238
238
|
type: "button",
|
|
239
239
|
onClick: qe,
|
|
240
240
|
disabled: z.length === 0,
|
|
241
241
|
title: z.length === 0 ? N("headshotmarketing.home.actions.exportEmpty", "No campaigns to export yet") : N("headshotmarketing.home.actions.export", "Export"),
|
|
242
242
|
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text shadow-pop transition-colors hover:bg-action-primary-bg/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60",
|
|
243
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ w(ge, {
|
|
244
244
|
className: "h-4 w-4",
|
|
245
245
|
"aria-hidden": "true"
|
|
246
246
|
}), N("headshotmarketing.home.actions.export", "Export")]
|
|
@@ -248,142 +248,142 @@ var M = [
|
|
|
248
248
|
})]
|
|
249
249
|
})]
|
|
250
250
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ w(A, { children: N("headshotmarketing.home.purpose", "Your marketing at a glance. This dashboard pulls revenue, active campaigns, conversions and ROAS into one view, then lets you dig into performance, audience and campaign detail — so you always know what's working and where to act next.") }),
|
|
252
|
+
/* @__PURE__ */ w(k, {
|
|
253
253
|
storageKey: "headshotmarketing-home",
|
|
254
254
|
steps: [
|
|
255
255
|
{
|
|
256
256
|
id: "campaign",
|
|
257
257
|
label: N("headshotmarketing.home.next.newCampaign", "Launch a campaign"),
|
|
258
258
|
description: N("headshotmarketing.home.next.newCampaignDesc", "Set up a marketing campaign end to end."),
|
|
259
|
-
icon: /* @__PURE__ */
|
|
260
|
-
onClick: () => v
|
|
259
|
+
icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
|
|
260
|
+
onClick: () => _(v + "/campaigns/new")
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
id: "ads",
|
|
264
264
|
label: N("headshotmarketing.home.next.ads", "Run paid ads"),
|
|
265
265
|
description: N("headshotmarketing.home.next.adsDesc", "Drive traffic with Google, Meta or LinkedIn ads."),
|
|
266
|
-
icon: /* @__PURE__ */
|
|
267
|
-
onClick: () => v
|
|
266
|
+
icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" }),
|
|
267
|
+
onClick: () => _(v + "/ads")
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
id: "analytics",
|
|
271
271
|
label: N("headshotmarketing.home.next.analytics", "Review analytics"),
|
|
272
272
|
description: N("headshotmarketing.home.next.analyticsDesc", "Dig into channel and campaign performance."),
|
|
273
|
-
icon: /* @__PURE__ */
|
|
274
|
-
onClick: () => v
|
|
273
|
+
icon: /* @__PURE__ */ w(C, { className: "h-4 w-4" }),
|
|
274
|
+
onClick: () => _(v + "/analytics")
|
|
275
275
|
}
|
|
276
276
|
]
|
|
277
277
|
}),
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ T(de, {
|
|
279
279
|
loading: F,
|
|
280
280
|
error: De,
|
|
281
281
|
onRetry: I,
|
|
282
282
|
hasData: !!P,
|
|
283
283
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ T("div", {
|
|
285
285
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
286
286
|
children: [
|
|
287
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ w(h, {
|
|
288
288
|
featured: !0,
|
|
289
289
|
title: N("headshotmarketing.home.stats.totalRevenue", "Total Revenue"),
|
|
290
|
-
value:
|
|
291
|
-
icon: /* @__PURE__ */
|
|
290
|
+
value: s(We),
|
|
291
|
+
icon: /* @__PURE__ */ w(he, { className: "h-5 w-5" }),
|
|
292
292
|
series: je,
|
|
293
293
|
seriesColor: "var(--color-chart-1)"
|
|
294
294
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ w(h, {
|
|
296
296
|
title: N("headshotmarketing.home.stats.activeCampaigns", "Active Campaigns"),
|
|
297
297
|
value: String(Ge),
|
|
298
|
-
icon: /* @__PURE__ */
|
|
298
|
+
icon: /* @__PURE__ */ w(x, { className: "h-5 w-5" })
|
|
299
299
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ w(h, {
|
|
301
301
|
title: N("headshotmarketing.home.stats.conversions", "Conversions"),
|
|
302
|
-
value:
|
|
303
|
-
icon: /* @__PURE__ */
|
|
302
|
+
value: c(K),
|
|
303
|
+
icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" }),
|
|
304
304
|
series: Me,
|
|
305
305
|
seriesColor: "var(--color-chart-2)"
|
|
306
306
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ w(h, {
|
|
308
308
|
title: N("headshotmarketing.home.stats.roas", "ROAS"),
|
|
309
309
|
value: `${Y.toFixed(1)}x`,
|
|
310
|
-
icon: /* @__PURE__ */
|
|
310
|
+
icon: /* @__PURE__ */ w(C, { className: "h-5 w-5" }),
|
|
311
311
|
series: Ne,
|
|
312
312
|
seriesColor: "var(--color-chart-3)"
|
|
313
313
|
})
|
|
314
314
|
]
|
|
315
315
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ w(j, {
|
|
317
317
|
collapsedHeight: 0,
|
|
318
318
|
label: N("headshotmarketing.home.actions.moreMetrics", "More metrics"),
|
|
319
|
-
children: /* @__PURE__ */
|
|
319
|
+
children: /* @__PURE__ */ T("div", {
|
|
320
320
|
className: "grid grid-cols-1 gap-4 pt-1 sm:grid-cols-2 lg:grid-cols-4",
|
|
321
321
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ w(u, {
|
|
323
323
|
title: N("headshotmarketing.home.stats.conversionRate", "Conversion Rate"),
|
|
324
324
|
value: Ke,
|
|
325
|
-
icon: /* @__PURE__ */
|
|
325
|
+
icon: /* @__PURE__ */ w(ye, { className: "h-5 w-5" })
|
|
326
326
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ w(u, {
|
|
328
328
|
title: N("headshotmarketing.home.stats.totalImpressions", "Total Impressions"),
|
|
329
|
-
value: J > 0 ?
|
|
330
|
-
icon: /* @__PURE__ */
|
|
329
|
+
value: J > 0 ? c(J) : "—",
|
|
330
|
+
icon: /* @__PURE__ */ w(_e, { className: "h-5 w-5" })
|
|
331
331
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ w(u, {
|
|
333
333
|
title: N("headshotmarketing.home.stats.clickThroughRate", "Click-Through Rate"),
|
|
334
|
-
value: Z == null ? "—" :
|
|
335
|
-
icon: /* @__PURE__ */
|
|
334
|
+
value: Z == null ? "—" : l(Z),
|
|
335
|
+
icon: /* @__PURE__ */ w(ve, { className: "h-5 w-5" })
|
|
336
336
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ w(u, {
|
|
338
338
|
title: N("headshotmarketing.home.stats.totalLeads", "Total Leads"),
|
|
339
339
|
value: "—",
|
|
340
|
-
icon: /* @__PURE__ */
|
|
340
|
+
icon: /* @__PURE__ */ w(xe, { className: "h-5 w-5" })
|
|
341
341
|
})
|
|
342
342
|
]
|
|
343
343
|
})
|
|
344
344
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ T(D, { children: [/* @__PURE__ */ w("h3", {
|
|
346
346
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
347
347
|
children: N("headshotmarketing.home.sections.monthlyGoals", "Monthly Goals")
|
|
348
|
-
}), /* @__PURE__ */
|
|
349
|
-
icon: /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ w(p, {
|
|
349
|
+
icon: /* @__PURE__ */ w(S, { className: "h-10 w-10" }),
|
|
350
350
|
title: N("headshotmarketing.home.goals.emptyTitle", "No goal data yet"),
|
|
351
351
|
description: N("headshotmarketing.home.goals.emptyDesc", "Set monthly targets to track progress against revenue, customers, ROI and traffic.")
|
|
352
352
|
})] }),
|
|
353
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("div", {
|
|
354
354
|
className: "flex flex-nowrap items-center gap-1 overflow-x-auto border-b border-border-subtle",
|
|
355
|
-
children: Je.map((e) => /* @__PURE__ */
|
|
355
|
+
children: Je.map((e) => /* @__PURE__ */ w("button", {
|
|
356
356
|
onClick: () => Oe(e.key),
|
|
357
|
-
className:
|
|
357
|
+
className: o("shrink-0 whitespace-nowrap 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"),
|
|
358
358
|
children: e.label
|
|
359
359
|
}, e.key))
|
|
360
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ T("div", {
|
|
361
361
|
className: "mt-6",
|
|
362
362
|
children: [
|
|
363
|
-
L === "overview" && /* @__PURE__ */
|
|
363
|
+
L === "overview" && /* @__PURE__ */ T("div", {
|
|
364
364
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
365
365
|
children: [
|
|
366
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ w(m, {
|
|
367
367
|
className: "lg:col-span-2",
|
|
368
368
|
title: N("headshotmarketing.home.charts.revenueTrend", "Revenue & Spend"),
|
|
369
369
|
subtitle: N("headshotmarketing.home.charts.last30Days", "Last 30 days"),
|
|
370
|
-
actions: /* @__PURE__ */
|
|
370
|
+
actions: /* @__PURE__ */ w("div", {
|
|
371
371
|
className: "inline-flex items-center rounded-md border border-border-seam bg-bg-surface p-0.5",
|
|
372
372
|
role: "tablist",
|
|
373
373
|
"aria-label": N("headshotmarketing.home.charts.metricToggle", "Chart metric"),
|
|
374
|
-
children: ["revenue", "cost"].map((e) => /* @__PURE__ */
|
|
374
|
+
children: ["revenue", "cost"].map((e) => /* @__PURE__ */ w("button", {
|
|
375
375
|
type: "button",
|
|
376
376
|
role: "tab",
|
|
377
377
|
"aria-selected": R === e,
|
|
378
378
|
onClick: () => ke(e),
|
|
379
|
-
className:
|
|
379
|
+
className: o("rounded px-3 py-1 text-xs font-medium transition-colors", R === e ? "bg-action-primary-bg text-action-primary-text shadow-pop" : "text-text-secondary hover:text-text-primary"),
|
|
380
380
|
children: e === "revenue" ? H : U
|
|
381
381
|
}, e))
|
|
382
382
|
}),
|
|
383
|
-
children: /* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */ w(r, {
|
|
384
384
|
width: "100%",
|
|
385
385
|
height: 300,
|
|
386
|
-
children: /* @__PURE__ */
|
|
386
|
+
children: /* @__PURE__ */ T(ae, {
|
|
387
387
|
data: B,
|
|
388
388
|
margin: {
|
|
389
389
|
top: 10,
|
|
@@ -392,43 +392,43 @@ var M = [
|
|
|
392
392
|
left: -8
|
|
393
393
|
},
|
|
394
394
|
children: [
|
|
395
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ T("defs", { children: [/* @__PURE__ */ T("linearGradient", {
|
|
396
396
|
id: "hm-rev-grad",
|
|
397
397
|
x1: "0",
|
|
398
398
|
y1: "0",
|
|
399
399
|
x2: "0",
|
|
400
400
|
y2: "1",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ w("stop", {
|
|
402
402
|
offset: "0%",
|
|
403
403
|
stopColor: M[0],
|
|
404
404
|
stopOpacity: .35
|
|
405
|
-
}), /* @__PURE__ */
|
|
405
|
+
}), /* @__PURE__ */ w("stop", {
|
|
406
406
|
offset: "100%",
|
|
407
407
|
stopColor: M[0],
|
|
408
408
|
stopOpacity: .02
|
|
409
409
|
})]
|
|
410
|
-
}), /* @__PURE__ */
|
|
410
|
+
}), /* @__PURE__ */ T("linearGradient", {
|
|
411
411
|
id: "hm-cost-grad",
|
|
412
412
|
x1: "0",
|
|
413
413
|
y1: "0",
|
|
414
414
|
x2: "0",
|
|
415
415
|
y2: "1",
|
|
416
|
-
children: [/* @__PURE__ */
|
|
416
|
+
children: [/* @__PURE__ */ w("stop", {
|
|
417
417
|
offset: "0%",
|
|
418
418
|
stopColor: M[3],
|
|
419
419
|
stopOpacity: .35
|
|
420
|
-
}), /* @__PURE__ */
|
|
420
|
+
}), /* @__PURE__ */ w("stop", {
|
|
421
421
|
offset: "100%",
|
|
422
422
|
stopColor: M[3],
|
|
423
423
|
stopOpacity: .02
|
|
424
424
|
})]
|
|
425
425
|
})] }),
|
|
426
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ w(te, {
|
|
427
427
|
strokeDasharray: "3 3",
|
|
428
428
|
vertical: !1,
|
|
429
429
|
className: "stroke-border"
|
|
430
430
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ w(ne, {
|
|
432
432
|
dataKey: "date",
|
|
433
433
|
tick: { fontSize: 11 },
|
|
434
434
|
className: "text-text-secondary",
|
|
@@ -436,23 +436,23 @@ var M = [
|
|
|
436
436
|
tickLine: !1,
|
|
437
437
|
axisLine: !1
|
|
438
438
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ w(re, {
|
|
440
440
|
tick: { fontSize: 11 },
|
|
441
441
|
className: "text-text-secondary",
|
|
442
|
-
tickFormatter: (e) =>
|
|
442
|
+
tickFormatter: (e) => c(e),
|
|
443
443
|
tickLine: !1,
|
|
444
444
|
axisLine: !1,
|
|
445
445
|
width: 48
|
|
446
446
|
}),
|
|
447
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ w(n, {
|
|
448
448
|
contentStyle: {
|
|
449
449
|
backgroundColor: "var(--color-card)",
|
|
450
450
|
border: "1px solid var(--color-border)",
|
|
451
451
|
borderRadius: 8
|
|
452
452
|
},
|
|
453
|
-
formatter: (e) =>
|
|
453
|
+
formatter: (e) => s(e)
|
|
454
454
|
}),
|
|
455
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ w(a, {
|
|
456
456
|
type: "monotone",
|
|
457
457
|
dataKey: Le,
|
|
458
458
|
stroke: Re,
|
|
@@ -462,7 +462,7 @@ var M = [
|
|
|
462
462
|
name: ze,
|
|
463
463
|
isAnimationActive: !1
|
|
464
464
|
}),
|
|
465
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ w(a, {
|
|
466
466
|
type: "monotone",
|
|
467
467
|
dataKey: R,
|
|
468
468
|
stroke: Pe,
|
|
@@ -474,53 +474,53 @@ var M = [
|
|
|
474
474
|
})
|
|
475
475
|
})
|
|
476
476
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ w(m, {
|
|
478
478
|
title: N("headshotmarketing.home.charts.conversionFunnel", "Conversion Funnel"),
|
|
479
479
|
subtitle: N("headshotmarketing.home.charts.currentPeriod", "Current period"),
|
|
480
|
-
children: Q.length > 0 ? /* @__PURE__ */
|
|
480
|
+
children: Q.length > 0 ? /* @__PURE__ */ w("div", {
|
|
481
481
|
className: "py-2",
|
|
482
|
-
children: /* @__PURE__ */
|
|
483
|
-
}) : /* @__PURE__ */
|
|
484
|
-
icon: /* @__PURE__ */
|
|
482
|
+
children: /* @__PURE__ */ w(pe, { stages: Q })
|
|
483
|
+
}) : /* @__PURE__ */ w(p, {
|
|
484
|
+
icon: /* @__PURE__ */ w(S, { className: "h-10 w-10" }),
|
|
485
485
|
title: N("headshotmarketing.home.funnel.emptyTitle", "No funnel data yet"),
|
|
486
486
|
description: N("headshotmarketing.home.funnel.emptyDesc", "Stage-by-stage conversion appears here once campaign activity is tracked.")
|
|
487
487
|
})
|
|
488
488
|
}),
|
|
489
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ T("div", {
|
|
490
490
|
className: "space-y-3 lg:col-span-2",
|
|
491
|
-
children: [/* @__PURE__ */
|
|
491
|
+
children: [/* @__PURE__ */ T("div", {
|
|
492
492
|
className: "flex items-center justify-between gap-3",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
493
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
494
494
|
className: "text-sm font-semibold text-text-primary",
|
|
495
495
|
children: N("headshotmarketing.home.sections.recentCampaigns", "Recent Campaigns")
|
|
496
|
-
}), /* @__PURE__ */
|
|
496
|
+
}), /* @__PURE__ */ w("p", {
|
|
497
497
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
498
498
|
children: N("headshotmarketing.home.sections.recentCampaignsSub", "Latest activity at a glance")
|
|
499
|
-
})] }), /* @__PURE__ */
|
|
499
|
+
})] }), /* @__PURE__ */ T("button", {
|
|
500
500
|
type: "button",
|
|
501
|
-
onClick: () => v
|
|
501
|
+
onClick: () => _(v + "/campaigns"),
|
|
502
502
|
className: "inline-flex min-h-[44px] items-center gap-1 rounded-md px-2 text-xs font-medium text-action-primary-bg transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
503
|
-
children: [N("headshotmarketing.home.actions.viewAll", "View all"), /* @__PURE__ */
|
|
503
|
+
children: [N("headshotmarketing.home.actions.viewAll", "View all"), /* @__PURE__ */ w(me, {
|
|
504
504
|
className: "h-3.5 w-3.5",
|
|
505
505
|
"aria-hidden": "true"
|
|
506
506
|
})]
|
|
507
507
|
})]
|
|
508
|
-
}), /* @__PURE__ */
|
|
508
|
+
}), /* @__PURE__ */ w(d, {
|
|
509
509
|
data: He,
|
|
510
510
|
columns: Ve,
|
|
511
511
|
pageSize: 5,
|
|
512
|
-
onRowClick: (e) => v
|
|
512
|
+
onRowClick: (e) => _(v + "/campaigns/" + e.id),
|
|
513
513
|
emptyMessage: N("headshotmarketing.home.table.empty", "No campaigns found")
|
|
514
514
|
})]
|
|
515
515
|
}),
|
|
516
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ w(m, {
|
|
517
517
|
title: N("headshotmarketing.home.charts.channelPerformance", "Channel Performance"),
|
|
518
518
|
subtitle: N("headshotmarketing.home.charts.revenueDistribution", "Revenue distribution"),
|
|
519
|
-
children: V.length > 0 ? /* @__PURE__ */
|
|
519
|
+
children: V.length > 0 ? /* @__PURE__ */ w(r, {
|
|
520
520
|
width: "100%",
|
|
521
521
|
height: 300,
|
|
522
|
-
children: /* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
522
|
+
children: /* @__PURE__ */ T(ie, { children: [
|
|
523
|
+
/* @__PURE__ */ w(ee, {
|
|
524
524
|
data: V,
|
|
525
525
|
dataKey: "revenue",
|
|
526
526
|
nameKey: "channel",
|
|
@@ -531,54 +531,54 @@ var M = [
|
|
|
531
531
|
paddingAngle: 2,
|
|
532
532
|
stroke: "var(--color-card)",
|
|
533
533
|
strokeWidth: 2,
|
|
534
|
-
children: V.map((e, t) => /* @__PURE__ */
|
|
534
|
+
children: V.map((e, t) => /* @__PURE__ */ w(i, { fill: M[t % M.length] }, e.channel))
|
|
535
535
|
}),
|
|
536
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ w(n, {
|
|
537
537
|
contentStyle: {
|
|
538
538
|
backgroundColor: "var(--color-card)",
|
|
539
539
|
border: "1px solid var(--color-border)",
|
|
540
540
|
borderRadius: 8
|
|
541
541
|
},
|
|
542
|
-
formatter: (e) =>
|
|
542
|
+
formatter: (e) => s(e)
|
|
543
543
|
}),
|
|
544
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ w(t, {
|
|
545
545
|
iconType: "circle",
|
|
546
546
|
wrapperStyle: { fontSize: 12 }
|
|
547
547
|
})
|
|
548
548
|
] })
|
|
549
|
-
}) : /* @__PURE__ */
|
|
550
|
-
icon: /* @__PURE__ */
|
|
549
|
+
}) : /* @__PURE__ */ w(p, {
|
|
550
|
+
icon: /* @__PURE__ */ w(C, { className: "h-10 w-10" }),
|
|
551
551
|
title: N("headshotmarketing.home.channels.emptyTitle", "No channel data yet"),
|
|
552
552
|
description: N("headshotmarketing.home.channels.emptyDesc", "Revenue by channel appears once campaigns start delivering.")
|
|
553
553
|
})
|
|
554
554
|
})
|
|
555
555
|
]
|
|
556
556
|
}),
|
|
557
|
-
L === "performance" && /* @__PURE__ */
|
|
557
|
+
L === "performance" && /* @__PURE__ */ T("div", {
|
|
558
558
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
559
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
560
560
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
561
561
|
children: N("headshotmarketing.home.sections.topChannels", "Top Channels")
|
|
562
|
-
}), /* @__PURE__ */
|
|
562
|
+
}), /* @__PURE__ */ w("div", {
|
|
563
563
|
className: "space-y-4",
|
|
564
|
-
children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */
|
|
564
|
+
children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */ T("div", {
|
|
565
565
|
className: "flex items-center justify-between",
|
|
566
|
-
children: [/* @__PURE__ */
|
|
566
|
+
children: [/* @__PURE__ */ T("div", {
|
|
567
567
|
className: "flex items-center gap-3",
|
|
568
|
-
children: [/* @__PURE__ */
|
|
568
|
+
children: [/* @__PURE__ */ w("div", {
|
|
569
569
|
className: "h-3 w-3 rounded-full motion-safe:animate-vc-glow-pulse",
|
|
570
570
|
style: { backgroundColor: e.color }
|
|
571
|
-
}), /* @__PURE__ */
|
|
571
|
+
}), /* @__PURE__ */ w("span", {
|
|
572
572
|
className: "text-sm font-medium text-text-primary",
|
|
573
573
|
children: e.channel
|
|
574
574
|
})]
|
|
575
|
-
}), /* @__PURE__ */
|
|
575
|
+
}), /* @__PURE__ */ T("div", {
|
|
576
576
|
className: "flex items-center gap-4",
|
|
577
|
-
children: [/* @__PURE__ */
|
|
577
|
+
children: [/* @__PURE__ */ w("span", {
|
|
578
578
|
className: "text-sm font-semibold tabular-nums text-text-primary",
|
|
579
|
-
children:
|
|
580
|
-
}), /* @__PURE__ */
|
|
581
|
-
className:
|
|
579
|
+
children: s(e.revenue)
|
|
580
|
+
}), /* @__PURE__ */ T("span", {
|
|
581
|
+
className: o("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium tabular-nums", e.roas >= 3.5 ? "bg-status-success-bg text-status-success-text border-status-success-border" : "bg-status-warning-bg text-status-warning-text border-status-warning-border"),
|
|
582
582
|
children: [
|
|
583
583
|
e.roas.toFixed(1),
|
|
584
584
|
"x",
|
|
@@ -590,43 +590,43 @@ var M = [
|
|
|
590
590
|
}, e.channel))
|
|
591
591
|
})]
|
|
592
592
|
}),
|
|
593
|
-
L === "audience" && /* @__PURE__ */
|
|
593
|
+
L === "audience" && /* @__PURE__ */ T("div", {
|
|
594
594
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
595
|
-
children: [/* @__PURE__ */
|
|
595
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
596
596
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
597
597
|
children: N("headshotmarketing.home.sections.deviceBreakdown", "Device Breakdown")
|
|
598
|
-
}), /* @__PURE__ */
|
|
599
|
-
icon: /* @__PURE__ */
|
|
598
|
+
}), /* @__PURE__ */ w(p, {
|
|
599
|
+
icon: /* @__PURE__ */ w(Se, { className: "h-10 w-10" }),
|
|
600
600
|
title: N("headshotmarketing.home.devices.emptyTitle", "No audience data yet"),
|
|
601
601
|
description: N("headshotmarketing.home.devices.emptyDesc", "Device and session breakdowns will appear here once audience analytics are available.")
|
|
602
602
|
})]
|
|
603
603
|
}),
|
|
604
|
-
L === "campaigns" && /* @__PURE__ */
|
|
604
|
+
L === "campaigns" && /* @__PURE__ */ w(d, {
|
|
605
605
|
data: z,
|
|
606
606
|
columns: Be,
|
|
607
607
|
pageSize: 8,
|
|
608
|
-
onRowClick: (e) => v
|
|
608
|
+
onRowClick: (e) => _(v + "/campaigns/" + e.id),
|
|
609
609
|
emptyMessage: N("headshotmarketing.home.table.empty", "No campaigns found")
|
|
610
610
|
})
|
|
611
611
|
]
|
|
612
612
|
})] }),
|
|
613
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ T("div", {
|
|
614
614
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
615
|
-
children: [/* @__PURE__ */
|
|
615
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
616
616
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
617
617
|
children: N("headshotmarketing.home.sections.recentAlerts", "Recent Alerts")
|
|
618
|
-
}), /* @__PURE__ */
|
|
618
|
+
}), /* @__PURE__ */ w("div", {
|
|
619
619
|
className: "space-y-3",
|
|
620
620
|
children: $.recentAlerts.map((e) => {
|
|
621
|
-
let t = we[e.type] ||
|
|
622
|
-
return /* @__PURE__ */
|
|
623
|
-
className:
|
|
624
|
-
children: [/* @__PURE__ */
|
|
621
|
+
let t = we[e.type] || b;
|
|
622
|
+
return /* @__PURE__ */ T("div", {
|
|
623
|
+
className: o("flex items-start gap-3 rounded-lg border p-3", Te[e.type]),
|
|
624
|
+
children: [/* @__PURE__ */ w(t, { className: o("h-4 w-4 mt-0.5 flex-shrink-0", Ee[e.type]) }), /* @__PURE__ */ T("div", {
|
|
625
625
|
className: "flex-1 min-w-0",
|
|
626
|
-
children: [/* @__PURE__ */
|
|
626
|
+
children: [/* @__PURE__ */ w("p", {
|
|
627
627
|
className: "text-sm",
|
|
628
628
|
children: e.message
|
|
629
|
-
}), /* @__PURE__ */
|
|
629
|
+
}), /* @__PURE__ */ w("p", {
|
|
630
630
|
className: "text-xs mt-1 opacity-75",
|
|
631
631
|
children: new Date(e.timestamp).toLocaleString()
|
|
632
632
|
})]
|