@burdenoff/microfe-headshotmarketing 2026.625.1 → 2026.625.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/headshotmarketing/pages/HomePage.js +176 -175
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +234 -218
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +162 -147
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +138 -99
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +133 -118
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +101 -99
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +40 -38
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +98 -96
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +95 -83
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +98 -59
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +105 -94
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +43 -41
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +155 -139
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +266 -261
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +201 -173
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +85 -91
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +160 -147
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +136 -134
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +82 -74
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +58 -46
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +39 -37
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +82 -75
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +227 -212
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +62 -61
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +75 -74
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +162 -120
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +58 -51
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +173 -157
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +344 -339
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +100 -87
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +162 -147
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +91 -83
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +56 -28
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +199 -184
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +118 -111
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +27 -25
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +55 -54
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +149 -137
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +27 -26
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +104 -76
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -12,342 +12,343 @@ import { AreaChart as ne } from "../../node_modules/recharts/es6/chart/AreaChart
|
|
|
12
12
|
import { useHeadshotmarketingBootstrapDataQuery as c } from "../../generated/wspace-operations.js";
|
|
13
13
|
import { cn as l, formatCurrency as u, formatNumber as d } from "../utils/helpers.js";
|
|
14
14
|
import { toCampaignModel as f } from "../utils/campaignMapper.js";
|
|
15
|
-
import { toAdCampaignModel as
|
|
16
|
-
import { toCampaignTimeSeries as
|
|
17
|
-
import { StatCard as
|
|
18
|
-
import { DataTable as
|
|
19
|
-
import { StatusBadge as
|
|
20
|
-
import { ChartCard as
|
|
15
|
+
import { toAdCampaignModel as re } from "../utils/adsMapper.js";
|
|
16
|
+
import { toCampaignTimeSeries as p, toChannelPerformance as m } from "../utils/analyticsMapper.js";
|
|
17
|
+
import { StatCard as h } from "../components/StatCard.js";
|
|
18
|
+
import { DataTable as g } from "../components/DataTable.js";
|
|
19
|
+
import { StatusBadge as ie } from "../components/StatusBadge.js";
|
|
20
|
+
import { ChartCard as _ } from "../components/ChartCard.js";
|
|
21
21
|
import "../components/index.js";
|
|
22
|
-
import { useState as
|
|
23
|
-
import { AlertCircle as
|
|
24
|
-
import { useI18n as
|
|
25
|
-
import { jsx as
|
|
26
|
-
import { AuroraBackground as
|
|
22
|
+
import { useState as ae } from "react";
|
|
23
|
+
import { AlertCircle as v, AlertTriangle as y, CheckCircle2 as b, DollarSign as x, Download as S, Heart as C, Info as w, Megaphone as T, Percent as E, RefreshCw as D, ShoppingCart as O, Target as k, TrendingUp as A, Users as j } from "lucide-react";
|
|
24
|
+
import { useI18n as M } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
25
|
+
import { jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
26
|
+
import { AuroraBackground as F, EmphasisPanel as I, GradientText as L, PagePurpose as R, ShowMore as z } from "@burdenoff/fe-libs/ui";
|
|
27
27
|
//#region src/headshotmarketing/pages/HomePage.tsx
|
|
28
|
-
var
|
|
28
|
+
var B = [
|
|
29
29
|
"var(--color-chart-1)",
|
|
30
30
|
"var(--color-chart-2)",
|
|
31
31
|
"var(--color-chart-3)",
|
|
32
32
|
"var(--color-chart-4)",
|
|
33
33
|
"var(--color-chart-5)",
|
|
34
34
|
"var(--color-chart-6)"
|
|
35
|
-
],
|
|
36
|
-
success:
|
|
37
|
-
warning:
|
|
38
|
-
error:
|
|
39
|
-
info:
|
|
40
|
-
},
|
|
35
|
+
], V = {
|
|
36
|
+
success: b,
|
|
37
|
+
warning: y,
|
|
38
|
+
error: v,
|
|
39
|
+
info: w
|
|
40
|
+
}, H = {
|
|
41
41
|
success: "border-status-success-border bg-status-success-bg text-status-success-text",
|
|
42
42
|
warning: "border-status-warning-border bg-status-warning-bg text-status-warning-text",
|
|
43
43
|
error: "border-status-error-border bg-status-error-bg text-status-error-text",
|
|
44
44
|
info: "border-status-info-border bg-status-info-bg text-status-info-text"
|
|
45
|
-
},
|
|
45
|
+
}, U = {
|
|
46
46
|
success: "text-status-success-text",
|
|
47
47
|
warning: "text-status-warning-text",
|
|
48
48
|
error: "text-status-error-text",
|
|
49
49
|
info: "text-status-info-text"
|
|
50
|
-
},
|
|
51
|
-
let { navigate:
|
|
52
|
-
let n =
|
|
50
|
+
}, W = () => {
|
|
51
|
+
let { navigate: v, basePath: y } = e(), { t: b } = M(), W = (e, t) => {
|
|
52
|
+
let n = b(e);
|
|
53
53
|
return n === e ? t : n;
|
|
54
|
-
}, { data:
|
|
54
|
+
}, { data: G } = c({ variables: {
|
|
55
55
|
limit: 200,
|
|
56
56
|
offset: 0
|
|
57
|
-
} }), [
|
|
57
|
+
} }), [K, q] = ae("overview"), J = (G?.headshotmarketingCampaigns.items ?? []).map((e) => f(e)), oe = (G?.headshotmarketingAdCampaigns.items ?? []).map((e) => re(e)), se = p(J), Y = m(J, oe), ce = [
|
|
58
58
|
{
|
|
59
|
-
label:
|
|
59
|
+
label: W("headshotmarketing.home.goals.revenue", "Revenue"),
|
|
60
60
|
percent: 78
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
label:
|
|
63
|
+
label: W("headshotmarketing.home.goals.customers", "Customers"),
|
|
64
64
|
percent: 65
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
label:
|
|
67
|
+
label: W("headshotmarketing.home.goals.roi", "ROI"),
|
|
68
68
|
percent: 82
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
label:
|
|
71
|
+
label: W("headshotmarketing.home.goals.traffic", "Traffic"),
|
|
72
72
|
percent: 91
|
|
73
73
|
}
|
|
74
|
-
],
|
|
74
|
+
], le = [
|
|
75
75
|
{
|
|
76
|
-
device:
|
|
76
|
+
device: W("headshotmarketing.home.devices.desktop", "Desktop"),
|
|
77
77
|
sessions: 58
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
device:
|
|
80
|
+
device: W("headshotmarketing.home.devices.mobile", "Mobile"),
|
|
81
81
|
sessions: 32
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
device:
|
|
84
|
+
device: W("headshotmarketing.home.devices.tablet", "Tablet"),
|
|
85
85
|
sessions: 10
|
|
86
86
|
}
|
|
87
|
-
],
|
|
87
|
+
], ue = [
|
|
88
88
|
{
|
|
89
89
|
key: "name",
|
|
90
|
-
header:
|
|
90
|
+
header: W("headshotmarketing.home.table.columns.name", "Name"),
|
|
91
91
|
sortable: !0
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
key: "type",
|
|
95
|
-
header:
|
|
95
|
+
header: W("headshotmarketing.home.table.columns.type", "Type"),
|
|
96
96
|
sortable: !0,
|
|
97
|
-
render: (e) => /* @__PURE__ */
|
|
97
|
+
render: (e) => /* @__PURE__ */ N("span", {
|
|
98
98
|
className: "capitalize",
|
|
99
99
|
children: e.type
|
|
100
100
|
})
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
key: "status",
|
|
104
|
-
header:
|
|
105
|
-
render: (e) => /* @__PURE__ */
|
|
104
|
+
header: W("headshotmarketing.home.table.columns.status", "Status"),
|
|
105
|
+
render: (e) => /* @__PURE__ */ N(ie, { status: e.status })
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: "impressions",
|
|
109
|
-
header:
|
|
109
|
+
header: W("headshotmarketing.home.table.columns.impressions", "Impressions"),
|
|
110
110
|
sortable: !0,
|
|
111
111
|
render: (e) => d(e.metrics.impressions)
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
key: "clicks",
|
|
115
|
-
header:
|
|
115
|
+
header: W("headshotmarketing.home.table.columns.clicks", "Clicks"),
|
|
116
116
|
sortable: !0,
|
|
117
117
|
render: (e) => d(e.metrics.clicks)
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
key: "conversions",
|
|
121
|
-
header:
|
|
121
|
+
header: W("headshotmarketing.home.table.columns.conversions", "Conversions"),
|
|
122
122
|
sortable: !0,
|
|
123
123
|
render: (e) => d(e.metrics.conversions)
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
key: "roas",
|
|
127
|
-
header:
|
|
127
|
+
header: W("headshotmarketing.home.table.columns.roas", "ROAS"),
|
|
128
128
|
sortable: !0,
|
|
129
129
|
render: (e) => `${e.metrics.roas.toFixed(1)}x`
|
|
130
130
|
}
|
|
131
|
-
], X =
|
|
131
|
+
], X = J.reduce((e, t) => (e.revenue += t.metrics.revenue, e.conversions += t.metrics.conversions, e), {
|
|
132
132
|
revenue: 0,
|
|
133
133
|
conversions: 0
|
|
134
|
-
}), Z =
|
|
134
|
+
}), Z = J.reduce((e, t) => e + t.metrics.cost, 0), Q = Z > 0 ? X.revenue / Z : 0, $ = {
|
|
135
135
|
topChannels: Y,
|
|
136
136
|
recentAlerts: [{
|
|
137
137
|
id: "alert-1",
|
|
138
138
|
type: Q >= 3 ? "success" : "warning",
|
|
139
|
-
message: Q >= 3 ?
|
|
139
|
+
message: Q >= 3 ? W("headshotmarketing.home.alerts.roasHealthy", "ROAS is healthy across active channels.") : W("headshotmarketing.home.alerts.roasDropped", "ROAS dropped below target in this period."),
|
|
140
140
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
141
141
|
}, {
|
|
142
142
|
id: "alert-2",
|
|
143
|
-
type:
|
|
144
|
-
message:
|
|
143
|
+
type: J.length > 0 ? "info" : "error",
|
|
144
|
+
message: J.length > 0 ? `${J.length} ${W("headshotmarketing.home.alerts.campaignsTrackedSuffix", "campaigns are currently tracked.")}` : W("headshotmarketing.home.alerts.noCampaigns", "No campaigns found in workspace data."),
|
|
145
145
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
146
146
|
}]
|
|
147
|
-
},
|
|
147
|
+
}, de = [
|
|
148
148
|
{
|
|
149
149
|
key: "overview",
|
|
150
|
-
label:
|
|
150
|
+
label: W("headshotmarketing.home.tabs.overview", "Overview")
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
key: "performance",
|
|
154
|
-
label:
|
|
154
|
+
label: W("headshotmarketing.home.tabs.performance", "Performance")
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
key: "audience",
|
|
158
|
-
label:
|
|
158
|
+
label: W("headshotmarketing.home.tabs.audience", "Audience")
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: "campaigns",
|
|
162
|
-
label:
|
|
162
|
+
label: W("headshotmarketing.home.tabs.campaigns", "Campaigns")
|
|
163
163
|
}
|
|
164
164
|
];
|
|
165
|
-
return /* @__PURE__ */
|
|
165
|
+
return /* @__PURE__ */ P("div", {
|
|
166
166
|
className: "space-y-6",
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ P("header", {
|
|
169
169
|
className: "relative overflow-hidden rounded-card border border-border-seam bg-gloss-card px-6 py-7 shadow-[var(--shadow-pop)] sm:px-8",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ N(F, { intensity: "subtle" }), /* @__PURE__ */ P("div", {
|
|
171
171
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("h1", {
|
|
173
173
|
className: "text-2xl font-bold tracking-tight text-text-primary sm:text-3xl",
|
|
174
|
-
children: /* @__PURE__ */
|
|
175
|
-
}), /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ N(L, { children: W("headshotmarketing.home.title", "Dashboard") })
|
|
175
|
+
}), /* @__PURE__ */ N("p", {
|
|
176
176
|
className: "mt-1 text-sm text-text-secondary",
|
|
177
|
-
children:
|
|
178
|
-
})] }), /* @__PURE__ */
|
|
177
|
+
children: W("headshotmarketing.home.subtitle", "Your marketing performance at a glance.")
|
|
178
|
+
})] }), /* @__PURE__ */ P("div", {
|
|
179
179
|
className: "flex items-center gap-2",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ P("button", {
|
|
181
181
|
type: "button",
|
|
182
182
|
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ N(D, {
|
|
184
184
|
className: "h-4 w-4",
|
|
185
185
|
"aria-hidden": "true"
|
|
186
|
-
}),
|
|
187
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), W("headshotmarketing.home.actions.refresh", "Refresh")]
|
|
187
|
+
}), /* @__PURE__ */ P("button", {
|
|
188
188
|
type: "button",
|
|
189
189
|
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text shadow-pop transition-colors hover:bg-action-primary-bg/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
190
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ N(S, {
|
|
191
191
|
className: "h-4 w-4",
|
|
192
192
|
"aria-hidden": "true"
|
|
193
|
-
}),
|
|
193
|
+
}), W("headshotmarketing.home.actions.export", "Export")]
|
|
194
194
|
})]
|
|
195
195
|
})]
|
|
196
196
|
})]
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ N(R, { children: W("headshotmarketing.home.purpose", "Your marketing at a glance. This dashboard pulls revenue, active campaigns, conversions and ROAS into one view, then lets you dig into performance, audience and campaign detail — so you always know what's working and where to act next.") }),
|
|
199
|
+
/* @__PURE__ */ P("div", {
|
|
199
200
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
200
201
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ N(h, {
|
|
202
203
|
featured: !0,
|
|
203
|
-
title:
|
|
204
|
+
title: W("headshotmarketing.home.stats.totalRevenue", "Total Revenue"),
|
|
204
205
|
value: u(X.revenue),
|
|
205
206
|
change: 12.5,
|
|
206
|
-
changeLabel:
|
|
207
|
-
icon: /* @__PURE__ */
|
|
207
|
+
changeLabel: W("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
208
|
+
icon: /* @__PURE__ */ N(x, { className: "h-5 w-5" })
|
|
208
209
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
title:
|
|
211
|
-
value: String(
|
|
210
|
+
/* @__PURE__ */ N(h, {
|
|
211
|
+
title: W("headshotmarketing.home.stats.activeCampaigns", "Active Campaigns"),
|
|
212
|
+
value: String(J.filter((e) => e.status === "active").length),
|
|
212
213
|
change: 8.3,
|
|
213
|
-
changeLabel:
|
|
214
|
-
icon: /* @__PURE__ */
|
|
214
|
+
changeLabel: W("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
215
|
+
icon: /* @__PURE__ */ N(T, { className: "h-5 w-5" })
|
|
215
216
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
title:
|
|
217
|
+
/* @__PURE__ */ N(h, {
|
|
218
|
+
title: W("headshotmarketing.home.stats.conversions", "Conversions"),
|
|
218
219
|
value: d(X.conversions),
|
|
219
220
|
change: 15.2,
|
|
220
|
-
changeLabel:
|
|
221
|
-
icon: /* @__PURE__ */
|
|
221
|
+
changeLabel: W("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
222
|
+
icon: /* @__PURE__ */ N(k, { className: "h-5 w-5" })
|
|
222
223
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
title:
|
|
224
|
+
/* @__PURE__ */ N(h, {
|
|
225
|
+
title: W("headshotmarketing.home.stats.roas", "ROAS"),
|
|
225
226
|
value: `${Q.toFixed(1)}x`,
|
|
226
227
|
change: 5.1,
|
|
227
|
-
changeLabel:
|
|
228
|
-
icon: /* @__PURE__ */
|
|
228
|
+
changeLabel: W("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
229
|
+
icon: /* @__PURE__ */ N(A, { className: "h-5 w-5" })
|
|
229
230
|
})
|
|
230
231
|
]
|
|
231
232
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ N(z, {
|
|
233
234
|
collapsedHeight: 0,
|
|
234
|
-
label:
|
|
235
|
-
children: /* @__PURE__ */
|
|
235
|
+
label: W("headshotmarketing.home.actions.moreMetrics", "More metrics"),
|
|
236
|
+
children: /* @__PURE__ */ P("div", {
|
|
236
237
|
className: "grid grid-cols-1 gap-4 pt-1 sm:grid-cols-2 lg:grid-cols-4",
|
|
237
238
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
title:
|
|
239
|
+
/* @__PURE__ */ N(h, {
|
|
240
|
+
title: W("headshotmarketing.home.stats.conversionRate", "Conversion Rate"),
|
|
240
241
|
value: "3.2%",
|
|
241
|
-
icon: /* @__PURE__ */
|
|
242
|
+
icon: /* @__PURE__ */ N(E, { className: "h-5 w-5" })
|
|
242
243
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
title:
|
|
244
|
+
/* @__PURE__ */ N(h, {
|
|
245
|
+
title: W("headshotmarketing.home.stats.avgOrderValue", "Avg Order Value"),
|
|
245
246
|
value: u(68),
|
|
246
|
-
icon: /* @__PURE__ */
|
|
247
|
+
icon: /* @__PURE__ */ N(O, { className: "h-5 w-5" })
|
|
247
248
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
title:
|
|
249
|
+
/* @__PURE__ */ N(h, {
|
|
250
|
+
title: W("headshotmarketing.home.stats.customerLtv", "Customer LTV"),
|
|
250
251
|
value: u(450),
|
|
251
|
-
icon: /* @__PURE__ */
|
|
252
|
+
icon: /* @__PURE__ */ N(C, { className: "h-5 w-5" })
|
|
252
253
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
title:
|
|
254
|
+
/* @__PURE__ */ N(h, {
|
|
255
|
+
title: W("headshotmarketing.home.stats.monthlyVisitors", "Monthly Visitors"),
|
|
255
256
|
value: "45.2K",
|
|
256
|
-
icon: /* @__PURE__ */
|
|
257
|
+
icon: /* @__PURE__ */ N(j, { className: "h-5 w-5" })
|
|
257
258
|
})
|
|
258
259
|
]
|
|
259
260
|
})
|
|
260
261
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ P(I, { children: [/* @__PURE__ */ N("h3", {
|
|
262
263
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
263
|
-
children:
|
|
264
|
-
}), /* @__PURE__ */
|
|
264
|
+
children: W("headshotmarketing.home.sections.monthlyGoals", "Monthly Goals")
|
|
265
|
+
}), /* @__PURE__ */ N("div", {
|
|
265
266
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
266
|
-
children:
|
|
267
|
+
children: ce.map((e) => /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ P("div", {
|
|
267
268
|
className: "flex items-center justify-between mb-1",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ N("span", {
|
|
269
270
|
className: "text-sm font-medium text-text-primary",
|
|
270
271
|
children: e.label
|
|
271
|
-
}), /* @__PURE__ */
|
|
272
|
+
}), /* @__PURE__ */ P("span", {
|
|
272
273
|
className: "text-sm font-medium tabular-nums text-text-secondary",
|
|
273
274
|
children: [e.percent, "%"]
|
|
274
275
|
})]
|
|
275
|
-
}), /* @__PURE__ */
|
|
276
|
+
}), /* @__PURE__ */ N("div", {
|
|
276
277
|
className: "h-2 w-full rounded-full bg-bg-sunken",
|
|
277
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ N("div", {
|
|
278
279
|
className: "h-2 rounded-full bg-action-primary-bg transition-all",
|
|
279
280
|
style: { width: `${e.percent}%` }
|
|
280
281
|
})
|
|
281
282
|
})] }, e.label))
|
|
282
283
|
})] }),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("div", {
|
|
284
285
|
className: "flex items-center gap-1 border-b border-border-subtle",
|
|
285
|
-
children:
|
|
286
|
-
onClick: () =>
|
|
287
|
-
className: l("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px",
|
|
286
|
+
children: de.map((e) => /* @__PURE__ */ N("button", {
|
|
287
|
+
onClick: () => q(e.key),
|
|
288
|
+
className: l("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", K === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
288
289
|
children: e.label
|
|
289
290
|
}, e.key))
|
|
290
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ P("div", {
|
|
291
292
|
className: "mt-6",
|
|
292
293
|
children: [
|
|
293
|
-
|
|
294
|
+
K === "overview" && /* @__PURE__ */ P("div", {
|
|
294
295
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
296
|
-
title:
|
|
297
|
-
subtitle:
|
|
298
|
-
children: /* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ N(_, {
|
|
297
|
+
title: W("headshotmarketing.home.charts.revenueTrend", "Revenue Trend"),
|
|
298
|
+
subtitle: W("headshotmarketing.home.charts.last30Days", "Last 30 days"),
|
|
299
|
+
children: /* @__PURE__ */ N(n, {
|
|
299
300
|
width: "100%",
|
|
300
301
|
height: 280,
|
|
301
|
-
children: /* @__PURE__ */
|
|
302
|
-
data:
|
|
302
|
+
children: /* @__PURE__ */ P(ne, {
|
|
303
|
+
data: se,
|
|
303
304
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ N(a, {
|
|
305
306
|
strokeDasharray: "3 3",
|
|
306
307
|
className: "stroke-border"
|
|
307
308
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ N(s, {
|
|
309
310
|
dataKey: "date",
|
|
310
311
|
tick: { fontSize: 11 },
|
|
311
312
|
className: "text-text-secondary",
|
|
312
313
|
tickFormatter: (e) => e.slice(5)
|
|
313
314
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ N(ee, {
|
|
315
316
|
tick: { fontSize: 11 },
|
|
316
317
|
className: "text-text-secondary"
|
|
317
318
|
}),
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ N(t, { contentStyle: {
|
|
319
320
|
backgroundColor: "var(--color-card)",
|
|
320
321
|
border: "1px solid var(--color-border)",
|
|
321
322
|
borderRadius: 8
|
|
322
323
|
} }),
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ N(o, {
|
|
324
325
|
type: "monotone",
|
|
325
326
|
dataKey: "revenue",
|
|
326
|
-
stroke:
|
|
327
|
-
fill:
|
|
327
|
+
stroke: B[0],
|
|
328
|
+
fill: B[0],
|
|
328
329
|
fillOpacity: .15,
|
|
329
330
|
strokeWidth: 2,
|
|
330
|
-
name:
|
|
331
|
+
name: W("headshotmarketing.home.charts.revenue", "Revenue")
|
|
331
332
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ N(o, {
|
|
333
334
|
type: "monotone",
|
|
334
335
|
dataKey: "cost",
|
|
335
|
-
stroke:
|
|
336
|
-
fill:
|
|
336
|
+
stroke: B[3],
|
|
337
|
+
fill: B[3],
|
|
337
338
|
fillOpacity: .1,
|
|
338
339
|
strokeWidth: 2,
|
|
339
|
-
name:
|
|
340
|
+
name: W("headshotmarketing.home.charts.cost", "Cost")
|
|
340
341
|
})
|
|
341
342
|
]
|
|
342
343
|
})
|
|
343
344
|
})
|
|
344
|
-
}), /* @__PURE__ */
|
|
345
|
-
title:
|
|
346
|
-
subtitle:
|
|
347
|
-
children: /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ N(_, {
|
|
346
|
+
title: W("headshotmarketing.home.charts.channelPerformance", "Channel Performance"),
|
|
347
|
+
subtitle: W("headshotmarketing.home.charts.revenueDistribution", "Revenue distribution"),
|
|
348
|
+
children: /* @__PURE__ */ N(n, {
|
|
348
349
|
width: "100%",
|
|
349
350
|
height: 280,
|
|
350
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ P(te, { children: [/* @__PURE__ */ N(i, {
|
|
351
352
|
data: Y,
|
|
352
353
|
dataKey: "revenue",
|
|
353
354
|
nameKey: "channel",
|
|
@@ -355,8 +356,8 @@ var z = [
|
|
|
355
356
|
cy: "50%",
|
|
356
357
|
outerRadius: 100,
|
|
357
358
|
label: ({ name: e, percent: t }) => `${e} ${(t * 100).toFixed(0)}%`,
|
|
358
|
-
children: Y.map((e, t) => /* @__PURE__ */
|
|
359
|
-
}), /* @__PURE__ */
|
|
359
|
+
children: Y.map((e, t) => /* @__PURE__ */ N(r, { fill: B[t % B.length] }, e.channel))
|
|
360
|
+
}), /* @__PURE__ */ N(t, {
|
|
360
361
|
contentStyle: {
|
|
361
362
|
backgroundColor: "var(--color-card)",
|
|
362
363
|
border: "1px solid var(--color-border)",
|
|
@@ -367,93 +368,93 @@ var z = [
|
|
|
367
368
|
})
|
|
368
369
|
})]
|
|
369
370
|
}),
|
|
370
|
-
|
|
371
|
+
K === "performance" && /* @__PURE__ */ P("div", {
|
|
371
372
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
372
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ N("h3", {
|
|
373
374
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
374
|
-
children:
|
|
375
|
-
}), /* @__PURE__ */
|
|
375
|
+
children: W("headshotmarketing.home.sections.topChannels", "Top Channels")
|
|
376
|
+
}), /* @__PURE__ */ N("div", {
|
|
376
377
|
className: "space-y-4",
|
|
377
|
-
children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */
|
|
378
|
+
children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */ P("div", {
|
|
378
379
|
className: "flex items-center justify-between",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
380
|
+
children: [/* @__PURE__ */ P("div", {
|
|
380
381
|
className: "flex items-center gap-3",
|
|
381
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ N("div", {
|
|
382
383
|
className: "h-3 w-3 rounded-full motion-safe:animate-vc-glow-pulse",
|
|
383
384
|
style: { backgroundColor: e.color }
|
|
384
|
-
}), /* @__PURE__ */
|
|
385
|
+
}), /* @__PURE__ */ N("span", {
|
|
385
386
|
className: "text-sm font-medium text-text-primary",
|
|
386
387
|
children: e.channel
|
|
387
388
|
})]
|
|
388
|
-
}), /* @__PURE__ */
|
|
389
|
+
}), /* @__PURE__ */ P("div", {
|
|
389
390
|
className: "flex items-center gap-4",
|
|
390
|
-
children: [/* @__PURE__ */
|
|
391
|
+
children: [/* @__PURE__ */ N("span", {
|
|
391
392
|
className: "text-sm font-semibold tabular-nums text-text-primary",
|
|
392
393
|
children: u(e.revenue)
|
|
393
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ P("span", {
|
|
394
395
|
className: l("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium tabular-nums", e.roas >= 3.5 ? "bg-status-success-bg text-status-success-text border-status-success-border" : "bg-status-warning-bg text-status-warning-text border-status-warning-border"),
|
|
395
396
|
children: [
|
|
396
397
|
e.roas.toFixed(1),
|
|
397
398
|
"x",
|
|
398
399
|
" ",
|
|
399
|
-
|
|
400
|
+
W("headshotmarketing.home.stats.roas", "ROAS")
|
|
400
401
|
]
|
|
401
402
|
})]
|
|
402
403
|
})]
|
|
403
404
|
}, e.channel))
|
|
404
405
|
})]
|
|
405
406
|
}),
|
|
406
|
-
|
|
407
|
+
K === "audience" && /* @__PURE__ */ P("div", {
|
|
407
408
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
408
|
-
children: [/* @__PURE__ */
|
|
409
|
+
children: [/* @__PURE__ */ N("h3", {
|
|
409
410
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
410
|
-
children:
|
|
411
|
-
}), /* @__PURE__ */
|
|
411
|
+
children: W("headshotmarketing.home.sections.deviceBreakdown", "Device Breakdown")
|
|
412
|
+
}), /* @__PURE__ */ N("div", {
|
|
412
413
|
className: "space-y-4",
|
|
413
|
-
children:
|
|
414
|
+
children: le.map((e) => /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ P("div", {
|
|
414
415
|
className: "flex items-center justify-between mb-1",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
416
|
+
children: [/* @__PURE__ */ N("span", {
|
|
416
417
|
className: "text-sm font-medium text-text-primary",
|
|
417
418
|
children: e.device
|
|
418
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ P("span", {
|
|
419
420
|
className: "text-sm tabular-nums text-text-secondary",
|
|
420
421
|
children: [e.sessions, "%"]
|
|
421
422
|
})]
|
|
422
|
-
}), /* @__PURE__ */
|
|
423
|
+
}), /* @__PURE__ */ N("div", {
|
|
423
424
|
className: "h-3 w-full rounded-full bg-bg-sunken",
|
|
424
|
-
children: /* @__PURE__ */
|
|
425
|
+
children: /* @__PURE__ */ N("div", {
|
|
425
426
|
className: "h-3 rounded-full bg-action-primary-bg transition-all",
|
|
426
427
|
style: { width: `${e.sessions}%` }
|
|
427
428
|
})
|
|
428
429
|
})] }, e.device))
|
|
429
430
|
})]
|
|
430
431
|
}),
|
|
431
|
-
|
|
432
|
-
data:
|
|
433
|
-
columns:
|
|
432
|
+
K === "campaigns" && /* @__PURE__ */ N(g, {
|
|
433
|
+
data: J,
|
|
434
|
+
columns: ue,
|
|
434
435
|
pageSize: 8,
|
|
435
|
-
onRowClick: (e) => y
|
|
436
|
-
emptyMessage:
|
|
436
|
+
onRowClick: (e) => v(y + "/campaigns/" + e.id),
|
|
437
|
+
emptyMessage: W("headshotmarketing.home.table.empty", "No campaigns found")
|
|
437
438
|
})
|
|
438
439
|
]
|
|
439
440
|
})] }),
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ P("div", {
|
|
441
442
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
443
|
+
children: [/* @__PURE__ */ N("h3", {
|
|
443
444
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
444
|
-
children:
|
|
445
|
-
}), /* @__PURE__ */
|
|
445
|
+
children: W("headshotmarketing.home.sections.recentAlerts", "Recent Alerts")
|
|
446
|
+
}), /* @__PURE__ */ N("div", {
|
|
446
447
|
className: "space-y-3",
|
|
447
448
|
children: $.recentAlerts.map((e) => {
|
|
448
|
-
let t =
|
|
449
|
-
return /* @__PURE__ */
|
|
450
|
-
className: l("flex items-start gap-3 rounded-lg border p-3",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
449
|
+
let t = V[e.type] || w;
|
|
450
|
+
return /* @__PURE__ */ P("div", {
|
|
451
|
+
className: l("flex items-start gap-3 rounded-lg border p-3", H[e.type]),
|
|
452
|
+
children: [/* @__PURE__ */ N(t, { className: l("h-4 w-4 mt-0.5 flex-shrink-0", U[e.type]) }), /* @__PURE__ */ P("div", {
|
|
452
453
|
className: "flex-1 min-w-0",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
454
|
+
children: [/* @__PURE__ */ N("p", {
|
|
454
455
|
className: "text-sm",
|
|
455
456
|
children: e.message
|
|
456
|
-
}), /* @__PURE__ */
|
|
457
|
+
}), /* @__PURE__ */ N("p", {
|
|
457
458
|
className: "text-xs mt-1 opacity-75",
|
|
458
459
|
children: new Date(e.timestamp).toLocaleString()
|
|
459
460
|
})]
|
|
@@ -466,6 +467,6 @@ var z = [
|
|
|
466
467
|
});
|
|
467
468
|
};
|
|
468
469
|
//#endregion
|
|
469
|
-
export {
|
|
470
|
+
export { W as HomePage };
|
|
470
471
|
|
|
471
472
|
//# sourceMappingURL=HomePage.js.map
|