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