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