@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
@@ -11,18 +11,18 @@ import { useHeadshotMarketing as l } from "../../context/HeadshotMarketingContex
11
11
  import { TouchpointLedgerCard as ee } from "./TouchpointLedgerCard.js";
12
12
  import { PageLayout as te } from "../../components/PageLayout.js";
13
13
  import { StatCard as u } from "../../components/StatCard.js";
14
- import { DataTable as d } from "../../components/DataTable.js";
15
- import { EmptyState as ne } from "../../components/EmptyState.js";
16
- import { ChartCard as f } from "../../components/ChartCard.js";
17
- import { QueryStateBoundary as p } from "../../components/QueryStateBoundary.js";
18
- import { useHeadshotmarketingAttributionSummaryQuery as m, useHeadshotmarketingLifetimeValueAttributionQuery as h } from "../../../generated/wspace-operations.js";
19
- import { HeadshotmarketingAttributionModel as g, HeadshotmarketingDataDrivenStatus as re } from "../../../generated/wspace-types.js";
20
- import { useMemo as _, useState as v } from "react";
21
- import { DollarSign as y, Gem as ie, GitBranch as b, Target as x, Unlink as S, Users as C } from "lucide-react";
22
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
23
- import { EmphasisPanel as ae, PagePurpose as oe } from "@burdenoff/fe-libs/ui";
14
+ import { EmptyState as d } from "../../components/EmptyState.js";
15
+ import { DataTable as f } from "../../components/DataTable.js";
16
+ import { ChartCard as p } from "../../components/ChartCard.js";
17
+ import { QueryStateBoundary as m } from "../../components/QueryStateBoundary.js";
18
+ import { useHeadshotmarketingAttributionSummaryQuery as ne, useHeadshotmarketingLifetimeValueAttributionQuery as h } from "../../../generated/wspace-operations.js";
19
+ import { HeadshotmarketingAttributionModel as g, HeadshotmarketingDataDrivenStatus as _ } from "../../../generated/wspace-types.js";
20
+ import { useMemo as v, useState as y } from "react";
21
+ import { DollarSign as b, Gem as x, GitBranch as S, Target as re, Unlink as ie, Users as ae } from "lucide-react";
22
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
23
+ import { EmphasisPanel as E, PagePurpose as D, ThemedSelect as O } from "@burdenoff/fe-libs/ui";
24
24
  // src/headshotmarketing/pages/analytics/AttributionPage.tsx
25
- var D = [
25
+ var k = [
26
26
  {
27
27
  value: g.PositionBased,
28
28
  label: "Position-based (U-shaped)",
@@ -53,13 +53,13 @@ var D = [
53
53
  label: "Data-driven (learned)",
54
54
  description: "Channel weights learned from this workspace's converting and non-converting journeys (Markov removal effect)."
55
55
  }
56
- ], se = [
56
+ ], oe = [
57
57
  30,
58
58
  90,
59
59
  180,
60
60
  365
61
- ], ce = 864e5, O = "__none__";
62
- function k(e, t, n, r, i, a) {
61
+ ], se = 864e5, A = "__none__";
62
+ function j(e, t, n, r, i, a) {
63
63
  let o = (e) => ({
64
64
  lifetimeValue: e?.attributedLifetimeValue ?? 0,
65
65
  averageLifetimeValue: e?.averageLifetimeValue ?? 0
@@ -70,7 +70,7 @@ function k(e, t, n, r, i, a) {
70
70
  for (let e of s.values()) c.push(a(e, o(e)));
71
71
  return c;
72
72
  }
73
- var A = () => [{
73
+ var M = () => [{
74
74
  key: "lifetimeValue",
75
75
  header: "Customer LTV",
76
76
  sortable: !0,
@@ -80,12 +80,12 @@ var A = () => [{
80
80
  header: "Avg. LTV",
81
81
  sortable: !0,
82
82
  render: (e) => s(e.averageLifetimeValue)
83
- }], j = (e) => `${(e * 100).toFixed(1)}%`, M = [
83
+ }], N = (e) => `${(e * 100).toFixed(1)}%`, P = [
84
84
  {
85
85
  key: "channel",
86
86
  header: "Channel",
87
87
  sortable: !0,
88
- render: (e) => /* @__PURE__ */ T("span", {
88
+ render: (e) => /* @__PURE__ */ w("span", {
89
89
  className: "font-medium text-text-primary capitalize",
90
90
  children: e.channel.replace(/_/g, " ")
91
91
  })
@@ -94,37 +94,37 @@ var A = () => [{
94
94
  key: "weight",
95
95
  header: "Learned weight",
96
96
  sortable: !0,
97
- render: (e) => j(e.weight)
97
+ render: (e) => N(e.weight)
98
98
  },
99
99
  {
100
100
  key: "removalEffect",
101
101
  header: "Removal effect",
102
102
  sortable: !0,
103
- render: (e) => j(e.removalEffect)
103
+ render: (e) => N(e.removalEffect)
104
104
  }
105
- ], N = () => ({
105
+ ], F = () => ({
106
106
  key: "revenueShare",
107
107
  header: "Share",
108
108
  sortable: !0,
109
- render: (e) => /* @__PURE__ */ E("div", {
109
+ render: (e) => /* @__PURE__ */ T("div", {
110
110
  className: "flex items-center gap-2",
111
- children: [/* @__PURE__ */ T("div", {
111
+ children: [/* @__PURE__ */ w("div", {
112
112
  className: "w-16 h-2 rounded-full bg-bg-sunken overflow-hidden",
113
- children: /* @__PURE__ */ T("div", {
113
+ children: /* @__PURE__ */ w("div", {
114
114
  className: "h-full rounded-full bg-action-primary-bg",
115
115
  style: { width: `${Math.min(e.revenueShare * 100, 100)}%` }
116
116
  })
117
- }), /* @__PURE__ */ E("span", {
117
+ }), /* @__PURE__ */ T("span", {
118
118
  className: "text-xs text-text-secondary",
119
119
  children: [(e.revenueShare * 100).toFixed(1), "%"]
120
120
  })]
121
121
  })
122
- }), P = [
122
+ }), I = [
123
123
  {
124
124
  key: "channel",
125
125
  header: "Channel",
126
126
  sortable: !0,
127
- render: (e) => /* @__PURE__ */ T("span", {
127
+ render: (e) => /* @__PURE__ */ w("span", {
128
128
  className: "font-medium text-text-primary capitalize",
129
129
  children: e.channel.replace(/_/g, " ")
130
130
  })
@@ -147,34 +147,34 @@ var A = () => [{
147
147
  sortable: !0,
148
148
  render: (e) => c(e.touchpointCount)
149
149
  },
150
- N(),
151
- ...A()
152
- ], F = () => {
153
- let { navigate: F, basePath: I } = l(), [L, R] = v(g.PositionBased), [z, B] = v(90), { startDate: V, endDate: H } = _(() => {
150
+ F(),
151
+ ...M()
152
+ ], L = () => {
153
+ let { navigate: L, basePath: R } = l(), [z, B] = y(g.PositionBased), [V, H] = y(90), { startDate: U, endDate: W } = v(() => {
154
154
  let e = /* @__PURE__ */ new Date();
155
155
  return e.setHours(23, 59, 59, 999), {
156
- startDate: (/* @__PURE__ */ new Date(e.getTime() - z * ce)).toISOString(),
156
+ startDate: (/* @__PURE__ */ new Date(e.getTime() - V * se)).toISOString(),
157
157
  endDate: e.toISOString()
158
158
  };
159
- }, [z]), { data: U, loading: W, error: le, refetch: ue } = m({
159
+ }, [V]), { data: G, loading: ce, error: le, refetch: ue } = ne({
160
160
  variables: {
161
- model: L,
162
- startDate: V,
163
- endDate: H
161
+ model: z,
162
+ startDate: U,
163
+ endDate: W
164
164
  },
165
165
  fetchPolicy: "cache-and-network"
166
166
  }), { data: de, error: fe } = h({
167
167
  variables: {
168
- model: L,
169
- startDate: V,
170
- endDate: H
168
+ model: z,
169
+ startDate: U,
170
+ endDate: W
171
171
  },
172
172
  fetchPolicy: "cache-and-network"
173
- }), G = U?.headshotmarketingAttributionSummary, K = de?.headshotmarketingLifetimeValueAttribution, q = D.find((e) => e.value === L), J = G?.dataDriven ?? null, Y = J?.status === re.InsufficientData, X = (J?.channelWeights ?? []).map((e) => ({
173
+ }), K = G?.headshotmarketingAttributionSummary, q = de?.headshotmarketingLifetimeValueAttribution, J = k.find((e) => e.value === z), Y = K?.dataDriven ?? null, X = Y?.status === _.InsufficientData, pe = (Y?.channelWeights ?? []).map((e) => ({
174
174
  channel: e.channel,
175
175
  weight: e.weight,
176
176
  removalEffect: e.removalEffect
177
- })), Z = _(() => k(G?.byChannel ?? [], K?.byChannel ?? [], (e) => e.channel, (e) => e.channel, (e, t) => ({
177
+ })), Z = v(() => j(K?.byChannel ?? [], q?.byChannel ?? [], (e) => e.channel, (e) => e.channel, (e, t) => ({
178
178
  channel: e.channel,
179
179
  touchpointCount: e.touchpointCount,
180
180
  attributedConversions: e.attributedConversions,
@@ -188,7 +188,7 @@ var A = () => [{
188
188
  attributedRevenue: 0,
189
189
  revenueShare: 0,
190
190
  ...t
191
- })), [G, K]), pe = _(() => k(G?.byCampaign ?? [], K?.byCampaign ?? [], (e) => e.campaignId ?? O, (e) => e.campaignId ?? O, (e, t) => ({
191
+ })), [K, q]), me = v(() => j(K?.byCampaign ?? [], q?.byCampaign ?? [], (e) => e.campaignId ?? A, (e) => e.campaignId ?? A, (e, t) => ({
192
192
  campaignId: e.campaignId,
193
193
  campaignName: e.campaignName,
194
194
  touchpointCount: e.touchpointCount,
@@ -204,18 +204,18 @@ var A = () => [{
204
204
  attributedRevenue: 0,
205
205
  revenueShare: 0,
206
206
  ...t
207
- })), [G, K]), Q = Z.map((e) => ({
207
+ })), [K, q]), Q = Z.map((e) => ({
208
208
  name: e.channel.replace(/_/g, " "),
209
209
  revenue: e.attributedRevenue
210
- })), me = [
210
+ })), he = [
211
211
  {
212
212
  key: "campaignName",
213
213
  header: "Campaign",
214
214
  sortable: !0,
215
- render: (e) => e.campaignId ? /* @__PURE__ */ T("span", {
215
+ render: (e) => e.campaignId ? /* @__PURE__ */ w("span", {
216
216
  className: "font-medium text-text-primary",
217
217
  children: e.campaignName ?? "Deleted campaign"
218
- }) : /* @__PURE__ */ T("span", {
218
+ }) : /* @__PURE__ */ w("span", {
219
219
  className: "text-text-secondary italic",
220
220
  children: "No campaign"
221
221
  })
@@ -238,31 +238,31 @@ var A = () => [{
238
238
  sortable: !0,
239
239
  render: (e) => c(e.touchpointCount)
240
240
  },
241
- N(),
242
- ...A()
241
+ F(),
242
+ ...M()
243
243
  ], $ = "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary";
244
- return /* @__PURE__ */ E(te, {
244
+ return /* @__PURE__ */ T(te, {
245
245
  title: "Attribution",
246
246
  description: "Multi-touch attribution of closed-won revenue",
247
- actions: /* @__PURE__ */ E("div", {
247
+ actions: /* @__PURE__ */ T("div", {
248
248
  className: "flex flex-wrap items-center gap-2",
249
- children: [/* @__PURE__ */ T("select", {
249
+ children: [/* @__PURE__ */ w(O, {
250
250
  "aria-label": "Attribution model",
251
251
  "data-testid": "attribution-model",
252
- value: L,
253
- onChange: (e) => R(e.target.value),
252
+ value: z,
253
+ onChange: (e) => B(e.target.value),
254
254
  className: $,
255
- children: D.map((e) => /* @__PURE__ */ T("option", {
255
+ children: k.map((e) => /* @__PURE__ */ w("option", {
256
256
  value: e.value,
257
257
  children: e.label
258
258
  }, e.value))
259
- }), /* @__PURE__ */ T("select", {
259
+ }), /* @__PURE__ */ w(O, {
260
260
  "aria-label": "Date range",
261
261
  "data-testid": "attribution-window",
262
- value: z,
263
- onChange: (e) => B(Number(e.target.value)),
262
+ value: V,
263
+ onChange: (e) => H(Number(e.target.value)),
264
264
  className: $,
265
- children: se.map((e) => /* @__PURE__ */ E("option", {
265
+ children: oe.map((e) => /* @__PURE__ */ T("option", {
266
266
  value: e,
267
267
  children: [
268
268
  "Last ",
@@ -273,158 +273,158 @@ var A = () => [{
273
273
  })]
274
274
  }),
275
275
  children: [
276
- /* @__PURE__ */ T(oe, { children: "See which channels and campaigns actually earned your closed revenue. Every deal won in the selected window is credited across the marketing touches that preceded it — leads, event registrations, check-ins, tracked-link clicks and tracked email opens are captured automatically, and connectors can send more. Switch models to compare how first-touch, last-touch, multi-touch and data-driven views shift the credit, and use the lifetime-value columns to see which channels bring in the customers worth the most over time." }),
277
- /* @__PURE__ */ T(p, {
278
- loading: W && !G,
276
+ /* @__PURE__ */ w(D, { children: "See which channels and campaigns actually earned your closed revenue. Every deal won in the selected window is credited across the marketing touches that preceded it — leads, event registrations, check-ins, tracked-link clicks and tracked email opens are captured automatically, and connectors can send more. Switch models to compare how first-touch, last-touch, multi-touch and data-driven views shift the credit, and use the lifetime-value columns to see which channels bring in the customers worth the most over time." }),
277
+ /* @__PURE__ */ w(m, {
278
+ loading: ce && !K,
279
279
  error: le,
280
280
  onRetry: () => void ue(),
281
- hasData: !!G,
282
- children: G && /* @__PURE__ */ E(w, { children: [
283
- /* @__PURE__ */ T(ae, { children: /* @__PURE__ */ E("div", {
281
+ hasData: !!K,
282
+ children: K && /* @__PURE__ */ T(C, { children: [
283
+ /* @__PURE__ */ w(E, { children: /* @__PURE__ */ T("div", {
284
284
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
285
285
  "data-testid": "attribution-stats",
286
286
  children: [
287
- /* @__PURE__ */ T(u, {
287
+ /* @__PURE__ */ w(u, {
288
288
  title: "Closed-won revenue",
289
- value: s(G.totalRevenue),
290
- icon: /* @__PURE__ */ T(y, { className: "h-4 w-4" }),
289
+ value: s(K.totalRevenue),
290
+ icon: /* @__PURE__ */ w(b, { className: "h-4 w-4" }),
291
291
  featured: !0
292
292
  }),
293
- /* @__PURE__ */ T(u, {
293
+ /* @__PURE__ */ w(u, {
294
294
  title: "Attributed revenue",
295
- value: s(G.attributedRevenue),
296
- icon: /* @__PURE__ */ T(b, { className: "h-4 w-4" })
295
+ value: s(K.attributedRevenue),
296
+ icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" })
297
297
  }),
298
- /* @__PURE__ */ T(u, {
298
+ /* @__PURE__ */ w(u, {
299
299
  title: "Deals with a journey",
300
- value: `${c(G.attributedConversionCount)} / ${c(G.conversionCount)}`,
301
- icon: /* @__PURE__ */ T(x, { className: "h-4 w-4" })
300
+ value: `${c(K.attributedConversionCount)} / ${c(K.conversionCount)}`,
301
+ icon: /* @__PURE__ */ w(re, { className: "h-4 w-4" })
302
302
  }),
303
- /* @__PURE__ */ T(u, {
303
+ /* @__PURE__ */ w(u, {
304
304
  title: "Unattributed revenue",
305
- value: s(G.unattributedRevenue),
306
- icon: /* @__PURE__ */ T(S, { className: "h-4 w-4" })
305
+ value: s(K.unattributedRevenue),
306
+ icon: /* @__PURE__ */ w(ie, { className: "h-4 w-4" })
307
307
  })
308
308
  ]
309
309
  }) }),
310
- q && /* @__PURE__ */ E("p", {
310
+ J && /* @__PURE__ */ T("p", {
311
311
  className: "text-sm text-text-secondary",
312
312
  "data-testid": "attribution-model-description",
313
313
  children: [
314
- /* @__PURE__ */ E("span", {
314
+ /* @__PURE__ */ T("span", {
315
315
  className: "font-medium text-text-primary",
316
- children: [q.label, ":"]
316
+ children: [J.label, ":"]
317
317
  }),
318
318
  " ",
319
- q.description
319
+ J.description
320
320
  ]
321
321
  }),
322
- K && /* @__PURE__ */ E("div", {
322
+ q && /* @__PURE__ */ T("div", {
323
323
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
324
324
  "data-testid": "attribution-clv-stats",
325
325
  children: [
326
- /* @__PURE__ */ T(u, {
326
+ /* @__PURE__ */ w(u, {
327
327
  title: "Customers acquired",
328
- value: `${c(K.attributedCustomerCount)} / ${c(K.customerCount)} with a journey`,
329
- icon: /* @__PURE__ */ T(C, { className: "h-4 w-4" })
328
+ value: `${c(q.attributedCustomerCount)} / ${c(q.customerCount)} with a journey`,
329
+ icon: /* @__PURE__ */ w(ae, { className: "h-4 w-4" })
330
330
  }),
331
- /* @__PURE__ */ T(u, {
331
+ /* @__PURE__ */ w(u, {
332
332
  title: "Avg. customer lifetime value",
333
- value: s(K.averageLifetimeValue),
334
- icon: /* @__PURE__ */ T(ie, { className: "h-4 w-4" })
333
+ value: s(q.averageLifetimeValue),
334
+ icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" })
335
335
  }),
336
- /* @__PURE__ */ T(u, {
336
+ /* @__PURE__ */ w(u, {
337
337
  title: "Attributed lifetime value",
338
- value: s(K.attributedLifetimeValue),
339
- icon: /* @__PURE__ */ T(y, { className: "h-4 w-4" })
338
+ value: s(q.attributedLifetimeValue),
339
+ icon: /* @__PURE__ */ w(b, { className: "h-4 w-4" })
340
340
  })
341
341
  ]
342
342
  }),
343
- fe && !K && /* @__PURE__ */ T("p", {
343
+ fe && !q && /* @__PURE__ */ w("p", {
344
344
  className: "text-sm text-status-warning-text",
345
345
  children: "Customer lifetime value could not be loaded right now; revenue attribution below is unaffected."
346
346
  }),
347
- J && Y && /* @__PURE__ */ E("div", {
347
+ Y && X && /* @__PURE__ */ T("div", {
348
348
  className: "rounded-md border border-border-seam bg-gloss-card p-4 text-sm text-text-secondary",
349
349
  "data-testid": "attribution-insufficient-data",
350
350
  role: "status",
351
- children: [/* @__PURE__ */ T("p", {
351
+ children: [/* @__PURE__ */ w("p", {
352
352
  className: "font-medium text-text-primary",
353
353
  children: "Not enough data to learn a data-driven model yet"
354
- }), /* @__PURE__ */ E("p", {
354
+ }), /* @__PURE__ */ T("p", {
355
355
  className: "mt-1",
356
356
  children: [
357
357
  "The model needs at least",
358
358
  " ",
359
- c(J.minConvertingJourneys),
359
+ c(Y.minConvertingJourneys),
360
360
  " converting and ",
361
- c(J.minNonConvertingJourneys),
361
+ c(Y.minNonConvertingJourneys),
362
362
  " ",
363
363
  "non-converting journeys. This window has",
364
364
  " ",
365
- c(J.convertingJourneys),
365
+ c(Y.convertingJourneys),
366
366
  " converting and",
367
367
  " ",
368
- c(J.nonConvertingJourneys),
368
+ c(Y.nonConvertingJourneys),
369
369
  " ",
370
370
  "non-converting. Widen the date range, or pick a rule-based model to see credit now."
371
371
  ]
372
372
  })]
373
373
  }),
374
- J && !Y && /* @__PURE__ */ T(f, {
374
+ Y && !X && /* @__PURE__ */ w(p, {
375
375
  title: "Learned channel weights",
376
- subtitle: `Learned from ${c(J.convertingJourneys)} converting and ${c(J.nonConvertingJourneys)} non-converting journeys${J.baselineConversionProbability == null ? "" : ` · baseline conversion ${j(J.baselineConversionProbability)}`}`,
377
- children: /* @__PURE__ */ T("div", {
376
+ subtitle: `Learned from ${c(Y.convertingJourneys)} converting and ${c(Y.nonConvertingJourneys)} non-converting journeys${Y.baselineConversionProbability == null ? "" : ` · baseline conversion ${N(Y.baselineConversionProbability)}`}`,
377
+ children: /* @__PURE__ */ w("div", {
378
378
  "data-testid": "attribution-learned-weights",
379
- children: /* @__PURE__ */ T(d, {
380
- data: X,
381
- columns: M,
379
+ children: /* @__PURE__ */ w(f, {
380
+ data: pe,
381
+ columns: P,
382
382
  pageSize: 8,
383
383
  emptyMessage: "No channels in this window."
384
384
  })
385
385
  })
386
386
  }),
387
- G.truncated && /* @__PURE__ */ T("p", {
387
+ K.truncated && /* @__PURE__ */ w("p", {
388
388
  className: "text-sm text-status-warning-text",
389
389
  children: "This window holds more than 1,000 won deals; only the most recent 1,000 are attributed. Narrow the date range to see the rest."
390
390
  }),
391
- Y ? null : G.conversionCount === 0 ? /* @__PURE__ */ T(ne, {
392
- icon: /* @__PURE__ */ T(b, { className: "h-6 w-6" }),
391
+ X ? null : K.conversionCount === 0 ? /* @__PURE__ */ w(d, {
392
+ icon: /* @__PURE__ */ w(S, { className: "h-6 w-6" }),
393
393
  title: "No closed-won deals in this window",
394
394
  description: "Attribution credits revenue from deals marked WON. Close a deal in the CRM, or widen the date range.",
395
- action: /* @__PURE__ */ T("button", {
395
+ action: /* @__PURE__ */ w("button", {
396
396
  type: "button",
397
- onClick: () => F(I + "/crm"),
397
+ onClick: () => L(R + "/crm"),
398
398
  className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text",
399
399
  children: "Open CRM"
400
400
  })
401
- }) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(f, {
401
+ }) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(p, {
402
402
  title: "Attributed revenue by channel",
403
- subtitle: `${c(G.touchpointCount)} touchpoints across ${c(G.attributedConversionCount)} won deals`,
404
- children: Q.length === 0 ? /* @__PURE__ */ T("p", {
403
+ subtitle: `${c(K.touchpointCount)} touchpoints across ${c(K.attributedConversionCount)} won deals`,
404
+ children: Q.length === 0 ? /* @__PURE__ */ w("p", {
405
405
  className: "py-8 text-center text-sm text-text-secondary",
406
406
  children: "None of these deals have recorded touchpoints yet."
407
- }) : /* @__PURE__ */ T(o, {
407
+ }) : /* @__PURE__ */ w(o, {
408
408
  width: "100%",
409
409
  height: 280,
410
- children: /* @__PURE__ */ E(e, {
410
+ children: /* @__PURE__ */ T(e, {
411
411
  data: Q,
412
412
  children: [
413
- /* @__PURE__ */ T(i, {
413
+ /* @__PURE__ */ w(i, {
414
414
  strokeDasharray: "3 3",
415
415
  className: "stroke-border"
416
416
  }),
417
- /* @__PURE__ */ T(n, {
417
+ /* @__PURE__ */ w(n, {
418
418
  dataKey: "name",
419
419
  tick: { fontSize: 12 },
420
420
  className: "text-text-secondary capitalize"
421
421
  }),
422
- /* @__PURE__ */ T(r, {
422
+ /* @__PURE__ */ w(r, {
423
423
  tick: { fontSize: 12 },
424
424
  className: "text-text-secondary"
425
425
  }),
426
- /* @__PURE__ */ T(a, { formatter: (e) => s(e) }),
427
- /* @__PURE__ */ T(t, {
426
+ /* @__PURE__ */ w(a, { formatter: (e) => s(e) }),
427
+ /* @__PURE__ */ w(t, {
428
428
  dataKey: "revenue",
429
429
  name: "Attributed revenue",
430
430
  fill: "var(--color-chart-1)",
@@ -438,26 +438,26 @@ var A = () => [{
438
438
  ]
439
439
  })
440
440
  })
441
- }), /* @__PURE__ */ E("div", {
441
+ }), /* @__PURE__ */ T("div", {
442
442
  className: "grid grid-cols-1 xl:grid-cols-2 gap-6",
443
- children: [/* @__PURE__ */ T(f, {
443
+ children: [/* @__PURE__ */ w(p, {
444
444
  title: "Channels",
445
445
  subtitle: "Credited revenue per channel",
446
- children: /* @__PURE__ */ T(d, {
446
+ children: /* @__PURE__ */ w(f, {
447
447
  data: Z,
448
- columns: P,
448
+ columns: I,
449
449
  pageSize: 8,
450
450
  emptyMessage: "No touchpoints recorded for these deals."
451
451
  })
452
- }), /* @__PURE__ */ T(f, {
452
+ }), /* @__PURE__ */ w(p, {
453
453
  title: "Campaigns",
454
454
  subtitle: "Credited revenue per campaign",
455
- children: /* @__PURE__ */ T(d, {
456
- data: pe,
457
- columns: me,
455
+ children: /* @__PURE__ */ w(f, {
456
+ data: me,
457
+ columns: he,
458
458
  pageSize: 8,
459
459
  onRowClick: (e) => {
460
- e.campaignId && F(I + "/campaigns/" + e.campaignId);
460
+ e.campaignId && L(R + "/campaigns/" + e.campaignId);
461
461
  },
462
462
  emptyMessage: "No touchpoints recorded for these deals."
463
463
  })
@@ -465,10 +465,10 @@ var A = () => [{
465
465
  })] })
466
466
  ] })
467
467
  }),
468
- /* @__PURE__ */ T(ee, {})
468
+ /* @__PURE__ */ w(ee, {})
469
469
  ]
470
470
  });
471
471
  };
472
- export { F as AttributionPage };
472
+ export { L as AttributionPage };
473
473
 
474
474
  //# sourceMappingURL=AttributionPage.js.map