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