@burdenoff/microfe-headshotmarketing 2026.626.2 → 2026.704.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/generated/wspace-operations.js +970 -52
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +26 -10
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
  6. package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
  7. package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
  8. package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
  9. package/dist/headshotmarketing/components/ActionMenu.js +57 -0
  10. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
  11. package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
  12. package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
  13. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  14. package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
  15. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
  16. package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
  17. package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
  18. package/dist/headshotmarketing/components/Modal.js +6 -3
  19. package/dist/headshotmarketing/components/Modal.js.map +1 -1
  20. package/dist/headshotmarketing/components/Pagination.js +117 -0
  21. package/dist/headshotmarketing/components/Pagination.js.map +1 -0
  22. package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
  23. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
  24. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  25. package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
  26. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
  27. package/dist/headshotmarketing/components/index.js +6 -0
  28. package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
  29. package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
  30. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
  31. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
  32. package/dist/headshotmarketing/hooks/index.js +4 -0
  33. package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
  34. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
  35. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
  36. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
  37. package/dist/headshotmarketing/hooks/usePagination.js +53 -0
  38. package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
  39. package/dist/headshotmarketing/pages/HomePage.js +291 -322
  40. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
  42. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
  44. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
  46. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
  48. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
  50. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
  52. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
  54. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
  56. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
  58. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +227 -210
  60. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
  62. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
  64. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
  66. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
  67. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
  68. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
  70. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +303 -342
  74. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
  76. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
  78. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
  80. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
  82. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
  84. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
  86. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
  88. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
  90. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
  92. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
  94. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
  96. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  97. package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
  98. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
  99. package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
  100. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
  102. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
  104. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
  106. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  107. package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
  108. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
  110. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  111. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
  112. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
  114. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
  116. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
  118. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
  120. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  121. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
  122. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
  124. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
  126. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
  128. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  129. package/dist/headshotmarketing/utils/adsMapper.js +74 -51
  130. package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
  131. package/dist/headshotmarketing/utils/analyticsMapper.js +11 -11
  132. package/dist/headshotmarketing/utils/analyticsMapper.js.map +1 -1
  133. package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
  134. package/dist/headshotmarketing/utils/helpers.js +11 -1
  135. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  136. package/dist/headshotmarketing/utils/influencerMapper.js +5 -4
  137. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  138. package/package.json +1 -1
  139. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  140. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -9,32 +9,30 @@ import { XAxis as s } from "../../../node_modules/recharts/es6/cartesian/XAxis.j
9
9
  import { YAxis as c } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
10
10
  import { LineChart as l } from "../../../node_modules/recharts/es6/chart/LineChart.js";
11
11
  import { AreaChart as u } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
12
- import { useHeadshotmarketingBootstrapDataQuery as d } from "../../../generated/wspace-operations.js";
13
- import { cn as f, formatCurrency as p, formatNumber as m, formatPercentage as h } from "../../utils/helpers.js";
14
- import { toAdCampaignModel as g, toAdPerformanceSeries as _ } from "../../utils/adsMapper.js";
15
- import { PageLayout as v } from "../../components/PageLayout.js";
16
- import { StatCard as y } from "../../components/StatCard.js";
17
- import { DataTable as b } from "../../components/DataTable.js";
18
- import { StatusBadge as x } from "../../components/StatusBadge.js";
19
- import { ChartCard as S } from "../../components/ChartCard.js";
12
+ import { cn as d, formatCurrency as f, formatNumber as p, formatPercentage as m } from "../../utils/helpers.js";
13
+ import { toAdCampaignModel as h, toAdPerformanceSeries as g } from "../../utils/adsMapper.js";
14
+ import { PageLayout as _ } from "../../components/PageLayout.js";
15
+ import { StatCard as v } from "../../components/StatCard.js";
16
+ import { DataTable as y } from "../../components/DataTable.js";
17
+ import { StatusBadge as b } from "../../components/StatusBadge.js";
18
+ import { ChartCard as x } from "../../components/ChartCard.js";
19
+ import { QueryStateBoundary as S } from "../../components/QueryStateBoundary.js";
20
20
  import "../../components/index.js";
21
- import { useState as C } from "react";
22
- import { BarChart3 as w, DollarSign as T, Target as E, TrendingUp as D } from "lucide-react";
23
- import { jsx as O, jsxs as k } from "react/jsx-runtime";
24
- import { EmphasisPanel as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
21
+ import { useHeadshotmarketingBootstrap as C } from "../../hooks/useHeadshotmarketingBootstrap.js";
22
+ import { useState as w } from "react";
23
+ import { BarChart3 as T, DollarSign as E, Target as D, TrendingUp as O } from "lucide-react";
24
+ import { jsx as k, jsxs as A } from "react/jsx-runtime";
25
+ import { EmphasisPanel as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
25
26
  //#region src/headshotmarketing/pages/analytics/AdAnalyticsPage.tsx
26
- var M = [
27
+ var N = [
27
28
  "var(--color-chart-1)",
28
29
  "var(--color-chart-2)",
29
30
  "var(--color-chart-3)",
30
31
  "var(--color-chart-4)",
31
32
  "var(--color-chart-5)",
32
33
  "var(--color-chart-6)"
33
- ], N = () => {
34
- let { navigate: N } = e(), { data: P } = d({ variables: {
35
- limit: 200,
36
- offset: 0
37
- } }), [F, I] = C("all"), L = (P?.headshotmarketingAdCampaigns.items ?? []).map((e) => g(e)), R = [
34
+ ], P = () => {
35
+ let { navigate: P, basePath: F } = e(), { data: I, loading: L, error: R, refetch: z } = C(), [B, V] = w("all"), H = (I?.headshotmarketingAdCampaigns.items ?? []).map((e) => h(e)), U = [
38
36
  {
39
37
  key: "all",
40
38
  label: "All Platforms"
@@ -55,15 +53,15 @@ var M = [
55
53
  key: "instagram",
56
54
  label: "Instagram"
57
55
  }
58
- ], z = F === "all" ? L : L.filter((e) => e.platform === F), B = z.reduce((e, t) => e + t.metrics.spend, 0), V = z.reduce((e, t) => e + t.metrics.revenue, 0), H = z.reduce((e, t) => e + t.metrics.conversions, 0), U = B > 0 ? V / B : 0, W = z.reduce((e, t) => e + t.budget.total, 0), G = W > 0 ? B / W * 100 : 0, K = [
56
+ ], W = B === "all" ? H : H.filter((e) => e.platform === B), G = W.reduce((e, t) => e + t.metrics.spend, 0), K = W.reduce((e, t) => e + t.metrics.revenue, 0), q = W.reduce((e, t) => e + t.metrics.conversions, 0), J = G > 0 ? K / G : 0, Y = W.reduce((e, t) => e + t.budget.total, 0), X = Y > 0 ? G / Y * 100 : 0, Z = [
59
57
  {
60
58
  key: "name",
61
59
  header: "Ad Campaign",
62
60
  sortable: !0,
63
- render: (e) => /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
61
+ render: (e) => /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
64
62
  className: "font-medium text-text-primary",
65
63
  children: e.name
66
- }), /* @__PURE__ */ O("p", {
64
+ }), /* @__PURE__ */ k("p", {
67
65
  className: "text-xs text-text-secondary capitalize",
68
66
  children: e.platform.replace("_", " ")
69
67
  })] })
@@ -71,25 +69,25 @@ var M = [
71
69
  {
72
70
  key: "status",
73
71
  header: "Status",
74
- render: (e) => /* @__PURE__ */ O(x, { status: e.status })
72
+ render: (e) => /* @__PURE__ */ k(b, { status: e.status })
75
73
  },
76
74
  {
77
75
  key: "spend",
78
76
  header: "Spend",
79
77
  sortable: !0,
80
- render: (e) => p(e.metrics.spend)
78
+ render: (e) => f(e.metrics.spend)
81
79
  },
82
80
  {
83
81
  key: "conversions",
84
82
  header: "Conversions",
85
83
  sortable: !0,
86
- render: (e) => m(e.metrics.conversions)
84
+ render: (e) => p(e.metrics.conversions)
87
85
  },
88
86
  {
89
87
  key: "ctr",
90
88
  header: "CTR",
91
89
  sortable: !0,
92
- render: (e) => h(e.metrics.ctr)
90
+ render: (e) => m(e.metrics.ctr)
93
91
  },
94
92
  {
95
93
  key: "cpc",
@@ -107,242 +105,251 @@ var M = [
107
105
  key: "qualityScore",
108
106
  header: "Quality",
109
107
  sortable: !0,
110
- render: (e) => /* @__PURE__ */ O("span", {
111
- className: f("text-sm font-medium", e.metrics.qualityScore >= 8 ? "text-status-success-text" : e.metrics.qualityScore >= 6 ? "text-status-warning-text" : "text-status-error-text"),
108
+ render: (e) => /* @__PURE__ */ k("span", {
109
+ className: d("text-sm font-medium", e.metrics.qualityScore >= 8 ? "text-status-success-text" : e.metrics.qualityScore >= 6 ? "text-status-warning-text" : "text-status-error-text"),
112
110
  children: e.metrics.qualityScore > 0 ? `${e.metrics.qualityScore}/10` : "-"
113
111
  })
114
112
  }
115
- ], q = _(z), J = q.map((e) => ({
113
+ ], Q = g(W), $ = Q.map((e) => ({
116
114
  date: e.date,
117
- googleAds: F === "all" || F === "google_ads" ? e.spend : 0,
118
- facebook: F === "all" || F === "facebook" ? e.spend : 0,
119
- linkedin: F === "all" || F === "linkedin" ? e.spend : 0,
115
+ googleAds: B === "all" || B === "google_ads" ? e.spend : 0,
116
+ facebook: B === "all" || B === "facebook" ? e.spend : 0,
117
+ linkedin: B === "all" || B === "linkedin" ? e.spend : 0,
120
118
  conversions: e.conversions
121
- })), Y = q.map((e) => ({
119
+ })), ee = Q.map((e) => ({
122
120
  date: e.date,
123
- googleAds: H > 0 ? e.spend / Math.max(1, e.conversions) : 0,
124
- facebook: H > 0 ? e.spend * .85 / Math.max(1, e.conversions) : 0,
125
- linkedin: H > 0 ? e.spend * 1.1 / Math.max(1, e.conversions) : 0
121
+ googleAds: q > 0 ? e.spend / Math.max(1, e.conversions) : 0,
122
+ facebook: q > 0 ? e.spend * .85 / Math.max(1, e.conversions) : 0,
123
+ linkedin: q > 0 ? e.spend * 1.1 / Math.max(1, e.conversions) : 0
126
124
  }));
127
- return /* @__PURE__ */ k(v, {
125
+ return /* @__PURE__ */ A(_, {
128
126
  title: "Ad Analytics",
129
127
  description: "Advertising performance across all platforms",
130
128
  children: [
131
- /* @__PURE__ */ O(j, { children: "Compare paid-advertising performance side by side across Google, Meta and LinkedIn. See where your spend converts most efficiently, watch CPC and ROAS trends, and check that budget is being used where it pays off." }),
132
- /* @__PURE__ */ O("div", {
133
- className: "flex gap-2 flex-wrap",
134
- children: R.map((e) => /* @__PURE__ */ O("button", {
135
- onClick: () => I(e.key),
136
- className: f("px-3 py-1.5 rounded-md text-sm font-medium transition-colors", F === e.key ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"),
129
+ /* @__PURE__ */ k(M, { children: "Compare paid-advertising performance side by side across Google, Meta and LinkedIn. See where your spend converts most efficiently, watch CPC and ROAS trends, and check that budget is being used where it pays off." }),
130
+ /* @__PURE__ */ k("div", {
131
+ className: "flex flex-nowrap gap-2 overflow-x-auto pb-1",
132
+ children: U.map((e) => /* @__PURE__ */ k("button", {
133
+ onClick: () => V(e.key),
134
+ className: d("shrink-0 whitespace-nowrap px-3 py-1.5 rounded-md text-sm font-medium transition-colors", B === e.key ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"),
137
135
  children: e.label
138
136
  }, e.key))
139
137
  }),
140
- /* @__PURE__ */ O(A, { children: /* @__PURE__ */ k("div", {
141
- className: "grid grid-cols-2 md:grid-cols-4 gap-4",
138
+ /* @__PURE__ */ A(S, {
139
+ loading: L,
140
+ error: R,
141
+ onRetry: z,
142
+ hasData: !!I,
142
143
  children: [
143
- /* @__PURE__ */ O(y, {
144
- title: "Total Spend",
145
- value: p(B),
146
- change: 5.2,
147
- icon: /* @__PURE__ */ O(T, { className: "h-4 w-4" })
148
- }),
149
- /* @__PURE__ */ O(y, {
150
- title: "Conversions",
151
- value: m(H),
152
- change: 18.4,
153
- icon: /* @__PURE__ */ O(E, { className: "h-4 w-4" })
154
- }),
155
- /* @__PURE__ */ O(y, {
156
- title: "Avg ROAS",
157
- value: `${U.toFixed(1)}x`,
158
- change: 8.1,
159
- icon: /* @__PURE__ */ O(D, { className: "h-4 w-4" })
160
- }),
161
- /* @__PURE__ */ O(y, {
162
- title: "Budget Used",
163
- value: h(G),
164
- change: -2.3,
165
- icon: /* @__PURE__ */ O(w, { className: "h-4 w-4" })
166
- })
167
- ]
168
- }) }),
169
- /* @__PURE__ */ k("div", {
170
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
171
- children: [/* @__PURE__ */ O(S, {
172
- title: "Spend vs Conversions",
173
- subtitle: "Weekly trend",
174
- children: /* @__PURE__ */ O(r, {
175
- width: "100%",
176
- height: 280,
177
- children: /* @__PURE__ */ k(u, {
178
- data: J,
179
- children: [
180
- /* @__PURE__ */ O(i, {
181
- strokeDasharray: "3 3",
182
- className: "stroke-border"
183
- }),
184
- /* @__PURE__ */ O(s, {
185
- dataKey: "date",
186
- tick: { fontSize: 12 },
187
- className: "text-text-secondary"
188
- }),
189
- /* @__PURE__ */ O(c, {
190
- yAxisId: "left",
191
- tick: { fontSize: 12 },
192
- className: "text-text-secondary"
193
- }),
194
- /* @__PURE__ */ O(c, {
195
- yAxisId: "right",
196
- orientation: "right",
197
- tick: { fontSize: 12 },
198
- className: "text-text-secondary"
199
- }),
200
- /* @__PURE__ */ O(n, {}),
201
- /* @__PURE__ */ O(t, {}),
202
- /* @__PURE__ */ O(o, {
203
- yAxisId: "left",
204
- type: "monotone",
205
- dataKey: "googleAds",
206
- name: "Google Ads",
207
- stroke: M[0],
208
- fill: M[0],
209
- fillOpacity: .1
210
- }),
211
- /* @__PURE__ */ O(o, {
212
- yAxisId: "left",
213
- type: "monotone",
214
- dataKey: "facebook",
215
- name: "Facebook",
216
- stroke: M[1],
217
- fill: M[1],
218
- fillOpacity: .1
219
- }),
220
- /* @__PURE__ */ O(o, {
221
- yAxisId: "left",
222
- type: "monotone",
223
- dataKey: "linkedin",
224
- name: "LinkedIn",
225
- stroke: M[4],
226
- fill: M[4],
227
- fillOpacity: .1
228
- }),
229
- /* @__PURE__ */ O(a, {
230
- yAxisId: "right",
231
- type: "monotone",
232
- dataKey: "conversions",
233
- stroke: M[3],
234
- strokeWidth: 2,
235
- dot: !1
144
+ /* @__PURE__ */ k(j, { children: /* @__PURE__ */ A("div", {
145
+ className: "grid grid-cols-2 md:grid-cols-4 gap-4",
146
+ children: [
147
+ /* @__PURE__ */ k(v, {
148
+ title: "Total Spend",
149
+ value: f(G),
150
+ change: 5.2,
151
+ icon: /* @__PURE__ */ k(E, { className: "h-4 w-4" })
152
+ }),
153
+ /* @__PURE__ */ k(v, {
154
+ title: "Conversions",
155
+ value: p(q),
156
+ change: 18.4,
157
+ icon: /* @__PURE__ */ k(D, { className: "h-4 w-4" })
158
+ }),
159
+ /* @__PURE__ */ k(v, {
160
+ title: "Avg ROAS",
161
+ value: `${J.toFixed(1)}x`,
162
+ change: 8.1,
163
+ icon: /* @__PURE__ */ k(O, { className: "h-4 w-4" })
164
+ }),
165
+ /* @__PURE__ */ k(v, {
166
+ title: "Budget Used",
167
+ value: m(X),
168
+ change: -2.3,
169
+ icon: /* @__PURE__ */ k(T, { className: "h-4 w-4" })
170
+ })
171
+ ]
172
+ }) }),
173
+ /* @__PURE__ */ A("div", {
174
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
175
+ children: [/* @__PURE__ */ k(x, {
176
+ title: "Spend vs Conversions",
177
+ subtitle: "Weekly trend",
178
+ children: /* @__PURE__ */ k(r, {
179
+ width: "100%",
180
+ height: 280,
181
+ children: /* @__PURE__ */ A(u, {
182
+ data: $,
183
+ children: [
184
+ /* @__PURE__ */ k(i, {
185
+ strokeDasharray: "3 3",
186
+ className: "stroke-border"
187
+ }),
188
+ /* @__PURE__ */ k(s, {
189
+ dataKey: "date",
190
+ tick: { fontSize: 12 },
191
+ className: "text-text-secondary"
192
+ }),
193
+ /* @__PURE__ */ k(c, {
194
+ yAxisId: "left",
195
+ tick: { fontSize: 12 },
196
+ className: "text-text-secondary"
197
+ }),
198
+ /* @__PURE__ */ k(c, {
199
+ yAxisId: "right",
200
+ orientation: "right",
201
+ tick: { fontSize: 12 },
202
+ className: "text-text-secondary"
203
+ }),
204
+ /* @__PURE__ */ k(n, {}),
205
+ /* @__PURE__ */ k(t, {}),
206
+ /* @__PURE__ */ k(o, {
207
+ yAxisId: "left",
208
+ type: "monotone",
209
+ dataKey: "googleAds",
210
+ name: "Google Ads",
211
+ stroke: N[0],
212
+ fill: N[0],
213
+ fillOpacity: .1
214
+ }),
215
+ /* @__PURE__ */ k(o, {
216
+ yAxisId: "left",
217
+ type: "monotone",
218
+ dataKey: "facebook",
219
+ name: "Facebook",
220
+ stroke: N[1],
221
+ fill: N[1],
222
+ fillOpacity: .1
223
+ }),
224
+ /* @__PURE__ */ k(o, {
225
+ yAxisId: "left",
226
+ type: "monotone",
227
+ dataKey: "linkedin",
228
+ name: "LinkedIn",
229
+ stroke: N[4],
230
+ fill: N[4],
231
+ fillOpacity: .1
232
+ }),
233
+ /* @__PURE__ */ k(a, {
234
+ yAxisId: "right",
235
+ type: "monotone",
236
+ dataKey: "conversions",
237
+ stroke: N[3],
238
+ strokeWidth: 2,
239
+ dot: !1
240
+ })
241
+ ]
236
242
  })
237
- ]
238
- })
239
- })
240
- }), /* @__PURE__ */ O(S, {
241
- title: "CPC Trends",
242
- subtitle: "Cost per click by platform",
243
- children: /* @__PURE__ */ O(r, {
244
- width: "100%",
245
- height: 280,
246
- children: /* @__PURE__ */ k(l, {
247
- data: Y,
248
- children: [
249
- /* @__PURE__ */ O(i, {
250
- strokeDasharray: "3 3",
251
- className: "stroke-border"
252
- }),
253
- /* @__PURE__ */ O(s, {
254
- dataKey: "date",
255
- tick: { fontSize: 12 },
256
- className: "text-text-secondary"
257
- }),
258
- /* @__PURE__ */ O(c, {
259
- tick: { fontSize: 12 },
260
- className: "text-text-secondary",
261
- domain: [0, "auto"]
262
- }),
263
- /* @__PURE__ */ O(n, { formatter: (e) => `$${e.toFixed(2)}` }),
264
- /* @__PURE__ */ O(t, {}),
265
- /* @__PURE__ */ O(a, {
266
- type: "monotone",
267
- dataKey: "googleAds",
268
- name: "Google Ads",
269
- stroke: M[0],
270
- strokeWidth: 2,
271
- dot: !1
272
- }),
273
- /* @__PURE__ */ O(a, {
274
- type: "monotone",
275
- dataKey: "facebook",
276
- name: "Facebook",
277
- stroke: M[1],
278
- strokeWidth: 2,
279
- dot: !1
280
- }),
281
- /* @__PURE__ */ O(a, {
282
- type: "monotone",
283
- dataKey: "linkedin",
284
- name: "LinkedIn",
285
- stroke: M[4],
286
- strokeWidth: 2,
287
- dot: !1
243
+ })
244
+ }), /* @__PURE__ */ k(x, {
245
+ title: "CPC Trends",
246
+ subtitle: "Cost per click by platform",
247
+ children: /* @__PURE__ */ k(r, {
248
+ width: "100%",
249
+ height: 280,
250
+ children: /* @__PURE__ */ A(l, {
251
+ data: ee,
252
+ children: [
253
+ /* @__PURE__ */ k(i, {
254
+ strokeDasharray: "3 3",
255
+ className: "stroke-border"
256
+ }),
257
+ /* @__PURE__ */ k(s, {
258
+ dataKey: "date",
259
+ tick: { fontSize: 12 },
260
+ className: "text-text-secondary"
261
+ }),
262
+ /* @__PURE__ */ k(c, {
263
+ tick: { fontSize: 12 },
264
+ className: "text-text-secondary",
265
+ domain: [0, "auto"]
266
+ }),
267
+ /* @__PURE__ */ k(n, { formatter: (e) => `$${e.toFixed(2)}` }),
268
+ /* @__PURE__ */ k(t, {}),
269
+ /* @__PURE__ */ k(a, {
270
+ type: "monotone",
271
+ dataKey: "googleAds",
272
+ name: "Google Ads",
273
+ stroke: N[0],
274
+ strokeWidth: 2,
275
+ dot: !1
276
+ }),
277
+ /* @__PURE__ */ k(a, {
278
+ type: "monotone",
279
+ dataKey: "facebook",
280
+ name: "Facebook",
281
+ stroke: N[1],
282
+ strokeWidth: 2,
283
+ dot: !1
284
+ }),
285
+ /* @__PURE__ */ k(a, {
286
+ type: "monotone",
287
+ dataKey: "linkedin",
288
+ name: "LinkedIn",
289
+ stroke: N[4],
290
+ strokeWidth: 2,
291
+ dot: !1
292
+ })
293
+ ]
288
294
  })
289
- ]
295
+ })
296
+ })]
297
+ }),
298
+ /* @__PURE__ */ k(x, {
299
+ title: "Ad Campaigns",
300
+ subtitle: "Performance by campaign",
301
+ children: /* @__PURE__ */ k(y, {
302
+ data: W,
303
+ columns: Z,
304
+ searchable: !0,
305
+ searchPlaceholder: "Search ad campaigns...",
306
+ pageSize: 6,
307
+ onRowClick: () => P(F + "/ads/campaigns")
290
308
  })
291
- })
292
- })]
293
- }),
294
- /* @__PURE__ */ O(S, {
295
- title: "Ad Campaigns",
296
- subtitle: "Performance by campaign",
297
- children: /* @__PURE__ */ O(b, {
298
- data: z,
299
- columns: K,
300
- searchable: !0,
301
- searchPlaceholder: "Search ad campaigns...",
302
- pageSize: 6
303
- })
304
- }),
305
- /* @__PURE__ */ k("div", {
306
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
307
- children: [/* @__PURE__ */ O("h3", {
308
- className: "text-sm font-semibold text-text-primary mb-4",
309
- children: "Budget Utilization"
310
- }), /* @__PURE__ */ O("div", {
311
- className: "space-y-3",
312
- children: z.map((e) => {
313
- let t = e.budget.total > 0 ? e.budget.spent / e.budget.total * 100 : 0;
314
- return /* @__PURE__ */ k("div", {
315
- className: "flex items-center gap-4",
316
- children: [
317
- /* @__PURE__ */ O("span", {
318
- className: "text-sm text-text-primary w-48 truncate",
319
- children: e.name
320
- }),
321
- /* @__PURE__ */ O("div", {
322
- className: "flex-1 h-3 rounded-full bg-bg-sunken overflow-hidden",
323
- children: /* @__PURE__ */ O("div", {
324
- className: f("h-full rounded-full transition-all", t >= 90 ? "bg-status-error-text" : t >= 70 ? "bg-status-warning-text" : "bg-status-success-text"),
325
- style: { width: `${Math.min(t, 100)}%` }
326
- })
327
- }),
328
- /* @__PURE__ */ k("span", {
329
- className: "text-xs text-text-secondary w-20 text-right",
309
+ }),
310
+ /* @__PURE__ */ A("div", {
311
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
312
+ children: [/* @__PURE__ */ k("h3", {
313
+ className: "text-sm font-semibold text-text-primary mb-4",
314
+ children: "Budget Utilization"
315
+ }), /* @__PURE__ */ k("div", {
316
+ className: "space-y-3",
317
+ children: W.map((e) => {
318
+ let t = e.budget.total > 0 ? e.budget.spent / e.budget.total * 100 : 0;
319
+ return /* @__PURE__ */ A("div", {
320
+ className: "flex items-center gap-4",
330
321
  children: [
331
- p(e.budget.spent),
332
- " /",
333
- " ",
334
- p(e.budget.total)
322
+ /* @__PURE__ */ k("span", {
323
+ className: "text-sm text-text-primary w-48 truncate",
324
+ children: e.name
325
+ }),
326
+ /* @__PURE__ */ k("div", {
327
+ className: "flex-1 h-3 rounded-full bg-bg-sunken overflow-hidden",
328
+ children: /* @__PURE__ */ k("div", {
329
+ className: d("h-full rounded-full transition-all", t >= 90 ? "bg-status-error-text" : t >= 70 ? "bg-status-warning-text" : "bg-status-success-text"),
330
+ style: { width: `${Math.min(t, 100)}%` }
331
+ })
332
+ }),
333
+ /* @__PURE__ */ A("span", {
334
+ className: "text-xs text-text-secondary w-20 text-right",
335
+ children: [
336
+ f(e.budget.spent),
337
+ " /",
338
+ " ",
339
+ f(e.budget.total)
340
+ ]
341
+ })
335
342
  ]
336
- })
337
- ]
338
- }, e.id);
343
+ }, e.id);
344
+ })
345
+ })]
339
346
  })
340
- })]
347
+ ]
341
348
  })
342
349
  ]
343
350
  });
344
351
  };
345
352
  //#endregion
346
- export { N as AdAnalyticsPage };
353
+ export { P as AdAnalyticsPage };
347
354
 
348
355
  //# sourceMappingURL=AdAnalyticsPage.js.map