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