@burdenoff/microfe-headshotmarketing 2026.626.1 → 2026.703.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,482 +5,418 @@ import { Cell as r } from "../../node_modules/recharts/es6/component/Cell.js";
5
5
  import { Pie as i } from "../../node_modules/recharts/es6/polar/Pie.js";
6
6
  import { CartesianGrid as a } from "../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
7
7
  import { Area as o } from "../../node_modules/recharts/es6/cartesian/Area.js";
8
- import { XAxis as s } from "../../node_modules/recharts/es6/cartesian/XAxis.js";
9
- import { YAxis as ee } from "../../node_modules/recharts/es6/cartesian/YAxis.js";
10
- import { PieChart as te } from "../../node_modules/recharts/es6/chart/PieChart.js";
11
- import { AreaChart as ne } from "../../node_modules/recharts/es6/chart/AreaChart.js";
12
- import { useHeadshotmarketingBootstrapDataQuery as re } from "../../generated/wspace-operations.js";
13
- import { cn as c, formatCurrency as l, formatNumber as u } from "../utils/helpers.js";
14
- import { toCampaignModel as d } from "../utils/campaignMapper.js";
15
- import { toAdCampaignModel as f } from "../utils/adsMapper.js";
16
- import { toCampaignTimeSeries as p, toChannelPerformance as m } from "../utils/analyticsMapper.js";
8
+ import { XAxis as ee } from "../../node_modules/recharts/es6/cartesian/XAxis.js";
9
+ import { YAxis as s } from "../../node_modules/recharts/es6/cartesian/YAxis.js";
10
+ import { PieChart as c } from "../../node_modules/recharts/es6/chart/PieChart.js";
11
+ import { AreaChart as l } from "../../node_modules/recharts/es6/chart/AreaChart.js";
12
+ import { useHeadshotmarketingBootstrapDataQuery as u } from "../../generated/wspace-operations.js";
13
+ import { cn as d, formatCurrency as f, formatNumber as p } from "../utils/helpers.js";
14
+ import { toCampaignModel as m } from "../utils/campaignMapper.js";
15
+ import { toAdCampaignModel as te } from "../utils/adsMapper.js";
16
+ import { toCampaignTimeSeries as ne, toChannelPerformance as re } from "../utils/analyticsMapper.js";
17
17
  import { StatCard as h } from "../components/StatCard.js";
18
18
  import { DataTable as g } from "../components/DataTable.js";
19
19
  import { StatusBadge as _ } from "../components/StatusBadge.js";
20
- import { ChartCard as v } from "../components/ChartCard.js";
20
+ import { EmptyState as v } from "../components/EmptyState.js";
21
+ import { ChartCard as y } from "../components/ChartCard.js";
21
22
  import "../components/index.js";
22
- import { useState as ie } from "react";
23
- import { AlertCircle as y, AlertTriangle as b, CheckCircle2 as x, DollarSign as ae, Download as oe, Heart as S, Info as C, Megaphone as w, Percent as T, RefreshCw as E, ShoppingCart as D, Target as O, TrendingUp as k, Users as A } from "lucide-react";
24
- import { useI18n as j } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
25
- import { jsx as M, jsxs as N } from "react/jsx-runtime";
26
- import { AuroraBackground as P, EmphasisPanel as F, GradientText as I, NextSteps as L, PagePurpose as se, ShowMore as R } from "@burdenoff/fe-libs/ui";
23
+ import { useState as b } from "react";
24
+ import { AlertCircle as x, AlertTriangle as S, CheckCircle2 as C, DollarSign as w, Download as ie, Heart as ae, Info as T, Megaphone as E, Percent as D, RefreshCw as O, ShoppingCart as k, Target as A, TrendingUp as j, Users as M } from "lucide-react";
25
+ import { useI18n as N } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
26
+ import { jsx as P, jsxs as F } from "react/jsx-runtime";
27
+ import { AuroraBackground as I, EmphasisPanel as L, GradientText as R, NextSteps as z, PagePurpose as B, ShowMore as oe } from "@burdenoff/fe-libs/ui";
27
28
  //#region src/headshotmarketing/pages/HomePage.tsx
28
- var z = [
29
+ var V = [
29
30
  "var(--color-chart-1)",
30
31
  "var(--color-chart-2)",
31
32
  "var(--color-chart-3)",
32
33
  "var(--color-chart-4)",
33
34
  "var(--color-chart-5)",
34
35
  "var(--color-chart-6)"
35
- ], B = {
36
- success: x,
37
- warning: b,
38
- error: y,
39
- info: C
40
- }, V = {
36
+ ], H = {
37
+ success: C,
38
+ warning: S,
39
+ error: x,
40
+ info: T
41
+ }, U = {
41
42
  success: "border-status-success-border bg-status-success-bg text-status-success-text",
42
43
  warning: "border-status-warning-border bg-status-warning-bg text-status-warning-text",
43
44
  error: "border-status-error-border bg-status-error-bg text-status-error-text",
44
45
  info: "border-status-info-border bg-status-info-bg text-status-info-text"
45
- }, H = {
46
+ }, W = {
46
47
  success: "text-status-success-text",
47
48
  warning: "text-status-warning-text",
48
49
  error: "text-status-error-text",
49
50
  info: "text-status-info-text"
50
- }, U = () => {
51
- let { navigate: y, basePath: b } = e(), { t: x } = j(), U = (e, t) => {
52
- let n = x(e);
51
+ }, G = () => {
52
+ let { navigate: x, basePath: S } = e(), { t: C } = N(), G = (e, t) => {
53
+ let n = C(e);
53
54
  return n === e ? t : n;
54
- }, { data: W } = re({ variables: {
55
+ }, { data: K } = u({ variables: {
55
56
  limit: 200,
56
57
  offset: 0
57
- } }), [G, K] = ie("overview"), q = (W?.headshotmarketingCampaigns.items ?? []).map((e) => d(e)), ce = (W?.headshotmarketingAdCampaigns.items ?? []).map((e) => f(e)), le = p(q), J = m(q, ce), ue = [
58
- {
59
- label: U("headshotmarketing.home.goals.revenue", "Revenue"),
60
- percent: 78
61
- },
62
- {
63
- label: U("headshotmarketing.home.goals.customers", "Customers"),
64
- percent: 65
65
- },
66
- {
67
- label: U("headshotmarketing.home.goals.roi", "ROI"),
68
- percent: 82
69
- },
70
- {
71
- label: U("headshotmarketing.home.goals.traffic", "Traffic"),
72
- percent: 91
73
- }
74
- ], Y = [
75
- {
76
- device: U("headshotmarketing.home.devices.desktop", "Desktop"),
77
- sessions: 58
78
- },
79
- {
80
- device: U("headshotmarketing.home.devices.mobile", "Mobile"),
81
- sessions: 32
82
- },
83
- {
84
- device: U("headshotmarketing.home.devices.tablet", "Tablet"),
85
- sessions: 10
86
- }
87
- ], de = [
58
+ } }), [q, se] = b("overview"), J = (K?.headshotmarketingCampaigns.items ?? []).map((e) => m(e)), ce = (K?.headshotmarketingAdCampaigns.items ?? []).map((e) => te(e)), le = ne(J), Y = re(J, ce), ue = [
88
59
  {
89
60
  key: "name",
90
- header: U("headshotmarketing.home.table.columns.name", "Name"),
61
+ header: G("headshotmarketing.home.table.columns.name", "Name"),
91
62
  sortable: !0
92
63
  },
93
64
  {
94
65
  key: "type",
95
- header: U("headshotmarketing.home.table.columns.type", "Type"),
66
+ header: G("headshotmarketing.home.table.columns.type", "Type"),
96
67
  sortable: !0,
97
- render: (e) => /* @__PURE__ */ M("span", {
68
+ render: (e) => /* @__PURE__ */ P("span", {
98
69
  className: "capitalize",
99
70
  children: e.type
100
71
  })
101
72
  },
102
73
  {
103
74
  key: "status",
104
- header: U("headshotmarketing.home.table.columns.status", "Status"),
105
- render: (e) => /* @__PURE__ */ M(_, { status: e.status })
75
+ header: G("headshotmarketing.home.table.columns.status", "Status"),
76
+ render: (e) => /* @__PURE__ */ P(_, { status: e.status })
106
77
  },
107
78
  {
108
79
  key: "impressions",
109
- header: U("headshotmarketing.home.table.columns.impressions", "Impressions"),
80
+ header: G("headshotmarketing.home.table.columns.impressions", "Impressions"),
110
81
  sortable: !0,
111
- render: (e) => u(e.metrics.impressions)
82
+ render: (e) => p(e.metrics.impressions)
112
83
  },
113
84
  {
114
85
  key: "clicks",
115
- header: U("headshotmarketing.home.table.columns.clicks", "Clicks"),
86
+ header: G("headshotmarketing.home.table.columns.clicks", "Clicks"),
116
87
  sortable: !0,
117
- render: (e) => u(e.metrics.clicks)
88
+ render: (e) => p(e.metrics.clicks)
118
89
  },
119
90
  {
120
91
  key: "conversions",
121
- header: U("headshotmarketing.home.table.columns.conversions", "Conversions"),
92
+ header: G("headshotmarketing.home.table.columns.conversions", "Conversions"),
122
93
  sortable: !0,
123
- render: (e) => u(e.metrics.conversions)
94
+ render: (e) => p(e.metrics.conversions)
124
95
  },
125
96
  {
126
97
  key: "roas",
127
- header: U("headshotmarketing.home.table.columns.roas", "ROAS"),
98
+ header: G("headshotmarketing.home.table.columns.roas", "ROAS"),
128
99
  sortable: !0,
129
100
  render: (e) => `${e.metrics.roas.toFixed(1)}x`
130
101
  }
131
- ], X = q.reduce((e, t) => (e.revenue += t.metrics.revenue, e.conversions += t.metrics.conversions, e), {
102
+ ], X = J.reduce((e, t) => (e.revenue += t.metrics.revenue, e.conversions += t.metrics.conversions, e.clicks += t.metrics.clicks, e), {
132
103
  revenue: 0,
133
- conversions: 0
134
- }), Z = q.reduce((e, t) => e + t.metrics.cost, 0), Q = Z > 0 ? X.revenue / Z : 0, $ = {
135
- topChannels: J,
104
+ conversions: 0,
105
+ clicks: 0
106
+ }), Z = J.reduce((e, t) => e + t.metrics.cost, 0), Q = Z > 0 ? X.revenue / Z : 0, de = X.clicks > 0 ? `${(X.conversions / X.clicks * 100).toFixed(1)}%` : "—", $ = {
107
+ topChannels: Y,
136
108
  recentAlerts: [{
137
109
  id: "alert-1",
138
110
  type: Q >= 3 ? "success" : "warning",
139
- message: Q >= 3 ? U("headshotmarketing.home.alerts.roasHealthy", "ROAS is healthy across active channels.") : U("headshotmarketing.home.alerts.roasDropped", "ROAS dropped below target in this period."),
111
+ message: Q >= 3 ? G("headshotmarketing.home.alerts.roasHealthy", "ROAS is healthy across active channels.") : G("headshotmarketing.home.alerts.roasDropped", "ROAS dropped below target in this period."),
140
112
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
141
113
  }, {
142
114
  id: "alert-2",
143
- type: q.length > 0 ? "info" : "error",
144
- message: q.length > 0 ? `${q.length} ${U("headshotmarketing.home.alerts.campaignsTrackedSuffix", "campaigns are currently tracked.")}` : U("headshotmarketing.home.alerts.noCampaigns", "No campaigns found in workspace data."),
115
+ type: J.length > 0 ? "info" : "error",
116
+ message: J.length > 0 ? `${J.length} ${G("headshotmarketing.home.alerts.campaignsTrackedSuffix", "campaigns are currently tracked.")}` : G("headshotmarketing.home.alerts.noCampaigns", "No campaigns found in workspace data."),
145
117
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
146
118
  }]
147
119
  }, fe = [
148
120
  {
149
121
  key: "overview",
150
- label: U("headshotmarketing.home.tabs.overview", "Overview")
122
+ label: G("headshotmarketing.home.tabs.overview", "Overview")
151
123
  },
152
124
  {
153
125
  key: "performance",
154
- label: U("headshotmarketing.home.tabs.performance", "Performance")
126
+ label: G("headshotmarketing.home.tabs.performance", "Performance")
155
127
  },
156
128
  {
157
129
  key: "audience",
158
- label: U("headshotmarketing.home.tabs.audience", "Audience")
130
+ label: G("headshotmarketing.home.tabs.audience", "Audience")
159
131
  },
160
132
  {
161
133
  key: "campaigns",
162
- label: U("headshotmarketing.home.tabs.campaigns", "Campaigns")
134
+ label: G("headshotmarketing.home.tabs.campaigns", "Campaigns")
163
135
  }
164
136
  ];
165
- return /* @__PURE__ */ N("div", {
137
+ return /* @__PURE__ */ F("div", {
166
138
  className: "space-y-6",
167
139
  children: [
168
- /* @__PURE__ */ N("header", {
140
+ /* @__PURE__ */ F("header", {
169
141
  className: "relative overflow-hidden rounded-card border border-border-seam bg-gloss-card px-6 py-7 shadow-[var(--shadow-pop)] sm:px-8",
170
- children: [/* @__PURE__ */ M(P, { intensity: "subtle" }), /* @__PURE__ */ N("div", {
142
+ children: [/* @__PURE__ */ P(I, { intensity: "subtle" }), /* @__PURE__ */ F("div", {
171
143
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
172
- children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h1", {
144
+ children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("h1", {
173
145
  className: "text-2xl font-bold tracking-tight text-text-primary sm:text-3xl",
174
- children: /* @__PURE__ */ M(I, { children: U("headshotmarketing.home.title", "Dashboard") })
175
- }), /* @__PURE__ */ M("p", {
146
+ children: /* @__PURE__ */ P(R, { children: G("headshotmarketing.home.title", "Dashboard") })
147
+ }), /* @__PURE__ */ P("p", {
176
148
  className: "mt-1 text-sm text-text-secondary",
177
- children: U("headshotmarketing.home.subtitle", "Your marketing performance at a glance.")
178
- })] }), /* @__PURE__ */ N("div", {
149
+ children: G("headshotmarketing.home.subtitle", "Your marketing performance at a glance.")
150
+ })] }), /* @__PURE__ */ F("div", {
179
151
  className: "flex items-center gap-2",
180
- children: [/* @__PURE__ */ N("button", {
152
+ children: [/* @__PURE__ */ F("button", {
181
153
  type: "button",
182
154
  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)]",
183
- children: [/* @__PURE__ */ M(E, {
155
+ children: [/* @__PURE__ */ P(O, {
184
156
  className: "h-4 w-4",
185
157
  "aria-hidden": "true"
186
- }), U("headshotmarketing.home.actions.refresh", "Refresh")]
187
- }), /* @__PURE__ */ N("button", {
158
+ }), G("headshotmarketing.home.actions.refresh", "Refresh")]
159
+ }), /* @__PURE__ */ F("button", {
188
160
  type: "button",
189
161
  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)]",
190
- children: [/* @__PURE__ */ M(oe, {
162
+ children: [/* @__PURE__ */ P(ie, {
191
163
  className: "h-4 w-4",
192
164
  "aria-hidden": "true"
193
- }), U("headshotmarketing.home.actions.export", "Export")]
165
+ }), G("headshotmarketing.home.actions.export", "Export")]
194
166
  })]
195
167
  })]
196
168
  })]
197
169
  }),
198
- /* @__PURE__ */ M(se, { children: U("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.") }),
199
- /* @__PURE__ */ M(L, {
170
+ /* @__PURE__ */ P(B, { children: G("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.") }),
171
+ /* @__PURE__ */ P(z, {
200
172
  storageKey: "headshotmarketing-home",
201
173
  steps: [
202
174
  {
203
175
  id: "campaign",
204
- label: U("headshotmarketing.home.next.newCampaign", "Launch a campaign"),
205
- description: U("headshotmarketing.home.next.newCampaignDesc", "Set up a marketing campaign end to end."),
206
- icon: /* @__PURE__ */ M(w, { className: "h-4 w-4" }),
207
- onClick: () => y(b + "/campaigns/new")
176
+ label: G("headshotmarketing.home.next.newCampaign", "Launch a campaign"),
177
+ description: G("headshotmarketing.home.next.newCampaignDesc", "Set up a marketing campaign end to end."),
178
+ icon: /* @__PURE__ */ P(E, { className: "h-4 w-4" }),
179
+ onClick: () => x(S + "/campaigns/new")
208
180
  },
209
181
  {
210
182
  id: "ads",
211
- label: U("headshotmarketing.home.next.ads", "Run paid ads"),
212
- description: U("headshotmarketing.home.next.adsDesc", "Drive traffic with Google, Meta or LinkedIn ads."),
213
- icon: /* @__PURE__ */ M(O, { className: "h-4 w-4" }),
214
- onClick: () => y(b + "/ads")
183
+ label: G("headshotmarketing.home.next.ads", "Run paid ads"),
184
+ description: G("headshotmarketing.home.next.adsDesc", "Drive traffic with Google, Meta or LinkedIn ads."),
185
+ icon: /* @__PURE__ */ P(A, { className: "h-4 w-4" }),
186
+ onClick: () => x(S + "/ads")
215
187
  },
216
188
  {
217
189
  id: "analytics",
218
- label: U("headshotmarketing.home.next.analytics", "Review analytics"),
219
- description: U("headshotmarketing.home.next.analyticsDesc", "Dig into channel and campaign performance."),
220
- icon: /* @__PURE__ */ M(k, { className: "h-4 w-4" }),
221
- onClick: () => y(b + "/analytics")
190
+ label: G("headshotmarketing.home.next.analytics", "Review analytics"),
191
+ description: G("headshotmarketing.home.next.analyticsDesc", "Dig into channel and campaign performance."),
192
+ icon: /* @__PURE__ */ P(j, { className: "h-4 w-4" }),
193
+ onClick: () => x(S + "/analytics")
222
194
  }
223
195
  ]
224
196
  }),
225
- /* @__PURE__ */ N("div", {
197
+ /* @__PURE__ */ F("div", {
226
198
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
227
199
  children: [
228
- /* @__PURE__ */ M(h, {
200
+ /* @__PURE__ */ P(h, {
229
201
  featured: !0,
230
- title: U("headshotmarketing.home.stats.totalRevenue", "Total Revenue"),
231
- value: l(X.revenue),
232
- change: 12.5,
233
- changeLabel: U("headshotmarketing.common.vsLastMonth", "vs last month"),
234
- icon: /* @__PURE__ */ M(ae, { className: "h-5 w-5" })
202
+ title: G("headshotmarketing.home.stats.totalRevenue", "Total Revenue"),
203
+ value: f(X.revenue),
204
+ icon: /* @__PURE__ */ P(w, { className: "h-5 w-5" })
235
205
  }),
236
- /* @__PURE__ */ M(h, {
237
- title: U("headshotmarketing.home.stats.activeCampaigns", "Active Campaigns"),
238
- value: String(q.filter((e) => e.status === "active").length),
239
- change: 8.3,
240
- changeLabel: U("headshotmarketing.common.vsLastMonth", "vs last month"),
241
- icon: /* @__PURE__ */ M(w, { className: "h-5 w-5" })
206
+ /* @__PURE__ */ P(h, {
207
+ title: G("headshotmarketing.home.stats.activeCampaigns", "Active Campaigns"),
208
+ value: String(J.filter((e) => e.status === "active").length),
209
+ icon: /* @__PURE__ */ P(E, { className: "h-5 w-5" })
242
210
  }),
243
- /* @__PURE__ */ M(h, {
244
- title: U("headshotmarketing.home.stats.conversions", "Conversions"),
245
- value: u(X.conversions),
246
- change: 15.2,
247
- changeLabel: U("headshotmarketing.common.vsLastMonth", "vs last month"),
248
- icon: /* @__PURE__ */ M(O, { className: "h-5 w-5" })
211
+ /* @__PURE__ */ P(h, {
212
+ title: G("headshotmarketing.home.stats.conversions", "Conversions"),
213
+ value: p(X.conversions),
214
+ icon: /* @__PURE__ */ P(A, { className: "h-5 w-5" })
249
215
  }),
250
- /* @__PURE__ */ M(h, {
251
- title: U("headshotmarketing.home.stats.roas", "ROAS"),
216
+ /* @__PURE__ */ P(h, {
217
+ title: G("headshotmarketing.home.stats.roas", "ROAS"),
252
218
  value: `${Q.toFixed(1)}x`,
253
- change: 5.1,
254
- changeLabel: U("headshotmarketing.common.vsLastMonth", "vs last month"),
255
- icon: /* @__PURE__ */ M(k, { className: "h-5 w-5" })
219
+ icon: /* @__PURE__ */ P(j, { className: "h-5 w-5" })
256
220
  })
257
221
  ]
258
222
  }),
259
- /* @__PURE__ */ M(R, {
223
+ /* @__PURE__ */ P(oe, {
260
224
  collapsedHeight: 0,
261
- label: U("headshotmarketing.home.actions.moreMetrics", "More metrics"),
262
- children: /* @__PURE__ */ N("div", {
225
+ label: G("headshotmarketing.home.actions.moreMetrics", "More metrics"),
226
+ children: /* @__PURE__ */ F("div", {
263
227
  className: "grid grid-cols-1 gap-4 pt-1 sm:grid-cols-2 lg:grid-cols-4",
264
228
  children: [
265
- /* @__PURE__ */ M(h, {
266
- title: U("headshotmarketing.home.stats.conversionRate", "Conversion Rate"),
267
- value: "3.2%",
268
- icon: /* @__PURE__ */ M(T, { className: "h-5 w-5" })
229
+ /* @__PURE__ */ P(h, {
230
+ title: G("headshotmarketing.home.stats.conversionRate", "Conversion Rate"),
231
+ value: de,
232
+ icon: /* @__PURE__ */ P(D, { className: "h-5 w-5" })
269
233
  }),
270
- /* @__PURE__ */ M(h, {
271
- title: U("headshotmarketing.home.stats.avgOrderValue", "Avg Order Value"),
272
- value: l(68),
273
- icon: /* @__PURE__ */ M(D, { className: "h-5 w-5" })
234
+ /* @__PURE__ */ P(h, {
235
+ title: G("headshotmarketing.home.stats.avgOrderValue", "Avg Order Value"),
236
+ value: "—",
237
+ icon: /* @__PURE__ */ P(k, { className: "h-5 w-5" })
274
238
  }),
275
- /* @__PURE__ */ M(h, {
276
- title: U("headshotmarketing.home.stats.customerLtv", "Customer LTV"),
277
- value: l(450),
278
- icon: /* @__PURE__ */ M(S, { className: "h-5 w-5" })
239
+ /* @__PURE__ */ P(h, {
240
+ title: G("headshotmarketing.home.stats.customerLtv", "Customer LTV"),
241
+ value: "—",
242
+ icon: /* @__PURE__ */ P(ae, { className: "h-5 w-5" })
279
243
  }),
280
- /* @__PURE__ */ M(h, {
281
- title: U("headshotmarketing.home.stats.monthlyVisitors", "Monthly Visitors"),
282
- value: "45.2K",
283
- icon: /* @__PURE__ */ M(A, { className: "h-5 w-5" })
244
+ /* @__PURE__ */ P(h, {
245
+ title: G("headshotmarketing.home.stats.monthlyVisitors", "Monthly Visitors"),
246
+ value: "—",
247
+ icon: /* @__PURE__ */ P(M, { className: "h-5 w-5" })
284
248
  })
285
249
  ]
286
250
  })
287
251
  }),
288
- /* @__PURE__ */ N(F, { children: [/* @__PURE__ */ M("h3", {
252
+ /* @__PURE__ */ F(L, { children: [/* @__PURE__ */ P("h3", {
289
253
  className: "text-sm font-semibold text-text-primary mb-4",
290
- children: U("headshotmarketing.home.sections.monthlyGoals", "Monthly Goals")
291
- }), /* @__PURE__ */ M("div", {
292
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
293
- children: ue.map((e) => /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
294
- className: "flex items-center justify-between mb-1",
295
- children: [/* @__PURE__ */ M("span", {
296
- className: "text-sm font-medium text-text-primary",
297
- children: e.label
298
- }), /* @__PURE__ */ N("span", {
299
- className: "text-sm font-medium tabular-nums text-text-secondary",
300
- children: [e.percent, "%"]
301
- })]
302
- }), /* @__PURE__ */ M("div", {
303
- className: "h-2 w-full rounded-full bg-bg-sunken",
304
- children: /* @__PURE__ */ M("div", {
305
- className: "h-2 rounded-full bg-action-primary-bg transition-all",
306
- style: { width: `${e.percent}%` }
307
- })
308
- })] }, e.label))
254
+ children: G("headshotmarketing.home.sections.monthlyGoals", "Monthly Goals")
255
+ }), /* @__PURE__ */ P(v, {
256
+ icon: /* @__PURE__ */ P(A, { className: "h-10 w-10" }),
257
+ title: G("headshotmarketing.home.goals.emptyTitle", "No goal data yet"),
258
+ description: G("headshotmarketing.home.goals.emptyDesc", "Set monthly targets to track progress against revenue, customers, ROI and traffic.")
309
259
  })] }),
310
- /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("div", {
260
+ /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("div", {
311
261
  className: "flex items-center gap-1 border-b border-border-subtle",
312
- children: fe.map((e) => /* @__PURE__ */ M("button", {
313
- onClick: () => K(e.key),
314
- className: c("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", G === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
262
+ children: fe.map((e) => /* @__PURE__ */ P("button", {
263
+ onClick: () => se(e.key),
264
+ className: d("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", q === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
315
265
  children: e.label
316
266
  }, e.key))
317
- }), /* @__PURE__ */ N("div", {
267
+ }), /* @__PURE__ */ F("div", {
318
268
  className: "mt-6",
319
269
  children: [
320
- G === "overview" && /* @__PURE__ */ N("div", {
270
+ q === "overview" && /* @__PURE__ */ F("div", {
321
271
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
322
- children: [/* @__PURE__ */ M(v, {
323
- title: U("headshotmarketing.home.charts.revenueTrend", "Revenue Trend"),
324
- subtitle: U("headshotmarketing.home.charts.last30Days", "Last 30 days"),
325
- children: /* @__PURE__ */ M(n, {
272
+ children: [/* @__PURE__ */ P(y, {
273
+ title: G("headshotmarketing.home.charts.revenueTrend", "Revenue Trend"),
274
+ subtitle: G("headshotmarketing.home.charts.last30Days", "Last 30 days"),
275
+ children: /* @__PURE__ */ P(n, {
326
276
  width: "100%",
327
277
  height: 280,
328
- children: /* @__PURE__ */ N(ne, {
278
+ children: /* @__PURE__ */ F(l, {
329
279
  data: le,
330
280
  children: [
331
- /* @__PURE__ */ M(a, {
281
+ /* @__PURE__ */ P(a, {
332
282
  strokeDasharray: "3 3",
333
283
  className: "stroke-border"
334
284
  }),
335
- /* @__PURE__ */ M(s, {
285
+ /* @__PURE__ */ P(ee, {
336
286
  dataKey: "date",
337
287
  tick: { fontSize: 11 },
338
288
  className: "text-text-secondary",
339
289
  tickFormatter: (e) => e.slice(5)
340
290
  }),
341
- /* @__PURE__ */ M(ee, {
291
+ /* @__PURE__ */ P(s, {
342
292
  tick: { fontSize: 11 },
343
293
  className: "text-text-secondary"
344
294
  }),
345
- /* @__PURE__ */ M(t, { contentStyle: {
295
+ /* @__PURE__ */ P(t, { contentStyle: {
346
296
  backgroundColor: "var(--color-card)",
347
297
  border: "1px solid var(--color-border)",
348
298
  borderRadius: 8
349
299
  } }),
350
- /* @__PURE__ */ M(o, {
300
+ /* @__PURE__ */ P(o, {
351
301
  type: "monotone",
352
302
  dataKey: "revenue",
353
- stroke: z[0],
354
- fill: z[0],
303
+ stroke: V[0],
304
+ fill: V[0],
355
305
  fillOpacity: .15,
356
306
  strokeWidth: 2,
357
- name: U("headshotmarketing.home.charts.revenue", "Revenue")
307
+ name: G("headshotmarketing.home.charts.revenue", "Revenue")
358
308
  }),
359
- /* @__PURE__ */ M(o, {
309
+ /* @__PURE__ */ P(o, {
360
310
  type: "monotone",
361
311
  dataKey: "cost",
362
- stroke: z[3],
363
- fill: z[3],
312
+ stroke: V[3],
313
+ fill: V[3],
364
314
  fillOpacity: .1,
365
315
  strokeWidth: 2,
366
- name: U("headshotmarketing.home.charts.cost", "Cost")
316
+ name: G("headshotmarketing.home.charts.cost", "Cost")
367
317
  })
368
318
  ]
369
319
  })
370
320
  })
371
- }), /* @__PURE__ */ M(v, {
372
- title: U("headshotmarketing.home.charts.channelPerformance", "Channel Performance"),
373
- subtitle: U("headshotmarketing.home.charts.revenueDistribution", "Revenue distribution"),
374
- children: /* @__PURE__ */ M(n, {
321
+ }), /* @__PURE__ */ P(y, {
322
+ title: G("headshotmarketing.home.charts.channelPerformance", "Channel Performance"),
323
+ subtitle: G("headshotmarketing.home.charts.revenueDistribution", "Revenue distribution"),
324
+ children: /* @__PURE__ */ P(n, {
375
325
  width: "100%",
376
326
  height: 280,
377
- children: /* @__PURE__ */ N(te, { children: [/* @__PURE__ */ M(i, {
378
- data: J,
327
+ children: /* @__PURE__ */ F(c, { children: [/* @__PURE__ */ P(i, {
328
+ data: Y,
379
329
  dataKey: "revenue",
380
330
  nameKey: "channel",
381
331
  cx: "50%",
382
332
  cy: "50%",
383
333
  outerRadius: 100,
384
334
  label: ({ name: e, percent: t }) => `${e} ${(t * 100).toFixed(0)}%`,
385
- children: J.map((e, t) => /* @__PURE__ */ M(r, { fill: z[t % z.length] }, e.channel))
386
- }), /* @__PURE__ */ M(t, {
335
+ children: Y.map((e, t) => /* @__PURE__ */ P(r, { fill: V[t % V.length] }, e.channel))
336
+ }), /* @__PURE__ */ P(t, {
387
337
  contentStyle: {
388
338
  backgroundColor: "var(--color-card)",
389
339
  border: "1px solid var(--color-border)",
390
340
  borderRadius: 8
391
341
  },
392
- formatter: (e) => l(e)
342
+ formatter: (e) => f(e)
393
343
  })] })
394
344
  })
395
345
  })]
396
346
  }),
397
- G === "performance" && /* @__PURE__ */ N("div", {
347
+ q === "performance" && /* @__PURE__ */ F("div", {
398
348
  className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
399
- children: [/* @__PURE__ */ M("h3", {
349
+ children: [/* @__PURE__ */ P("h3", {
400
350
  className: "text-sm font-semibold text-text-primary mb-4",
401
- children: U("headshotmarketing.home.sections.topChannels", "Top Channels")
402
- }), /* @__PURE__ */ M("div", {
351
+ children: G("headshotmarketing.home.sections.topChannels", "Top Channels")
352
+ }), /* @__PURE__ */ P("div", {
403
353
  className: "space-y-4",
404
- children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */ N("div", {
354
+ children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */ F("div", {
405
355
  className: "flex items-center justify-between",
406
- children: [/* @__PURE__ */ N("div", {
356
+ children: [/* @__PURE__ */ F("div", {
407
357
  className: "flex items-center gap-3",
408
- children: [/* @__PURE__ */ M("div", {
358
+ children: [/* @__PURE__ */ P("div", {
409
359
  className: "h-3 w-3 rounded-full motion-safe:animate-vc-glow-pulse",
410
360
  style: { backgroundColor: e.color }
411
- }), /* @__PURE__ */ M("span", {
361
+ }), /* @__PURE__ */ P("span", {
412
362
  className: "text-sm font-medium text-text-primary",
413
363
  children: e.channel
414
364
  })]
415
- }), /* @__PURE__ */ N("div", {
365
+ }), /* @__PURE__ */ F("div", {
416
366
  className: "flex items-center gap-4",
417
- children: [/* @__PURE__ */ M("span", {
367
+ children: [/* @__PURE__ */ P("span", {
418
368
  className: "text-sm font-semibold tabular-nums text-text-primary",
419
- children: l(e.revenue)
420
- }), /* @__PURE__ */ N("span", {
421
- className: c("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"),
369
+ children: f(e.revenue)
370
+ }), /* @__PURE__ */ F("span", {
371
+ className: d("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"),
422
372
  children: [
423
373
  e.roas.toFixed(1),
424
374
  "x",
425
375
  " ",
426
- U("headshotmarketing.home.stats.roas", "ROAS")
376
+ G("headshotmarketing.home.stats.roas", "ROAS")
427
377
  ]
428
378
  })]
429
379
  })]
430
380
  }, e.channel))
431
381
  })]
432
382
  }),
433
- G === "audience" && /* @__PURE__ */ N("div", {
383
+ q === "audience" && /* @__PURE__ */ F("div", {
434
384
  className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
435
- children: [/* @__PURE__ */ M("h3", {
385
+ children: [/* @__PURE__ */ P("h3", {
436
386
  className: "text-sm font-semibold text-text-primary mb-4",
437
- children: U("headshotmarketing.home.sections.deviceBreakdown", "Device Breakdown")
438
- }), /* @__PURE__ */ M("div", {
439
- className: "space-y-4",
440
- children: Y.map((e) => /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
441
- className: "flex items-center justify-between mb-1",
442
- children: [/* @__PURE__ */ M("span", {
443
- className: "text-sm font-medium text-text-primary",
444
- children: e.device
445
- }), /* @__PURE__ */ N("span", {
446
- className: "text-sm tabular-nums text-text-secondary",
447
- children: [e.sessions, "%"]
448
- })]
449
- }), /* @__PURE__ */ M("div", {
450
- className: "h-3 w-full rounded-full bg-bg-sunken",
451
- children: /* @__PURE__ */ M("div", {
452
- className: "h-3 rounded-full bg-action-primary-bg transition-all",
453
- style: { width: `${e.sessions}%` }
454
- })
455
- })] }, e.device))
387
+ children: G("headshotmarketing.home.sections.deviceBreakdown", "Device Breakdown")
388
+ }), /* @__PURE__ */ P(v, {
389
+ icon: /* @__PURE__ */ P(M, { className: "h-10 w-10" }),
390
+ title: G("headshotmarketing.home.devices.emptyTitle", "No audience data yet"),
391
+ description: G("headshotmarketing.home.devices.emptyDesc", "Device and session breakdowns will appear here once audience analytics are available.")
456
392
  })]
457
393
  }),
458
- G === "campaigns" && /* @__PURE__ */ M(g, {
459
- data: q,
460
- columns: de,
394
+ q === "campaigns" && /* @__PURE__ */ P(g, {
395
+ data: J,
396
+ columns: ue,
461
397
  pageSize: 8,
462
- onRowClick: (e) => y(b + "/campaigns/" + e.id),
463
- emptyMessage: U("headshotmarketing.home.table.empty", "No campaigns found")
398
+ onRowClick: (e) => x(S + "/campaigns/" + e.id),
399
+ emptyMessage: G("headshotmarketing.home.table.empty", "No campaigns found")
464
400
  })
465
401
  ]
466
402
  })] }),
467
- /* @__PURE__ */ N("div", {
403
+ /* @__PURE__ */ F("div", {
468
404
  className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
469
- children: [/* @__PURE__ */ M("h3", {
405
+ children: [/* @__PURE__ */ P("h3", {
470
406
  className: "text-sm font-semibold text-text-primary mb-4",
471
- children: U("headshotmarketing.home.sections.recentAlerts", "Recent Alerts")
472
- }), /* @__PURE__ */ M("div", {
407
+ children: G("headshotmarketing.home.sections.recentAlerts", "Recent Alerts")
408
+ }), /* @__PURE__ */ P("div", {
473
409
  className: "space-y-3",
474
410
  children: $.recentAlerts.map((e) => {
475
- let t = B[e.type] || C;
476
- return /* @__PURE__ */ N("div", {
477
- className: c("flex items-start gap-3 rounded-lg border p-3", V[e.type]),
478
- children: [/* @__PURE__ */ M(t, { className: c("h-4 w-4 mt-0.5 flex-shrink-0", H[e.type]) }), /* @__PURE__ */ N("div", {
411
+ let t = H[e.type] || T;
412
+ return /* @__PURE__ */ F("div", {
413
+ className: d("flex items-start gap-3 rounded-lg border p-3", U[e.type]),
414
+ children: [/* @__PURE__ */ P(t, { className: d("h-4 w-4 mt-0.5 flex-shrink-0", W[e.type]) }), /* @__PURE__ */ F("div", {
479
415
  className: "flex-1 min-w-0",
480
- children: [/* @__PURE__ */ M("p", {
416
+ children: [/* @__PURE__ */ P("p", {
481
417
  className: "text-sm",
482
418
  children: e.message
483
- }), /* @__PURE__ */ M("p", {
419
+ }), /* @__PURE__ */ P("p", {
484
420
  className: "text-xs mt-1 opacity-75",
485
421
  children: new Date(e.timestamp).toLocaleString()
486
422
  })]
@@ -493,6 +429,6 @@ var z = [
493
429
  });
494
430
  };
495
431
  //#endregion
496
- export { U as HomePage };
432
+ export { G as HomePage };
497
433
 
498
434
  //# sourceMappingURL=HomePage.js.map