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