@burdenoff/microfe-headshotmarketing 2026.1205.1 → 2026.1206.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-types.d.ts +3589 -380
- package/dist/generated/wspace-operations.d.ts +101 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +61782 -2332
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
- package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +3 -3
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
- package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
- package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +6 -6
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +104 -103
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/index.d.ts +1 -0
- package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
- package/dist/headshotmarketing/utils/readableError.js +12 -0
- package/dist/headshotmarketing/utils/readableError.js.map +1 -0
- package/package.json +5 -3
|
@@ -16,42 +16,43 @@ import { ChartCard as p } from "../../components/ChartCard.js";
|
|
|
16
16
|
import { cn as m, formatCurrency as h, formatNumber as g, formatPercentage as _ } from "../../utils/helpers.js";
|
|
17
17
|
import { HeadshotmarketingReportDateRange as v, HeadshotmarketingReportWidget as y } from "../../../generated/wspace-types.js";
|
|
18
18
|
import { CHART_COLORS as b, DATE_RANGE_OPTIONS as x } from "./analyticsView.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
19
|
+
import { readableErrorOrNull as S } from "../../utils/readableError.js";
|
|
20
|
+
import { BarChart3 as C, CalendarRange as w, DollarSign as T, Filter as E, GitBranch as D, Info as O, Percent as k, Table2 as A, Target as j, TrendingUp as M, Trophy as N, Wallet as P } from "lucide-react";
|
|
21
|
+
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
22
|
+
import { ThemedSelect as R } from "@burdenoff/fe-libs/ui";
|
|
22
23
|
// src/headshotmarketing/pages/analytics/analyticsWidgets.tsx
|
|
23
|
-
var
|
|
24
|
+
var z = {
|
|
24
25
|
background: "var(--color-bg-surface)",
|
|
25
26
|
border: "1px solid var(--color-border-seam)",
|
|
26
27
|
borderRadius: "0.5rem",
|
|
27
28
|
boxShadow: "var(--shadow-pop)",
|
|
28
29
|
color: "var(--color-text-primary)",
|
|
29
30
|
fontSize: "0.75rem"
|
|
30
|
-
},
|
|
31
|
+
}, B = { color: "var(--color-text-secondary)" }, V = { color: "var(--color-text-primary)" }, H = { fontSize: 12 }, U = (e) => (/* @__PURE__ */ new Date(`${e}T00:00:00.000Z`)).toLocaleDateString("en-US", {
|
|
31
32
|
month: "short",
|
|
32
33
|
day: "numeric",
|
|
33
34
|
timeZone: "UTC"
|
|
34
|
-
}),
|
|
35
|
+
}), W = (e) => Math.abs(e) >= 1e3 ? `$${g(Math.round(e / 100) / 10)}k` : h(e), G = ({ icon: e, message: t, height: n = 260 }) => /* @__PURE__ */ L("div", {
|
|
35
36
|
className: "flex flex-col items-center justify-center gap-2 px-4 text-center",
|
|
36
37
|
style: { minHeight: n },
|
|
37
|
-
children: [/* @__PURE__ */
|
|
38
|
+
children: [/* @__PURE__ */ I("span", {
|
|
38
39
|
className: "text-text-secondary/70",
|
|
39
40
|
children: e
|
|
40
|
-
}), /* @__PURE__ */
|
|
41
|
+
}), /* @__PURE__ */ I("p", {
|
|
41
42
|
className: "max-w-xs text-xs text-text-secondary",
|
|
42
43
|
children: t
|
|
43
44
|
})]
|
|
44
|
-
}),
|
|
45
|
+
}), ee = ({ value: e, onChange: t, invalid: n = !1, idPrefix: r }) => /* @__PURE__ */ L("div", {
|
|
45
46
|
className: "flex flex-wrap items-center gap-2",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ L("label", {
|
|
47
48
|
className: "relative inline-flex items-center",
|
|
48
49
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ I("span", {
|
|
50
51
|
className: "sr-only",
|
|
51
52
|
children: "Date range"
|
|
52
53
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ I(w, { className: "pointer-events-none absolute start-3 h-4 w-4 text-text-secondary" }),
|
|
55
|
+
/* @__PURE__ */ I(R, {
|
|
55
56
|
id: `${r}-range`,
|
|
56
57
|
"aria-label": "Date range",
|
|
57
58
|
value: e.preset,
|
|
@@ -63,19 +64,19 @@ var L = {
|
|
|
63
64
|
});
|
|
64
65
|
},
|
|
65
66
|
className: "min-h-[44px] appearance-none rounded-md border border-border-seam bg-bg-surface py-2 ps-9 pe-8 text-sm font-medium text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
66
|
-
children: x.map((e) => /* @__PURE__ */
|
|
67
|
+
children: x.map((e) => /* @__PURE__ */ I("option", {
|
|
67
68
|
value: e.value,
|
|
68
69
|
children: e.label
|
|
69
70
|
}, e.value))
|
|
70
71
|
})
|
|
71
72
|
]
|
|
72
|
-
}), e.preset === v.Custom && /* @__PURE__ */ F
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
}), e.preset === v.Custom && /* @__PURE__ */ L(F, { children: [
|
|
74
|
+
/* @__PURE__ */ I("label", {
|
|
74
75
|
className: "sr-only",
|
|
75
76
|
htmlFor: `${r}-start`,
|
|
76
77
|
children: "Start date"
|
|
77
78
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ I("input", {
|
|
79
80
|
id: `${r}-start`,
|
|
80
81
|
type: "date",
|
|
81
82
|
value: e.customStart,
|
|
@@ -87,16 +88,16 @@ var L = {
|
|
|
87
88
|
"aria-invalid": n,
|
|
88
89
|
className: m("min-h-[44px] rounded-md border bg-bg-surface px-3 py-2 text-sm text-text-primary", n ? "border-status-error-border" : "border-border-seam")
|
|
89
90
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ I("span", {
|
|
91
92
|
className: "text-xs text-text-secondary",
|
|
92
93
|
children: "to"
|
|
93
94
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ I("label", {
|
|
95
96
|
className: "sr-only",
|
|
96
97
|
htmlFor: `${r}-end`,
|
|
97
98
|
children: "End date"
|
|
98
99
|
}),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ I("input", {
|
|
100
101
|
id: `${r}-end`,
|
|
101
102
|
type: "date",
|
|
102
103
|
value: e.customEnd,
|
|
@@ -109,74 +110,74 @@ var L = {
|
|
|
109
110
|
className: m("min-h-[44px] rounded-md border bg-bg-surface px-3 py-2 text-sm text-text-primary", n ? "border-status-error-border" : "border-border-seam")
|
|
110
111
|
})
|
|
111
112
|
] })]
|
|
112
|
-
}),
|
|
113
|
+
}), te = ({ source: e, windowLabel: t }) => e === "daily" ? null : /* @__PURE__ */ L("div", {
|
|
113
114
|
role: "status",
|
|
114
115
|
className: "flex items-start gap-3 rounded-lg border border-border-seam bg-bg-sunken/40 px-4 py-3 text-sm text-text-secondary",
|
|
115
|
-
children: [/* @__PURE__ */
|
|
116
|
-
}), K = ({ view: e }) => /* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ I(O, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ I("p", { children: e === "lifetime" ? `No daily performance was recorded between ${t}, so these figures are your campaigns' lifetime totals and the date range does not apply to them. Record daily channel and campaign performance (from a connected ad platform or the API) to see trends for any period.` : "No marketing performance has been recorded yet. Figures appear here once campaigns or connected platforms report impressions, clicks, conversions and revenue." })]
|
|
117
|
+
}), K = ({ view: e }) => /* @__PURE__ */ L("div", {
|
|
117
118
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
118
119
|
children: [
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ I(d, {
|
|
120
121
|
title: "Total Revenue",
|
|
121
122
|
value: h(e.totals.revenue),
|
|
122
|
-
icon: /* @__PURE__ */
|
|
123
|
+
icon: /* @__PURE__ */ I(T, { className: "h-4 w-4" }),
|
|
123
124
|
featured: !0
|
|
124
125
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ I(d, {
|
|
126
127
|
title: "ROAS",
|
|
127
128
|
value: `${e.totals.roas.toFixed(1)}x`,
|
|
128
|
-
icon: /* @__PURE__ */
|
|
129
|
+
icon: /* @__PURE__ */ I(M, { className: "h-4 w-4" })
|
|
129
130
|
}),
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ I(d, {
|
|
131
132
|
title: "CPA",
|
|
132
133
|
value: h(e.totals.cpa),
|
|
133
|
-
icon: /* @__PURE__ */ P
|
|
134
|
+
icon: /* @__PURE__ */ I(P, { className: "h-4 w-4" })
|
|
134
135
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ I(d, {
|
|
136
137
|
title: "Conversion Rate",
|
|
137
138
|
value: _(e.totals.conversionRate),
|
|
138
|
-
icon: /* @__PURE__ */
|
|
139
|
+
icon: /* @__PURE__ */ I(k, { className: "h-4 w-4" })
|
|
139
140
|
})
|
|
140
141
|
]
|
|
141
142
|
}), q = ({ view: e, className: t }) => {
|
|
142
143
|
let { rows: u, series: d } = e.revenueSeries;
|
|
143
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ I(p, {
|
|
144
145
|
title: "Revenue by Channel",
|
|
145
146
|
subtitle: "Daily revenue per channel",
|
|
146
147
|
className: t,
|
|
147
|
-
children: u.length === 0 ? /* @__PURE__ */
|
|
148
|
-
icon: /* @__PURE__ */
|
|
148
|
+
children: u.length === 0 ? /* @__PURE__ */ I(G, {
|
|
149
|
+
icon: /* @__PURE__ */ I(M, { className: "h-8 w-8" }),
|
|
149
150
|
message: e.source === "daily" ? "No channel revenue was recorded in this period." : "Daily revenue per channel appears once daily channel performance is recorded."
|
|
150
|
-
}) : /* @__PURE__ */
|
|
151
|
+
}) : /* @__PURE__ */ I(o, {
|
|
151
152
|
width: "100%",
|
|
152
153
|
height: 280,
|
|
153
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ L(a, {
|
|
154
155
|
data: u,
|
|
155
156
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ I(n, {
|
|
157
158
|
strokeDasharray: "3 3",
|
|
158
159
|
className: "stroke-border"
|
|
159
160
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ I(c, {
|
|
161
162
|
dataKey: "date",
|
|
162
|
-
tick:
|
|
163
|
-
tickFormatter: (e) =>
|
|
163
|
+
tick: H,
|
|
164
|
+
tickFormatter: (e) => U(e),
|
|
164
165
|
className: "text-text-secondary"
|
|
165
166
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
tick:
|
|
168
|
-
tickFormatter: (e) =>
|
|
167
|
+
/* @__PURE__ */ I(l, {
|
|
168
|
+
tick: H,
|
|
169
|
+
tickFormatter: (e) => W(e),
|
|
169
170
|
className: "text-text-secondary"
|
|
170
171
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
contentStyle:
|
|
173
|
-
labelStyle:
|
|
174
|
-
itemStyle:
|
|
175
|
-
labelFormatter: (e) =>
|
|
172
|
+
/* @__PURE__ */ I(s, {
|
|
173
|
+
contentStyle: z,
|
|
174
|
+
labelStyle: B,
|
|
175
|
+
itemStyle: V,
|
|
176
|
+
labelFormatter: (e) => U(e),
|
|
176
177
|
formatter: (e) => h(e)
|
|
177
178
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
d.map((e) => /* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ I(r, { wrapperStyle: { fontSize: 12 } }),
|
|
180
|
+
d.map((e) => /* @__PURE__ */ I(i, {
|
|
180
181
|
type: "monotone",
|
|
181
182
|
dataKey: e.key,
|
|
182
183
|
name: e.label,
|
|
@@ -188,47 +189,47 @@ var L = {
|
|
|
188
189
|
})
|
|
189
190
|
})
|
|
190
191
|
});
|
|
191
|
-
}, J = ({ view: r, className: i }) => /* @__PURE__ */
|
|
192
|
+
}, J = ({ view: r, className: i }) => /* @__PURE__ */ I(p, {
|
|
192
193
|
title: "ROAS by Channel",
|
|
193
194
|
subtitle: "Return on ad spend per channel",
|
|
194
195
|
className: i,
|
|
195
|
-
children: r.channels.length === 0 ? /* @__PURE__ */
|
|
196
|
-
icon: /* @__PURE__ */
|
|
196
|
+
children: r.channels.length === 0 ? /* @__PURE__ */ I(G, {
|
|
197
|
+
icon: /* @__PURE__ */ I(C, { className: "h-8 w-8" }),
|
|
197
198
|
message: "No channel performance recorded for this period."
|
|
198
|
-
}) : /* @__PURE__ */
|
|
199
|
+
}) : /* @__PURE__ */ I(o, {
|
|
199
200
|
width: "100%",
|
|
200
201
|
height: Math.max(220, r.channels.length * 44),
|
|
201
|
-
children: /* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ L(t, {
|
|
202
203
|
data: r.channels,
|
|
203
204
|
layout: "vertical",
|
|
204
205
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ I(n, {
|
|
206
207
|
strokeDasharray: "3 3",
|
|
207
208
|
className: "stroke-border"
|
|
208
209
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ I(c, {
|
|
210
211
|
type: "number",
|
|
211
|
-
tick:
|
|
212
|
+
tick: H,
|
|
212
213
|
className: "text-text-secondary"
|
|
213
214
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ I(l, {
|
|
215
216
|
dataKey: "label",
|
|
216
217
|
type: "category",
|
|
217
218
|
width: 100,
|
|
218
|
-
tick:
|
|
219
|
+
tick: H,
|
|
219
220
|
className: "text-text-secondary"
|
|
220
221
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ I(s, {
|
|
222
223
|
cursor: {
|
|
223
224
|
fill: "var(--color-bg-sunken)",
|
|
224
225
|
opacity: .4
|
|
225
226
|
},
|
|
226
|
-
contentStyle:
|
|
227
|
-
labelStyle:
|
|
228
|
-
itemStyle:
|
|
227
|
+
contentStyle: z,
|
|
228
|
+
labelStyle: B,
|
|
229
|
+
itemStyle: V,
|
|
229
230
|
formatter: (e) => `${e.toFixed(2)}x`
|
|
230
231
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ I(e, {
|
|
232
233
|
dataKey: "roas",
|
|
233
234
|
name: "ROAS",
|
|
234
235
|
fill: b[0],
|
|
@@ -242,46 +243,46 @@ var L = {
|
|
|
242
243
|
]
|
|
243
244
|
})
|
|
244
245
|
})
|
|
245
|
-
}), Y = ({ view: i, className: a }) => /* @__PURE__ */
|
|
246
|
+
}), Y = ({ view: i, className: a }) => /* @__PURE__ */ I(p, {
|
|
246
247
|
title: "Channel Comparison",
|
|
247
248
|
subtitle: "Revenue against cost per channel",
|
|
248
249
|
className: a,
|
|
249
|
-
children: i.channels.length === 0 ? /* @__PURE__ */
|
|
250
|
-
icon: /* @__PURE__ */
|
|
250
|
+
children: i.channels.length === 0 ? /* @__PURE__ */ I(G, {
|
|
251
|
+
icon: /* @__PURE__ */ I(C, { className: "h-8 w-8" }),
|
|
251
252
|
message: "No channel performance recorded for this period."
|
|
252
|
-
}) : /* @__PURE__ */
|
|
253
|
+
}) : /* @__PURE__ */ I(o, {
|
|
253
254
|
width: "100%",
|
|
254
255
|
height: 280,
|
|
255
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */ L(t, {
|
|
256
257
|
data: i.channels,
|
|
257
258
|
barGap: 6,
|
|
258
259
|
children: [
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ I(n, {
|
|
260
261
|
strokeDasharray: "3 3",
|
|
261
262
|
className: "stroke-border"
|
|
262
263
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ I(c, {
|
|
264
265
|
dataKey: "label",
|
|
265
|
-
tick:
|
|
266
|
+
tick: H,
|
|
266
267
|
className: "text-text-secondary"
|
|
267
268
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
tick:
|
|
270
|
-
tickFormatter: (e) =>
|
|
269
|
+
/* @__PURE__ */ I(l, {
|
|
270
|
+
tick: H,
|
|
271
|
+
tickFormatter: (e) => W(e),
|
|
271
272
|
className: "text-text-secondary"
|
|
272
273
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ I(s, {
|
|
274
275
|
cursor: {
|
|
275
276
|
fill: "var(--color-bg-sunken)",
|
|
276
277
|
opacity: .4
|
|
277
278
|
},
|
|
278
|
-
contentStyle:
|
|
279
|
-
labelStyle:
|
|
280
|
-
itemStyle:
|
|
279
|
+
contentStyle: z,
|
|
280
|
+
labelStyle: B,
|
|
281
|
+
itemStyle: V,
|
|
281
282
|
formatter: (e) => h(e)
|
|
282
283
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ I(r, { wrapperStyle: { fontSize: 12 } }),
|
|
285
|
+
/* @__PURE__ */ I(e, {
|
|
285
286
|
dataKey: "revenue",
|
|
286
287
|
name: "Revenue",
|
|
287
288
|
fill: b[0],
|
|
@@ -292,7 +293,7 @@ var L = {
|
|
|
292
293
|
0
|
|
293
294
|
]
|
|
294
295
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ I(e, {
|
|
296
297
|
dataKey: "cost",
|
|
297
298
|
name: "Cost",
|
|
298
299
|
fill: b[3],
|
|
@@ -308,15 +309,15 @@ var L = {
|
|
|
308
309
|
})
|
|
309
310
|
}), X = ({ view: e, className: t }) => {
|
|
310
311
|
let { impressions: n, clicks: r, conversions: i } = e.totals;
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ I(p, {
|
|
312
313
|
title: "Conversion Funnel",
|
|
313
314
|
subtitle: "Impressions to clicks to conversions",
|
|
314
315
|
className: t,
|
|
315
|
-
children: n + r + i === 0 ? /* @__PURE__ */
|
|
316
|
-
icon: /* @__PURE__ */
|
|
316
|
+
children: n + r + i === 0 ? /* @__PURE__ */ I(G, {
|
|
317
|
+
icon: /* @__PURE__ */ I(E, { className: "h-8 w-8" }),
|
|
317
318
|
message: "No impressions, clicks or conversions recorded for this period.",
|
|
318
319
|
height: 200
|
|
319
|
-
}) : /* @__PURE__ */
|
|
320
|
+
}) : /* @__PURE__ */ I(u, { stages: [
|
|
320
321
|
{
|
|
321
322
|
name: "Impressions",
|
|
322
323
|
count: n
|
|
@@ -331,52 +332,52 @@ var L = {
|
|
|
331
332
|
}
|
|
332
333
|
] })
|
|
333
334
|
});
|
|
334
|
-
}, Z = ({ attribution: i, loading: a, error: u, className: d }) => /* @__PURE__ */
|
|
335
|
+
}, Z = ({ attribution: i, loading: a, error: u, className: d }) => /* @__PURE__ */ I(p, {
|
|
335
336
|
title: "Attribution",
|
|
336
337
|
subtitle: "Won revenue credited to the first and the last touch, per channel",
|
|
337
338
|
className: d,
|
|
338
|
-
children: u ? /* @__PURE__ */
|
|
339
|
-
icon: /* @__PURE__ */
|
|
340
|
-
message: `Attribution could not be loaded: ${u
|
|
341
|
-
}) : a ? /* @__PURE__ */
|
|
339
|
+
children: u ? /* @__PURE__ */ I(G, {
|
|
340
|
+
icon: /* @__PURE__ */ I(D, { className: "h-8 w-8" }),
|
|
341
|
+
message: `Attribution could not be loaded: ${S(u)}`
|
|
342
|
+
}) : a ? /* @__PURE__ */ I("div", {
|
|
342
343
|
className: "h-[260px] animate-pulse rounded-md bg-bg-sunken/50",
|
|
343
344
|
"aria-label": "Loading attribution"
|
|
344
|
-
}) : i.length === 0 ? /* @__PURE__ */
|
|
345
|
-
icon: /* @__PURE__ */
|
|
345
|
+
}) : i.length === 0 ? /* @__PURE__ */ I(G, {
|
|
346
|
+
icon: /* @__PURE__ */ I(D, { className: "h-8 w-8" }),
|
|
346
347
|
message: "No won deals with recorded touchpoints closed in this period."
|
|
347
|
-
}) : /* @__PURE__ */
|
|
348
|
+
}) : /* @__PURE__ */ I(o, {
|
|
348
349
|
width: "100%",
|
|
349
350
|
height: 280,
|
|
350
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ L(t, {
|
|
351
352
|
data: i,
|
|
352
353
|
barGap: 4,
|
|
353
354
|
children: [
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ I(n, {
|
|
355
356
|
strokeDasharray: "3 3",
|
|
356
357
|
className: "stroke-border"
|
|
357
358
|
}),
|
|
358
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ I(c, {
|
|
359
360
|
dataKey: "label",
|
|
360
|
-
tick:
|
|
361
|
+
tick: H,
|
|
361
362
|
className: "text-text-secondary"
|
|
362
363
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
tick:
|
|
365
|
-
tickFormatter: (e) =>
|
|
364
|
+
/* @__PURE__ */ I(l, {
|
|
365
|
+
tick: H,
|
|
366
|
+
tickFormatter: (e) => W(e),
|
|
366
367
|
className: "text-text-secondary"
|
|
367
368
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ I(s, {
|
|
369
370
|
cursor: {
|
|
370
371
|
fill: "var(--color-bg-sunken)",
|
|
371
372
|
opacity: .4
|
|
372
373
|
},
|
|
373
|
-
contentStyle:
|
|
374
|
-
labelStyle:
|
|
375
|
-
itemStyle:
|
|
374
|
+
contentStyle: z,
|
|
375
|
+
labelStyle: B,
|
|
376
|
+
itemStyle: V,
|
|
376
377
|
formatter: (e) => h(e)
|
|
377
378
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ I(r, { wrapperStyle: { fontSize: 12 } }),
|
|
380
|
+
/* @__PURE__ */ I(e, {
|
|
380
381
|
dataKey: "firstTouch",
|
|
381
382
|
name: "First-touch",
|
|
382
383
|
fill: b[0],
|
|
@@ -387,7 +388,7 @@ var L = {
|
|
|
387
388
|
0
|
|
388
389
|
]
|
|
389
390
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ I(e, {
|
|
391
392
|
dataKey: "lastTouch",
|
|
392
393
|
name: "Last-touch",
|
|
393
394
|
fill: b[1],
|
|
@@ -401,59 +402,59 @@ var L = {
|
|
|
401
402
|
]
|
|
402
403
|
})
|
|
403
404
|
})
|
|
404
|
-
}), Q = ({ view: e, onOpenCampaign: t, className: n }) => /* @__PURE__ */
|
|
405
|
+
}), Q = ({ view: e, onOpenCampaign: t, className: n }) => /* @__PURE__ */ I(p, {
|
|
405
406
|
title: "Top Campaigns",
|
|
406
407
|
subtitle: "Ranked by revenue",
|
|
407
408
|
className: n,
|
|
408
|
-
children: e.topCampaigns.length === 0 ? /* @__PURE__ */
|
|
409
|
-
icon: /* @__PURE__ */
|
|
409
|
+
children: e.topCampaigns.length === 0 ? /* @__PURE__ */ I(G, {
|
|
410
|
+
icon: /* @__PURE__ */ I(N, { className: "h-8 w-8" }),
|
|
410
411
|
message: "No campaign revenue recorded for this period.",
|
|
411
412
|
height: 200
|
|
412
|
-
}) : /* @__PURE__ */
|
|
413
|
+
}) : /* @__PURE__ */ I("div", {
|
|
413
414
|
className: "overflow-x-auto",
|
|
414
|
-
children: /* @__PURE__ */
|
|
415
|
+
children: /* @__PURE__ */ L("table", {
|
|
415
416
|
className: "w-full min-w-[360px] text-start text-sm",
|
|
416
|
-
children: [/* @__PURE__ */
|
|
417
|
+
children: [/* @__PURE__ */ I("thead", { children: /* @__PURE__ */ L("tr", {
|
|
417
418
|
className: "border-b border-border-subtle",
|
|
418
419
|
children: [
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ I("th", {
|
|
420
421
|
className: "w-8 pb-2 text-xs font-medium text-text-secondary",
|
|
421
422
|
children: "#"
|
|
422
423
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ I("th", {
|
|
424
425
|
className: "pb-2 pe-3 text-xs font-medium text-text-secondary",
|
|
425
426
|
children: "Campaign"
|
|
426
427
|
}),
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ I("th", {
|
|
428
429
|
className: "pb-2 pe-3 text-end text-xs font-medium text-text-secondary",
|
|
429
430
|
children: "Revenue"
|
|
430
431
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ I("th", {
|
|
432
433
|
className: "pb-2 text-end text-xs font-medium text-text-secondary",
|
|
433
434
|
children: "ROAS"
|
|
434
435
|
})
|
|
435
436
|
]
|
|
436
|
-
}) }), /* @__PURE__ */
|
|
437
|
+
}) }), /* @__PURE__ */ I("tbody", { children: e.topCampaigns.map((e, n) => /* @__PURE__ */ L("tr", {
|
|
437
438
|
className: "border-b border-border-subtle/60 last:border-0",
|
|
438
439
|
children: [
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ I("td", {
|
|
440
441
|
className: "py-2.5 text-xs tabular-nums text-text-secondary",
|
|
441
442
|
children: n + 1
|
|
442
443
|
}),
|
|
443
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ I("td", {
|
|
444
445
|
className: "py-2.5 pe-3 font-medium text-text-primary",
|
|
445
|
-
children: t ? /* @__PURE__ */
|
|
446
|
+
children: t ? /* @__PURE__ */ I("button", {
|
|
446
447
|
type: "button",
|
|
447
448
|
onClick: () => t(e.id),
|
|
448
449
|
className: "text-start hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
449
450
|
children: e.name
|
|
450
451
|
}) : e.name
|
|
451
452
|
}),
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ I("td", {
|
|
453
454
|
className: "py-2.5 pe-3 text-end tabular-nums text-text-primary",
|
|
454
455
|
children: h(e.revenue)
|
|
455
456
|
}),
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ L("td", {
|
|
457
458
|
className: "py-2.5 text-end tabular-nums text-text-secondary",
|
|
458
459
|
children: [e.roas.toFixed(1), "x"]
|
|
459
460
|
})
|
|
@@ -461,17 +462,17 @@ var L = {
|
|
|
461
462
|
}, e.id)) })]
|
|
462
463
|
})
|
|
463
464
|
})
|
|
464
|
-
}),
|
|
465
|
+
}), ne = [
|
|
465
466
|
{
|
|
466
467
|
key: "label",
|
|
467
468
|
header: "Channel",
|
|
468
469
|
sortable: !0,
|
|
469
|
-
render: (e) => /* @__PURE__ */
|
|
470
|
+
render: (e) => /* @__PURE__ */ L("div", {
|
|
470
471
|
className: "flex items-center gap-2",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
472
|
+
children: [/* @__PURE__ */ I("span", {
|
|
472
473
|
className: "h-3 w-3 rounded-full",
|
|
473
474
|
style: { backgroundColor: e.color }
|
|
474
|
-
}), /* @__PURE__ */
|
|
475
|
+
}), /* @__PURE__ */ I("span", {
|
|
475
476
|
className: "font-medium text-text-primary",
|
|
476
477
|
children: e.label
|
|
477
478
|
})]
|
|
@@ -507,86 +508,86 @@ var L = {
|
|
|
507
508
|
sortable: !0,
|
|
508
509
|
render: (e) => _(e.ctr)
|
|
509
510
|
}
|
|
510
|
-
], $ = ({ view: e, className: t }) => /* @__PURE__ */
|
|
511
|
+
], $ = ({ view: e, className: t }) => /* @__PURE__ */ I(p, {
|
|
511
512
|
title: "Channel Performance",
|
|
512
513
|
subtitle: "Totals per channel",
|
|
513
514
|
className: t,
|
|
514
|
-
children: /* @__PURE__ */
|
|
515
|
+
children: /* @__PURE__ */ I(f, {
|
|
515
516
|
data: e.channels,
|
|
516
|
-
columns:
|
|
517
|
+
columns: ne,
|
|
517
518
|
emptyMessage: "No channel performance recorded",
|
|
518
519
|
emptyDescription: "Channel totals appear once performance is recorded for this period."
|
|
519
520
|
})
|
|
520
|
-
}),
|
|
521
|
+
}), re = {
|
|
521
522
|
[y.KpiSummary]: {
|
|
522
523
|
label: "KPI summary",
|
|
523
524
|
description: "Total revenue, ROAS, CPA and conversion rate.",
|
|
524
|
-
icon: /* @__PURE__ */
|
|
525
|
+
icon: /* @__PURE__ */ I(T, { className: "h-4 w-4" }),
|
|
525
526
|
wide: !0
|
|
526
527
|
},
|
|
527
528
|
[y.RevenueByChannel]: {
|
|
528
529
|
label: "Revenue by channel",
|
|
529
530
|
description: "Daily revenue per channel as a line chart.",
|
|
530
|
-
icon: /* @__PURE__ */
|
|
531
|
+
icon: /* @__PURE__ */ I(M, { className: "h-4 w-4" }),
|
|
531
532
|
wide: !1
|
|
532
533
|
},
|
|
533
534
|
[y.RoasByChannel]: {
|
|
534
535
|
label: "ROAS by channel",
|
|
535
536
|
description: "Return on ad spend per channel.",
|
|
536
|
-
icon: /* @__PURE__ */
|
|
537
|
+
icon: /* @__PURE__ */ I(C, { className: "h-4 w-4" }),
|
|
537
538
|
wide: !1
|
|
538
539
|
},
|
|
539
540
|
[y.ChannelComparison]: {
|
|
540
541
|
label: "Channel comparison",
|
|
541
542
|
description: "Revenue against cost per channel.",
|
|
542
|
-
icon: /* @__PURE__ */
|
|
543
|
+
icon: /* @__PURE__ */ I(C, { className: "h-4 w-4" }),
|
|
543
544
|
wide: !1
|
|
544
545
|
},
|
|
545
546
|
[y.ConversionFunnel]: {
|
|
546
547
|
label: "Conversion funnel",
|
|
547
548
|
description: "Impressions to clicks to conversions.",
|
|
548
|
-
icon: /* @__PURE__ */
|
|
549
|
+
icon: /* @__PURE__ */ I(E, { className: "h-4 w-4" }),
|
|
549
550
|
wide: !1
|
|
550
551
|
},
|
|
551
552
|
[y.Attribution]: {
|
|
552
553
|
label: "Attribution",
|
|
553
554
|
description: "First-touch against last-touch won revenue per channel.",
|
|
554
|
-
icon: /* @__PURE__ */
|
|
555
|
+
icon: /* @__PURE__ */ I(D, { className: "h-4 w-4" }),
|
|
555
556
|
wide: !1
|
|
556
557
|
},
|
|
557
558
|
[y.TopCampaigns]: {
|
|
558
559
|
label: "Top campaigns",
|
|
559
560
|
description: "Campaigns ranked by revenue.",
|
|
560
|
-
icon: /* @__PURE__ */
|
|
561
|
+
icon: /* @__PURE__ */ I(j, { className: "h-4 w-4" }),
|
|
561
562
|
wide: !1
|
|
562
563
|
},
|
|
563
564
|
[y.ChannelTable]: {
|
|
564
565
|
label: "Channel table",
|
|
565
566
|
description: "Revenue, cost, conversions, ROAS and CTR per channel.",
|
|
566
|
-
icon: /* @__PURE__ */
|
|
567
|
+
icon: /* @__PURE__ */ I(A, { className: "h-4 w-4" }),
|
|
567
568
|
wide: !0
|
|
568
569
|
}
|
|
569
570
|
};
|
|
570
571
|
y.KpiSummary, y.RevenueByChannel, y.RoasByChannel, y.ChannelComparison, y.ConversionFunnel, y.Attribution, y.TopCampaigns, y.ChannelTable;
|
|
571
|
-
var
|
|
572
|
+
var ie = ({ widget: e, view: t, attribution: n, attributionLoading: r, attributionError: i, onOpenCampaign: a }) => {
|
|
572
573
|
switch (e) {
|
|
573
|
-
case y.KpiSummary: return /* @__PURE__ */
|
|
574
|
-
case y.RevenueByChannel: return /* @__PURE__ */
|
|
575
|
-
case y.RoasByChannel: return /* @__PURE__ */
|
|
576
|
-
case y.ChannelComparison: return /* @__PURE__ */
|
|
577
|
-
case y.ConversionFunnel: return /* @__PURE__ */
|
|
578
|
-
case y.Attribution: return /* @__PURE__ */
|
|
574
|
+
case y.KpiSummary: return /* @__PURE__ */ I(K, { view: t });
|
|
575
|
+
case y.RevenueByChannel: return /* @__PURE__ */ I(q, { view: t });
|
|
576
|
+
case y.RoasByChannel: return /* @__PURE__ */ I(J, { view: t });
|
|
577
|
+
case y.ChannelComparison: return /* @__PURE__ */ I(Y, { view: t });
|
|
578
|
+
case y.ConversionFunnel: return /* @__PURE__ */ I(X, { view: t });
|
|
579
|
+
case y.Attribution: return /* @__PURE__ */ I(Z, {
|
|
579
580
|
attribution: n,
|
|
580
581
|
loading: r,
|
|
581
582
|
error: i
|
|
582
583
|
});
|
|
583
|
-
case y.TopCampaigns: return /* @__PURE__ */
|
|
584
|
+
case y.TopCampaigns: return /* @__PURE__ */ I(Q, {
|
|
584
585
|
view: t,
|
|
585
586
|
onOpenCampaign: a
|
|
586
587
|
});
|
|
587
|
-
case y.ChannelTable: return /* @__PURE__ */
|
|
588
|
+
case y.ChannelTable: return /* @__PURE__ */ I($, { view: t });
|
|
588
589
|
}
|
|
589
590
|
};
|
|
590
|
-
export {
|
|
591
|
+
export { te as AnalyticsSourceNotice, Z as AttributionWidget, Y as ChannelComparisonWidget, $ as ChannelTableWidget, X as ConversionFunnelWidget, ee as DateRangeControl, K as KpiSummaryWidget, ie as ReportWidgetView, q as RevenueByChannelWidget, J as RoasByChannelWidget, z as TOOLTIP_STYLE, Q as TopCampaignsWidget, re as WIDGET_META, G as WidgetEmpty };
|
|
591
592
|
|
|
592
593
|
//# sourceMappingURL=analyticsWidgets.js.map
|