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