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