@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.
Files changed (144) hide show
  1. package/dist/generated/global-types.d.ts +3589 -380
  2. package/dist/generated/wspace-operations.d.ts +101 -3
  3. package/dist/generated/wspace-operations.js.map +1 -1
  4. package/dist/generated/wspace-types.d.ts +61782 -2332
  5. package/dist/generated/wspace-types.js.map +1 -1
  6. package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
  7. package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
  8. package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
  9. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  10. package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
  11. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
  12. package/dist/headshotmarketing/components/StatusBadge.js +1 -1
  13. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  14. package/dist/headshotmarketing/components/Toast.js +3 -3
  15. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  16. package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
  17. package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
  18. package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
  19. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
  20. package/dist/headshotmarketing/pages/HomePage.js +6 -6
  21. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  22. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
  23. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
  24. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
  25. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  26. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
  27. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  28. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
  29. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  30. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
  31. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
  33. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  34. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
  35. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  36. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
  37. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
  38. package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
  39. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  40. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
  41. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  42. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
  43. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  44. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
  45. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  46. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
  47. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
  48. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
  49. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
  51. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
  53. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
  55. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
  57. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
  59. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
  61. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  62. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
  64. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
  65. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
  67. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  70. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
  71. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
  73. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  74. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
  75. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
  77. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
  79. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
  81. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
  83. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
  85. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  86. package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  88. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  90. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  92. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  94. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  96. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
  97. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
  98. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
  99. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  100. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
  101. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  102. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
  103. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
  104. package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  106. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
  107. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
  108. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
  109. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
  111. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  112. package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  114. package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  116. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  118. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
  119. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  120. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
  121. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  122. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
  123. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  124. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  125. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  126. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +104 -103
  127. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  128. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
  129. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  130. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
  131. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  132. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
  133. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  134. package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
  135. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  136. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
  137. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  138. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
  139. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  140. package/dist/headshotmarketing/utils/index.d.ts +1 -0
  141. package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
  142. package/dist/headshotmarketing/utils/readableError.js +12 -0
  143. package/dist/headshotmarketing/utils/readableError.js.map +1 -0
  144. 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 { 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";
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 L = {
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
- }, R = { color: "var(--color-text-secondary)" }, z = { color: "var(--color-text-primary)" }, B = { fontSize: 12 }, V = (e) => (/* @__PURE__ */ new Date(`${e}T00:00:00.000Z`)).toLocaleDateString("en-US", {
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
- }), 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", {
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__ */ P("span", {
38
+ children: [/* @__PURE__ */ I("span", {
38
39
  className: "text-text-secondary/70",
39
40
  children: e
40
- }), /* @__PURE__ */ P("p", {
41
+ }), /* @__PURE__ */ I("p", {
41
42
  className: "max-w-xs text-xs text-text-secondary",
42
43
  children: t
43
44
  })]
44
- }), W = ({ value: e, onChange: t, invalid: n = !1, idPrefix: r }) => /* @__PURE__ */ F("div", {
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__ */ F("label", {
47
+ children: [/* @__PURE__ */ L("label", {
47
48
  className: "relative inline-flex items-center",
48
49
  children: [
49
- /* @__PURE__ */ P("span", {
50
+ /* @__PURE__ */ I("span", {
50
51
  className: "sr-only",
51
52
  children: "Date range"
52
53
  }),
53
- /* @__PURE__ */ P(C, { className: "pointer-events-none absolute start-3 h-4 w-4 text-text-secondary" }),
54
- /* @__PURE__ */ P(I, {
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__ */ P("option", {
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(N, { children: [
73
- /* @__PURE__ */ P("label", {
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__ */ P("input", {
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__ */ P("span", {
91
+ /* @__PURE__ */ I("span", {
91
92
  className: "text-xs text-text-secondary",
92
93
  children: "to"
93
94
  }),
94
- /* @__PURE__ */ P("label", {
95
+ /* @__PURE__ */ I("label", {
95
96
  className: "sr-only",
96
97
  htmlFor: `${r}-end`,
97
98
  children: "End date"
98
99
  }),
99
- /* @__PURE__ */ P("input", {
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
- }), G = ({ source: e, windowLabel: t }) => e === "daily" ? null : /* @__PURE__ */ F("div", {
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__ */ 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
+ 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__ */ P(d, {
120
+ /* @__PURE__ */ I(d, {
120
121
  title: "Total Revenue",
121
122
  value: h(e.totals.revenue),
122
- icon: /* @__PURE__ */ P(w, { className: "h-4 w-4" }),
123
+ icon: /* @__PURE__ */ I(T, { className: "h-4 w-4" }),
123
124
  featured: !0
124
125
  }),
125
- /* @__PURE__ */ P(d, {
126
+ /* @__PURE__ */ I(d, {
126
127
  title: "ROAS",
127
128
  value: `${e.totals.roas.toFixed(1)}x`,
128
- icon: /* @__PURE__ */ P(A, { className: "h-4 w-4" })
129
+ icon: /* @__PURE__ */ I(M, { className: "h-4 w-4" })
129
130
  }),
130
- /* @__PURE__ */ P(d, {
131
+ /* @__PURE__ */ I(d, {
131
132
  title: "CPA",
132
133
  value: h(e.totals.cpa),
133
- icon: /* @__PURE__ */ P(M, { className: "h-4 w-4" })
134
+ icon: /* @__PURE__ */ I(P, { className: "h-4 w-4" })
134
135
  }),
135
- /* @__PURE__ */ P(d, {
136
+ /* @__PURE__ */ I(d, {
136
137
  title: "Conversion Rate",
137
138
  value: _(e.totals.conversionRate),
138
- icon: /* @__PURE__ */ P(D, { className: "h-4 w-4" })
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__ */ P(p, {
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__ */ P(U, {
148
- icon: /* @__PURE__ */ P(A, { className: "h-8 w-8" }),
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__ */ P(o, {
151
+ }) : /* @__PURE__ */ I(o, {
151
152
  width: "100%",
152
153
  height: 280,
153
- children: /* @__PURE__ */ F(a, {
154
+ children: /* @__PURE__ */ L(a, {
154
155
  data: u,
155
156
  children: [
156
- /* @__PURE__ */ P(n, {
157
+ /* @__PURE__ */ I(n, {
157
158
  strokeDasharray: "3 3",
158
159
  className: "stroke-border"
159
160
  }),
160
- /* @__PURE__ */ P(c, {
161
+ /* @__PURE__ */ I(c, {
161
162
  dataKey: "date",
162
- tick: B,
163
- tickFormatter: (e) => V(e),
163
+ tick: H,
164
+ tickFormatter: (e) => U(e),
164
165
  className: "text-text-secondary"
165
166
  }),
166
- /* @__PURE__ */ P(l, {
167
- tick: B,
168
- tickFormatter: (e) => H(e),
167
+ /* @__PURE__ */ I(l, {
168
+ tick: H,
169
+ tickFormatter: (e) => W(e),
169
170
  className: "text-text-secondary"
170
171
  }),
171
- /* @__PURE__ */ P(s, {
172
- contentStyle: L,
173
- labelStyle: R,
174
- itemStyle: z,
175
- labelFormatter: (e) => V(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__ */ P(r, { wrapperStyle: { fontSize: 12 } }),
179
- d.map((e) => /* @__PURE__ */ P(i, {
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__ */ P(p, {
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__ */ P(U, {
196
- icon: /* @__PURE__ */ P(S, { className: "h-8 w-8" }),
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__ */ P(o, {
199
+ }) : /* @__PURE__ */ I(o, {
199
200
  width: "100%",
200
201
  height: Math.max(220, r.channels.length * 44),
201
- children: /* @__PURE__ */ F(t, {
202
+ children: /* @__PURE__ */ L(t, {
202
203
  data: r.channels,
203
204
  layout: "vertical",
204
205
  children: [
205
- /* @__PURE__ */ P(n, {
206
+ /* @__PURE__ */ I(n, {
206
207
  strokeDasharray: "3 3",
207
208
  className: "stroke-border"
208
209
  }),
209
- /* @__PURE__ */ P(c, {
210
+ /* @__PURE__ */ I(c, {
210
211
  type: "number",
211
- tick: B,
212
+ tick: H,
212
213
  className: "text-text-secondary"
213
214
  }),
214
- /* @__PURE__ */ P(l, {
215
+ /* @__PURE__ */ I(l, {
215
216
  dataKey: "label",
216
217
  type: "category",
217
218
  width: 100,
218
- tick: B,
219
+ tick: H,
219
220
  className: "text-text-secondary"
220
221
  }),
221
- /* @__PURE__ */ P(s, {
222
+ /* @__PURE__ */ I(s, {
222
223
  cursor: {
223
224
  fill: "var(--color-bg-sunken)",
224
225
  opacity: .4
225
226
  },
226
- contentStyle: L,
227
- labelStyle: R,
228
- itemStyle: z,
227
+ contentStyle: z,
228
+ labelStyle: B,
229
+ itemStyle: V,
229
230
  formatter: (e) => `${e.toFixed(2)}x`
230
231
  }),
231
- /* @__PURE__ */ P(e, {
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__ */ P(p, {
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__ */ P(U, {
250
- icon: /* @__PURE__ */ P(S, { className: "h-8 w-8" }),
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__ */ P(o, {
253
+ }) : /* @__PURE__ */ I(o, {
253
254
  width: "100%",
254
255
  height: 280,
255
- children: /* @__PURE__ */ F(t, {
256
+ children: /* @__PURE__ */ L(t, {
256
257
  data: i.channels,
257
258
  barGap: 6,
258
259
  children: [
259
- /* @__PURE__ */ P(n, {
260
+ /* @__PURE__ */ I(n, {
260
261
  strokeDasharray: "3 3",
261
262
  className: "stroke-border"
262
263
  }),
263
- /* @__PURE__ */ P(c, {
264
+ /* @__PURE__ */ I(c, {
264
265
  dataKey: "label",
265
- tick: B,
266
+ tick: H,
266
267
  className: "text-text-secondary"
267
268
  }),
268
- /* @__PURE__ */ P(l, {
269
- tick: B,
270
- tickFormatter: (e) => H(e),
269
+ /* @__PURE__ */ I(l, {
270
+ tick: H,
271
+ tickFormatter: (e) => W(e),
271
272
  className: "text-text-secondary"
272
273
  }),
273
- /* @__PURE__ */ P(s, {
274
+ /* @__PURE__ */ I(s, {
274
275
  cursor: {
275
276
  fill: "var(--color-bg-sunken)",
276
277
  opacity: .4
277
278
  },
278
- contentStyle: L,
279
- labelStyle: R,
280
- itemStyle: z,
279
+ contentStyle: z,
280
+ labelStyle: B,
281
+ itemStyle: V,
281
282
  formatter: (e) => h(e)
282
283
  }),
283
- /* @__PURE__ */ P(r, { wrapperStyle: { fontSize: 12 } }),
284
- /* @__PURE__ */ P(e, {
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__ */ P(e, {
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__ */ P(p, {
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__ */ P(U, {
316
- icon: /* @__PURE__ */ P(T, { className: "h-8 w-8" }),
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__ */ P(u, { stages: [
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__ */ P(p, {
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__ */ P(U, {
339
- icon: /* @__PURE__ */ P(E, { className: "h-8 w-8" }),
340
- message: `Attribution could not be loaded: ${u.message}`
341
- }) : a ? /* @__PURE__ */ P("div", {
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__ */ P(U, {
345
- icon: /* @__PURE__ */ P(E, { className: "h-8 w-8" }),
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__ */ P(o, {
348
+ }) : /* @__PURE__ */ I(o, {
348
349
  width: "100%",
349
350
  height: 280,
350
- children: /* @__PURE__ */ F(t, {
351
+ children: /* @__PURE__ */ L(t, {
351
352
  data: i,
352
353
  barGap: 4,
353
354
  children: [
354
- /* @__PURE__ */ P(n, {
355
+ /* @__PURE__ */ I(n, {
355
356
  strokeDasharray: "3 3",
356
357
  className: "stroke-border"
357
358
  }),
358
- /* @__PURE__ */ P(c, {
359
+ /* @__PURE__ */ I(c, {
359
360
  dataKey: "label",
360
- tick: B,
361
+ tick: H,
361
362
  className: "text-text-secondary"
362
363
  }),
363
- /* @__PURE__ */ P(l, {
364
- tick: B,
365
- tickFormatter: (e) => H(e),
364
+ /* @__PURE__ */ I(l, {
365
+ tick: H,
366
+ tickFormatter: (e) => W(e),
366
367
  className: "text-text-secondary"
367
368
  }),
368
- /* @__PURE__ */ P(s, {
369
+ /* @__PURE__ */ I(s, {
369
370
  cursor: {
370
371
  fill: "var(--color-bg-sunken)",
371
372
  opacity: .4
372
373
  },
373
- contentStyle: L,
374
- labelStyle: R,
375
- itemStyle: z,
374
+ contentStyle: z,
375
+ labelStyle: B,
376
+ itemStyle: V,
376
377
  formatter: (e) => h(e)
377
378
  }),
378
- /* @__PURE__ */ P(r, { wrapperStyle: { fontSize: 12 } }),
379
- /* @__PURE__ */ P(e, {
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__ */ P(e, {
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__ */ P(p, {
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__ */ P(U, {
409
- icon: /* @__PURE__ */ P(j, { className: "h-8 w-8" }),
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__ */ P("div", {
413
+ }) : /* @__PURE__ */ I("div", {
413
414
  className: "overflow-x-auto",
414
- children: /* @__PURE__ */ F("table", {
415
+ children: /* @__PURE__ */ L("table", {
415
416
  className: "w-full min-w-[360px] text-start text-sm",
416
- children: [/* @__PURE__ */ P("thead", { children: /* @__PURE__ */ F("tr", {
417
+ children: [/* @__PURE__ */ I("thead", { children: /* @__PURE__ */ L("tr", {
417
418
  className: "border-b border-border-subtle",
418
419
  children: [
419
- /* @__PURE__ */ P("th", {
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__ */ P("th", {
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__ */ P("th", {
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__ */ P("th", {
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__ */ P("tbody", { children: e.topCampaigns.map((e, n) => /* @__PURE__ */ F("tr", {
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__ */ P("td", {
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__ */ P("td", {
444
+ /* @__PURE__ */ I("td", {
444
445
  className: "py-2.5 pe-3 font-medium text-text-primary",
445
- children: t ? /* @__PURE__ */ P("button", {
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__ */ P("td", {
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__ */ F("td", {
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
- }), te = [
465
+ }), ne = [
465
466
  {
466
467
  key: "label",
467
468
  header: "Channel",
468
469
  sortable: !0,
469
- render: (e) => /* @__PURE__ */ F("div", {
470
+ render: (e) => /* @__PURE__ */ L("div", {
470
471
  className: "flex items-center gap-2",
471
- children: [/* @__PURE__ */ P("span", {
472
+ children: [/* @__PURE__ */ I("span", {
472
473
  className: "h-3 w-3 rounded-full",
473
474
  style: { backgroundColor: e.color }
474
- }), /* @__PURE__ */ P("span", {
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__ */ P(p, {
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__ */ P(f, {
515
+ children: /* @__PURE__ */ I(f, {
515
516
  data: e.channels,
516
- columns: te,
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
- }), ne = {
521
+ }), re = {
521
522
  [y.KpiSummary]: {
522
523
  label: "KPI summary",
523
524
  description: "Total revenue, ROAS, CPA and conversion rate.",
524
- icon: /* @__PURE__ */ P(w, { className: "h-4 w-4" }),
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__ */ P(A, { className: "h-4 w-4" }),
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__ */ P(S, { className: "h-4 w-4" }),
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__ */ P(S, { className: "h-4 w-4" }),
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__ */ P(T, { className: "h-4 w-4" }),
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__ */ P(E, { className: "h-4 w-4" }),
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__ */ P(k, { className: "h-4 w-4" }),
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__ */ P(O, { className: "h-4 w-4" }),
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 re = ({ widget: e, view: t, attribution: n, attributionLoading: r, attributionError: i, onOpenCampaign: a }) => {
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__ */ 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, {
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__ */ P(Q, {
584
+ case y.TopCampaigns: return /* @__PURE__ */ I(Q, {
584
585
  view: t,
585
586
  onOpenCampaign: a
586
587
  });
587
- case y.ChannelTable: return /* @__PURE__ */ P($, { view: t });
588
+ case y.ChannelTable: return /* @__PURE__ */ I($, { view: t });
588
589
  }
589
590
  };
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 };
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