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