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