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