@burdenoff/microfe-headshotmarketing 2026.1107.1 → 2026.1107.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/generated/wspace-operations.d.ts +612 -0
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +594 -368
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/generated/wspace-types.d.ts +8498 -352
  6. package/dist/generated/wspace-types.d.ts.map +1 -1
  7. package/dist/generated/wspace-types.js +11 -7
  8. package/dist/generated/wspace-types.js.map +1 -1
  9. package/dist/headshotmarketing/pages/HomeMonthlyGoals.d.ts +9 -0
  10. package/dist/headshotmarketing/pages/HomeMonthlyGoals.d.ts.map +1 -0
  11. package/dist/headshotmarketing/pages/HomeMonthlyGoals.js +266 -0
  12. package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -0
  13. package/dist/headshotmarketing/pages/HomePage.d.ts.map +1 -1
  14. package/dist/headshotmarketing/pages/HomePage.js +299 -298
  15. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  16. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.d.ts +26 -0
  17. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.d.ts.map +1 -0
  18. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +402 -0
  19. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -0
  20. package/dist/headshotmarketing/pages/analytics/ReportsPage.d.ts.map +1 -1
  21. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +356 -243
  22. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/analytics/reportSchedule.d.ts +66 -0
  24. package/dist/headshotmarketing/pages/analytics/reportSchedule.d.ts.map +1 -0
  25. package/dist/headshotmarketing/pages/analytics/reportSchedule.js +131 -0
  26. package/dist/headshotmarketing/pages/analytics/reportSchedule.js.map +1 -0
  27. package/dist/headshotmarketing/utils/dashboardHome.d.ts +91 -0
  28. package/dist/headshotmarketing/utils/dashboardHome.d.ts.map +1 -0
  29. package/dist/headshotmarketing/utils/dashboardHome.js +94 -0
  30. package/dist/headshotmarketing/utils/dashboardHome.js.map +1 -0
  31. package/package.json +1 -1
@@ -1,179 +1,181 @@
1
- import { useHeadshotMarketing as e } from "../context/HeadshotMarketingContext.js";
2
- import { Legend as t } from "../../node_modules/recharts/es6/component/Legend.js";
3
- import { Tooltip as n } from "../../node_modules/recharts/es6/component/Tooltip.js";
4
- import { ResponsiveContainer as r } from "../../node_modules/recharts/es6/component/ResponsiveContainer.js";
5
- import { Cell as ee } from "../../node_modules/recharts/es6/component/Cell.js";
6
- import { Pie as te } from "../../node_modules/recharts/es6/polar/Pie.js";
7
- import { CartesianGrid as ne } from "../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
8
- import { Area as i } from "../../node_modules/recharts/es6/cartesian/Area.js";
9
- import { XAxis as re } from "../../node_modules/recharts/es6/cartesian/XAxis.js";
10
- import { YAxis as ie } from "../../node_modules/recharts/es6/cartesian/YAxis.js";
11
- import { PieChart as ae } from "../../node_modules/recharts/es6/chart/PieChart.js";
12
- import { AreaChart as a } from "../../node_modules/recharts/es6/chart/AreaChart.js";
13
- import { cn as o, exportRowsToCsv as oe, formatCurrency as s, formatNumber as c, formatPercentage as se } from "../utils/helpers.js";
14
- import { toCampaignModel as ce } from "../utils/campaignMapper.js";
15
- import { toAdCampaignModel as le } from "../utils/adsMapper.js";
16
- import { toCampaignTimeSeries as ue, toChannelPerformance as de } from "../utils/analyticsMapper.js";
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 fe } from "../components/QueryStateBoundary.js";
23
+ import { QueryStateBoundary as m } from "../components/QueryStateBoundary.js";
23
24
  import "../components/index.js";
24
- import { useHeadshotmarketingBootstrap as pe } from "../hooks/useHeadshotmarketingBootstrap.js";
25
- import { useHeadshotMarketingStore as m } from "../store/headshotMarketingStore.js";
26
- import { HomeStatCard as h } from "./HomeStatCard.js";
27
- import { HomeFunnel as me } from "./HomeFunnel.js";
28
- import { CustomizeDashboardModal as he } from "./CustomizeDashboardModal.js";
29
- import { useState as g } from "react";
30
- import { AlertCircle as _, AlertTriangle as v, ArrowRight as ge, CheckCircle2 as y, DollarSign as _e, Download as ve, Eye as ye, Info as b, Megaphone as x, MousePointerClick as be, Percent as xe, RefreshCw as Se, SlidersHorizontal as Ce, Target as S, TrendingUp as C, UserPlus as we, Users as Te } from "lucide-react";
31
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
32
- import { AuroraBackground as E, EmphasisPanel as D, GradientText as O, NextSteps as Ee, PagePurpose as De, ShowMore as Oe } from "@burdenoff/fe-libs/ui";
33
- import { useI18n as ke } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
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 k = [
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
- ], Ae = {
43
- success: y,
44
- warning: v,
45
- error: _,
46
- info: b
47
- }, je = {
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
- }, Me = {
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
- }, A = () => {
58
- let { navigate: _, basePath: v } = e(), { t: y } = ke(), A = (e, t) => {
59
- let n = y(e);
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: j, loading: M, error: Ne, refetch: N } = pe(), [P, Pe] = g("overview"), [F, Fe] = g("revenue"), [Ie, I] = g(!1), L = m((e) => e.dashboardWidgets), Le = m((e) => e.setDashboardWidget), Re = m((e) => e.resetDashboardWidgets), R = (j?.headshotmarketingCampaigns.items ?? []).map((e) => ce(e)), ze = (j?.headshotmarketingAdCampaigns.items ?? []).map((e) => le(e)), z = ue(R), B = de(R, ze), Be = z.map((e) => e.revenue), Ve = z.map((e) => e.conversions), He = z.map((e) => e.cost > 0 ? e.revenue / e.cost : 0), V = A("headshotmarketing.home.charts.revenue", "Revenue"), H = A("headshotmarketing.home.charts.spend", "Spend"), Ue = F === "revenue" ? k[0] : k[3], We = F === "revenue" ? "url(#hm-rev-grad)" : "url(#hm-cost-grad)", Ge = F === "revenue" ? V : H, Ke = F === "revenue" ? "cost" : "revenue", qe = F === "revenue" ? k[3] : k[0], Je = F === "revenue" ? H : V, Ye = [
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: A("headshotmarketing.home.table.columns.name", "Name"),
76
+ header: k("headshotmarketing.home.table.columns.name", "Name"),
65
77
  sortable: !0
66
78
  },
67
79
  {
68
80
  key: "type",
69
- header: A("headshotmarketing.home.table.columns.type", "Type"),
81
+ header: k("headshotmarketing.home.table.columns.type", "Type"),
70
82
  sortable: !0,
71
- render: (e) => /* @__PURE__ */ w("span", {
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: A("headshotmarketing.home.table.columns.status", "Status"),
79
- render: (e) => /* @__PURE__ */ w(d, { status: e.status })
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: A("headshotmarketing.home.table.columns.impressions", "Impressions"),
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: A("headshotmarketing.home.table.columns.clicks", "Clicks"),
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: A("headshotmarketing.home.table.columns.conversions", "Conversions"),
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: A("headshotmarketing.home.table.columns.roas", "ROAS"),
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
- ], Xe = [
117
+ ], ct = [
106
118
  {
107
119
  key: "name",
108
- header: A("headshotmarketing.home.table.columns.name", "Name"),
120
+ header: k("headshotmarketing.home.table.columns.name", "Name"),
109
121
  sortable: !0,
110
- render: (e) => /* @__PURE__ */ w("span", {
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: A("headshotmarketing.home.table.columns.type", "Type"),
118
- render: (e) => /* @__PURE__ */ w("span", {
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: A("headshotmarketing.home.table.columns.status", "Status"),
126
- render: (e) => /* @__PURE__ */ w(d, { status: e.status })
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: A("headshotmarketing.home.table.columns.spend", "Spend"),
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: A("headshotmarketing.home.table.columns.roas", "ROAS"),
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
- ], Ze = R.slice(0, 5), U = R.reduce((e, t) => (e.revenue += t.metrics.revenue, e.conversions += t.metrics.conversions, e.clicks += t.metrics.clicks, e.impressions += t.metrics.impressions, e), {
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
- }), W = R.reduce((e, t) => e + t.metrics.cost, 0), Qe = W > 0 ? U.revenue / W : 0, G = U.revenue, K = U.conversions, q = U.clicks, J = U.impressions, Y = Qe, $e = R.filter((e) => e.status === "active").length, X = q > 0 ? K / q * 100 : null, et = X == null ? "—" : `${X.toFixed(1)}%`, Z = J > 0 ? q / J * 100 : null, Q = [
148
- {
149
- name: "Impressions",
150
- count: J
151
- },
152
- {
153
- name: "Clicks",
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: Y >= 3 ? "success" : "warning",
167
- message: Y >= 3 ? A("headshotmarketing.home.alerts.roasHealthy", "ROAS is healthy across active channels.") : A("headshotmarketing.home.alerts.roasDropped", "ROAS dropped below target in this period."),
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: R.length > 0 ? "info" : "error",
172
- message: R.length > 0 ? `${R.length} ${A("headshotmarketing.home.alerts.campaignsTrackedSuffix", "campaigns are currently tracked.")}` : A("headshotmarketing.home.alerts.noCampaigns", "No campaigns found in workspace data."),
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
- }, tt = () => {
176
- oe("headshotmarketing-dashboard", [
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
- ], R.map((e) => [
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
- }, nt = [
199
+ }, gt = [
198
200
  {
199
201
  key: "overview",
200
- label: A("headshotmarketing.home.tabs.overview", "Overview")
202
+ label: k("headshotmarketing.home.tabs.overview", "Overview")
201
203
  },
202
204
  {
203
205
  key: "performance",
204
- label: A("headshotmarketing.home.tabs.performance", "Performance")
206
+ label: k("headshotmarketing.home.tabs.performance", "Performance")
205
207
  },
206
208
  {
207
209
  key: "audience",
208
- label: A("headshotmarketing.home.tabs.audience", "Audience")
210
+ label: k("headshotmarketing.home.tabs.audience", "Audience")
209
211
  },
210
212
  {
211
213
  key: "campaigns",
212
- label: A("headshotmarketing.home.tabs.campaigns", "Campaigns")
214
+ label: k("headshotmarketing.home.tabs.campaigns", "Campaigns")
213
215
  }
214
216
  ];
215
- return /* @__PURE__ */ T("div", {
217
+ return /* @__PURE__ */ D("div", {
216
218
  className: "space-y-6",
217
219
  children: [
218
- /* @__PURE__ */ T("header", {
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__ */ w(E, { intensity: "subtle" }), /* @__PURE__ */ T("div", {
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__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
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__ */ w(O, { children: A("headshotmarketing.home.title", "Dashboard") })
225
- }), /* @__PURE__ */ w("p", {
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: A("headshotmarketing.home.subtitle", "Your marketing performance at a glance.")
228
- })] }), /* @__PURE__ */ T("div", {
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__ */ T("button", {
233
+ /* @__PURE__ */ D("button", {
232
234
  type: "button",
233
- onClick: () => I(!0),
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__ */ w(Ce, {
237
+ children: [/* @__PURE__ */ E(Oe, {
236
238
  className: "h-4 w-4",
237
239
  "aria-hidden": "true"
238
- }), A("headshotmarketing.home.actions.customize", "Customize")]
240
+ }), k("headshotmarketing.home.actions.customize", "Customize")]
239
241
  }),
240
- /* @__PURE__ */ T("button", {
242
+ /* @__PURE__ */ D("button", {
241
243
  type: "button",
242
- onClick: () => N(),
243
- disabled: M,
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__ */ w(Se, {
246
- className: o("h-4 w-4", M && "animate-spin"),
247
+ children: [/* @__PURE__ */ E(De, {
248
+ className: o("h-4 w-4", j && "animate-spin"),
247
249
  "aria-hidden": "true"
248
- }), A("headshotmarketing.home.actions.refresh", "Refresh")]
250
+ }), k("headshotmarketing.home.actions.refresh", "Refresh")]
249
251
  }),
250
- /* @__PURE__ */ T("button", {
252
+ /* @__PURE__ */ D("button", {
251
253
  type: "button",
252
- onClick: tt,
253
- disabled: R.length === 0,
254
- title: R.length === 0 ? A("headshotmarketing.home.actions.exportEmpty", "No campaigns to export yet") : A("headshotmarketing.home.actions.export", "Export"),
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__ */ w(ve, {
258
+ children: [/* @__PURE__ */ E(Ce, {
257
259
  className: "h-4 w-4",
258
260
  "aria-hidden": "true"
259
- }), A("headshotmarketing.home.actions.export", "Export")]
261
+ }), k("headshotmarketing.home.actions.export", "Export")]
260
262
  })
261
263
  ]
262
264
  })]
263
265
  })]
264
266
  }),
265
- /* @__PURE__ */ w(De, { children: A("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.") }),
266
- /* @__PURE__ */ w(Ee, {
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: A("headshotmarketing.home.next.newCampaign", "Launch a campaign"),
272
- description: A("headshotmarketing.home.next.newCampaignDesc", "Set up a marketing campaign end to end."),
273
- icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
274
- onClick: () => _(v + "/campaigns/new")
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: A("headshotmarketing.home.next.ads", "Run paid ads"),
279
- description: A("headshotmarketing.home.next.adsDesc", "Drive traffic with Google, Meta or LinkedIn ads."),
280
- icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" }),
281
- onClick: () => _(v + "/ads")
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: A("headshotmarketing.home.next.analytics", "Review analytics"),
286
- description: A("headshotmarketing.home.next.analyticsDesc", "Dig into channel and campaign performance."),
287
- icon: /* @__PURE__ */ w(C, { className: "h-4 w-4" }),
288
- onClick: () => _(v + "/analytics")
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__ */ T(fe, {
293
- loading: M,
294
- error: Ne,
295
- onRetry: N,
296
- hasData: !!j,
294
+ /* @__PURE__ */ D(m, {
295
+ loading: j,
296
+ error: Be,
297
+ onRetry: M,
298
+ hasData: !!A,
297
299
  children: [
298
- L.kpis && /* @__PURE__ */ T("div", {
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__ */ w(h, {
303
+ /* @__PURE__ */ E(g, {
302
304
  featured: !0,
303
- title: A("headshotmarketing.home.stats.totalRevenue", "Total Revenue"),
304
- value: s(G),
305
- icon: /* @__PURE__ */ w(_e, { className: "h-5 w-5" }),
306
- series: Be,
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__ */ w(h, {
310
- title: A("headshotmarketing.home.stats.activeCampaigns", "Active Campaigns"),
311
- value: String($e),
312
- icon: /* @__PURE__ */ w(x, { className: "h-5 w-5" })
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__ */ w(h, {
315
- title: A("headshotmarketing.home.stats.conversions", "Conversions"),
316
- value: c(K),
317
- icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" }),
318
- series: Ve,
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__ */ w(h, {
322
- title: A("headshotmarketing.home.stats.roas", "ROAS"),
323
- value: `${Y.toFixed(1)}x`,
324
- icon: /* @__PURE__ */ w(C, { className: "h-5 w-5" }),
325
- series: He,
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
- L.secondaryMetrics && /* @__PURE__ */ w(Oe, {
332
+ I.secondaryMetrics && /* @__PURE__ */ E(Fe, {
331
333
  collapsedHeight: 0,
332
- label: A("headshotmarketing.home.actions.moreMetrics", "More metrics"),
333
- children: /* @__PURE__ */ T("div", {
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__ */ w(l, {
337
- title: A("headshotmarketing.home.stats.conversionRate", "Conversion Rate"),
338
- value: et,
339
- icon: /* @__PURE__ */ w(xe, { className: "h-5 w-5" })
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__ */ w(l, {
342
- title: A("headshotmarketing.home.stats.totalImpressions", "Total Impressions"),
343
- value: J > 0 ? c(J) : "—",
344
- icon: /* @__PURE__ */ w(ye, { className: "h-5 w-5" })
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__ */ w(l, {
347
- title: A("headshotmarketing.home.stats.clickThroughRate", "Click-Through Rate"),
348
- value: Z == null ? "—" : se(Z),
349
- icon: /* @__PURE__ */ w(be, { className: "h-5 w-5" })
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__ */ w(l, {
352
- title: A("headshotmarketing.home.stats.totalLeads", "Total Leads"),
353
+ /* @__PURE__ */ E(l, {
354
+ title: k("headshotmarketing.home.stats.totalLeads", "Total Leads"),
353
355
  value: "—",
354
- icon: /* @__PURE__ */ w(we, { className: "h-5 w-5" })
356
+ icon: /* @__PURE__ */ E(ke, { className: "h-5 w-5" })
355
357
  })
356
358
  ]
357
359
  })
358
360
  }),
359
- L.monthlyGoals && /* @__PURE__ */ T(D, { children: [/* @__PURE__ */ w("h3", {
360
- className: "text-sm font-semibold text-text-primary mb-4",
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: nt.map((e) => /* @__PURE__ */ w("button", {
370
- onClick: () => Pe(e.key),
371
- className: o("shrink-0 whitespace-nowrap px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", P === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
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__ */ T("div", {
369
+ }), /* @__PURE__ */ D("div", {
375
370
  className: "mt-6",
376
371
  children: [
377
- P === "overview" && /* @__PURE__ */ T("div", {
372
+ N === "overview" && /* @__PURE__ */ D("div", {
378
373
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
379
374
  children: [
380
- /* @__PURE__ */ w(p, {
375
+ /* @__PURE__ */ E(p, {
381
376
  className: "lg:col-span-2",
382
- title: A("headshotmarketing.home.charts.revenueTrend", "Revenue & Spend"),
383
- subtitle: A("headshotmarketing.home.charts.last30Days", "Last 30 days"),
384
- actions: /* @__PURE__ */ w("div", {
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": A("headshotmarketing.home.charts.metricToggle", "Chart metric"),
388
- children: ["revenue", "cost"].map((e) => /* @__PURE__ */ w("button", {
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": F === e,
392
- onClick: () => Fe(e),
393
- className: o("rounded px-3 py-1 text-xs font-medium transition-colors", F === e ? "bg-action-primary-bg text-action-primary-text shadow-pop" : "text-text-secondary hover:text-text-primary"),
394
- children: e === "revenue" ? V : H
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__ */ w(r, {
392
+ children: /* @__PURE__ */ E(i, {
398
393
  width: "100%",
399
394
  height: 300,
400
- children: /* @__PURE__ */ T(a, {
401
- data: z,
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__ */ T("defs", { children: [/* @__PURE__ */ T("linearGradient", {
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__ */ w("stop", {
410
+ children: [/* @__PURE__ */ E("stop", {
416
411
  offset: "0%",
417
- stopColor: k[0],
412
+ stopColor: O[0],
418
413
  stopOpacity: .35
419
- }), /* @__PURE__ */ w("stop", {
414
+ }), /* @__PURE__ */ E("stop", {
420
415
  offset: "100%",
421
- stopColor: k[0],
416
+ stopColor: O[0],
422
417
  stopOpacity: .02
423
418
  })]
424
- }), /* @__PURE__ */ T("linearGradient", {
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__ */ w("stop", {
425
+ children: [/* @__PURE__ */ E("stop", {
431
426
  offset: "0%",
432
- stopColor: k[3],
427
+ stopColor: O[3],
433
428
  stopOpacity: .35
434
- }), /* @__PURE__ */ w("stop", {
429
+ }), /* @__PURE__ */ E("stop", {
435
430
  offset: "100%",
436
- stopColor: k[3],
431
+ stopColor: O[3],
437
432
  stopOpacity: .02
438
433
  })]
439
434
  })] }),
440
- /* @__PURE__ */ w(ne, {
435
+ /* @__PURE__ */ E(re, {
441
436
  strokeDasharray: "3 3",
442
437
  vertical: !1,
443
438
  className: "stroke-border"
444
439
  }),
445
- /* @__PURE__ */ w(re, {
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__ */ w(ie, {
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__ */ w(n, {
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__ */ w(i, {
464
+ /* @__PURE__ */ E(a, {
470
465
  type: "monotone",
471
- dataKey: Ke,
472
- stroke: qe,
466
+ dataKey: it,
467
+ stroke: at,
473
468
  strokeWidth: 1.25,
474
469
  strokeDasharray: "4 3",
475
470
  fill: "none",
476
- name: Je,
471
+ name: ot,
477
472
  isAnimationActive: !1
478
473
  }),
479
- /* @__PURE__ */ w(i, {
474
+ /* @__PURE__ */ E(a, {
480
475
  type: "monotone",
481
- dataKey: F,
482
- stroke: Ue,
476
+ dataKey: P,
477
+ stroke: tt,
483
478
  strokeWidth: 2.25,
484
- fill: We,
485
- name: Ge
479
+ fill: nt,
480
+ name: rt
486
481
  })
487
482
  ]
488
483
  })
489
484
  })
490
485
  }),
491
- /* @__PURE__ */ w(p, {
492
- title: A("headshotmarketing.home.charts.conversionFunnel", "Conversion Funnel"),
493
- subtitle: A("headshotmarketing.home.charts.currentPeriod", "Current period"),
494
- children: Q.length > 0 ? /* @__PURE__ */ w("div", {
495
- className: "py-2",
496
- children: /* @__PURE__ */ w(me, { stages: Q })
497
- }) : /* @__PURE__ */ w(f, {
498
- icon: /* @__PURE__ */ w(S, { className: "h-10 w-10" }),
499
- title: A("headshotmarketing.home.funnel.emptyTitle", "No funnel data yet"),
500
- description: A("headshotmarketing.home.funnel.emptyDesc", "Stage-by-stage conversion appears here once campaign activity is tracked.")
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__ */ T("div", {
504
+ /* @__PURE__ */ D("div", {
504
505
  className: "space-y-3 lg:col-span-2",
505
- children: [/* @__PURE__ */ T("div", {
506
+ children: [/* @__PURE__ */ D("div", {
506
507
  className: "flex items-center justify-between gap-3",
507
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
508
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h3", {
508
509
  className: "text-sm font-semibold text-text-primary",
509
- children: A("headshotmarketing.home.sections.recentCampaigns", "Recent Campaigns")
510
- }), /* @__PURE__ */ w("p", {
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: A("headshotmarketing.home.sections.recentCampaignsSub", "Latest activity at a glance")
513
- })] }), /* @__PURE__ */ T("button", {
513
+ children: k("headshotmarketing.home.sections.recentCampaignsSub", "Latest activity at a glance")
514
+ })] }), /* @__PURE__ */ D("button", {
514
515
  type: "button",
515
- onClick: () => _(v + "/campaigns"),
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: [A("headshotmarketing.home.actions.viewAll", "View all"), /* @__PURE__ */ w(ge, {
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__ */ w(u, {
523
- data: Ze,
524
- columns: Xe,
523
+ }), /* @__PURE__ */ E(u, {
524
+ data: lt,
525
+ columns: ct,
525
526
  pageSize: 5,
526
- onRowClick: (e) => _(v + "/campaigns/" + e.id),
527
- emptyMessage: A("headshotmarketing.home.table.empty", "No campaigns found")
527
+ onRowClick: (e) => y(b + "/campaigns/" + e.id),
528
+ emptyMessage: k("headshotmarketing.home.table.empty", "No campaigns found")
528
529
  })]
529
530
  }),
530
- /* @__PURE__ */ w(p, {
531
- title: A("headshotmarketing.home.charts.channelPerformance", "Channel Performance"),
532
- subtitle: A("headshotmarketing.home.charts.revenueDistribution", "Revenue distribution"),
533
- children: B.length > 0 ? /* @__PURE__ */ w(r, {
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__ */ T(ae, { children: [
537
- /* @__PURE__ */ w(te, {
538
- data: B,
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: B.map((e, t) => /* @__PURE__ */ w(ee, { fill: k[t % k.length] }, e.channel))
549
+ children: R.map((e, t) => /* @__PURE__ */ E(te, { fill: O[t % O.length] }, e.channel))
549
550
  }),
550
- /* @__PURE__ */ w(n, {
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__ */ w(t, {
559
+ /* @__PURE__ */ E(ee, {
559
560
  iconType: "circle",
560
561
  wrapperStyle: { fontSize: 12 }
561
562
  })
562
563
  ] })
563
- }) : /* @__PURE__ */ w(f, {
564
- icon: /* @__PURE__ */ w(C, { className: "h-10 w-10" }),
565
- title: A("headshotmarketing.home.channels.emptyTitle", "No channel data yet"),
566
- description: A("headshotmarketing.home.channels.emptyDesc", "Revenue by channel appears once campaigns start delivering.")
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
- P === "performance" && /* @__PURE__ */ T("div", {
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__ */ w("h3", {
574
+ children: [/* @__PURE__ */ E("h3", {
574
575
  className: "text-sm font-semibold text-text-primary mb-4",
575
- children: A("headshotmarketing.home.sections.topChannels", "Top Channels")
576
- }), /* @__PURE__ */ w("div", {
576
+ children: k("headshotmarketing.home.sections.topChannels", "Top Channels")
577
+ }), /* @__PURE__ */ E("div", {
577
578
  className: "space-y-4",
578
- children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */ T("div", {
579
+ children: mt.topChannels.slice(0, 5).map((e) => /* @__PURE__ */ D("div", {
579
580
  className: "flex items-center justify-between",
580
- children: [/* @__PURE__ */ T("div", {
581
+ children: [/* @__PURE__ */ D("div", {
581
582
  className: "flex items-center gap-3",
582
- children: [/* @__PURE__ */ w("div", {
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__ */ w("span", {
586
+ }), /* @__PURE__ */ E("span", {
586
587
  className: "text-sm font-medium text-text-primary",
587
588
  children: e.channel
588
589
  })]
589
- }), /* @__PURE__ */ T("div", {
590
+ }), /* @__PURE__ */ D("div", {
590
591
  className: "flex items-center gap-4",
591
- children: [/* @__PURE__ */ w("span", {
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__ */ T("span", {
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
- A("headshotmarketing.home.stats.roas", "ROAS")
601
+ k("headshotmarketing.home.stats.roas", "ROAS")
601
602
  ]
602
603
  })]
603
604
  })]
604
605
  }, e.channel))
605
606
  })]
606
607
  }),
607
- P === "audience" && /* @__PURE__ */ T("div", {
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__ */ w("h3", {
610
+ children: [/* @__PURE__ */ E("h3", {
610
611
  className: "text-sm font-semibold text-text-primary mb-4",
611
- children: A("headshotmarketing.home.sections.deviceBreakdown", "Device Breakdown")
612
- }), /* @__PURE__ */ w(f, {
613
- icon: /* @__PURE__ */ w(Te, { className: "h-10 w-10" }),
614
- title: A("headshotmarketing.home.devices.emptyTitle", "No audience data yet"),
615
- description: A("headshotmarketing.home.devices.emptyDesc", "Device and session breakdowns will appear here once audience analytics are available.")
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
- P === "campaigns" && /* @__PURE__ */ w(u, {
619
- data: R,
620
- columns: Ye,
619
+ N === "campaigns" && /* @__PURE__ */ E(u, {
620
+ data: L,
621
+ columns: st,
621
622
  pageSize: 8,
622
- onRowClick: (e) => _(v + "/campaigns/" + e.id),
623
- emptyMessage: A("headshotmarketing.home.table.empty", "No campaigns found")
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
- L.alerts && /* @__PURE__ */ T("div", {
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__ */ w("h3", {
630
+ children: [/* @__PURE__ */ E("h3", {
630
631
  className: "text-sm font-semibold text-text-primary mb-4",
631
- children: A("headshotmarketing.home.sections.recentAlerts", "Recent Alerts")
632
- }), /* @__PURE__ */ w("div", {
632
+ children: k("headshotmarketing.home.sections.recentAlerts", "Recent Alerts")
633
+ }), /* @__PURE__ */ E("div", {
633
634
  className: "space-y-3",
634
- children: $.recentAlerts.map((e) => {
635
- let t = Ae[e.type] || b;
636
- return /* @__PURE__ */ T("div", {
637
- className: o("flex items-start gap-3 rounded-lg border p-3", je[e.type]),
638
- children: [/* @__PURE__ */ w(t, { className: o("h-4 w-4 mt-0.5 flex-shrink-0", Me[e.type]) }), /* @__PURE__ */ T("div", {
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__ */ w("p", {
641
+ children: [/* @__PURE__ */ E("p", {
641
642
  className: "text-sm",
642
643
  children: e.message
643
- }), /* @__PURE__ */ w("p", {
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__ */ w(he, {
655
- open: Ie,
656
- onClose: () => I(!1),
657
- visibility: L,
658
- onToggle: Le,
659
- onReset: Re
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 { A as HomePage };
666
+ export { k as HomePage };
666
667
 
667
668
  //# sourceMappingURL=HomePage.js.map