@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,23 +1,67 @@
|
|
|
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 {
|
|
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 { Bar as i } from "../../../node_modules/recharts/es6/cartesian/Bar.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 c } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
10
|
+
import { BarChart as ee } from "../../../node_modules/recharts/es6/chart/BarChart.js";
|
|
11
|
+
import { AreaChart as l } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
12
|
+
import { Funnel as u } from "../../../node_modules/recharts/es6/numberAxis/Funnel.js";
|
|
13
|
+
import { FunnelChart as d } from "../../../node_modules/recharts/es6/chart/FunnelChart.js";
|
|
14
|
+
import { exportRowsToCsv as f, formatCurrency as p, formatNumber as m, formatPercentage as h } from "../../utils/helpers.js";
|
|
15
|
+
import { toCampaignModel as g } from "../../utils/campaignMapper.js";
|
|
16
|
+
import { toAdCampaignModel as _ } from "../../utils/adsMapper.js";
|
|
17
|
+
import { toCampaignTimeSeries as v, toChannelPerformance as y, toFunnelStages as b } from "../../utils/analyticsMapper.js";
|
|
18
|
+
import { PageLayout as te } from "../../components/PageLayout.js";
|
|
19
|
+
import { StatCard as x } from "../../components/StatCard.js";
|
|
20
|
+
import { DataTable as S } from "../../components/DataTable.js";
|
|
21
|
+
import { StatusBadge as ne } from "../../components/StatusBadge.js";
|
|
22
|
+
import { ChartCard as C } from "../../components/ChartCard.js";
|
|
23
|
+
import { QueryStateBoundary as re } from "../../components/QueryStateBoundary.js";
|
|
12
24
|
import "../../components/index.js";
|
|
13
|
-
import { useHeadshotmarketingBootstrap as
|
|
14
|
-
import { BarChart3 as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { EmphasisPanel as
|
|
25
|
+
import { useHeadshotmarketingBootstrap as ie } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
26
|
+
import { ArrowUpRight as ae, BarChart3 as w, DollarSign as T, Download as E, FileDown as oe, Filter as se, Percent as ce, Share2 as le, Target as D, TrendingUp as O, Users as ue } from "lucide-react";
|
|
27
|
+
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
28
|
+
import { EmphasisPanel as j, GradientText as de, PagePurpose as fe } from "@burdenoff/fe-libs/ui";
|
|
17
29
|
//#region src/headshotmarketing/pages/analytics/ReportsPage.tsx
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
var M = [
|
|
31
|
+
"var(--color-chart-1)",
|
|
32
|
+
"var(--color-chart-2)",
|
|
33
|
+
"var(--color-chart-3)",
|
|
34
|
+
"var(--color-chart-4)",
|
|
35
|
+
"var(--color-chart-5)",
|
|
36
|
+
"var(--color-chart-6)"
|
|
37
|
+
], N = {
|
|
38
|
+
background: "var(--color-bg-surface)",
|
|
39
|
+
border: "1px solid var(--color-border-seam)",
|
|
40
|
+
borderRadius: "0.5rem",
|
|
41
|
+
boxShadow: "var(--shadow-pop)",
|
|
42
|
+
color: "var(--color-text-primary)",
|
|
43
|
+
fontSize: "0.75rem"
|
|
44
|
+
}, P = { color: "var(--color-text-secondary)" }, F = { color: "var(--color-text-primary)" }, I = (e) => e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1), L = ({ icon: e, message: t, height: n }) => /* @__PURE__ */ A("div", {
|
|
45
|
+
className: "flex flex-col items-center justify-center gap-2 text-center",
|
|
46
|
+
style: { height: n },
|
|
47
|
+
children: [/* @__PURE__ */ k("span", {
|
|
48
|
+
className: "text-text-secondary/70",
|
|
49
|
+
children: e
|
|
50
|
+
}), /* @__PURE__ */ k("p", {
|
|
51
|
+
className: "text-xs text-text-secondary",
|
|
52
|
+
children: t
|
|
53
|
+
})]
|
|
54
|
+
}), R = () => {
|
|
55
|
+
let { navigate: R, basePath: z } = e(), { data: B, loading: V, error: pe, refetch: me } = ie(), H = (B?.headshotmarketingCampaigns.items ?? []).map((e) => g(e)), U = y(H, (B?.headshotmarketingAdCampaigns.items ?? []).map((e) => _(e))), W = U.reduce((e, t) => e + t.revenue, 0), G = U.reduce((e, t) => e + t.cost, 0), K = U.reduce((e, t) => e + t.conversions, 0), q = U.reduce((e, t) => e + t.impressions, 0), J = U.reduce((e, t) => e + t.clicks, 0), he = G > 0 ? W / G : 0, ge = q > 0 ? J / q * 100 : 0, Y = v(H), X = b(q, J, K), _e = X[0]?.value ?? 0, ve = X.map((e) => ({
|
|
56
|
+
stage: e.stage,
|
|
57
|
+
value: e.value,
|
|
58
|
+
fill: e.color
|
|
59
|
+
})), ye = U.slice(0, 6).map((e) => ({
|
|
60
|
+
channel: I(e.channel),
|
|
61
|
+
revenue: e.revenue,
|
|
62
|
+
cost: e.cost
|
|
63
|
+
})), Z = !!B, be = Y.length > 0, xe = U.length > 0, Se = _e > 0, Q = U.length > 0, Ce = H.length > 0, we = Y.length > 1 ? `${Y[0].date} – ${Y[Y.length - 1].date}` : "Live marketing performance", $ = () => {
|
|
64
|
+
f("channel-performance", [
|
|
21
65
|
"Channel",
|
|
22
66
|
"Revenue",
|
|
23
67
|
"Cost",
|
|
@@ -26,7 +70,7 @@ var E = () => {
|
|
|
26
70
|
"CTR",
|
|
27
71
|
"Impressions",
|
|
28
72
|
"Clicks"
|
|
29
|
-
],
|
|
73
|
+
], U.map((e) => [
|
|
30
74
|
e.channel,
|
|
31
75
|
e.revenue,
|
|
32
76
|
e.cost,
|
|
@@ -36,8 +80,8 @@ var E = () => {
|
|
|
36
80
|
e.impressions,
|
|
37
81
|
e.clicks
|
|
38
82
|
]));
|
|
39
|
-
},
|
|
40
|
-
|
|
83
|
+
}, Te = () => {
|
|
84
|
+
f("campaign-performance", [
|
|
41
85
|
"Campaign",
|
|
42
86
|
"Type",
|
|
43
87
|
"Status",
|
|
@@ -45,7 +89,7 @@ var E = () => {
|
|
|
45
89
|
"Cost",
|
|
46
90
|
"Conversions",
|
|
47
91
|
"ROAS"
|
|
48
|
-
],
|
|
92
|
+
], H.map((e) => [
|
|
49
93
|
e.name,
|
|
50
94
|
e.type,
|
|
51
95
|
e.status,
|
|
@@ -54,17 +98,20 @@ var E = () => {
|
|
|
54
98
|
e.metrics.conversions,
|
|
55
99
|
`${e.metrics.roas.toFixed(2)}x`
|
|
56
100
|
]));
|
|
57
|
-
},
|
|
101
|
+
}, Ee = () => {
|
|
102
|
+
let e = document.title;
|
|
103
|
+
document.title = `Headshot Marketing Report — ${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}`, window.print(), document.title = e;
|
|
104
|
+
}, De = [
|
|
58
105
|
{
|
|
59
106
|
key: "channel",
|
|
60
107
|
header: "Channel",
|
|
61
108
|
sortable: !0,
|
|
62
|
-
render: (e) => /* @__PURE__ */
|
|
109
|
+
render: (e) => /* @__PURE__ */ A("div", {
|
|
63
110
|
className: "flex items-center gap-2",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ k("div", {
|
|
65
112
|
className: "h-3 w-3 rounded-full",
|
|
66
113
|
style: { backgroundColor: e.color }
|
|
67
|
-
}), /* @__PURE__ */
|
|
114
|
+
}), /* @__PURE__ */ k("span", {
|
|
68
115
|
className: "font-medium text-text-primary capitalize",
|
|
69
116
|
children: e.channel
|
|
70
117
|
})]
|
|
@@ -74,19 +121,19 @@ var E = () => {
|
|
|
74
121
|
key: "revenue",
|
|
75
122
|
header: "Revenue",
|
|
76
123
|
sortable: !0,
|
|
77
|
-
render: (e) =>
|
|
124
|
+
render: (e) => p(e.revenue)
|
|
78
125
|
},
|
|
79
126
|
{
|
|
80
127
|
key: "cost",
|
|
81
128
|
header: "Cost",
|
|
82
129
|
sortable: !0,
|
|
83
|
-
render: (e) =>
|
|
130
|
+
render: (e) => p(e.cost)
|
|
84
131
|
},
|
|
85
132
|
{
|
|
86
133
|
key: "conversions",
|
|
87
134
|
header: "Conversions",
|
|
88
135
|
sortable: !0,
|
|
89
|
-
render: (e) =>
|
|
136
|
+
render: (e) => m(e.conversions)
|
|
90
137
|
},
|
|
91
138
|
{
|
|
92
139
|
key: "roas",
|
|
@@ -98,14 +145,14 @@ var E = () => {
|
|
|
98
145
|
key: "ctr",
|
|
99
146
|
header: "CTR",
|
|
100
147
|
sortable: !0,
|
|
101
|
-
render: (e) =>
|
|
148
|
+
render: (e) => h(e.ctr)
|
|
102
149
|
}
|
|
103
|
-
],
|
|
150
|
+
], Oe = [
|
|
104
151
|
{
|
|
105
152
|
key: "name",
|
|
106
153
|
header: "Campaign",
|
|
107
154
|
sortable: !0,
|
|
108
|
-
render: (e) => /* @__PURE__ */
|
|
155
|
+
render: (e) => /* @__PURE__ */ k("span", {
|
|
109
156
|
className: "font-medium text-text-primary",
|
|
110
157
|
children: e.name
|
|
111
158
|
})
|
|
@@ -113,19 +160,19 @@ var E = () => {
|
|
|
113
160
|
{
|
|
114
161
|
key: "status",
|
|
115
162
|
header: "Status",
|
|
116
|
-
render: (e) => /* @__PURE__ */
|
|
163
|
+
render: (e) => /* @__PURE__ */ k(ne, { status: e.status })
|
|
117
164
|
},
|
|
118
165
|
{
|
|
119
166
|
key: "revenue",
|
|
120
167
|
header: "Revenue",
|
|
121
168
|
sortable: !0,
|
|
122
|
-
render: (e) =>
|
|
169
|
+
render: (e) => p(e.metrics.revenue)
|
|
123
170
|
},
|
|
124
171
|
{
|
|
125
172
|
key: "conversions",
|
|
126
173
|
header: "Conversions",
|
|
127
174
|
sortable: !0,
|
|
128
|
-
render: (e) =>
|
|
175
|
+
render: (e) => m(e.metrics.conversions)
|
|
129
176
|
},
|
|
130
177
|
{
|
|
131
178
|
key: "roas",
|
|
@@ -133,161 +180,404 @@ var E = () => {
|
|
|
133
180
|
sortable: !0,
|
|
134
181
|
render: (e) => `${e.metrics.roas.toFixed(1)}x`
|
|
135
182
|
}
|
|
136
|
-
],
|
|
183
|
+
], ke = [
|
|
137
184
|
{
|
|
138
185
|
id: "campaigns",
|
|
139
186
|
name: "Campaign performance",
|
|
140
187
|
description: "Revenue, conversions and ROAS by campaign.",
|
|
141
|
-
icon: /* @__PURE__ */
|
|
188
|
+
icon: /* @__PURE__ */ k(D, { className: "h-5 w-5" }),
|
|
142
189
|
segment: "/analytics/campaigns"
|
|
143
190
|
},
|
|
144
191
|
{
|
|
145
192
|
id: "channels",
|
|
146
193
|
name: "Channel breakdown",
|
|
147
194
|
description: "Where revenue and spend land across channels.",
|
|
148
|
-
icon: /* @__PURE__ */
|
|
195
|
+
icon: /* @__PURE__ */ k(w, { className: "h-5 w-5" }),
|
|
149
196
|
segment: "/analytics"
|
|
150
197
|
},
|
|
151
198
|
{
|
|
152
199
|
id: "ads",
|
|
153
200
|
name: "Ad performance",
|
|
154
201
|
description: "Paid spend, CPC and ROAS by platform.",
|
|
155
|
-
icon: /* @__PURE__ */
|
|
202
|
+
icon: /* @__PURE__ */ k(O, { className: "h-5 w-5" }),
|
|
156
203
|
segment: "/analytics/ads"
|
|
157
204
|
},
|
|
158
205
|
{
|
|
159
206
|
id: "social",
|
|
160
207
|
name: "Social digest",
|
|
161
208
|
description: "Reach, engagement and top posts by platform.",
|
|
162
|
-
icon: /* @__PURE__ */
|
|
209
|
+
icon: /* @__PURE__ */ k(le, { className: "h-5 w-5" }),
|
|
163
210
|
segment: "/analytics/social"
|
|
164
211
|
},
|
|
165
212
|
{
|
|
166
213
|
id: "audience",
|
|
167
214
|
name: "Audience insights",
|
|
168
215
|
description: "Geography and device breakdown for your traffic.",
|
|
169
|
-
icon: /* @__PURE__ */
|
|
216
|
+
icon: /* @__PURE__ */ k(ue, { className: "h-5 w-5" }),
|
|
170
217
|
segment: "/analytics"
|
|
171
218
|
},
|
|
172
219
|
{
|
|
173
220
|
id: "pipeline",
|
|
174
221
|
name: "Lead pipeline",
|
|
175
222
|
description: "Deals and value across your CRM pipeline.",
|
|
176
|
-
icon: /* @__PURE__ */
|
|
223
|
+
icon: /* @__PURE__ */ k(T, { className: "h-5 w-5" }),
|
|
177
224
|
segment: "/crm/pipeline"
|
|
178
225
|
}
|
|
179
226
|
];
|
|
180
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ A(te, {
|
|
181
228
|
title: "Reports & Exports",
|
|
182
|
-
description: "Live marketing performance you can
|
|
183
|
-
actions: /* @__PURE__ */ C("button", {
|
|
184
|
-
type: "button",
|
|
185
|
-
onClick: V,
|
|
186
|
-
disabled: !z,
|
|
187
|
-
title: z ? "Download channel performance as a CSV file" : "No performance data to export yet",
|
|
188
|
-
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:cursor-not-allowed disabled:opacity-60",
|
|
189
|
-
children: [/* @__PURE__ */ S(_, { className: "h-4 w-4" }), "Export CSV"]
|
|
190
|
-
}),
|
|
229
|
+
description: "Live marketing performance you can read, export or share",
|
|
191
230
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
loading:
|
|
195
|
-
error:
|
|
196
|
-
onRetry:
|
|
197
|
-
hasData:
|
|
231
|
+
/* @__PURE__ */ k(fe, { children: "Turn your marketing data into something you can share. This page composes a live executive summary from the same channel and campaign performance that powers analytics — read it as KPIs, trend, comparison and funnel visualizations, export any table to CSV, save the whole report to PDF, or jump into the full interactive view." }),
|
|
232
|
+
/* @__PURE__ */ A(re, {
|
|
233
|
+
loading: V,
|
|
234
|
+
error: pe,
|
|
235
|
+
onRetry: me,
|
|
236
|
+
hasData: Z,
|
|
198
237
|
children: [
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
className: "
|
|
238
|
+
/* @__PURE__ */ A(j, { children: [/* @__PURE__ */ A("div", {
|
|
239
|
+
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
240
|
+
children: [/* @__PURE__ */ A("div", { children: [
|
|
241
|
+
/* @__PURE__ */ A("span", {
|
|
242
|
+
className: "inline-flex items-center gap-1.5 rounded-full border border-border-seam bg-bg-surface/60 px-2.5 py-0.5 text-xs font-medium text-text-secondary",
|
|
243
|
+
children: [/* @__PURE__ */ A("span", {
|
|
244
|
+
className: "relative flex h-2 w-2",
|
|
245
|
+
children: [/* @__PURE__ */ k("span", { className: "absolute inline-flex h-full w-full animate-ping rounded-full bg-status-success-text opacity-60" }), /* @__PURE__ */ k("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-status-success-text" })]
|
|
246
|
+
}), "Live report"]
|
|
247
|
+
}),
|
|
248
|
+
/* @__PURE__ */ k("h2", {
|
|
249
|
+
className: "mt-2 text-xl font-bold tracking-tight",
|
|
250
|
+
children: /* @__PURE__ */ k(de, { children: "Executive Summary" })
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ k("p", {
|
|
253
|
+
className: "text-sm text-text-secondary mt-0.5",
|
|
254
|
+
children: we
|
|
255
|
+
})
|
|
256
|
+
] }), /* @__PURE__ */ A("div", {
|
|
257
|
+
className: "flex flex-wrap items-center gap-2",
|
|
258
|
+
children: [/* @__PURE__ */ A("button", {
|
|
259
|
+
type: "button",
|
|
260
|
+
onClick: $,
|
|
261
|
+
disabled: !Q,
|
|
262
|
+
title: Q ? "Download channel performance as a CSV file" : "No performance data to export yet",
|
|
263
|
+
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md border border-border-seam bg-bg-surface px-4 py-2.5 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken disabled:cursor-not-allowed disabled:opacity-60",
|
|
264
|
+
children: [/* @__PURE__ */ k(E, { className: "h-4 w-4" }), "Export CSV"]
|
|
265
|
+
}), /* @__PURE__ */ A("button", {
|
|
266
|
+
type: "button",
|
|
267
|
+
onClick: Ee,
|
|
268
|
+
disabled: !Z,
|
|
269
|
+
title: Z ? "Save this report as a PDF (opens your browser's print dialog)" : "No report to export yet",
|
|
270
|
+
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2.5 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg/90 disabled:cursor-not-allowed disabled:opacity-60",
|
|
271
|
+
children: [/* @__PURE__ */ k(oe, { className: "h-4 w-4" }), "Export PDF"]
|
|
272
|
+
})]
|
|
273
|
+
})]
|
|
274
|
+
}), /* @__PURE__ */ A("div", {
|
|
275
|
+
className: "mt-6 grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-5",
|
|
201
276
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ k(x, {
|
|
203
278
|
title: "Total Revenue",
|
|
204
|
-
value:
|
|
205
|
-
icon: /* @__PURE__ */
|
|
279
|
+
value: p(W),
|
|
280
|
+
icon: /* @__PURE__ */ k(T, { className: "h-4 w-4" }),
|
|
281
|
+
featured: !0
|
|
206
282
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ k(x, {
|
|
208
284
|
title: "Total Cost",
|
|
209
|
-
value:
|
|
210
|
-
icon: /* @__PURE__ */
|
|
285
|
+
value: p(G),
|
|
286
|
+
icon: /* @__PURE__ */ k(w, { className: "h-4 w-4" })
|
|
211
287
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ k(x, {
|
|
213
289
|
title: "Conversions",
|
|
214
|
-
value:
|
|
215
|
-
icon: /* @__PURE__ */
|
|
290
|
+
value: m(K),
|
|
291
|
+
icon: /* @__PURE__ */ k(D, { className: "h-4 w-4" })
|
|
216
292
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ k(x, {
|
|
218
294
|
title: "Avg ROAS",
|
|
219
|
-
value: `${
|
|
220
|
-
icon: /* @__PURE__ */
|
|
295
|
+
value: `${he.toFixed(1)}x`,
|
|
296
|
+
icon: /* @__PURE__ */ k(O, { className: "h-4 w-4" })
|
|
297
|
+
}),
|
|
298
|
+
/* @__PURE__ */ k(x, {
|
|
299
|
+
title: "Avg CTR",
|
|
300
|
+
value: h(ge),
|
|
301
|
+
icon: /* @__PURE__ */ k(ce, { className: "h-4 w-4" })
|
|
221
302
|
})
|
|
222
303
|
]
|
|
223
|
-
}) }),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
304
|
+
})] }),
|
|
305
|
+
/* @__PURE__ */ A("div", {
|
|
306
|
+
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
307
|
+
children: [/* @__PURE__ */ k(C, {
|
|
308
|
+
title: "Performance Trend",
|
|
309
|
+
subtitle: "Revenue and cost over time",
|
|
310
|
+
children: be ? /* @__PURE__ */ k(r, {
|
|
311
|
+
width: "100%",
|
|
312
|
+
height: 260,
|
|
313
|
+
children: /* @__PURE__ */ A(l, {
|
|
314
|
+
data: Y,
|
|
315
|
+
children: [
|
|
316
|
+
/* @__PURE__ */ A("defs", { children: [/* @__PURE__ */ A("linearGradient", {
|
|
317
|
+
id: "hmk-report-revenue",
|
|
318
|
+
x1: "0",
|
|
319
|
+
y1: "0",
|
|
320
|
+
x2: "0",
|
|
321
|
+
y2: "1",
|
|
322
|
+
children: [/* @__PURE__ */ k("stop", {
|
|
323
|
+
offset: "5%",
|
|
324
|
+
stopColor: M[0],
|
|
325
|
+
stopOpacity: .35
|
|
326
|
+
}), /* @__PURE__ */ k("stop", {
|
|
327
|
+
offset: "95%",
|
|
328
|
+
stopColor: M[0],
|
|
329
|
+
stopOpacity: 0
|
|
330
|
+
})]
|
|
331
|
+
}), /* @__PURE__ */ A("linearGradient", {
|
|
332
|
+
id: "hmk-report-cost",
|
|
333
|
+
x1: "0",
|
|
334
|
+
y1: "0",
|
|
335
|
+
x2: "0",
|
|
336
|
+
y2: "1",
|
|
337
|
+
children: [/* @__PURE__ */ k("stop", {
|
|
338
|
+
offset: "5%",
|
|
339
|
+
stopColor: M[3],
|
|
340
|
+
stopOpacity: .3
|
|
341
|
+
}), /* @__PURE__ */ k("stop", {
|
|
342
|
+
offset: "95%",
|
|
343
|
+
stopColor: M[3],
|
|
344
|
+
stopOpacity: 0
|
|
345
|
+
})]
|
|
346
|
+
})] }),
|
|
347
|
+
/* @__PURE__ */ k(a, {
|
|
348
|
+
strokeDasharray: "3 3",
|
|
349
|
+
className: "stroke-border"
|
|
350
|
+
}),
|
|
351
|
+
/* @__PURE__ */ k(s, {
|
|
352
|
+
dataKey: "date",
|
|
353
|
+
tick: { fontSize: 12 },
|
|
354
|
+
className: "text-text-secondary"
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ k(c, {
|
|
357
|
+
tick: { fontSize: 12 },
|
|
358
|
+
tickFormatter: (e) => m(e),
|
|
359
|
+
className: "text-text-secondary"
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ k(n, {
|
|
362
|
+
contentStyle: N,
|
|
363
|
+
labelStyle: P,
|
|
364
|
+
itemStyle: F,
|
|
365
|
+
formatter: (e) => p(e)
|
|
366
|
+
}),
|
|
367
|
+
/* @__PURE__ */ k(t, { wrapperStyle: { fontSize: 12 } }),
|
|
368
|
+
/* @__PURE__ */ k(o, {
|
|
369
|
+
type: "monotone",
|
|
370
|
+
dataKey: "revenue",
|
|
371
|
+
name: "Revenue",
|
|
372
|
+
stroke: M[0],
|
|
373
|
+
strokeWidth: 2,
|
|
374
|
+
fill: "url(#hmk-report-revenue)"
|
|
375
|
+
}),
|
|
376
|
+
/* @__PURE__ */ k(o, {
|
|
377
|
+
type: "monotone",
|
|
378
|
+
dataKey: "cost",
|
|
379
|
+
name: "Cost",
|
|
380
|
+
stroke: M[3],
|
|
381
|
+
strokeWidth: 2,
|
|
382
|
+
fill: "url(#hmk-report-cost)"
|
|
383
|
+
})
|
|
384
|
+
]
|
|
385
|
+
})
|
|
386
|
+
}) : /* @__PURE__ */ k(L, {
|
|
387
|
+
icon: /* @__PURE__ */ k(O, { className: "h-8 w-8" }),
|
|
388
|
+
message: "No trend yet — launch a campaign to start tracking performance over time.",
|
|
389
|
+
height: 260
|
|
240
390
|
})
|
|
241
|
-
})
|
|
391
|
+
}), /* @__PURE__ */ k(C, {
|
|
392
|
+
title: "Channel Comparison",
|
|
393
|
+
subtitle: "Revenue vs cost by channel",
|
|
394
|
+
children: xe ? /* @__PURE__ */ k(r, {
|
|
395
|
+
width: "100%",
|
|
396
|
+
height: 260,
|
|
397
|
+
children: /* @__PURE__ */ A(ee, {
|
|
398
|
+
data: ye,
|
|
399
|
+
barGap: 6,
|
|
400
|
+
children: [
|
|
401
|
+
/* @__PURE__ */ k(a, {
|
|
402
|
+
strokeDasharray: "3 3",
|
|
403
|
+
className: "stroke-border"
|
|
404
|
+
}),
|
|
405
|
+
/* @__PURE__ */ k(s, {
|
|
406
|
+
dataKey: "channel",
|
|
407
|
+
tick: { fontSize: 12 },
|
|
408
|
+
className: "text-text-secondary"
|
|
409
|
+
}),
|
|
410
|
+
/* @__PURE__ */ k(c, {
|
|
411
|
+
tick: { fontSize: 12 },
|
|
412
|
+
tickFormatter: (e) => m(e),
|
|
413
|
+
className: "text-text-secondary"
|
|
414
|
+
}),
|
|
415
|
+
/* @__PURE__ */ k(n, {
|
|
416
|
+
cursor: {
|
|
417
|
+
fill: "var(--color-bg-sunken)",
|
|
418
|
+
opacity: .4
|
|
419
|
+
},
|
|
420
|
+
contentStyle: N,
|
|
421
|
+
labelStyle: P,
|
|
422
|
+
itemStyle: F,
|
|
423
|
+
formatter: (e) => p(e)
|
|
424
|
+
}),
|
|
425
|
+
/* @__PURE__ */ k(t, { wrapperStyle: { fontSize: 12 } }),
|
|
426
|
+
/* @__PURE__ */ k(i, {
|
|
427
|
+
dataKey: "revenue",
|
|
428
|
+
name: "Revenue",
|
|
429
|
+
fill: M[0],
|
|
430
|
+
radius: [
|
|
431
|
+
4,
|
|
432
|
+
4,
|
|
433
|
+
0,
|
|
434
|
+
0
|
|
435
|
+
]
|
|
436
|
+
}),
|
|
437
|
+
/* @__PURE__ */ k(i, {
|
|
438
|
+
dataKey: "cost",
|
|
439
|
+
name: "Cost",
|
|
440
|
+
fill: M[3],
|
|
441
|
+
radius: [
|
|
442
|
+
4,
|
|
443
|
+
4,
|
|
444
|
+
0,
|
|
445
|
+
0
|
|
446
|
+
]
|
|
447
|
+
})
|
|
448
|
+
]
|
|
449
|
+
})
|
|
450
|
+
}) : /* @__PURE__ */ k(L, {
|
|
451
|
+
icon: /* @__PURE__ */ k(w, { className: "h-8 w-8" }),
|
|
452
|
+
message: "No channel data yet — revenue and spend appear here once campaigns run.",
|
|
453
|
+
height: 260
|
|
454
|
+
})
|
|
455
|
+
})]
|
|
456
|
+
}),
|
|
457
|
+
/* @__PURE__ */ A("div", {
|
|
458
|
+
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
459
|
+
children: [/* @__PURE__ */ k(C, {
|
|
460
|
+
title: "Conversion Funnel",
|
|
461
|
+
subtitle: "Impressions → conversions",
|
|
462
|
+
className: "lg:col-span-1",
|
|
463
|
+
children: Se ? /* @__PURE__ */ A("div", {
|
|
464
|
+
className: "space-y-4",
|
|
465
|
+
children: [/* @__PURE__ */ k(r, {
|
|
466
|
+
width: "100%",
|
|
467
|
+
height: 180,
|
|
468
|
+
children: /* @__PURE__ */ A(d, { children: [/* @__PURE__ */ k(n, {
|
|
469
|
+
contentStyle: N,
|
|
470
|
+
labelStyle: P,
|
|
471
|
+
itemStyle: F,
|
|
472
|
+
formatter: (e) => m(e)
|
|
473
|
+
}), /* @__PURE__ */ k(u, {
|
|
474
|
+
dataKey: "value",
|
|
475
|
+
nameKey: "stage",
|
|
476
|
+
data: ve,
|
|
477
|
+
isAnimationActive: !0
|
|
478
|
+
})] })
|
|
479
|
+
}), /* @__PURE__ */ k("div", {
|
|
480
|
+
className: "space-y-2",
|
|
481
|
+
children: X.map((e, t) => /* @__PURE__ */ A("div", {
|
|
482
|
+
className: "flex items-center justify-between gap-3 text-sm",
|
|
483
|
+
children: [/* @__PURE__ */ A("div", {
|
|
484
|
+
className: "flex items-center gap-2 min-w-0",
|
|
485
|
+
children: [/* @__PURE__ */ k("span", {
|
|
486
|
+
className: "h-2.5 w-2.5 shrink-0 rounded-full",
|
|
487
|
+
style: { backgroundColor: e.color }
|
|
488
|
+
}), /* @__PURE__ */ k("span", {
|
|
489
|
+
className: "truncate text-text-secondary",
|
|
490
|
+
children: e.stage
|
|
491
|
+
})]
|
|
492
|
+
}), /* @__PURE__ */ A("div", {
|
|
493
|
+
className: "flex items-center gap-2 shrink-0",
|
|
494
|
+
children: [/* @__PURE__ */ k("span", {
|
|
495
|
+
className: "font-medium tabular-nums text-text-primary",
|
|
496
|
+
children: m(e.value)
|
|
497
|
+
}), t > 0 && /* @__PURE__ */ k("span", {
|
|
498
|
+
className: "w-14 text-right text-xs tabular-nums text-text-secondary",
|
|
499
|
+
children: h(e.conversionRate)
|
|
500
|
+
})]
|
|
501
|
+
})]
|
|
502
|
+
}, e.stage))
|
|
503
|
+
})]
|
|
504
|
+
}) : /* @__PURE__ */ k(L, {
|
|
505
|
+
icon: /* @__PURE__ */ k(se, { className: "h-8 w-8" }),
|
|
506
|
+
message: "No funnel yet — impressions, clicks and conversions build this once data lands.",
|
|
507
|
+
height: 180
|
|
508
|
+
})
|
|
509
|
+
}), /* @__PURE__ */ k(C, {
|
|
510
|
+
title: "Channel Performance",
|
|
511
|
+
subtitle: "Revenue and ROAS across every channel",
|
|
512
|
+
className: "lg:col-span-2",
|
|
513
|
+
children: /* @__PURE__ */ k(S, {
|
|
514
|
+
data: U,
|
|
515
|
+
columns: De,
|
|
516
|
+
searchable: !0,
|
|
517
|
+
searchPlaceholder: "Search channels...",
|
|
518
|
+
emptyMessage: "No channel data yet",
|
|
519
|
+
emptyDescription: "Launch a campaign to start collecting channel performance.",
|
|
520
|
+
actions: /* @__PURE__ */ A("button", {
|
|
521
|
+
type: "button",
|
|
522
|
+
onClick: $,
|
|
523
|
+
disabled: !Q,
|
|
524
|
+
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 disabled:cursor-not-allowed disabled:opacity-60",
|
|
525
|
+
children: [/* @__PURE__ */ k(E, { className: "h-4 w-4" }), "Export"]
|
|
526
|
+
})
|
|
527
|
+
})
|
|
528
|
+
})]
|
|
242
529
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ k(C, {
|
|
244
531
|
title: "Campaign Performance",
|
|
245
532
|
subtitle: "All campaigns ranked by revenue",
|
|
246
|
-
children: /* @__PURE__ */ S
|
|
247
|
-
data:
|
|
248
|
-
columns:
|
|
533
|
+
children: /* @__PURE__ */ k(S, {
|
|
534
|
+
data: H,
|
|
535
|
+
columns: Oe,
|
|
249
536
|
searchable: !0,
|
|
250
537
|
searchPlaceholder: "Search campaigns...",
|
|
251
538
|
pageSize: 8,
|
|
252
|
-
onRowClick: (e) =>
|
|
539
|
+
onRowClick: (e) => R(z + "/campaigns/" + e.id),
|
|
253
540
|
emptyMessage: "No campaigns yet",
|
|
254
541
|
emptyDescription: "Create your first campaign to see it here.",
|
|
255
|
-
actions: /* @__PURE__ */
|
|
542
|
+
actions: /* @__PURE__ */ A("button", {
|
|
256
543
|
type: "button",
|
|
257
|
-
onClick:
|
|
258
|
-
disabled: !
|
|
259
|
-
className: "inline-flex 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 disabled:cursor-not-allowed disabled:opacity-60",
|
|
260
|
-
children: [/* @__PURE__ */
|
|
544
|
+
onClick: Te,
|
|
545
|
+
disabled: !Ce,
|
|
546
|
+
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 disabled:cursor-not-allowed disabled:opacity-60",
|
|
547
|
+
children: [/* @__PURE__ */ k(E, { className: "h-4 w-4" }), "Export"]
|
|
261
548
|
})
|
|
262
549
|
})
|
|
263
550
|
})
|
|
264
551
|
]
|
|
265
552
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ A(j, { children: [/* @__PURE__ */ k("h3", {
|
|
267
554
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
268
555
|
children: "Open a live report"
|
|
269
|
-
}), /* @__PURE__ */
|
|
270
|
-
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3
|
|
271
|
-
children:
|
|
556
|
+
}), /* @__PURE__ */ k("div", {
|
|
557
|
+
className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
|
|
558
|
+
children: ke.map((e) => /* @__PURE__ */ A("button", {
|
|
272
559
|
type: "button",
|
|
273
|
-
onClick: () =>
|
|
274
|
-
className: "flex items-start gap-3 rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 text-left hover:bg-bg-sunken/50
|
|
275
|
-
children: [/* @__PURE__ */
|
|
276
|
-
className: "text-text-secondary",
|
|
560
|
+
onClick: () => R(z + e.segment),
|
|
561
|
+
className: "group flex items-start gap-3 rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 text-left transition-colors hover:bg-bg-sunken/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
562
|
+
children: [/* @__PURE__ */ k("span", {
|
|
563
|
+
className: "text-text-secondary transition-colors group-hover:text-action-primary-bg",
|
|
277
564
|
children: e.icon
|
|
278
|
-
}), /* @__PURE__ */
|
|
279
|
-
className: "
|
|
280
|
-
children:
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
565
|
+
}), /* @__PURE__ */ A("div", {
|
|
566
|
+
className: "min-w-0 flex-1",
|
|
567
|
+
children: [/* @__PURE__ */ A("p", {
|
|
568
|
+
className: "flex items-center gap-1 text-sm font-medium text-text-primary",
|
|
569
|
+
children: [e.name, /* @__PURE__ */ k(ae, { className: "h-3.5 w-3.5 shrink-0 text-text-secondary opacity-0 transition-opacity group-hover:opacity-100" })]
|
|
570
|
+
}), /* @__PURE__ */ k("p", {
|
|
571
|
+
className: "text-xs text-text-secondary mt-0.5",
|
|
572
|
+
children: e.description
|
|
573
|
+
})]
|
|
574
|
+
})]
|
|
285
575
|
}, e.id))
|
|
286
576
|
})] })
|
|
287
577
|
]
|
|
288
578
|
});
|
|
289
579
|
};
|
|
290
580
|
//#endregion
|
|
291
|
-
export {
|
|
581
|
+
export { R as ReportsPage };
|
|
292
582
|
|
|
293
583
|
//# sourceMappingURL=ReportsPage.js.map
|