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