@burdenoff/microfe-headshotmarketing 2026.923.2 → 2026.924.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/generated/wspace-operations.d.ts +186 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +296 -187
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +9 -7
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts +2 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +52 -44
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.d.ts +6 -0
- package/dist/headshotmarketing/components/InfluencerModals.d.ts.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +431 -249
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/index.d.ts +1 -1
- package/dist/headshotmarketing/components/index.d.ts.map +1 -1
- package/dist/headshotmarketing/index.js +1 -1
- package/dist/headshotmarketing/pages/CustomizeDashboardModal.d.ts +12 -0
- package/dist/headshotmarketing/pages/CustomizeDashboardModal.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/CustomizeDashboardModal.js +62 -0
- package/dist/headshotmarketing/pages/CustomizeDashboardModal.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +221 -200
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts +4 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +500 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +171 -163
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/createAudienceForm.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/createAudienceForm.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -89
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.d.ts +10 -0
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +174 -0
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.d.ts +4 -0
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +206 -0
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts +2 -0
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +47 -34
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +4 -2
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +233 -195
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.d.ts +10 -0
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +157 -0
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/PipelinePage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +87 -76
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/createPipelineForm.d.ts +34 -0
- package/dist/headshotmarketing/pages/crm/createPipelineForm.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/crm/createPipelineForm.js +49 -0
- package/dist/headshotmarketing/pages/crm/createPipelineForm.js.map +1 -0
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +150 -135
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.d.ts +53 -0
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.js +107 -0
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/createSocialAccountForm.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/social-media/createSocialAccountForm.js.map +1 -1
- package/dist/headshotmarketing/store/headshotMarketingStore.d.ts +5 -5
- package/dist/headshotmarketing/store/headshotMarketingStore.d.ts.map +1 -1
- package/dist/headshotmarketing/store/headshotMarketingStore.js +28 -13
- package/dist/headshotmarketing/store/headshotMarketingStore.js.map +1 -1
- package/dist/headshotmarketing/types/index.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/dashboardWidgets.d.ts +46 -0
- package/dist/headshotmarketing/utils/dashboardWidgets.d.ts.map +1 -0
- package/dist/headshotmarketing/utils/dashboardWidgets.js +54 -0
- package/dist/headshotmarketing/utils/dashboardWidgets.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/types/assistant.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,69 +2,71 @@ import { useHeadshotMarketing as e } from "../context/HeadshotMarketingContext.j
|
|
|
2
2
|
import { Legend as t } from "../../node_modules/recharts/es6/component/Legend.js";
|
|
3
3
|
import { Tooltip as n } from "../../node_modules/recharts/es6/component/Tooltip.js";
|
|
4
4
|
import { ResponsiveContainer as r } from "../../node_modules/recharts/es6/component/ResponsiveContainer.js";
|
|
5
|
-
import { Cell as
|
|
6
|
-
import { Pie as
|
|
7
|
-
import { CartesianGrid as
|
|
8
|
-
import { Area as
|
|
9
|
-
import { XAxis as
|
|
10
|
-
import { YAxis as
|
|
11
|
-
import { PieChart as
|
|
12
|
-
import { AreaChart as
|
|
13
|
-
import { cn as o, exportRowsToCsv as oe, formatCurrency as s, formatNumber as c, formatPercentage as
|
|
14
|
-
import { toCampaignModel as
|
|
15
|
-
import { toAdCampaignModel as
|
|
16
|
-
import { toCampaignTimeSeries as
|
|
17
|
-
import { StatCard as
|
|
18
|
-
import { DataTable as
|
|
19
|
-
import { StatusBadge as
|
|
20
|
-
import { EmptyState as
|
|
21
|
-
import { ChartCard as
|
|
22
|
-
import { QueryStateBoundary as
|
|
5
|
+
import { Cell as ee } from "../../node_modules/recharts/es6/component/Cell.js";
|
|
6
|
+
import { Pie as te } from "../../node_modules/recharts/es6/polar/Pie.js";
|
|
7
|
+
import { CartesianGrid as ne } from "../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
|
|
8
|
+
import { Area as i } from "../../node_modules/recharts/es6/cartesian/Area.js";
|
|
9
|
+
import { XAxis as re } from "../../node_modules/recharts/es6/cartesian/XAxis.js";
|
|
10
|
+
import { YAxis as ie } from "../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
11
|
+
import { PieChart as ae } from "../../node_modules/recharts/es6/chart/PieChart.js";
|
|
12
|
+
import { AreaChart as a } from "../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
13
|
+
import { cn as o, exportRowsToCsv as oe, formatCurrency as s, formatNumber as c, formatPercentage as se } from "../utils/helpers.js";
|
|
14
|
+
import { toCampaignModel as ce } from "../utils/campaignMapper.js";
|
|
15
|
+
import { toAdCampaignModel as le } from "../utils/adsMapper.js";
|
|
16
|
+
import { toCampaignTimeSeries as ue, toChannelPerformance as de } from "../utils/analyticsMapper.js";
|
|
17
|
+
import { StatCard as l } from "../components/StatCard.js";
|
|
18
|
+
import { DataTable as u } from "../components/DataTable.js";
|
|
19
|
+
import { StatusBadge as d } from "../components/StatusBadge.js";
|
|
20
|
+
import { EmptyState as f } from "../components/EmptyState.js";
|
|
21
|
+
import { ChartCard as p } from "../components/ChartCard.js";
|
|
22
|
+
import { QueryStateBoundary as fe } from "../components/QueryStateBoundary.js";
|
|
23
23
|
import "../components/index.js";
|
|
24
|
-
import { useHeadshotmarketingBootstrap as
|
|
24
|
+
import { useHeadshotmarketingBootstrap as pe } from "../hooks/useHeadshotmarketingBootstrap.js";
|
|
25
|
+
import { useHeadshotMarketingStore as m } from "../store/headshotMarketingStore.js";
|
|
25
26
|
import { HomeStatCard as h } from "./HomeStatCard.js";
|
|
26
|
-
import { HomeFunnel as
|
|
27
|
+
import { HomeFunnel as me } from "./HomeFunnel.js";
|
|
28
|
+
import { CustomizeDashboardModal as he } from "./CustomizeDashboardModal.js";
|
|
27
29
|
import { useState as g } from "react";
|
|
28
|
-
import { AlertCircle as _, AlertTriangle as v, ArrowRight as
|
|
30
|
+
import { AlertCircle as _, AlertTriangle as v, ArrowRight as ge, CheckCircle2 as y, DollarSign as _e, Download as ve, Eye as ye, Info as b, Megaphone as x, MousePointerClick as be, Percent as xe, RefreshCw as Se, SlidersHorizontal as Ce, Target as S, TrendingUp as C, UserPlus as we, Users as Te } from "lucide-react";
|
|
29
31
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
30
|
-
import { AuroraBackground as E, EmphasisPanel as D, GradientText as O, NextSteps as
|
|
31
|
-
import { useI18n as
|
|
32
|
+
import { AuroraBackground as E, EmphasisPanel as D, GradientText as O, NextSteps as Ee, PagePurpose as De, ShowMore as Oe } from "@burdenoff/fe-libs/ui";
|
|
33
|
+
import { useI18n as ke } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
32
34
|
//#region src/headshotmarketing/pages/HomePage.tsx
|
|
33
|
-
var
|
|
35
|
+
var k = [
|
|
34
36
|
"var(--color-chart-1)",
|
|
35
37
|
"var(--color-chart-2)",
|
|
36
38
|
"var(--color-chart-3)",
|
|
37
39
|
"var(--color-chart-4)",
|
|
38
40
|
"var(--color-chart-5)",
|
|
39
41
|
"var(--color-chart-6)"
|
|
40
|
-
],
|
|
42
|
+
], Ae = {
|
|
41
43
|
success: y,
|
|
42
44
|
warning: v,
|
|
43
45
|
error: _,
|
|
44
46
|
info: b
|
|
45
|
-
},
|
|
47
|
+
}, je = {
|
|
46
48
|
success: "border-status-success-border bg-status-success-bg text-status-success-text",
|
|
47
49
|
warning: "border-status-warning-border bg-status-warning-bg text-status-warning-text",
|
|
48
50
|
error: "border-status-error-border bg-status-error-bg text-status-error-text",
|
|
49
51
|
info: "border-status-info-border bg-status-info-bg text-status-info-text"
|
|
50
|
-
},
|
|
52
|
+
}, Me = {
|
|
51
53
|
success: "text-status-success-text",
|
|
52
54
|
warning: "text-status-warning-text",
|
|
53
55
|
error: "text-status-error-text",
|
|
54
56
|
info: "text-status-info-text"
|
|
55
|
-
},
|
|
56
|
-
let { navigate: _, basePath: v } = e(), { t: y } =
|
|
57
|
+
}, A = () => {
|
|
58
|
+
let { navigate: _, basePath: v } = e(), { t: y } = ke(), A = (e, t) => {
|
|
57
59
|
let n = y(e);
|
|
58
60
|
return n === e ? t : n;
|
|
59
|
-
}, { data:
|
|
61
|
+
}, { data: j, loading: M, error: Ne, refetch: N } = pe(), [P, Pe] = g("overview"), [F, Fe] = g("revenue"), [Ie, I] = g(!1), L = m((e) => e.dashboardWidgets), Le = m((e) => e.setDashboardWidget), Re = m((e) => e.resetDashboardWidgets), R = (j?.headshotmarketingCampaigns.items ?? []).map((e) => ce(e)), ze = (j?.headshotmarketingAdCampaigns.items ?? []).map((e) => le(e)), z = ue(R), B = de(R, ze), Be = z.map((e) => e.revenue), Ve = z.map((e) => e.conversions), He = z.map((e) => e.cost > 0 ? e.revenue / e.cost : 0), V = A("headshotmarketing.home.charts.revenue", "Revenue"), H = A("headshotmarketing.home.charts.spend", "Spend"), Ue = F === "revenue" ? k[0] : k[3], We = F === "revenue" ? "url(#hm-rev-grad)" : "url(#hm-cost-grad)", Ge = F === "revenue" ? V : H, Ke = F === "revenue" ? "cost" : "revenue", qe = F === "revenue" ? k[3] : k[0], Je = F === "revenue" ? H : V, Ye = [
|
|
60
62
|
{
|
|
61
63
|
key: "name",
|
|
62
|
-
header:
|
|
64
|
+
header: A("headshotmarketing.home.table.columns.name", "Name"),
|
|
63
65
|
sortable: !0
|
|
64
66
|
},
|
|
65
67
|
{
|
|
66
68
|
key: "type",
|
|
67
|
-
header:
|
|
69
|
+
header: A("headshotmarketing.home.table.columns.type", "Type"),
|
|
68
70
|
sortable: !0,
|
|
69
71
|
render: (e) => /* @__PURE__ */ w("span", {
|
|
70
72
|
className: "capitalize",
|
|
@@ -73,37 +75,37 @@ var M = [
|
|
|
73
75
|
},
|
|
74
76
|
{
|
|
75
77
|
key: "status",
|
|
76
|
-
header:
|
|
77
|
-
render: (e) => /* @__PURE__ */ w(
|
|
78
|
+
header: A("headshotmarketing.home.table.columns.status", "Status"),
|
|
79
|
+
render: (e) => /* @__PURE__ */ w(d, { status: e.status })
|
|
78
80
|
},
|
|
79
81
|
{
|
|
80
82
|
key: "impressions",
|
|
81
|
-
header:
|
|
83
|
+
header: A("headshotmarketing.home.table.columns.impressions", "Impressions"),
|
|
82
84
|
sortable: !0,
|
|
83
85
|
render: (e) => c(e.metrics.impressions)
|
|
84
86
|
},
|
|
85
87
|
{
|
|
86
88
|
key: "clicks",
|
|
87
|
-
header:
|
|
89
|
+
header: A("headshotmarketing.home.table.columns.clicks", "Clicks"),
|
|
88
90
|
sortable: !0,
|
|
89
91
|
render: (e) => c(e.metrics.clicks)
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
key: "conversions",
|
|
93
|
-
header:
|
|
95
|
+
header: A("headshotmarketing.home.table.columns.conversions", "Conversions"),
|
|
94
96
|
sortable: !0,
|
|
95
97
|
render: (e) => c(e.metrics.conversions)
|
|
96
98
|
},
|
|
97
99
|
{
|
|
98
100
|
key: "roas",
|
|
99
|
-
header:
|
|
101
|
+
header: A("headshotmarketing.home.table.columns.roas", "ROAS"),
|
|
100
102
|
sortable: !0,
|
|
101
103
|
render: (e) => `${e.metrics.roas.toFixed(1)}x`
|
|
102
104
|
}
|
|
103
|
-
],
|
|
105
|
+
], Xe = [
|
|
104
106
|
{
|
|
105
107
|
key: "name",
|
|
106
|
-
header:
|
|
108
|
+
header: A("headshotmarketing.home.table.columns.name", "Name"),
|
|
107
109
|
sortable: !0,
|
|
108
110
|
render: (e) => /* @__PURE__ */ w("span", {
|
|
109
111
|
className: "font-medium text-text-primary",
|
|
@@ -112,7 +114,7 @@ var M = [
|
|
|
112
114
|
},
|
|
113
115
|
{
|
|
114
116
|
key: "type",
|
|
115
|
-
header:
|
|
117
|
+
header: A("headshotmarketing.home.table.columns.type", "Type"),
|
|
116
118
|
render: (e) => /* @__PURE__ */ w("span", {
|
|
117
119
|
className: "capitalize",
|
|
118
120
|
children: e.type
|
|
@@ -120,29 +122,29 @@ var M = [
|
|
|
120
122
|
},
|
|
121
123
|
{
|
|
122
124
|
key: "status",
|
|
123
|
-
header:
|
|
124
|
-
render: (e) => /* @__PURE__ */ w(
|
|
125
|
+
header: A("headshotmarketing.home.table.columns.status", "Status"),
|
|
126
|
+
render: (e) => /* @__PURE__ */ w(d, { status: e.status })
|
|
125
127
|
},
|
|
126
128
|
{
|
|
127
129
|
key: "spend",
|
|
128
|
-
header:
|
|
130
|
+
header: A("headshotmarketing.home.table.columns.spend", "Spend"),
|
|
129
131
|
sortable: !0,
|
|
130
132
|
className: "tabular-nums",
|
|
131
133
|
render: (e) => s(e.metrics.cost)
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
key: "roas",
|
|
135
|
-
header:
|
|
137
|
+
header: A("headshotmarketing.home.table.columns.roas", "ROAS"),
|
|
136
138
|
sortable: !0,
|
|
137
139
|
className: "tabular-nums",
|
|
138
140
|
render: (e) => `${e.metrics.roas.toFixed(1)}x`
|
|
139
141
|
}
|
|
140
|
-
],
|
|
142
|
+
], Ze = R.slice(0, 5), U = R.reduce((e, t) => (e.revenue += t.metrics.revenue, e.conversions += t.metrics.conversions, e.clicks += t.metrics.clicks, e.impressions += t.metrics.impressions, e), {
|
|
141
143
|
revenue: 0,
|
|
142
144
|
conversions: 0,
|
|
143
145
|
clicks: 0,
|
|
144
146
|
impressions: 0
|
|
145
|
-
}),
|
|
147
|
+
}), W = R.reduce((e, t) => e + t.metrics.cost, 0), Qe = W > 0 ? U.revenue / W : 0, G = U.revenue, K = U.conversions, q = U.clicks, J = U.impressions, Y = Qe, $e = R.filter((e) => e.status === "active").length, X = q > 0 ? K / q * 100 : null, et = X == null ? "—" : `${X.toFixed(1)}%`, Z = J > 0 ? q / J * 100 : null, Q = [
|
|
146
148
|
{
|
|
147
149
|
name: "Impressions",
|
|
148
150
|
count: J
|
|
@@ -158,19 +160,19 @@ var M = [
|
|
|
158
160
|
conversionRate: q > 0 ? K / q * 100 : 0
|
|
159
161
|
}
|
|
160
162
|
].filter((e) => e.count > 0), $ = {
|
|
161
|
-
topChannels:
|
|
163
|
+
topChannels: B,
|
|
162
164
|
recentAlerts: [{
|
|
163
165
|
id: "alert-1",
|
|
164
166
|
type: Y >= 3 ? "success" : "warning",
|
|
165
|
-
message: Y >= 3 ?
|
|
167
|
+
message: Y >= 3 ? A("headshotmarketing.home.alerts.roasHealthy", "ROAS is healthy across active channels.") : A("headshotmarketing.home.alerts.roasDropped", "ROAS dropped below target in this period."),
|
|
166
168
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
167
169
|
}, {
|
|
168
170
|
id: "alert-2",
|
|
169
|
-
type:
|
|
170
|
-
message:
|
|
171
|
+
type: R.length > 0 ? "info" : "error",
|
|
172
|
+
message: R.length > 0 ? `${R.length} ${A("headshotmarketing.home.alerts.campaignsTrackedSuffix", "campaigns are currently tracked.")}` : A("headshotmarketing.home.alerts.noCampaigns", "No campaigns found in workspace data."),
|
|
171
173
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
172
174
|
}]
|
|
173
|
-
},
|
|
175
|
+
}, tt = () => {
|
|
174
176
|
oe("headshotmarketing-dashboard", [
|
|
175
177
|
"Name",
|
|
176
178
|
"Type",
|
|
@@ -181,7 +183,7 @@ var M = [
|
|
|
181
183
|
"Revenue",
|
|
182
184
|
"Cost",
|
|
183
185
|
"ROAS"
|
|
184
|
-
],
|
|
186
|
+
], R.map((e) => [
|
|
185
187
|
e.name,
|
|
186
188
|
e.type,
|
|
187
189
|
e.status,
|
|
@@ -192,22 +194,22 @@ var M = [
|
|
|
192
194
|
e.metrics.cost,
|
|
193
195
|
`${e.metrics.roas.toFixed(2)}x`
|
|
194
196
|
]));
|
|
195
|
-
},
|
|
197
|
+
}, nt = [
|
|
196
198
|
{
|
|
197
199
|
key: "overview",
|
|
198
|
-
label:
|
|
200
|
+
label: A("headshotmarketing.home.tabs.overview", "Overview")
|
|
199
201
|
},
|
|
200
202
|
{
|
|
201
203
|
key: "performance",
|
|
202
|
-
label:
|
|
204
|
+
label: A("headshotmarketing.home.tabs.performance", "Performance")
|
|
203
205
|
},
|
|
204
206
|
{
|
|
205
207
|
key: "audience",
|
|
206
|
-
label:
|
|
208
|
+
label: A("headshotmarketing.home.tabs.audience", "Audience")
|
|
207
209
|
},
|
|
208
210
|
{
|
|
209
211
|
key: "campaigns",
|
|
210
|
-
label:
|
|
212
|
+
label: A("headshotmarketing.home.tabs.campaigns", "Campaigns")
|
|
211
213
|
}
|
|
212
214
|
];
|
|
213
215
|
return /* @__PURE__ */ T("div", {
|
|
@@ -219,172 +221,184 @@ var M = [
|
|
|
219
221
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
220
222
|
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
|
|
221
223
|
className: "text-2xl font-bold tracking-tight text-text-primary sm:text-3xl",
|
|
222
|
-
children: /* @__PURE__ */ w(O, { children:
|
|
224
|
+
children: /* @__PURE__ */ w(O, { children: A("headshotmarketing.home.title", "Dashboard") })
|
|
223
225
|
}), /* @__PURE__ */ w("p", {
|
|
224
226
|
className: "mt-1 text-sm text-text-secondary",
|
|
225
|
-
children:
|
|
227
|
+
children: A("headshotmarketing.home.subtitle", "Your marketing performance at a glance.")
|
|
226
228
|
})] }), /* @__PURE__ */ T("div", {
|
|
227
229
|
className: "flex flex-wrap items-center gap-2",
|
|
228
|
-
children: [
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ T("button", {
|
|
232
|
+
type: "button",
|
|
233
|
+
onClick: () => I(!0),
|
|
234
|
+
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)]",
|
|
235
|
+
children: [/* @__PURE__ */ w(Ce, {
|
|
236
|
+
className: "h-4 w-4",
|
|
237
|
+
"aria-hidden": "true"
|
|
238
|
+
}), A("headshotmarketing.home.actions.customize", "Customize")]
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ T("button", {
|
|
241
|
+
type: "button",
|
|
242
|
+
onClick: () => N(),
|
|
243
|
+
disabled: M,
|
|
244
|
+
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)] disabled:cursor-not-allowed disabled:opacity-60",
|
|
245
|
+
children: [/* @__PURE__ */ w(Se, {
|
|
246
|
+
className: o("h-4 w-4", M && "animate-spin"),
|
|
247
|
+
"aria-hidden": "true"
|
|
248
|
+
}), A("headshotmarketing.home.actions.refresh", "Refresh")]
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ T("button", {
|
|
251
|
+
type: "button",
|
|
252
|
+
onClick: tt,
|
|
253
|
+
disabled: R.length === 0,
|
|
254
|
+
title: R.length === 0 ? A("headshotmarketing.home.actions.exportEmpty", "No campaigns to export yet") : A("headshotmarketing.home.actions.export", "Export"),
|
|
255
|
+
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)] disabled:cursor-not-allowed disabled:opacity-60",
|
|
256
|
+
children: [/* @__PURE__ */ w(ve, {
|
|
257
|
+
className: "h-4 w-4",
|
|
258
|
+
"aria-hidden": "true"
|
|
259
|
+
}), A("headshotmarketing.home.actions.export", "Export")]
|
|
260
|
+
})
|
|
261
|
+
]
|
|
248
262
|
})]
|
|
249
263
|
})]
|
|
250
264
|
}),
|
|
251
|
-
/* @__PURE__ */ w(
|
|
252
|
-
/* @__PURE__ */ w(
|
|
265
|
+
/* @__PURE__ */ w(De, { children: A("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.") }),
|
|
266
|
+
/* @__PURE__ */ w(Ee, {
|
|
253
267
|
storageKey: "headshotmarketing-home",
|
|
254
268
|
steps: [
|
|
255
269
|
{
|
|
256
270
|
id: "campaign",
|
|
257
|
-
label:
|
|
258
|
-
description:
|
|
271
|
+
label: A("headshotmarketing.home.next.newCampaign", "Launch a campaign"),
|
|
272
|
+
description: A("headshotmarketing.home.next.newCampaignDesc", "Set up a marketing campaign end to end."),
|
|
259
273
|
icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
|
|
260
274
|
onClick: () => _(v + "/campaigns/new")
|
|
261
275
|
},
|
|
262
276
|
{
|
|
263
277
|
id: "ads",
|
|
264
|
-
label:
|
|
265
|
-
description:
|
|
278
|
+
label: A("headshotmarketing.home.next.ads", "Run paid ads"),
|
|
279
|
+
description: A("headshotmarketing.home.next.adsDesc", "Drive traffic with Google, Meta or LinkedIn ads."),
|
|
266
280
|
icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" }),
|
|
267
281
|
onClick: () => _(v + "/ads")
|
|
268
282
|
},
|
|
269
283
|
{
|
|
270
284
|
id: "analytics",
|
|
271
|
-
label:
|
|
272
|
-
description:
|
|
285
|
+
label: A("headshotmarketing.home.next.analytics", "Review analytics"),
|
|
286
|
+
description: A("headshotmarketing.home.next.analyticsDesc", "Dig into channel and campaign performance."),
|
|
273
287
|
icon: /* @__PURE__ */ w(C, { className: "h-4 w-4" }),
|
|
274
288
|
onClick: () => _(v + "/analytics")
|
|
275
289
|
}
|
|
276
290
|
]
|
|
277
291
|
}),
|
|
278
|
-
/* @__PURE__ */ T(
|
|
279
|
-
loading:
|
|
280
|
-
error:
|
|
281
|
-
onRetry:
|
|
282
|
-
hasData: !!
|
|
292
|
+
/* @__PURE__ */ T(fe, {
|
|
293
|
+
loading: M,
|
|
294
|
+
error: Ne,
|
|
295
|
+
onRetry: N,
|
|
296
|
+
hasData: !!j,
|
|
283
297
|
children: [
|
|
284
|
-
/* @__PURE__ */ T("div", {
|
|
298
|
+
L.kpis && /* @__PURE__ */ T("div", {
|
|
285
299
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
286
300
|
children: [
|
|
287
301
|
/* @__PURE__ */ w(h, {
|
|
288
302
|
featured: !0,
|
|
289
|
-
title:
|
|
290
|
-
value: s(
|
|
291
|
-
icon: /* @__PURE__ */ w(
|
|
292
|
-
series:
|
|
303
|
+
title: A("headshotmarketing.home.stats.totalRevenue", "Total Revenue"),
|
|
304
|
+
value: s(G),
|
|
305
|
+
icon: /* @__PURE__ */ w(_e, { className: "h-5 w-5" }),
|
|
306
|
+
series: Be,
|
|
293
307
|
seriesColor: "var(--color-chart-1)"
|
|
294
308
|
}),
|
|
295
309
|
/* @__PURE__ */ w(h, {
|
|
296
|
-
title:
|
|
297
|
-
value: String(
|
|
310
|
+
title: A("headshotmarketing.home.stats.activeCampaigns", "Active Campaigns"),
|
|
311
|
+
value: String($e),
|
|
298
312
|
icon: /* @__PURE__ */ w(x, { className: "h-5 w-5" })
|
|
299
313
|
}),
|
|
300
314
|
/* @__PURE__ */ w(h, {
|
|
301
|
-
title:
|
|
315
|
+
title: A("headshotmarketing.home.stats.conversions", "Conversions"),
|
|
302
316
|
value: c(K),
|
|
303
317
|
icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" }),
|
|
304
|
-
series:
|
|
318
|
+
series: Ve,
|
|
305
319
|
seriesColor: "var(--color-chart-2)"
|
|
306
320
|
}),
|
|
307
321
|
/* @__PURE__ */ w(h, {
|
|
308
|
-
title:
|
|
322
|
+
title: A("headshotmarketing.home.stats.roas", "ROAS"),
|
|
309
323
|
value: `${Y.toFixed(1)}x`,
|
|
310
324
|
icon: /* @__PURE__ */ w(C, { className: "h-5 w-5" }),
|
|
311
|
-
series:
|
|
325
|
+
series: He,
|
|
312
326
|
seriesColor: "var(--color-chart-3)"
|
|
313
327
|
})
|
|
314
328
|
]
|
|
315
329
|
}),
|
|
316
|
-
/* @__PURE__ */ w(
|
|
330
|
+
L.secondaryMetrics && /* @__PURE__ */ w(Oe, {
|
|
317
331
|
collapsedHeight: 0,
|
|
318
|
-
label:
|
|
332
|
+
label: A("headshotmarketing.home.actions.moreMetrics", "More metrics"),
|
|
319
333
|
children: /* @__PURE__ */ T("div", {
|
|
320
334
|
className: "grid grid-cols-1 gap-4 pt-1 sm:grid-cols-2 lg:grid-cols-4",
|
|
321
335
|
children: [
|
|
322
|
-
/* @__PURE__ */ w(
|
|
323
|
-
title:
|
|
324
|
-
value:
|
|
325
|
-
icon: /* @__PURE__ */ w(
|
|
336
|
+
/* @__PURE__ */ w(l, {
|
|
337
|
+
title: A("headshotmarketing.home.stats.conversionRate", "Conversion Rate"),
|
|
338
|
+
value: et,
|
|
339
|
+
icon: /* @__PURE__ */ w(xe, { className: "h-5 w-5" })
|
|
326
340
|
}),
|
|
327
|
-
/* @__PURE__ */ w(
|
|
328
|
-
title:
|
|
341
|
+
/* @__PURE__ */ w(l, {
|
|
342
|
+
title: A("headshotmarketing.home.stats.totalImpressions", "Total Impressions"),
|
|
329
343
|
value: J > 0 ? c(J) : "—",
|
|
330
|
-
icon: /* @__PURE__ */ w(
|
|
344
|
+
icon: /* @__PURE__ */ w(ye, { className: "h-5 w-5" })
|
|
331
345
|
}),
|
|
332
|
-
/* @__PURE__ */ w(
|
|
333
|
-
title:
|
|
334
|
-
value: Z == null ? "—" :
|
|
335
|
-
icon: /* @__PURE__ */ w(
|
|
346
|
+
/* @__PURE__ */ w(l, {
|
|
347
|
+
title: A("headshotmarketing.home.stats.clickThroughRate", "Click-Through Rate"),
|
|
348
|
+
value: Z == null ? "—" : se(Z),
|
|
349
|
+
icon: /* @__PURE__ */ w(be, { className: "h-5 w-5" })
|
|
336
350
|
}),
|
|
337
|
-
/* @__PURE__ */ w(
|
|
338
|
-
title:
|
|
351
|
+
/* @__PURE__ */ w(l, {
|
|
352
|
+
title: A("headshotmarketing.home.stats.totalLeads", "Total Leads"),
|
|
339
353
|
value: "—",
|
|
340
|
-
icon: /* @__PURE__ */ w(
|
|
354
|
+
icon: /* @__PURE__ */ w(we, { className: "h-5 w-5" })
|
|
341
355
|
})
|
|
342
356
|
]
|
|
343
357
|
})
|
|
344
358
|
}),
|
|
345
|
-
/* @__PURE__ */ T(D, { children: [/* @__PURE__ */ w("h3", {
|
|
359
|
+
L.monthlyGoals && /* @__PURE__ */ T(D, { children: [/* @__PURE__ */ w("h3", {
|
|
346
360
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
347
|
-
children:
|
|
348
|
-
}), /* @__PURE__ */ w(
|
|
361
|
+
children: A("headshotmarketing.home.sections.monthlyGoals", "Monthly Goals")
|
|
362
|
+
}), /* @__PURE__ */ w(f, {
|
|
349
363
|
icon: /* @__PURE__ */ w(S, { className: "h-10 w-10" }),
|
|
350
|
-
title:
|
|
351
|
-
description:
|
|
364
|
+
title: A("headshotmarketing.home.goals.emptyTitle", "No goal data yet"),
|
|
365
|
+
description: A("headshotmarketing.home.goals.emptyDesc", "Set monthly targets to track progress against revenue, customers, ROI and traffic.")
|
|
352
366
|
})] }),
|
|
353
|
-
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("div", {
|
|
367
|
+
L.insights && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("div", {
|
|
354
368
|
className: "flex flex-nowrap items-center gap-1 overflow-x-auto border-b border-border-subtle",
|
|
355
|
-
children:
|
|
356
|
-
onClick: () =>
|
|
357
|
-
className: o("shrink-0 whitespace-nowrap px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px",
|
|
369
|
+
children: nt.map((e) => /* @__PURE__ */ w("button", {
|
|
370
|
+
onClick: () => Pe(e.key),
|
|
371
|
+
className: o("shrink-0 whitespace-nowrap px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", P === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
358
372
|
children: e.label
|
|
359
373
|
}, e.key))
|
|
360
374
|
}), /* @__PURE__ */ T("div", {
|
|
361
375
|
className: "mt-6",
|
|
362
376
|
children: [
|
|
363
|
-
|
|
377
|
+
P === "overview" && /* @__PURE__ */ T("div", {
|
|
364
378
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
365
379
|
children: [
|
|
366
|
-
/* @__PURE__ */ w(
|
|
380
|
+
/* @__PURE__ */ w(p, {
|
|
367
381
|
className: "lg:col-span-2",
|
|
368
|
-
title:
|
|
369
|
-
subtitle:
|
|
382
|
+
title: A("headshotmarketing.home.charts.revenueTrend", "Revenue & Spend"),
|
|
383
|
+
subtitle: A("headshotmarketing.home.charts.last30Days", "Last 30 days"),
|
|
370
384
|
actions: /* @__PURE__ */ w("div", {
|
|
371
385
|
className: "inline-flex items-center rounded-md border border-border-seam bg-bg-surface p-0.5",
|
|
372
386
|
role: "tablist",
|
|
373
|
-
"aria-label":
|
|
387
|
+
"aria-label": A("headshotmarketing.home.charts.metricToggle", "Chart metric"),
|
|
374
388
|
children: ["revenue", "cost"].map((e) => /* @__PURE__ */ w("button", {
|
|
375
389
|
type: "button",
|
|
376
390
|
role: "tab",
|
|
377
|
-
"aria-selected":
|
|
378
|
-
onClick: () =>
|
|
379
|
-
className: o("rounded px-3 py-1 text-xs font-medium transition-colors",
|
|
380
|
-
children: e === "revenue" ?
|
|
391
|
+
"aria-selected": F === e,
|
|
392
|
+
onClick: () => Fe(e),
|
|
393
|
+
className: o("rounded px-3 py-1 text-xs font-medium transition-colors", F === e ? "bg-action-primary-bg text-action-primary-text shadow-pop" : "text-text-secondary hover:text-text-primary"),
|
|
394
|
+
children: e === "revenue" ? V : H
|
|
381
395
|
}, e))
|
|
382
396
|
}),
|
|
383
397
|
children: /* @__PURE__ */ w(r, {
|
|
384
398
|
width: "100%",
|
|
385
399
|
height: 300,
|
|
386
|
-
children: /* @__PURE__ */ T(
|
|
387
|
-
data:
|
|
400
|
+
children: /* @__PURE__ */ T(a, {
|
|
401
|
+
data: z,
|
|
388
402
|
margin: {
|
|
389
403
|
top: 10,
|
|
390
404
|
right: 8,
|
|
@@ -400,11 +414,11 @@ var M = [
|
|
|
400
414
|
y2: "1",
|
|
401
415
|
children: [/* @__PURE__ */ w("stop", {
|
|
402
416
|
offset: "0%",
|
|
403
|
-
stopColor:
|
|
417
|
+
stopColor: k[0],
|
|
404
418
|
stopOpacity: .35
|
|
405
419
|
}), /* @__PURE__ */ w("stop", {
|
|
406
420
|
offset: "100%",
|
|
407
|
-
stopColor:
|
|
421
|
+
stopColor: k[0],
|
|
408
422
|
stopOpacity: .02
|
|
409
423
|
})]
|
|
410
424
|
}), /* @__PURE__ */ T("linearGradient", {
|
|
@@ -415,20 +429,20 @@ var M = [
|
|
|
415
429
|
y2: "1",
|
|
416
430
|
children: [/* @__PURE__ */ w("stop", {
|
|
417
431
|
offset: "0%",
|
|
418
|
-
stopColor:
|
|
432
|
+
stopColor: k[3],
|
|
419
433
|
stopOpacity: .35
|
|
420
434
|
}), /* @__PURE__ */ w("stop", {
|
|
421
435
|
offset: "100%",
|
|
422
|
-
stopColor:
|
|
436
|
+
stopColor: k[3],
|
|
423
437
|
stopOpacity: .02
|
|
424
438
|
})]
|
|
425
439
|
})] }),
|
|
426
|
-
/* @__PURE__ */ w(
|
|
440
|
+
/* @__PURE__ */ w(ne, {
|
|
427
441
|
strokeDasharray: "3 3",
|
|
428
442
|
vertical: !1,
|
|
429
443
|
className: "stroke-border"
|
|
430
444
|
}),
|
|
431
|
-
/* @__PURE__ */ w(
|
|
445
|
+
/* @__PURE__ */ w(re, {
|
|
432
446
|
dataKey: "date",
|
|
433
447
|
tick: { fontSize: 11 },
|
|
434
448
|
className: "text-text-secondary",
|
|
@@ -436,7 +450,7 @@ var M = [
|
|
|
436
450
|
tickLine: !1,
|
|
437
451
|
axisLine: !1
|
|
438
452
|
}),
|
|
439
|
-
/* @__PURE__ */ w(
|
|
453
|
+
/* @__PURE__ */ w(ie, {
|
|
440
454
|
tick: { fontSize: 11 },
|
|
441
455
|
className: "text-text-secondary",
|
|
442
456
|
tickFormatter: (e) => c(e),
|
|
@@ -452,38 +466,38 @@ var M = [
|
|
|
452
466
|
},
|
|
453
467
|
formatter: (e) => s(e)
|
|
454
468
|
}),
|
|
455
|
-
/* @__PURE__ */ w(
|
|
469
|
+
/* @__PURE__ */ w(i, {
|
|
456
470
|
type: "monotone",
|
|
457
|
-
dataKey:
|
|
458
|
-
stroke:
|
|
471
|
+
dataKey: Ke,
|
|
472
|
+
stroke: qe,
|
|
459
473
|
strokeWidth: 1.25,
|
|
460
474
|
strokeDasharray: "4 3",
|
|
461
475
|
fill: "none",
|
|
462
|
-
name:
|
|
476
|
+
name: Je,
|
|
463
477
|
isAnimationActive: !1
|
|
464
478
|
}),
|
|
465
|
-
/* @__PURE__ */ w(
|
|
479
|
+
/* @__PURE__ */ w(i, {
|
|
466
480
|
type: "monotone",
|
|
467
|
-
dataKey:
|
|
468
|
-
stroke:
|
|
481
|
+
dataKey: F,
|
|
482
|
+
stroke: Ue,
|
|
469
483
|
strokeWidth: 2.25,
|
|
470
|
-
fill:
|
|
471
|
-
name:
|
|
484
|
+
fill: We,
|
|
485
|
+
name: Ge
|
|
472
486
|
})
|
|
473
487
|
]
|
|
474
488
|
})
|
|
475
489
|
})
|
|
476
490
|
}),
|
|
477
|
-
/* @__PURE__ */ w(
|
|
478
|
-
title:
|
|
479
|
-
subtitle:
|
|
491
|
+
/* @__PURE__ */ w(p, {
|
|
492
|
+
title: A("headshotmarketing.home.charts.conversionFunnel", "Conversion Funnel"),
|
|
493
|
+
subtitle: A("headshotmarketing.home.charts.currentPeriod", "Current period"),
|
|
480
494
|
children: Q.length > 0 ? /* @__PURE__ */ w("div", {
|
|
481
495
|
className: "py-2",
|
|
482
|
-
children: /* @__PURE__ */ w(
|
|
483
|
-
}) : /* @__PURE__ */ w(
|
|
496
|
+
children: /* @__PURE__ */ w(me, { stages: Q })
|
|
497
|
+
}) : /* @__PURE__ */ w(f, {
|
|
484
498
|
icon: /* @__PURE__ */ w(S, { className: "h-10 w-10" }),
|
|
485
|
-
title:
|
|
486
|
-
description:
|
|
499
|
+
title: A("headshotmarketing.home.funnel.emptyTitle", "No funnel data yet"),
|
|
500
|
+
description: A("headshotmarketing.home.funnel.emptyDesc", "Stage-by-stage conversion appears here once campaign activity is tracked.")
|
|
487
501
|
})
|
|
488
502
|
}),
|
|
489
503
|
/* @__PURE__ */ T("div", {
|
|
@@ -492,36 +506,36 @@ var M = [
|
|
|
492
506
|
className: "flex items-center justify-between gap-3",
|
|
493
507
|
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
494
508
|
className: "text-sm font-semibold text-text-primary",
|
|
495
|
-
children:
|
|
509
|
+
children: A("headshotmarketing.home.sections.recentCampaigns", "Recent Campaigns")
|
|
496
510
|
}), /* @__PURE__ */ w("p", {
|
|
497
511
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
498
|
-
children:
|
|
512
|
+
children: A("headshotmarketing.home.sections.recentCampaignsSub", "Latest activity at a glance")
|
|
499
513
|
})] }), /* @__PURE__ */ T("button", {
|
|
500
514
|
type: "button",
|
|
501
515
|
onClick: () => _(v + "/campaigns"),
|
|
502
516
|
className: "inline-flex min-h-[44px] items-center gap-1 rounded-md px-2 text-xs font-medium text-action-primary-bg transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
503
|
-
children: [
|
|
517
|
+
children: [A("headshotmarketing.home.actions.viewAll", "View all"), /* @__PURE__ */ w(ge, {
|
|
504
518
|
className: "h-3.5 w-3.5",
|
|
505
519
|
"aria-hidden": "true"
|
|
506
520
|
})]
|
|
507
521
|
})]
|
|
508
|
-
}), /* @__PURE__ */ w(
|
|
509
|
-
data:
|
|
510
|
-
columns:
|
|
522
|
+
}), /* @__PURE__ */ w(u, {
|
|
523
|
+
data: Ze,
|
|
524
|
+
columns: Xe,
|
|
511
525
|
pageSize: 5,
|
|
512
526
|
onRowClick: (e) => _(v + "/campaigns/" + e.id),
|
|
513
|
-
emptyMessage:
|
|
527
|
+
emptyMessage: A("headshotmarketing.home.table.empty", "No campaigns found")
|
|
514
528
|
})]
|
|
515
529
|
}),
|
|
516
|
-
/* @__PURE__ */ w(
|
|
517
|
-
title:
|
|
518
|
-
subtitle:
|
|
519
|
-
children:
|
|
530
|
+
/* @__PURE__ */ w(p, {
|
|
531
|
+
title: A("headshotmarketing.home.charts.channelPerformance", "Channel Performance"),
|
|
532
|
+
subtitle: A("headshotmarketing.home.charts.revenueDistribution", "Revenue distribution"),
|
|
533
|
+
children: B.length > 0 ? /* @__PURE__ */ w(r, {
|
|
520
534
|
width: "100%",
|
|
521
535
|
height: 300,
|
|
522
|
-
children: /* @__PURE__ */ T(
|
|
523
|
-
/* @__PURE__ */ w(
|
|
524
|
-
data:
|
|
536
|
+
children: /* @__PURE__ */ T(ae, { children: [
|
|
537
|
+
/* @__PURE__ */ w(te, {
|
|
538
|
+
data: B,
|
|
525
539
|
dataKey: "revenue",
|
|
526
540
|
nameKey: "channel",
|
|
527
541
|
cx: "50%",
|
|
@@ -531,7 +545,7 @@ var M = [
|
|
|
531
545
|
paddingAngle: 2,
|
|
532
546
|
stroke: "var(--color-card)",
|
|
533
547
|
strokeWidth: 2,
|
|
534
|
-
children:
|
|
548
|
+
children: B.map((e, t) => /* @__PURE__ */ w(ee, { fill: k[t % k.length] }, e.channel))
|
|
535
549
|
}),
|
|
536
550
|
/* @__PURE__ */ w(n, {
|
|
537
551
|
contentStyle: {
|
|
@@ -546,19 +560,19 @@ var M = [
|
|
|
546
560
|
wrapperStyle: { fontSize: 12 }
|
|
547
561
|
})
|
|
548
562
|
] })
|
|
549
|
-
}) : /* @__PURE__ */ w(
|
|
563
|
+
}) : /* @__PURE__ */ w(f, {
|
|
550
564
|
icon: /* @__PURE__ */ w(C, { className: "h-10 w-10" }),
|
|
551
|
-
title:
|
|
552
|
-
description:
|
|
565
|
+
title: A("headshotmarketing.home.channels.emptyTitle", "No channel data yet"),
|
|
566
|
+
description: A("headshotmarketing.home.channels.emptyDesc", "Revenue by channel appears once campaigns start delivering.")
|
|
553
567
|
})
|
|
554
568
|
})
|
|
555
569
|
]
|
|
556
570
|
}),
|
|
557
|
-
|
|
571
|
+
P === "performance" && /* @__PURE__ */ T("div", {
|
|
558
572
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
559
573
|
children: [/* @__PURE__ */ w("h3", {
|
|
560
574
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
561
|
-
children:
|
|
575
|
+
children: A("headshotmarketing.home.sections.topChannels", "Top Channels")
|
|
562
576
|
}), /* @__PURE__ */ w("div", {
|
|
563
577
|
className: "space-y-4",
|
|
564
578
|
children: $.topChannels.slice(0, 5).map((e) => /* @__PURE__ */ T("div", {
|
|
@@ -583,45 +597,45 @@ var M = [
|
|
|
583
597
|
e.roas.toFixed(1),
|
|
584
598
|
"x",
|
|
585
599
|
" ",
|
|
586
|
-
|
|
600
|
+
A("headshotmarketing.home.stats.roas", "ROAS")
|
|
587
601
|
]
|
|
588
602
|
})]
|
|
589
603
|
})]
|
|
590
604
|
}, e.channel))
|
|
591
605
|
})]
|
|
592
606
|
}),
|
|
593
|
-
|
|
607
|
+
P === "audience" && /* @__PURE__ */ T("div", {
|
|
594
608
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
595
609
|
children: [/* @__PURE__ */ w("h3", {
|
|
596
610
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
597
|
-
children:
|
|
598
|
-
}), /* @__PURE__ */ w(
|
|
599
|
-
icon: /* @__PURE__ */ w(
|
|
600
|
-
title:
|
|
601
|
-
description:
|
|
611
|
+
children: A("headshotmarketing.home.sections.deviceBreakdown", "Device Breakdown")
|
|
612
|
+
}), /* @__PURE__ */ w(f, {
|
|
613
|
+
icon: /* @__PURE__ */ w(Te, { className: "h-10 w-10" }),
|
|
614
|
+
title: A("headshotmarketing.home.devices.emptyTitle", "No audience data yet"),
|
|
615
|
+
description: A("headshotmarketing.home.devices.emptyDesc", "Device and session breakdowns will appear here once audience analytics are available.")
|
|
602
616
|
})]
|
|
603
617
|
}),
|
|
604
|
-
|
|
605
|
-
data:
|
|
606
|
-
columns:
|
|
618
|
+
P === "campaigns" && /* @__PURE__ */ w(u, {
|
|
619
|
+
data: R,
|
|
620
|
+
columns: Ye,
|
|
607
621
|
pageSize: 8,
|
|
608
622
|
onRowClick: (e) => _(v + "/campaigns/" + e.id),
|
|
609
|
-
emptyMessage:
|
|
623
|
+
emptyMessage: A("headshotmarketing.home.table.empty", "No campaigns found")
|
|
610
624
|
})
|
|
611
625
|
]
|
|
612
626
|
})] }),
|
|
613
|
-
/* @__PURE__ */ T("div", {
|
|
627
|
+
L.alerts && /* @__PURE__ */ T("div", {
|
|
614
628
|
className: "rounded-card border border-border-seam bg-gloss-card p-6 shadow-[var(--shadow-pop)]",
|
|
615
629
|
children: [/* @__PURE__ */ w("h3", {
|
|
616
630
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
617
|
-
children:
|
|
631
|
+
children: A("headshotmarketing.home.sections.recentAlerts", "Recent Alerts")
|
|
618
632
|
}), /* @__PURE__ */ w("div", {
|
|
619
633
|
className: "space-y-3",
|
|
620
634
|
children: $.recentAlerts.map((e) => {
|
|
621
|
-
let t =
|
|
635
|
+
let t = Ae[e.type] || b;
|
|
622
636
|
return /* @__PURE__ */ T("div", {
|
|
623
|
-
className: o("flex items-start gap-3 rounded-lg border p-3",
|
|
624
|
-
children: [/* @__PURE__ */ w(t, { className: o("h-4 w-4 mt-0.5 flex-shrink-0",
|
|
637
|
+
className: o("flex items-start gap-3 rounded-lg border p-3", je[e.type]),
|
|
638
|
+
children: [/* @__PURE__ */ w(t, { className: o("h-4 w-4 mt-0.5 flex-shrink-0", Me[e.type]) }), /* @__PURE__ */ T("div", {
|
|
625
639
|
className: "flex-1 min-w-0",
|
|
626
640
|
children: [/* @__PURE__ */ w("p", {
|
|
627
641
|
className: "text-sm",
|
|
@@ -636,11 +650,18 @@ var M = [
|
|
|
636
650
|
})]
|
|
637
651
|
})
|
|
638
652
|
]
|
|
653
|
+
}),
|
|
654
|
+
/* @__PURE__ */ w(he, {
|
|
655
|
+
open: Ie,
|
|
656
|
+
onClose: () => I(!1),
|
|
657
|
+
visibility: L,
|
|
658
|
+
onToggle: Le,
|
|
659
|
+
onReset: Re
|
|
639
660
|
})
|
|
640
661
|
]
|
|
641
662
|
});
|
|
642
663
|
};
|
|
643
664
|
//#endregion
|
|
644
|
-
export {
|
|
665
|
+
export { A as HomePage };
|
|
645
666
|
|
|
646
667
|
//# sourceMappingURL=HomePage.js.map
|