@burdenoff/microfe-headshotmarketing 2026.704.6 → 2026.707.2

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