@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.
- package/dist/generated/wspace-operations.js +970 -52
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +26 -10
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
- package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js +57 -0
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
- package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
- package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
- package/dist/headshotmarketing/components/Modal.js +6 -3
- package/dist/headshotmarketing/components/Modal.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +117 -0
- package/dist/headshotmarketing/components/Pagination.js.map +1 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
- package/dist/headshotmarketing/components/index.js +6 -0
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
- package/dist/headshotmarketing/hooks/index.js +4 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
- package/dist/headshotmarketing/hooks/usePagination.js +53 -0
- package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +291 -322
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +227 -210
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +303 -342
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/adsMapper.js +74 -51
- package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/analyticsMapper.js +11 -11
- package/dist/headshotmarketing/utils/analyticsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/helpers.js +11 -1
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +5 -4
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/package.json +1 -1
- package/dist/headshotmarketing/utils/reportMapper.js +0 -33
- 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 {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
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 {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
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
|
|
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
|
-
],
|
|
34
|
-
let { navigate:
|
|
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
|
-
],
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
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__ */
|
|
111
|
-
className:
|
|
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
|
-
],
|
|
113
|
+
], Q = g(W), $ = Q.map((e) => ({
|
|
116
114
|
date: e.date,
|
|
117
|
-
googleAds:
|
|
118
|
-
facebook:
|
|
119
|
-
linkedin:
|
|
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
|
-
})),
|
|
119
|
+
})), ee = Q.map((e) => ({
|
|
122
120
|
date: e.date,
|
|
123
|
-
googleAds:
|
|
124
|
-
facebook:
|
|
125
|
-
linkedin:
|
|
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__ */
|
|
125
|
+
return /* @__PURE__ */ A(_, {
|
|
128
126
|
title: "Ad Analytics",
|
|
129
127
|
description: "Advertising performance across all platforms",
|
|
130
128
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
className: "flex gap-2
|
|
134
|
-
children:
|
|
135
|
-
onClick: () =>
|
|
136
|
-
className:
|
|
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__ */
|
|
141
|
-
|
|
138
|
+
/* @__PURE__ */ A(S, {
|
|
139
|
+
loading: L,
|
|
140
|
+
error: R,
|
|
141
|
+
onRetry: z,
|
|
142
|
+
hasData: !!I,
|
|
142
143
|
children: [
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
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
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
}
|
|
343
|
+
}, e.id);
|
|
344
|
+
})
|
|
345
|
+
})]
|
|
339
346
|
})
|
|
340
|
-
|
|
347
|
+
]
|
|
341
348
|
})
|
|
342
349
|
]
|
|
343
350
|
});
|
|
344
351
|
};
|
|
345
352
|
//#endregion
|
|
346
|
-
export {
|
|
353
|
+
export { P as AdAnalyticsPage };
|
|
347
354
|
|
|
348
355
|
//# sourceMappingURL=AdAnalyticsPage.js.map
|