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