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