@burdenoff/microfe-headshotmarketing 2026.1124.3 → 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.
Files changed (151) hide show
  1. package/dist/headshotmarketing/components/ActionMenu.js +1 -1
  2. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
  3. package/dist/headshotmarketing/components/DataTable.js +33 -33
  4. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  5. package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
  6. package/dist/headshotmarketing/components/EmptyState.js +35 -15
  7. package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
  8. package/dist/headshotmarketing/components/FilterBar.js +2 -2
  9. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  10. package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
  11. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  12. package/dist/headshotmarketing/components/Pagination.js +38 -37
  13. package/dist/headshotmarketing/components/Pagination.js.map +1 -1
  14. package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
  15. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
  16. package/dist/headshotmarketing/components/Toast.js +1 -1
  17. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  18. package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
  19. package/dist/headshotmarketing/pages/HomePage.js +10 -10
  20. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
  22. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
  24. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
  26. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  27. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
  28. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
  30. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  31. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  33. package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
  34. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
  36. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
  38. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
  40. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
  42. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
  44. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
  46. package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
  48. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  57. package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
  62. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
  64. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  67. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
  70. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
  72. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
  73. package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
  74. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
  86. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
  88. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
  90. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
  92. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
  94. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
  96. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  97. package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
  98. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  99. package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
  100. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
  102. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
  104. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
  106. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  107. package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
  108. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  111. package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
  112. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
  114. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
  116. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
  118. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
  120. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
  121. package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
  122. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
  124. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
  126. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
  128. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  129. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
  130. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  131. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  132. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  133. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
  134. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  135. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
  136. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  137. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
  138. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  139. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
  140. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  141. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
  142. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  143. package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
  144. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  145. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
  146. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
  147. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
  148. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  149. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
  150. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  151. package/package.json +6 -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 D, Percent as O, Table2 as k, Target as A, TrendingUp as j, Trophy as M, Wallet as N } from "lucide-react";
20
- import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
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__ */ I("div", {
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__ */ F("span", {
37
+ children: [/* @__PURE__ */ P("span", {
37
38
  className: "text-text-secondary/70",
38
39
  children: e
39
- }), /* @__PURE__ */ F("p", {
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__ */ I("div", {
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__ */ I("label", {
46
+ children: [/* @__PURE__ */ F("label", {
46
47
  className: "relative inline-flex items-center",
47
48
  children: [
48
- /* @__PURE__ */ F("span", {
49
+ /* @__PURE__ */ P("span", {
49
50
  className: "sr-only",
50
51
  children: "Date range"
51
52
  }),
52
- /* @__PURE__ */ F(C, { className: "pointer-events-none absolute left-3 h-4 w-4 text-text-secondary" }),
53
- /* @__PURE__ */ F("select", {
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 pl-9 pr-8 text-sm font-medium text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
65
- children: x.map((e) => /* @__PURE__ */ F("option", {
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__ */ I(P, { children: [
72
- /* @__PURE__ */ F("label", {
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__ */ F("input", {
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__ */ F("span", {
90
+ /* @__PURE__ */ P("span", {
90
91
  className: "text-xs text-text-secondary",
91
92
  children: "to"
92
93
  }),
93
- /* @__PURE__ */ F("label", {
94
+ /* @__PURE__ */ P("label", {
94
95
  className: "sr-only",
95
96
  htmlFor: `${r}-end`,
96
97
  children: "End date"
97
98
  }),
98
- /* @__PURE__ */ F("input", {
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__ */ I("div", {
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__ */ F(D, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ F("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." })]
115
- }), K = ({ view: e }) => /* @__PURE__ */ I("div", {
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__ */ F(d, {
119
+ /* @__PURE__ */ P(d, {
119
120
  title: "Total Revenue",
120
121
  value: h(e.totals.revenue),
121
- icon: /* @__PURE__ */ F(w, { className: "h-4 w-4" }),
122
+ icon: /* @__PURE__ */ P(w, { className: "h-4 w-4" }),
122
123
  featured: !0
123
124
  }),
124
- /* @__PURE__ */ F(d, {
125
+ /* @__PURE__ */ P(d, {
125
126
  title: "ROAS",
126
127
  value: `${e.totals.roas.toFixed(1)}x`,
127
- icon: /* @__PURE__ */ F(j, { className: "h-4 w-4" })
128
+ icon: /* @__PURE__ */ P(A, { className: "h-4 w-4" })
128
129
  }),
129
- /* @__PURE__ */ F(d, {
130
+ /* @__PURE__ */ P(d, {
130
131
  title: "CPA",
131
132
  value: h(e.totals.cpa),
132
- icon: /* @__PURE__ */ F(N, { className: "h-4 w-4" })
133
+ icon: /* @__PURE__ */ P(M, { className: "h-4 w-4" })
133
134
  }),
134
- /* @__PURE__ */ F(d, {
135
+ /* @__PURE__ */ P(d, {
135
136
  title: "Conversion Rate",
136
137
  value: _(e.totals.conversionRate),
137
- icon: /* @__PURE__ */ F(O, { className: "h-4 w-4" })
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__ */ F(p, {
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__ */ F(U, {
147
- icon: /* @__PURE__ */ F(j, { className: "h-8 w-8" }),
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__ */ F(o, {
150
+ }) : /* @__PURE__ */ P(o, {
150
151
  width: "100%",
151
152
  height: 280,
152
- children: /* @__PURE__ */ I(a, {
153
+ children: /* @__PURE__ */ F(a, {
153
154
  data: u,
154
155
  children: [
155
- /* @__PURE__ */ F(n, {
156
+ /* @__PURE__ */ P(n, {
156
157
  strokeDasharray: "3 3",
157
158
  className: "stroke-border"
158
159
  }),
159
- /* @__PURE__ */ F(c, {
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__ */ F(l, {
166
+ /* @__PURE__ */ P(l, {
166
167
  tick: B,
167
168
  tickFormatter: (e) => H(e),
168
169
  className: "text-text-secondary"
169
170
  }),
170
- /* @__PURE__ */ F(s, {
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__ */ F(r, { wrapperStyle: { fontSize: 12 } }),
178
- d.map((e) => /* @__PURE__ */ F(i, {
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__ */ F(p, {
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__ */ F(U, {
195
- icon: /* @__PURE__ */ F(S, { className: "h-8 w-8" }),
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__ */ F(o, {
198
+ }) : /* @__PURE__ */ P(o, {
198
199
  width: "100%",
199
200
  height: Math.max(220, r.channels.length * 44),
200
- children: /* @__PURE__ */ I(t, {
201
+ children: /* @__PURE__ */ F(t, {
201
202
  data: r.channels,
202
203
  layout: "vertical",
203
204
  children: [
204
- /* @__PURE__ */ F(n, {
205
+ /* @__PURE__ */ P(n, {
205
206
  strokeDasharray: "3 3",
206
207
  className: "stroke-border"
207
208
  }),
208
- /* @__PURE__ */ F(c, {
209
+ /* @__PURE__ */ P(c, {
209
210
  type: "number",
210
211
  tick: B,
211
212
  className: "text-text-secondary"
212
213
  }),
213
- /* @__PURE__ */ F(l, {
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__ */ F(s, {
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__ */ F(e, {
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__ */ F(p, {
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__ */ F(U, {
249
- icon: /* @__PURE__ */ F(S, { className: "h-8 w-8" }),
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__ */ F(o, {
252
+ }) : /* @__PURE__ */ P(o, {
252
253
  width: "100%",
253
254
  height: 280,
254
- children: /* @__PURE__ */ I(t, {
255
+ children: /* @__PURE__ */ F(t, {
255
256
  data: i.channels,
256
257
  barGap: 6,
257
258
  children: [
258
- /* @__PURE__ */ F(n, {
259
+ /* @__PURE__ */ P(n, {
259
260
  strokeDasharray: "3 3",
260
261
  className: "stroke-border"
261
262
  }),
262
- /* @__PURE__ */ F(c, {
263
+ /* @__PURE__ */ P(c, {
263
264
  dataKey: "label",
264
265
  tick: B,
265
266
  className: "text-text-secondary"
266
267
  }),
267
- /* @__PURE__ */ F(l, {
268
+ /* @__PURE__ */ P(l, {
268
269
  tick: B,
269
270
  tickFormatter: (e) => H(e),
270
271
  className: "text-text-secondary"
271
272
  }),
272
- /* @__PURE__ */ F(s, {
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__ */ F(r, { wrapperStyle: { fontSize: 12 } }),
283
- /* @__PURE__ */ F(e, {
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__ */ F(e, {
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__ */ F(p, {
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__ */ F(U, {
315
- icon: /* @__PURE__ */ F(T, { className: "h-8 w-8" }),
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__ */ F(u, { stages: [
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__ */ F(p, {
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__ */ F(U, {
338
- icon: /* @__PURE__ */ F(E, { className: "h-8 w-8" }),
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__ */ F("div", {
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__ */ F(U, {
344
- icon: /* @__PURE__ */ F(E, { className: "h-8 w-8" }),
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__ */ F(o, {
347
+ }) : /* @__PURE__ */ P(o, {
347
348
  width: "100%",
348
349
  height: 280,
349
- children: /* @__PURE__ */ I(t, {
350
+ children: /* @__PURE__ */ F(t, {
350
351
  data: i,
351
352
  barGap: 4,
352
353
  children: [
353
- /* @__PURE__ */ F(n, {
354
+ /* @__PURE__ */ P(n, {
354
355
  strokeDasharray: "3 3",
355
356
  className: "stroke-border"
356
357
  }),
357
- /* @__PURE__ */ F(c, {
358
+ /* @__PURE__ */ P(c, {
358
359
  dataKey: "label",
359
360
  tick: B,
360
361
  className: "text-text-secondary"
361
362
  }),
362
- /* @__PURE__ */ F(l, {
363
+ /* @__PURE__ */ P(l, {
363
364
  tick: B,
364
365
  tickFormatter: (e) => H(e),
365
366
  className: "text-text-secondary"
366
367
  }),
367
- /* @__PURE__ */ F(s, {
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__ */ F(r, { wrapperStyle: { fontSize: 12 } }),
378
- /* @__PURE__ */ F(e, {
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__ */ F(e, {
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__ */ F(p, {
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__ */ F(U, {
408
- icon: /* @__PURE__ */ F(M, { className: "h-8 w-8" }),
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__ */ F("div", {
412
+ }) : /* @__PURE__ */ P("div", {
412
413
  className: "overflow-x-auto",
413
- children: /* @__PURE__ */ I("table", {
414
- className: "w-full min-w-[360px] text-left text-sm",
415
- children: [/* @__PURE__ */ F("thead", { children: /* @__PURE__ */ I("tr", {
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__ */ F("th", {
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__ */ F("th", {
423
- className: "pb-2 pr-3 text-xs font-medium text-text-secondary",
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__ */ F("th", {
427
- className: "pb-2 pr-3 text-right text-xs font-medium text-text-secondary",
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__ */ F("th", {
431
- className: "pb-2 text-right text-xs font-medium text-text-secondary",
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__ */ F("tbody", { children: e.topCampaigns.map((e, n) => /* @__PURE__ */ I("tr", {
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__ */ F("td", {
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__ */ F("td", {
443
- className: "py-2.5 pr-3 font-medium text-text-primary",
444
- children: t ? /* @__PURE__ */ F("button", {
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-left hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
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__ */ F("td", {
452
- className: "py-2.5 pr-3 text-right tabular-nums text-text-primary",
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__ */ I("td", {
456
- className: "py-2.5 text-right tabular-nums text-text-secondary",
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
- }), ee = [
464
+ }), te = [
464
465
  {
465
466
  key: "label",
466
467
  header: "Channel",
467
468
  sortable: !0,
468
- render: (e) => /* @__PURE__ */ I("div", {
469
+ render: (e) => /* @__PURE__ */ F("div", {
469
470
  className: "flex items-center gap-2",
470
- children: [/* @__PURE__ */ F("span", {
471
+ children: [/* @__PURE__ */ P("span", {
471
472
  className: "h-3 w-3 rounded-full",
472
473
  style: { backgroundColor: e.color }
473
- }), /* @__PURE__ */ F("span", {
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__ */ F(p, {
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__ */ F(f, {
514
+ children: /* @__PURE__ */ P(f, {
514
515
  data: e.channels,
515
- columns: ee,
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
- }), te = {
520
+ }), ne = {
520
521
  [y.KpiSummary]: {
521
522
  label: "KPI summary",
522
523
  description: "Total revenue, ROAS, CPA and conversion rate.",
523
- icon: /* @__PURE__ */ F(w, { className: "h-4 w-4" }),
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__ */ F(j, { className: "h-4 w-4" }),
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__ */ F(S, { className: "h-4 w-4" }),
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__ */ F(S, { className: "h-4 w-4" }),
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__ */ F(T, { className: "h-4 w-4" }),
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__ */ F(E, { className: "h-4 w-4" }),
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__ */ F(A, { className: "h-4 w-4" }),
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__ */ F(k, { className: "h-4 w-4" }),
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 ne = ({ widget: e, view: t, attribution: n, attributionLoading: r, attributionError: i, onOpenCampaign: a }) => {
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__ */ F(K, { view: t });
573
- case y.RevenueByChannel: return /* @__PURE__ */ F(q, { view: t });
574
- case y.RoasByChannel: return /* @__PURE__ */ F(J, { view: t });
575
- case y.ChannelComparison: return /* @__PURE__ */ F(Y, { view: t });
576
- case y.ConversionFunnel: return /* @__PURE__ */ F(X, { view: t });
577
- case y.Attribution: return /* @__PURE__ */ F(Z, {
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__ */ F(Q, {
583
+ case y.TopCampaigns: return /* @__PURE__ */ P(Q, {
583
584
  view: t,
584
585
  onOpenCampaign: a
585
586
  });
586
- case y.ChannelTable: return /* @__PURE__ */ F($, { view: t });
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, ne as ReportWidgetView, q as RevenueByChannelWidget, J as RoasByChannelWidget, L as TOOLTIP_STYLE, Q as TopCampaignsWidget, te as WIDGET_META, U as WidgetEmpty };
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