@burdenoff/microfe-headshotmarketing 2026.703.1 → 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 +334 -301
- 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 +221 -211
- 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 +290 -217
- 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/helpers.js +11 -1
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
- 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
|
@@ -7,42 +7,40 @@ import { CartesianGrid as a } from "../../../node_modules/recharts/es6/cartesian
|
|
|
7
7
|
import { Area as o } from "../../../node_modules/recharts/es6/cartesian/Area.js";
|
|
8
8
|
import { XAxis as s } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
|
|
9
9
|
import { YAxis as c } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
10
|
-
import { BarChart as
|
|
11
|
-
import { AreaChart as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { toCampaignModel as m } from "../../utils/campaignMapper.js";
|
|
10
|
+
import { BarChart as l } from "../../../node_modules/recharts/es6/chart/BarChart.js";
|
|
11
|
+
import { AreaChart as u } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
12
|
+
import { cn as d, formatCurrency as f, formatNumber as p, formatPercentage as m } from "../../utils/helpers.js";
|
|
13
|
+
import { toCampaignModel as ee } from "../../utils/campaignMapper.js";
|
|
15
14
|
import { toAdCampaignModel as h } from "../../utils/adsMapper.js";
|
|
16
|
-
import { toCampaignTimeSeries as g, toChannelPerformance as _, toDeviceData as v, toFunnelStages as
|
|
15
|
+
import { toCampaignTimeSeries as g, toChannelPerformance as _, toDeviceData as v, toFunnelStages as te, toGeographicData as y } from "../../utils/analyticsMapper.js";
|
|
17
16
|
import { PageLayout as b } from "../../components/PageLayout.js";
|
|
18
17
|
import { StatCard as x } from "../../components/StatCard.js";
|
|
19
18
|
import { DataTable as S } from "../../components/DataTable.js";
|
|
20
19
|
import { ChartCard as C } from "../../components/ChartCard.js";
|
|
20
|
+
import { QueryStateBoundary as w } from "../../components/QueryStateBoundary.js";
|
|
21
21
|
import "../../components/index.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
22
|
+
import { useHeadshotmarketingBootstrap as T } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
23
|
+
import { toSocialAccountModel as ne } from "../../utils/socialMapper.js";
|
|
24
|
+
import { useState as re } from "react";
|
|
25
|
+
import { ArrowRightLeft as ie, CreditCard as ae, DollarSign as E, Eye as D, Globe as O, Monitor as k, MousePointerClick as A, Percent as j, Smartphone as M, Tablet as N, Target as P, TrendingUp as F } from "lucide-react";
|
|
26
|
+
import { jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
27
|
+
import { EmphasisPanel as R, NextSteps as z, PagePurpose as B } from "@burdenoff/fe-libs/ui";
|
|
27
28
|
//#region src/headshotmarketing/pages/analytics/AnalyticsPage.tsx
|
|
28
|
-
var
|
|
29
|
+
var V = [
|
|
29
30
|
"var(--color-chart-1)",
|
|
30
31
|
"var(--color-chart-2)",
|
|
31
32
|
"var(--color-chart-3)",
|
|
32
33
|
"var(--color-chart-4)",
|
|
33
34
|
"var(--color-chart-5)",
|
|
34
35
|
"var(--color-chart-6)"
|
|
35
|
-
],
|
|
36
|
-
let { navigate:
|
|
37
|
-
limit: 200,
|
|
38
|
-
offset: 0
|
|
39
|
-
} }), [H, U] = ie("overview"), W = (V?.headshotmarketingCampaigns.items ?? []).map((e) => m(e)), G = (V?.headshotmarketingAdCampaigns.items ?? []).map((e) => h(e)), K = (V?.headshotmarketingSocialAccounts.items ?? []).map((e) => re(e)), q = g(W), J = _(W, G), Y = y(J), X = v(K), Z = W.reduce((e, t) => (e.impressions += t.metrics.impressions, e.clicks += t.metrics.clicks, e.conversions += t.metrics.conversions, e.revenue += t.metrics.revenue, e.cost += t.metrics.cost, e), {
|
|
36
|
+
], H = () => {
|
|
37
|
+
let { navigate: H, basePath: U } = e(), { data: W, loading: G, error: oe, refetch: K } = T(), [q, se] = re("overview"), J = (W?.headshotmarketingCampaigns.items ?? []).map((e) => ee(e)), ce = (W?.headshotmarketingAdCampaigns.items ?? []).map((e) => h(e)), le = (W?.headshotmarketingSocialAccounts.items ?? []).map((e) => ne(e)), ue = g(J), Y = _(J, ce), X = y(Y), Z = v(le), Q = J.reduce((e, t) => (e.impressions += t.metrics.impressions, e.clicks += t.metrics.clicks, e.conversions += t.metrics.conversions, e.revenue += t.metrics.revenue, e.cost += t.metrics.cost, e), {
|
|
40
38
|
impressions: 0,
|
|
41
39
|
clicks: 0,
|
|
42
40
|
conversions: 0,
|
|
43
41
|
revenue: 0,
|
|
44
42
|
cost: 0
|
|
45
|
-
}),
|
|
43
|
+
}), de = Q.impressions > 0 ? Q.clicks / Q.impressions * 100 : 0, fe = Q.clicks > 0 ? Q.cost / Q.clicks : 0, pe = Q.cost > 0 ? Q.revenue / Q.cost : 0, $ = te(Q.impressions, Q.clicks, Q.conversions), me = [
|
|
46
44
|
{
|
|
47
45
|
key: "overview",
|
|
48
46
|
label: "Overview"
|
|
@@ -55,66 +53,66 @@ var z = [
|
|
|
55
53
|
key: "audience",
|
|
56
54
|
label: "Audience"
|
|
57
55
|
}
|
|
58
|
-
],
|
|
56
|
+
], he = [
|
|
59
57
|
{
|
|
60
58
|
title: "Impressions",
|
|
61
|
-
value:
|
|
59
|
+
value: p(Q.impressions),
|
|
62
60
|
change: 12.4,
|
|
63
|
-
icon: /* @__PURE__ */
|
|
61
|
+
icon: /* @__PURE__ */ I(D, { className: "h-4 w-4" })
|
|
64
62
|
},
|
|
65
63
|
{
|
|
66
64
|
title: "Clicks",
|
|
67
|
-
value:
|
|
65
|
+
value: p(Q.clicks),
|
|
68
66
|
change: 8.7,
|
|
69
|
-
icon: /* @__PURE__ */
|
|
67
|
+
icon: /* @__PURE__ */ I(A, { className: "h-4 w-4" })
|
|
70
68
|
},
|
|
71
69
|
{
|
|
72
70
|
title: "Conversions",
|
|
73
|
-
value:
|
|
71
|
+
value: p(Q.conversions),
|
|
74
72
|
change: 15.2,
|
|
75
|
-
icon: /* @__PURE__ */
|
|
73
|
+
icon: /* @__PURE__ */ I(ie, { className: "h-4 w-4" })
|
|
76
74
|
},
|
|
77
75
|
{
|
|
78
76
|
title: "Revenue",
|
|
79
|
-
value:
|
|
77
|
+
value: f(Q.revenue),
|
|
80
78
|
change: 12.5,
|
|
81
|
-
icon: /* @__PURE__ */
|
|
79
|
+
icon: /* @__PURE__ */ I(E, { className: "h-4 w-4" })
|
|
82
80
|
},
|
|
83
81
|
{
|
|
84
82
|
title: "Cost",
|
|
85
|
-
value:
|
|
83
|
+
value: f(Q.cost),
|
|
86
84
|
change: -3.1,
|
|
87
|
-
icon: /* @__PURE__ */
|
|
85
|
+
icon: /* @__PURE__ */ I(ae, { className: "h-4 w-4" })
|
|
88
86
|
},
|
|
89
87
|
{
|
|
90
88
|
title: "CTR",
|
|
91
|
-
value:
|
|
89
|
+
value: m(de),
|
|
92
90
|
change: 5.4,
|
|
93
|
-
icon: /* @__PURE__ */
|
|
91
|
+
icon: /* @__PURE__ */ I(j, { className: "h-4 w-4" })
|
|
94
92
|
},
|
|
95
93
|
{
|
|
96
94
|
title: "CPC",
|
|
97
|
-
value: `$${
|
|
95
|
+
value: `$${fe.toFixed(2)}`,
|
|
98
96
|
change: -8.2,
|
|
99
|
-
icon: /* @__PURE__ */ P
|
|
97
|
+
icon: /* @__PURE__ */ I(P, { className: "h-4 w-4" })
|
|
100
98
|
},
|
|
101
99
|
{
|
|
102
100
|
title: "ROAS",
|
|
103
|
-
value: `${
|
|
101
|
+
value: `${pe.toFixed(2)}x`,
|
|
104
102
|
change: 11.1,
|
|
105
|
-
icon: /* @__PURE__ */
|
|
103
|
+
icon: /* @__PURE__ */ I(F, { className: "h-4 w-4" })
|
|
106
104
|
}
|
|
107
|
-
],
|
|
105
|
+
], ge = [
|
|
108
106
|
{
|
|
109
107
|
key: "channel",
|
|
110
108
|
header: "Channel",
|
|
111
109
|
sortable: !0,
|
|
112
|
-
render: (e) => /* @__PURE__ */
|
|
110
|
+
render: (e) => /* @__PURE__ */ L("div", {
|
|
113
111
|
className: "flex items-center gap-2",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ I("div", {
|
|
115
113
|
className: "h-3 w-3 rounded-full",
|
|
116
114
|
style: { backgroundColor: e.color }
|
|
117
|
-
}), /* @__PURE__ */
|
|
115
|
+
}), /* @__PURE__ */ I("span", {
|
|
118
116
|
className: "font-medium text-text-primary",
|
|
119
117
|
children: e.channel
|
|
120
118
|
})]
|
|
@@ -124,19 +122,19 @@ var z = [
|
|
|
124
122
|
key: "revenue",
|
|
125
123
|
header: "Revenue",
|
|
126
124
|
sortable: !0,
|
|
127
|
-
render: (e) =>
|
|
125
|
+
render: (e) => f(e.revenue)
|
|
128
126
|
},
|
|
129
127
|
{
|
|
130
128
|
key: "cost",
|
|
131
129
|
header: "Cost",
|
|
132
130
|
sortable: !0,
|
|
133
|
-
render: (e) =>
|
|
131
|
+
render: (e) => f(e.cost)
|
|
134
132
|
},
|
|
135
133
|
{
|
|
136
134
|
key: "conversions",
|
|
137
135
|
header: "Conversions",
|
|
138
136
|
sortable: !0,
|
|
139
|
-
render: (e) =>
|
|
137
|
+
render: (e) => p(e.conversions)
|
|
140
138
|
},
|
|
141
139
|
{
|
|
142
140
|
key: "roas",
|
|
@@ -148,20 +146,20 @@ var z = [
|
|
|
148
146
|
key: "impressions",
|
|
149
147
|
header: "Impressions",
|
|
150
148
|
sortable: !0,
|
|
151
|
-
render: (e) =>
|
|
149
|
+
render: (e) => p(e.impressions)
|
|
152
150
|
},
|
|
153
151
|
{
|
|
154
152
|
key: "ctr",
|
|
155
153
|
header: "CTR",
|
|
156
154
|
sortable: !0,
|
|
157
|
-
render: (e) =>
|
|
155
|
+
render: (e) => m(e.ctr)
|
|
158
156
|
}
|
|
159
|
-
],
|
|
157
|
+
], _e = [
|
|
160
158
|
{
|
|
161
159
|
key: "country",
|
|
162
160
|
header: "Country",
|
|
163
161
|
sortable: !0,
|
|
164
|
-
render: (e) => /* @__PURE__ */
|
|
162
|
+
render: (e) => /* @__PURE__ */ I("span", {
|
|
165
163
|
className: "font-medium",
|
|
166
164
|
children: e.country
|
|
167
165
|
})
|
|
@@ -170,284 +168,292 @@ var z = [
|
|
|
170
168
|
key: "revenue",
|
|
171
169
|
header: "Revenue",
|
|
172
170
|
sortable: !0,
|
|
173
|
-
render: (e) =>
|
|
171
|
+
render: (e) => f(e.revenue)
|
|
174
172
|
},
|
|
175
173
|
{
|
|
176
174
|
key: "users",
|
|
177
175
|
header: "Users",
|
|
178
176
|
sortable: !0,
|
|
179
|
-
render: (e) =>
|
|
177
|
+
render: (e) => p(e.users)
|
|
180
178
|
},
|
|
181
179
|
{
|
|
182
180
|
key: "conversions",
|
|
183
181
|
header: "Conversions",
|
|
184
182
|
sortable: !0,
|
|
185
|
-
render: (e) =>
|
|
183
|
+
render: (e) => p(e.conversions)
|
|
186
184
|
},
|
|
187
185
|
{
|
|
188
186
|
key: "conversionRate",
|
|
189
187
|
header: "Conv. Rate",
|
|
190
188
|
sortable: !0,
|
|
191
|
-
render: (e) =>
|
|
189
|
+
render: (e) => m(e.conversionRate)
|
|
192
190
|
}
|
|
193
|
-
],
|
|
194
|
-
Desktop:
|
|
195
|
-
Mobile:
|
|
196
|
-
Tablet:
|
|
191
|
+
], ve = {
|
|
192
|
+
Desktop: k,
|
|
193
|
+
Mobile: M,
|
|
194
|
+
Tablet: N
|
|
197
195
|
};
|
|
198
|
-
return /* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ L(b, {
|
|
199
197
|
title: "Analytics",
|
|
200
198
|
description: "Comprehensive marketing performance analytics",
|
|
201
199
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ I(B, { children: "The single source of truth for how your marketing is performing. Track reach, clicks, conversions, revenue and ROAS across every channel, then drill into channel and audience breakdowns to understand what's driving results and where to focus next." }),
|
|
201
|
+
/* @__PURE__ */ I(z, {
|
|
204
202
|
storageKey: "headshotmarketing-analytics",
|
|
205
203
|
steps: [
|
|
206
204
|
{
|
|
207
205
|
id: "campaigns",
|
|
208
206
|
label: "Campaign analytics",
|
|
209
207
|
description: "See which campaigns drive the most return.",
|
|
210
|
-
icon: /* @__PURE__ */ P
|
|
211
|
-
onClick: () =>
|
|
208
|
+
icon: /* @__PURE__ */ I(P, { className: "h-4 w-4" }),
|
|
209
|
+
onClick: () => H(U + "/analytics/campaigns")
|
|
212
210
|
},
|
|
213
211
|
{
|
|
214
212
|
id: "ads",
|
|
215
213
|
label: "Ad analytics",
|
|
216
214
|
description: "Break down paid spend, clicks and ROAS by platform.",
|
|
217
|
-
icon: /* @__PURE__ */
|
|
218
|
-
onClick: () =>
|
|
215
|
+
icon: /* @__PURE__ */ I(F, { className: "h-4 w-4" }),
|
|
216
|
+
onClick: () => H(U + "/analytics/ads")
|
|
219
217
|
},
|
|
220
218
|
{
|
|
221
219
|
id: "reports",
|
|
222
220
|
label: "Build a report",
|
|
223
221
|
description: "Assemble and export a shareable report.",
|
|
224
|
-
icon: /* @__PURE__ */
|
|
225
|
-
onClick: () =>
|
|
222
|
+
icon: /* @__PURE__ */ I(E, { className: "h-4 w-4" }),
|
|
223
|
+
onClick: () => H(U + "/analytics/reports")
|
|
226
224
|
}
|
|
227
225
|
]
|
|
228
226
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
children: [/* @__PURE__ */ P(C, {
|
|
255
|
-
title: "Revenue Over Time",
|
|
256
|
-
subtitle: "Last 30 days",
|
|
257
|
-
children: /* @__PURE__ */ P(r, {
|
|
258
|
-
width: "100%",
|
|
259
|
-
height: 300,
|
|
260
|
-
children: /* @__PURE__ */ F(l, {
|
|
261
|
-
data: q,
|
|
262
|
-
children: [
|
|
263
|
-
/* @__PURE__ */ P(a, {
|
|
264
|
-
strokeDasharray: "3 3",
|
|
265
|
-
className: "stroke-border"
|
|
266
|
-
}),
|
|
267
|
-
/* @__PURE__ */ P(s, {
|
|
268
|
-
dataKey: "date",
|
|
269
|
-
tick: { fontSize: 12 },
|
|
270
|
-
className: "text-text-secondary"
|
|
271
|
-
}),
|
|
272
|
-
/* @__PURE__ */ P(c, {
|
|
273
|
-
tick: { fontSize: 12 },
|
|
274
|
-
className: "text-text-secondary"
|
|
275
|
-
}),
|
|
276
|
-
/* @__PURE__ */ P(n, {}),
|
|
277
|
-
/* @__PURE__ */ P(o, {
|
|
278
|
-
type: "monotone",
|
|
279
|
-
dataKey: "revenue",
|
|
280
|
-
stroke: z[0],
|
|
281
|
-
fill: z[0],
|
|
282
|
-
fillOpacity: .1
|
|
283
|
-
}),
|
|
284
|
-
/* @__PURE__ */ P(o, {
|
|
285
|
-
type: "monotone",
|
|
286
|
-
dataKey: "cost",
|
|
287
|
-
stroke: z[3],
|
|
288
|
-
fill: z[3],
|
|
289
|
-
fillOpacity: .1
|
|
290
|
-
}),
|
|
291
|
-
/* @__PURE__ */ P(t, {})
|
|
292
|
-
]
|
|
293
|
-
})
|
|
227
|
+
/* @__PURE__ */ L(w, {
|
|
228
|
+
loading: G,
|
|
229
|
+
error: oe,
|
|
230
|
+
onRetry: K,
|
|
231
|
+
hasData: !!W,
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ I(R, { children: /* @__PURE__ */ I("div", {
|
|
234
|
+
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
235
|
+
children: he.map((e) => /* @__PURE__ */ I(x, {
|
|
236
|
+
title: e.title,
|
|
237
|
+
value: e.value,
|
|
238
|
+
change: e.change,
|
|
239
|
+
changeLabel: "vs last period",
|
|
240
|
+
icon: e.icon
|
|
241
|
+
}, e.title))
|
|
242
|
+
}) }),
|
|
243
|
+
/* @__PURE__ */ I("div", {
|
|
244
|
+
className: "border-b border-border-subtle",
|
|
245
|
+
children: /* @__PURE__ */ I("div", {
|
|
246
|
+
className: "flex flex-nowrap gap-6 overflow-x-auto",
|
|
247
|
+
children: me.map((e) => /* @__PURE__ */ I("button", {
|
|
248
|
+
onClick: () => se(e.key),
|
|
249
|
+
className: d("shrink-0 whitespace-nowrap pb-3 text-sm font-medium transition-colors border-b-2", q === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
250
|
+
children: e.label
|
|
251
|
+
}, e.key))
|
|
294
252
|
})
|
|
295
|
-
}),
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
children: /* @__PURE__ */
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
253
|
+
}),
|
|
254
|
+
q === "overview" && /* @__PURE__ */ I("div", {
|
|
255
|
+
className: "space-y-6",
|
|
256
|
+
children: /* @__PURE__ */ L("div", {
|
|
257
|
+
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
258
|
+
children: [/* @__PURE__ */ I(C, {
|
|
259
|
+
title: "Revenue Over Time",
|
|
260
|
+
subtitle: "Last 30 days",
|
|
261
|
+
children: /* @__PURE__ */ I(r, {
|
|
262
|
+
width: "100%",
|
|
263
|
+
height: 300,
|
|
264
|
+
children: /* @__PURE__ */ L(u, {
|
|
265
|
+
data: ue,
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ I(a, {
|
|
268
|
+
strokeDasharray: "3 3",
|
|
269
|
+
className: "stroke-border"
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ I(s, {
|
|
272
|
+
dataKey: "date",
|
|
273
|
+
tick: { fontSize: 12 },
|
|
274
|
+
className: "text-text-secondary"
|
|
275
|
+
}),
|
|
276
|
+
/* @__PURE__ */ I(c, {
|
|
277
|
+
tick: { fontSize: 12 },
|
|
278
|
+
className: "text-text-secondary"
|
|
279
|
+
}),
|
|
280
|
+
/* @__PURE__ */ I(n, {}),
|
|
281
|
+
/* @__PURE__ */ I(o, {
|
|
282
|
+
type: "monotone",
|
|
283
|
+
dataKey: "revenue",
|
|
284
|
+
stroke: V[0],
|
|
285
|
+
fill: V[0],
|
|
286
|
+
fillOpacity: .1
|
|
287
|
+
}),
|
|
288
|
+
/* @__PURE__ */ I(o, {
|
|
289
|
+
type: "monotone",
|
|
290
|
+
dataKey: "cost",
|
|
291
|
+
stroke: V[3],
|
|
292
|
+
fill: V[3],
|
|
293
|
+
fillOpacity: .1
|
|
294
|
+
}),
|
|
295
|
+
/* @__PURE__ */ I(t, {})
|
|
296
|
+
]
|
|
334
297
|
})
|
|
335
|
-
|
|
336
|
-
})
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
298
|
+
})
|
|
299
|
+
}), /* @__PURE__ */ I(C, {
|
|
300
|
+
title: "Conversion Funnel",
|
|
301
|
+
subtitle: "Current period",
|
|
302
|
+
children: /* @__PURE__ */ I(r, {
|
|
303
|
+
width: "100%",
|
|
304
|
+
height: 300,
|
|
305
|
+
children: /* @__PURE__ */ L(l, {
|
|
306
|
+
data: $,
|
|
307
|
+
layout: "vertical",
|
|
308
|
+
children: [
|
|
309
|
+
/* @__PURE__ */ I(a, {
|
|
310
|
+
strokeDasharray: "3 3",
|
|
311
|
+
className: "stroke-border"
|
|
312
|
+
}),
|
|
313
|
+
/* @__PURE__ */ I(s, {
|
|
314
|
+
type: "number",
|
|
315
|
+
tick: { fontSize: 12 },
|
|
316
|
+
className: "text-text-secondary"
|
|
317
|
+
}),
|
|
318
|
+
/* @__PURE__ */ I(c, {
|
|
319
|
+
dataKey: "stage",
|
|
320
|
+
type: "category",
|
|
321
|
+
tick: { fontSize: 12 },
|
|
322
|
+
width: 100,
|
|
323
|
+
className: "text-text-secondary"
|
|
324
|
+
}),
|
|
325
|
+
/* @__PURE__ */ I(n, { formatter: (e) => p(e) }),
|
|
326
|
+
/* @__PURE__ */ I(i, {
|
|
327
|
+
dataKey: "value",
|
|
328
|
+
radius: [
|
|
329
|
+
0,
|
|
330
|
+
4,
|
|
331
|
+
4,
|
|
332
|
+
0
|
|
333
|
+
],
|
|
334
|
+
children: $.map((e, t) => /* @__PURE__ */ I(i, {
|
|
335
|
+
dataKey: "value",
|
|
336
|
+
fill: e.color
|
|
337
|
+
}, t))
|
|
338
|
+
})
|
|
339
|
+
]
|
|
340
|
+
})
|
|
341
|
+
})
|
|
358
342
|
})]
|
|
359
|
-
})
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
className: "w-24 h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
379
|
-
children: /* @__PURE__ */ P("div", {
|
|
380
|
-
className: "h-full rounded-full bg-action-primary-bg",
|
|
381
|
-
style: { width: `${e.revenue / (Y[0]?.revenue || 1) * 100}%` }
|
|
382
|
-
})
|
|
343
|
+
})
|
|
344
|
+
}),
|
|
345
|
+
q === "channels" && /* @__PURE__ */ I(S, {
|
|
346
|
+
data: Y,
|
|
347
|
+
columns: ge,
|
|
348
|
+
searchable: !0,
|
|
349
|
+
searchPlaceholder: "Search channels..."
|
|
350
|
+
}),
|
|
351
|
+
q === "audience" && /* @__PURE__ */ L("div", {
|
|
352
|
+
className: "space-y-6",
|
|
353
|
+
children: [/* @__PURE__ */ L("div", {
|
|
354
|
+
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
355
|
+
children: [/* @__PURE__ */ L("div", {
|
|
356
|
+
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
357
|
+
children: [/* @__PURE__ */ L("div", {
|
|
358
|
+
className: "flex items-center gap-2 mb-4",
|
|
359
|
+
children: [/* @__PURE__ */ I(O, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ I("h3", {
|
|
360
|
+
className: "text-sm font-semibold text-text-primary",
|
|
361
|
+
children: "Top Countries"
|
|
383
362
|
})]
|
|
384
|
-
})
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
/* @__PURE__ */ P("div", {
|
|
395
|
-
className: "space-y-4",
|
|
396
|
-
children: X.devices.map((e) => /* @__PURE__ */ F("div", {
|
|
397
|
-
className: "flex items-center gap-3",
|
|
398
|
-
children: [/* @__PURE__ */ P(pe[e.device] || D, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ F("div", {
|
|
399
|
-
className: "flex-1",
|
|
400
|
-
children: [/* @__PURE__ */ F("div", {
|
|
401
|
-
className: "flex items-center justify-between mb-1",
|
|
402
|
-
children: [/* @__PURE__ */ P("span", {
|
|
363
|
+
}), /* @__PURE__ */ I("div", {
|
|
364
|
+
className: "space-y-3",
|
|
365
|
+
children: X.map((e) => /* @__PURE__ */ L("div", {
|
|
366
|
+
className: "flex items-center justify-between",
|
|
367
|
+
children: [/* @__PURE__ */ L("div", {
|
|
368
|
+
className: "flex items-center gap-2",
|
|
369
|
+
children: [/* @__PURE__ */ I("span", {
|
|
370
|
+
className: "text-xs font-mono text-text-secondary w-6",
|
|
371
|
+
children: e.countryCode
|
|
372
|
+
}), /* @__PURE__ */ I("span", {
|
|
403
373
|
className: "text-sm text-text-primary",
|
|
404
|
-
children: e.
|
|
405
|
-
})
|
|
374
|
+
children: e.country
|
|
375
|
+
})]
|
|
376
|
+
}), /* @__PURE__ */ L("div", {
|
|
377
|
+
className: "flex items-center gap-4",
|
|
378
|
+
children: [/* @__PURE__ */ I("span", {
|
|
406
379
|
className: "text-sm font-medium text-text-primary",
|
|
407
|
-
children:
|
|
380
|
+
children: f(e.revenue)
|
|
381
|
+
}), /* @__PURE__ */ I("div", {
|
|
382
|
+
className: "w-24 h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
383
|
+
children: /* @__PURE__ */ I("div", {
|
|
384
|
+
className: "h-full rounded-full bg-action-primary-bg",
|
|
385
|
+
style: { width: `${e.revenue / (X[0]?.revenue || 1) * 100}%` }
|
|
386
|
+
})
|
|
408
387
|
})]
|
|
409
|
-
}), /* @__PURE__ */ P("div", {
|
|
410
|
-
className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
411
|
-
children: /* @__PURE__ */ P("div", {
|
|
412
|
-
className: "h-full rounded-full bg-action-primary-bg",
|
|
413
|
-
style: { width: `${e.percentage}%` }
|
|
414
|
-
})
|
|
415
388
|
})]
|
|
416
|
-
})
|
|
417
|
-
}, e.device))
|
|
418
|
-
}),
|
|
419
|
-
/* @__PURE__ */ F("div", {
|
|
420
|
-
className: "mt-6 pt-4 border-t border-border-subtle",
|
|
421
|
-
children: [/* @__PURE__ */ P("h4", {
|
|
422
|
-
className: "text-sm font-semibold text-text-primary mb-3",
|
|
423
|
-
children: "Browser Usage"
|
|
424
|
-
}), /* @__PURE__ */ P("div", {
|
|
425
|
-
className: "space-y-2",
|
|
426
|
-
children: X.browsers.map((e) => /* @__PURE__ */ F("div", {
|
|
427
|
-
className: "flex items-center justify-between text-sm",
|
|
428
|
-
children: [/* @__PURE__ */ P("span", {
|
|
429
|
-
className: "text-text-secondary",
|
|
430
|
-
children: e.browser
|
|
431
|
-
}), /* @__PURE__ */ P("span", {
|
|
432
|
-
className: "font-medium text-text-primary",
|
|
433
|
-
children: p(e.percentage)
|
|
434
|
-
})]
|
|
435
|
-
}, e.browser))
|
|
389
|
+
}, e.countryCode))
|
|
436
390
|
})]
|
|
437
|
-
})
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
391
|
+
}), /* @__PURE__ */ L("div", {
|
|
392
|
+
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
393
|
+
children: [
|
|
394
|
+
/* @__PURE__ */ I("h3", {
|
|
395
|
+
className: "text-sm font-semibold text-text-primary mb-4",
|
|
396
|
+
children: "Device Breakdown"
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ I("div", {
|
|
399
|
+
className: "space-y-4",
|
|
400
|
+
children: Z.devices.map((e) => /* @__PURE__ */ L("div", {
|
|
401
|
+
className: "flex items-center gap-3",
|
|
402
|
+
children: [/* @__PURE__ */ I(ve[e.device] || k, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ L("div", {
|
|
403
|
+
className: "flex-1",
|
|
404
|
+
children: [/* @__PURE__ */ L("div", {
|
|
405
|
+
className: "flex items-center justify-between mb-1",
|
|
406
|
+
children: [/* @__PURE__ */ I("span", {
|
|
407
|
+
className: "text-sm text-text-primary",
|
|
408
|
+
children: e.device
|
|
409
|
+
}), /* @__PURE__ */ I("span", {
|
|
410
|
+
className: "text-sm font-medium text-text-primary",
|
|
411
|
+
children: m(e.percentage)
|
|
412
|
+
})]
|
|
413
|
+
}), /* @__PURE__ */ I("div", {
|
|
414
|
+
className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
415
|
+
children: /* @__PURE__ */ I("div", {
|
|
416
|
+
className: "h-full rounded-full bg-action-primary-bg",
|
|
417
|
+
style: { width: `${e.percentage}%` }
|
|
418
|
+
})
|
|
419
|
+
})]
|
|
420
|
+
})]
|
|
421
|
+
}, e.device))
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ L("div", {
|
|
424
|
+
className: "mt-6 pt-4 border-t border-border-subtle",
|
|
425
|
+
children: [/* @__PURE__ */ I("h4", {
|
|
426
|
+
className: "text-sm font-semibold text-text-primary mb-3",
|
|
427
|
+
children: "Browser Usage"
|
|
428
|
+
}), /* @__PURE__ */ I("div", {
|
|
429
|
+
className: "space-y-2",
|
|
430
|
+
children: Z.browsers.map((e) => /* @__PURE__ */ L("div", {
|
|
431
|
+
className: "flex items-center justify-between text-sm",
|
|
432
|
+
children: [/* @__PURE__ */ I("span", {
|
|
433
|
+
className: "text-text-secondary",
|
|
434
|
+
children: e.browser
|
|
435
|
+
}), /* @__PURE__ */ I("span", {
|
|
436
|
+
className: "font-medium text-text-primary",
|
|
437
|
+
children: m(e.percentage)
|
|
438
|
+
})]
|
|
439
|
+
}, e.browser))
|
|
440
|
+
})]
|
|
441
|
+
})
|
|
442
|
+
]
|
|
443
|
+
})]
|
|
444
|
+
}), /* @__PURE__ */ I(S, {
|
|
445
|
+
data: X,
|
|
446
|
+
columns: _e,
|
|
447
|
+
searchable: !0,
|
|
448
|
+
searchPlaceholder: "Search countries..."
|
|
449
|
+
})]
|
|
450
|
+
})
|
|
451
|
+
]
|
|
446
452
|
})
|
|
447
453
|
]
|
|
448
454
|
});
|
|
449
455
|
};
|
|
450
456
|
//#endregion
|
|
451
|
-
export {
|
|
457
|
+
export { H as AnalyticsPage };
|
|
452
458
|
|
|
453
459
|
//# sourceMappingURL=AnalyticsPage.js.map
|