@burdenoff/microfe-headshotmarketing 2026.704.4 → 2026.704.5

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