@burdenoff/microfe-headshotmarketing 2026.626.2 → 2026.704.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 (140) hide show
  1. package/dist/generated/wspace-operations.js +970 -52
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +26 -10
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
  6. package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
  7. package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
  8. package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
  9. package/dist/headshotmarketing/components/ActionMenu.js +57 -0
  10. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
  11. package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
  12. package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
  13. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  14. package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
  15. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
  16. package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
  17. package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
  18. package/dist/headshotmarketing/components/Modal.js +6 -3
  19. package/dist/headshotmarketing/components/Modal.js.map +1 -1
  20. package/dist/headshotmarketing/components/Pagination.js +117 -0
  21. package/dist/headshotmarketing/components/Pagination.js.map +1 -0
  22. package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
  23. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
  24. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  25. package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
  26. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
  27. package/dist/headshotmarketing/components/index.js +6 -0
  28. package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
  29. package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
  30. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
  31. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
  32. package/dist/headshotmarketing/hooks/index.js +4 -0
  33. package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
  34. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
  35. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
  36. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
  37. package/dist/headshotmarketing/hooks/usePagination.js +53 -0
  38. package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
  39. package/dist/headshotmarketing/pages/HomePage.js +291 -322
  40. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
  42. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
  44. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
  46. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
  48. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
  50. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
  52. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
  54. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
  56. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
  58. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +227 -210
  60. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
  62. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
  64. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
  66. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
  67. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
  68. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
  70. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +303 -342
  74. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
  76. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
  78. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
  80. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
  82. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
  84. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
  86. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
  88. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
  90. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
  92. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
  94. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
  96. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  97. package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
  98. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
  99. package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
  100. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
  102. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
  104. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
  106. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  107. package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
  108. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
  110. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  111. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
  112. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
  114. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
  116. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
  118. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
  120. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  121. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
  122. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
  124. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
  126. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
  128. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  129. package/dist/headshotmarketing/utils/adsMapper.js +74 -51
  130. package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
  131. package/dist/headshotmarketing/utils/analyticsMapper.js +11 -11
  132. package/dist/headshotmarketing/utils/analyticsMapper.js.map +1 -1
  133. package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
  134. package/dist/headshotmarketing/utils/helpers.js +11 -1
  135. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  136. package/dist/headshotmarketing/utils/influencerMapper.js +5 -4
  137. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  138. package/package.json +1 -1
  139. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  140. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -7,42 +7,40 @@ import { CartesianGrid as a } from "../../../node_modules/recharts/es6/cartesian
7
7
  import { Area as o } from "../../../node_modules/recharts/es6/cartesian/Area.js";
8
8
  import { XAxis as s } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
9
9
  import { YAxis as c } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
10
- import { BarChart as ee } from "../../../node_modules/recharts/es6/chart/BarChart.js";
11
- import { AreaChart as l } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
12
- import { useHeadshotmarketingBootstrapDataQuery as u } from "../../../generated/wspace-operations.js";
13
- import { cn as te, formatCurrency as d, formatNumber as f, formatPercentage as p } from "../../utils/helpers.js";
14
- import { toCampaignModel as m } from "../../utils/campaignMapper.js";
10
+ import { BarChart as l } from "../../../node_modules/recharts/es6/chart/BarChart.js";
11
+ import { AreaChart as u } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
12
+ import { cn as d, formatCurrency as f, formatNumber as p, formatPercentage as m } from "../../utils/helpers.js";
13
+ import { toCampaignModel as ee } from "../../utils/campaignMapper.js";
15
14
  import { toAdCampaignModel as h } from "../../utils/adsMapper.js";
16
- import { toCampaignTimeSeries as g, toChannelPerformance as _, toDeviceData as v, toFunnelStages as ne, toGeographicData as y } from "../../utils/analyticsMapper.js";
15
+ import { toCampaignTimeSeries as g, toChannelPerformance as _, toDeviceData as v, toFunnelStages as te, toGeographicData as y } from "../../utils/analyticsMapper.js";
17
16
  import { PageLayout as b } from "../../components/PageLayout.js";
18
17
  import { StatCard as x } from "../../components/StatCard.js";
19
18
  import { DataTable as S } from "../../components/DataTable.js";
20
19
  import { ChartCard as C } from "../../components/ChartCard.js";
20
+ import { QueryStateBoundary as w } from "../../components/QueryStateBoundary.js";
21
21
  import "../../components/index.js";
22
- import { toSocialAccountModel as re } from "../../utils/socialMapper.js";
23
- import { useState as ie } from "react";
24
- import { ArrowRightLeft as ae, CreditCard as oe, DollarSign as w, Eye as T, Globe as E, Monitor as D, MousePointerClick as O, Percent as k, Smartphone as A, Tablet as j, Target as M, TrendingUp as N } from "lucide-react";
25
- import { jsx as P, jsxs as F } from "react/jsx-runtime";
26
- import { EmphasisPanel as I, NextSteps as L, PagePurpose as R } from "@burdenoff/fe-libs/ui";
22
+ import { useHeadshotmarketingBootstrap as T } from "../../hooks/useHeadshotmarketingBootstrap.js";
23
+ import { toSocialAccountModel as ne } from "../../utils/socialMapper.js";
24
+ import { useState as re } from "react";
25
+ import { ArrowRightLeft as ie, CreditCard as ae, DollarSign as E, Eye as D, Globe as O, Monitor as k, MousePointerClick as A, Percent as j, Smartphone as M, Tablet as N, Target as P, TrendingUp as F } from "lucide-react";
26
+ import { jsx as I, jsxs as L } from "react/jsx-runtime";
27
+ import { EmphasisPanel as R, NextSteps as z, PagePurpose as B } from "@burdenoff/fe-libs/ui";
27
28
  //#region src/headshotmarketing/pages/analytics/AnalyticsPage.tsx
28
- var z = [
29
+ var V = [
29
30
  "var(--color-chart-1)",
30
31
  "var(--color-chart-2)",
31
32
  "var(--color-chart-3)",
32
33
  "var(--color-chart-4)",
33
34
  "var(--color-chart-5)",
34
35
  "var(--color-chart-6)"
35
- ], B = () => {
36
- let { navigate: B } = e(), { data: V } = u({ variables: {
37
- limit: 200,
38
- offset: 0
39
- } }), [H, U] = ie("overview"), W = (V?.headshotmarketingCampaigns.items ?? []).map((e) => m(e)), G = (V?.headshotmarketingAdCampaigns.items ?? []).map((e) => h(e)), K = (V?.headshotmarketingSocialAccounts.items ?? []).map((e) => re(e)), q = g(W), J = _(W, G), Y = y(J), X = v(K), Z = W.reduce((e, t) => (e.impressions += t.metrics.impressions, e.clicks += t.metrics.clicks, e.conversions += t.metrics.conversions, e.revenue += t.metrics.revenue, e.cost += t.metrics.cost, e), {
36
+ ], H = () => {
37
+ let { navigate: H, basePath: U } = e(), { data: W, loading: G, error: oe, refetch: K } = T(), [q, se] = re("overview"), J = (W?.headshotmarketingCampaigns.items ?? []).map((e) => ee(e)), ce = (W?.headshotmarketingAdCampaigns.items ?? []).map((e) => h(e)), le = (W?.headshotmarketingSocialAccounts.items ?? []).map((e) => ne(e)), ue = g(J), Y = _(J, ce), X = y(Y), Z = v(le), Q = J.reduce((e, t) => (e.impressions += t.metrics.impressions, e.clicks += t.metrics.clicks, e.conversions += t.metrics.conversions, e.revenue += t.metrics.revenue, e.cost += t.metrics.cost, e), {
40
38
  impressions: 0,
41
39
  clicks: 0,
42
40
  conversions: 0,
43
41
  revenue: 0,
44
42
  cost: 0
45
- }), se = Z.impressions > 0 ? Z.clicks / Z.impressions * 100 : 0, ce = Z.clicks > 0 ? Z.cost / Z.clicks : 0, le = Z.cost > 0 ? Z.revenue / Z.cost : 0, Q = ne(Z.impressions, Z.clicks, Z.conversions), $ = [
43
+ }), de = Q.impressions > 0 ? Q.clicks / Q.impressions * 100 : 0, fe = Q.clicks > 0 ? Q.cost / Q.clicks : 0, pe = Q.cost > 0 ? Q.revenue / Q.cost : 0, $ = te(Q.impressions, Q.clicks, Q.conversions), me = [
46
44
  {
47
45
  key: "overview",
48
46
  label: "Overview"
@@ -55,66 +53,66 @@ var z = [
55
53
  key: "audience",
56
54
  label: "Audience"
57
55
  }
58
- ], ue = [
56
+ ], he = [
59
57
  {
60
58
  title: "Impressions",
61
- value: f(Z.impressions),
59
+ value: p(Q.impressions),
62
60
  change: 12.4,
63
- icon: /* @__PURE__ */ P(T, { className: "h-4 w-4" })
61
+ icon: /* @__PURE__ */ I(D, { className: "h-4 w-4" })
64
62
  },
65
63
  {
66
64
  title: "Clicks",
67
- value: f(Z.clicks),
65
+ value: p(Q.clicks),
68
66
  change: 8.7,
69
- icon: /* @__PURE__ */ P(O, { className: "h-4 w-4" })
67
+ icon: /* @__PURE__ */ I(A, { className: "h-4 w-4" })
70
68
  },
71
69
  {
72
70
  title: "Conversions",
73
- value: f(Z.conversions),
71
+ value: p(Q.conversions),
74
72
  change: 15.2,
75
- icon: /* @__PURE__ */ P(ae, { className: "h-4 w-4" })
73
+ icon: /* @__PURE__ */ I(ie, { className: "h-4 w-4" })
76
74
  },
77
75
  {
78
76
  title: "Revenue",
79
- value: d(Z.revenue),
77
+ value: f(Q.revenue),
80
78
  change: 12.5,
81
- icon: /* @__PURE__ */ P(w, { className: "h-4 w-4" })
79
+ icon: /* @__PURE__ */ I(E, { className: "h-4 w-4" })
82
80
  },
83
81
  {
84
82
  title: "Cost",
85
- value: d(Z.cost),
83
+ value: f(Q.cost),
86
84
  change: -3.1,
87
- icon: /* @__PURE__ */ P(oe, { className: "h-4 w-4" })
85
+ icon: /* @__PURE__ */ I(ae, { className: "h-4 w-4" })
88
86
  },
89
87
  {
90
88
  title: "CTR",
91
- value: p(se),
89
+ value: m(de),
92
90
  change: 5.4,
93
- icon: /* @__PURE__ */ P(k, { className: "h-4 w-4" })
91
+ icon: /* @__PURE__ */ I(j, { className: "h-4 w-4" })
94
92
  },
95
93
  {
96
94
  title: "CPC",
97
- value: `$${ce.toFixed(2)}`,
95
+ value: `$${fe.toFixed(2)}`,
98
96
  change: -8.2,
99
- icon: /* @__PURE__ */ P(M, { className: "h-4 w-4" })
97
+ icon: /* @__PURE__ */ I(P, { className: "h-4 w-4" })
100
98
  },
101
99
  {
102
100
  title: "ROAS",
103
- value: `${le.toFixed(2)}x`,
101
+ value: `${pe.toFixed(2)}x`,
104
102
  change: 11.1,
105
- icon: /* @__PURE__ */ P(N, { className: "h-4 w-4" })
103
+ icon: /* @__PURE__ */ I(F, { className: "h-4 w-4" })
106
104
  }
107
- ], de = [
105
+ ], ge = [
108
106
  {
109
107
  key: "channel",
110
108
  header: "Channel",
111
109
  sortable: !0,
112
- render: (e) => /* @__PURE__ */ F("div", {
110
+ render: (e) => /* @__PURE__ */ L("div", {
113
111
  className: "flex items-center gap-2",
114
- children: [/* @__PURE__ */ P("div", {
112
+ children: [/* @__PURE__ */ I("div", {
115
113
  className: "h-3 w-3 rounded-full",
116
114
  style: { backgroundColor: e.color }
117
- }), /* @__PURE__ */ P("span", {
115
+ }), /* @__PURE__ */ I("span", {
118
116
  className: "font-medium text-text-primary",
119
117
  children: e.channel
120
118
  })]
@@ -124,19 +122,19 @@ var z = [
124
122
  key: "revenue",
125
123
  header: "Revenue",
126
124
  sortable: !0,
127
- render: (e) => d(e.revenue)
125
+ render: (e) => f(e.revenue)
128
126
  },
129
127
  {
130
128
  key: "cost",
131
129
  header: "Cost",
132
130
  sortable: !0,
133
- render: (e) => d(e.cost)
131
+ render: (e) => f(e.cost)
134
132
  },
135
133
  {
136
134
  key: "conversions",
137
135
  header: "Conversions",
138
136
  sortable: !0,
139
- render: (e) => f(e.conversions)
137
+ render: (e) => p(e.conversions)
140
138
  },
141
139
  {
142
140
  key: "roas",
@@ -148,20 +146,20 @@ var z = [
148
146
  key: "impressions",
149
147
  header: "Impressions",
150
148
  sortable: !0,
151
- render: (e) => f(e.impressions)
149
+ render: (e) => p(e.impressions)
152
150
  },
153
151
  {
154
152
  key: "ctr",
155
153
  header: "CTR",
156
154
  sortable: !0,
157
- render: (e) => p(e.ctr)
155
+ render: (e) => m(e.ctr)
158
156
  }
159
- ], fe = [
157
+ ], _e = [
160
158
  {
161
159
  key: "country",
162
160
  header: "Country",
163
161
  sortable: !0,
164
- render: (e) => /* @__PURE__ */ P("span", {
162
+ render: (e) => /* @__PURE__ */ I("span", {
165
163
  className: "font-medium",
166
164
  children: e.country
167
165
  })
@@ -170,284 +168,292 @@ var z = [
170
168
  key: "revenue",
171
169
  header: "Revenue",
172
170
  sortable: !0,
173
- render: (e) => d(e.revenue)
171
+ render: (e) => f(e.revenue)
174
172
  },
175
173
  {
176
174
  key: "users",
177
175
  header: "Users",
178
176
  sortable: !0,
179
- render: (e) => f(e.users)
177
+ render: (e) => p(e.users)
180
178
  },
181
179
  {
182
180
  key: "conversions",
183
181
  header: "Conversions",
184
182
  sortable: !0,
185
- render: (e) => f(e.conversions)
183
+ render: (e) => p(e.conversions)
186
184
  },
187
185
  {
188
186
  key: "conversionRate",
189
187
  header: "Conv. Rate",
190
188
  sortable: !0,
191
- render: (e) => p(e.conversionRate)
189
+ render: (e) => m(e.conversionRate)
192
190
  }
193
- ], pe = {
194
- Desktop: D,
195
- Mobile: A,
196
- Tablet: j
191
+ ], ve = {
192
+ Desktop: k,
193
+ Mobile: M,
194
+ Tablet: N
197
195
  };
198
- return /* @__PURE__ */ F(b, {
196
+ return /* @__PURE__ */ L(b, {
199
197
  title: "Analytics",
200
198
  description: "Comprehensive marketing performance analytics",
201
199
  children: [
202
- /* @__PURE__ */ P(R, { children: "The single source of truth for how your marketing is performing. Track reach, clicks, conversions, revenue and ROAS across every channel, then drill into channel and audience breakdowns to understand what's driving results and where to focus next." }),
203
- /* @__PURE__ */ P(L, {
200
+ /* @__PURE__ */ I(B, { children: "The single source of truth for how your marketing is performing. Track reach, clicks, conversions, revenue and ROAS across every channel, then drill into channel and audience breakdowns to understand what's driving results and where to focus next." }),
201
+ /* @__PURE__ */ I(z, {
204
202
  storageKey: "headshotmarketing-analytics",
205
203
  steps: [
206
204
  {
207
205
  id: "campaigns",
208
206
  label: "Campaign analytics",
209
207
  description: "See which campaigns drive the most return.",
210
- icon: /* @__PURE__ */ P(M, { className: "h-4 w-4" }),
211
- onClick: () => B("/analytics/campaigns")
208
+ icon: /* @__PURE__ */ I(P, { className: "h-4 w-4" }),
209
+ onClick: () => H(U + "/analytics/campaigns")
212
210
  },
213
211
  {
214
212
  id: "ads",
215
213
  label: "Ad analytics",
216
214
  description: "Break down paid spend, clicks and ROAS by platform.",
217
- icon: /* @__PURE__ */ P(N, { className: "h-4 w-4" }),
218
- onClick: () => B("/analytics/ads")
215
+ icon: /* @__PURE__ */ I(F, { className: "h-4 w-4" }),
216
+ onClick: () => H(U + "/analytics/ads")
219
217
  },
220
218
  {
221
219
  id: "reports",
222
220
  label: "Build a report",
223
221
  description: "Assemble and export a shareable report.",
224
- icon: /* @__PURE__ */ P(w, { className: "h-4 w-4" }),
225
- onClick: () => B("/analytics/reports")
222
+ icon: /* @__PURE__ */ I(E, { className: "h-4 w-4" }),
223
+ onClick: () => H(U + "/analytics/reports")
226
224
  }
227
225
  ]
228
226
  }),
229
- /* @__PURE__ */ P(I, { children: /* @__PURE__ */ P("div", {
230
- className: "grid grid-cols-2 md:grid-cols-4 gap-4",
231
- children: ue.map((e) => /* @__PURE__ */ P(x, {
232
- title: e.title,
233
- value: e.value,
234
- change: e.change,
235
- changeLabel: "vs last period",
236
- icon: e.icon
237
- }, e.title))
238
- }) }),
239
- /* @__PURE__ */ P("div", {
240
- className: "border-b border-border-subtle",
241
- children: /* @__PURE__ */ P("div", {
242
- className: "flex gap-6",
243
- children: $.map((e) => /* @__PURE__ */ P("button", {
244
- onClick: () => U(e.key),
245
- className: te("pb-3 text-sm font-medium transition-colors border-b-2", H === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
246
- children: e.label
247
- }, e.key))
248
- })
249
- }),
250
- H === "overview" && /* @__PURE__ */ P("div", {
251
- className: "space-y-6",
252
- children: /* @__PURE__ */ F("div", {
253
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
254
- children: [/* @__PURE__ */ P(C, {
255
- title: "Revenue Over Time",
256
- subtitle: "Last 30 days",
257
- children: /* @__PURE__ */ P(r, {
258
- width: "100%",
259
- height: 300,
260
- children: /* @__PURE__ */ F(l, {
261
- data: q,
262
- children: [
263
- /* @__PURE__ */ P(a, {
264
- strokeDasharray: "3 3",
265
- className: "stroke-border"
266
- }),
267
- /* @__PURE__ */ P(s, {
268
- dataKey: "date",
269
- tick: { fontSize: 12 },
270
- className: "text-text-secondary"
271
- }),
272
- /* @__PURE__ */ P(c, {
273
- tick: { fontSize: 12 },
274
- className: "text-text-secondary"
275
- }),
276
- /* @__PURE__ */ P(n, {}),
277
- /* @__PURE__ */ P(o, {
278
- type: "monotone",
279
- dataKey: "revenue",
280
- stroke: z[0],
281
- fill: z[0],
282
- fillOpacity: .1
283
- }),
284
- /* @__PURE__ */ P(o, {
285
- type: "monotone",
286
- dataKey: "cost",
287
- stroke: z[3],
288
- fill: z[3],
289
- fillOpacity: .1
290
- }),
291
- /* @__PURE__ */ P(t, {})
292
- ]
293
- })
227
+ /* @__PURE__ */ L(w, {
228
+ loading: G,
229
+ error: oe,
230
+ onRetry: K,
231
+ hasData: !!W,
232
+ children: [
233
+ /* @__PURE__ */ I(R, { children: /* @__PURE__ */ I("div", {
234
+ className: "grid grid-cols-2 md:grid-cols-4 gap-4",
235
+ children: he.map((e) => /* @__PURE__ */ I(x, {
236
+ title: e.title,
237
+ value: e.value,
238
+ change: e.change,
239
+ changeLabel: "vs last period",
240
+ icon: e.icon
241
+ }, e.title))
242
+ }) }),
243
+ /* @__PURE__ */ I("div", {
244
+ className: "border-b border-border-subtle",
245
+ children: /* @__PURE__ */ I("div", {
246
+ className: "flex flex-nowrap gap-6 overflow-x-auto",
247
+ children: me.map((e) => /* @__PURE__ */ I("button", {
248
+ onClick: () => se(e.key),
249
+ className: d("shrink-0 whitespace-nowrap pb-3 text-sm font-medium transition-colors border-b-2", q === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
250
+ children: e.label
251
+ }, e.key))
294
252
  })
295
- }), /* @__PURE__ */ P(C, {
296
- title: "Conversion Funnel",
297
- subtitle: "Current period",
298
- children: /* @__PURE__ */ P(r, {
299
- width: "100%",
300
- height: 300,
301
- children: /* @__PURE__ */ F(ee, {
302
- data: Q,
303
- layout: "vertical",
304
- children: [
305
- /* @__PURE__ */ P(a, {
306
- strokeDasharray: "3 3",
307
- className: "stroke-border"
308
- }),
309
- /* @__PURE__ */ P(s, {
310
- type: "number",
311
- tick: { fontSize: 12 },
312
- className: "text-text-secondary"
313
- }),
314
- /* @__PURE__ */ P(c, {
315
- dataKey: "stage",
316
- type: "category",
317
- tick: { fontSize: 12 },
318
- width: 100,
319
- className: "text-text-secondary"
320
- }),
321
- /* @__PURE__ */ P(n, { formatter: (e) => f(e) }),
322
- /* @__PURE__ */ P(i, {
323
- dataKey: "value",
324
- radius: [
325
- 0,
326
- 4,
327
- 4,
328
- 0
329
- ],
330
- children: Q.map((e, t) => /* @__PURE__ */ P(i, {
331
- dataKey: "value",
332
- fill: e.color
333
- }, t))
253
+ }),
254
+ q === "overview" && /* @__PURE__ */ I("div", {
255
+ className: "space-y-6",
256
+ children: /* @__PURE__ */ L("div", {
257
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
258
+ children: [/* @__PURE__ */ I(C, {
259
+ title: "Revenue Over Time",
260
+ subtitle: "Last 30 days",
261
+ children: /* @__PURE__ */ I(r, {
262
+ width: "100%",
263
+ height: 300,
264
+ children: /* @__PURE__ */ L(u, {
265
+ data: ue,
266
+ children: [
267
+ /* @__PURE__ */ I(a, {
268
+ strokeDasharray: "3 3",
269
+ className: "stroke-border"
270
+ }),
271
+ /* @__PURE__ */ I(s, {
272
+ dataKey: "date",
273
+ tick: { fontSize: 12 },
274
+ className: "text-text-secondary"
275
+ }),
276
+ /* @__PURE__ */ I(c, {
277
+ tick: { fontSize: 12 },
278
+ className: "text-text-secondary"
279
+ }),
280
+ /* @__PURE__ */ I(n, {}),
281
+ /* @__PURE__ */ I(o, {
282
+ type: "monotone",
283
+ dataKey: "revenue",
284
+ stroke: V[0],
285
+ fill: V[0],
286
+ fillOpacity: .1
287
+ }),
288
+ /* @__PURE__ */ I(o, {
289
+ type: "monotone",
290
+ dataKey: "cost",
291
+ stroke: V[3],
292
+ fill: V[3],
293
+ fillOpacity: .1
294
+ }),
295
+ /* @__PURE__ */ I(t, {})
296
+ ]
334
297
  })
335
- ]
336
- })
337
- })
338
- })]
339
- })
340
- }),
341
- H === "channels" && /* @__PURE__ */ P(S, {
342
- data: J,
343
- columns: de,
344
- searchable: !0,
345
- searchPlaceholder: "Search channels..."
346
- }),
347
- H === "audience" && /* @__PURE__ */ F("div", {
348
- className: "space-y-6",
349
- children: [/* @__PURE__ */ F("div", {
350
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
351
- children: [/* @__PURE__ */ F("div", {
352
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
353
- children: [/* @__PURE__ */ F("div", {
354
- className: "flex items-center gap-2 mb-4",
355
- children: [/* @__PURE__ */ P(E, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ P("h3", {
356
- className: "text-sm font-semibold text-text-primary",
357
- children: "Top Countries"
298
+ })
299
+ }), /* @__PURE__ */ I(C, {
300
+ title: "Conversion Funnel",
301
+ subtitle: "Current period",
302
+ children: /* @__PURE__ */ I(r, {
303
+ width: "100%",
304
+ height: 300,
305
+ children: /* @__PURE__ */ L(l, {
306
+ data: $,
307
+ layout: "vertical",
308
+ children: [
309
+ /* @__PURE__ */ I(a, {
310
+ strokeDasharray: "3 3",
311
+ className: "stroke-border"
312
+ }),
313
+ /* @__PURE__ */ I(s, {
314
+ type: "number",
315
+ tick: { fontSize: 12 },
316
+ className: "text-text-secondary"
317
+ }),
318
+ /* @__PURE__ */ I(c, {
319
+ dataKey: "stage",
320
+ type: "category",
321
+ tick: { fontSize: 12 },
322
+ width: 100,
323
+ className: "text-text-secondary"
324
+ }),
325
+ /* @__PURE__ */ I(n, { formatter: (e) => p(e) }),
326
+ /* @__PURE__ */ I(i, {
327
+ dataKey: "value",
328
+ radius: [
329
+ 0,
330
+ 4,
331
+ 4,
332
+ 0
333
+ ],
334
+ children: $.map((e, t) => /* @__PURE__ */ I(i, {
335
+ dataKey: "value",
336
+ fill: e.color
337
+ }, t))
338
+ })
339
+ ]
340
+ })
341
+ })
358
342
  })]
359
- }), /* @__PURE__ */ P("div", {
360
- className: "space-y-3",
361
- children: Y.map((e) => /* @__PURE__ */ F("div", {
362
- className: "flex items-center justify-between",
363
- children: [/* @__PURE__ */ F("div", {
364
- className: "flex items-center gap-2",
365
- children: [/* @__PURE__ */ P("span", {
366
- className: "text-xs font-mono text-text-secondary w-6",
367
- children: e.countryCode
368
- }), /* @__PURE__ */ P("span", {
369
- className: "text-sm text-text-primary",
370
- children: e.country
371
- })]
372
- }), /* @__PURE__ */ F("div", {
373
- className: "flex items-center gap-4",
374
- children: [/* @__PURE__ */ P("span", {
375
- className: "text-sm font-medium text-text-primary",
376
- children: d(e.revenue)
377
- }), /* @__PURE__ */ P("div", {
378
- className: "w-24 h-2 rounded-full bg-bg-sunken overflow-hidden",
379
- children: /* @__PURE__ */ P("div", {
380
- className: "h-full rounded-full bg-action-primary-bg",
381
- style: { width: `${e.revenue / (Y[0]?.revenue || 1) * 100}%` }
382
- })
343
+ })
344
+ }),
345
+ q === "channels" && /* @__PURE__ */ I(S, {
346
+ data: Y,
347
+ columns: ge,
348
+ searchable: !0,
349
+ searchPlaceholder: "Search channels..."
350
+ }),
351
+ q === "audience" && /* @__PURE__ */ L("div", {
352
+ className: "space-y-6",
353
+ children: [/* @__PURE__ */ L("div", {
354
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
355
+ children: [/* @__PURE__ */ L("div", {
356
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
357
+ children: [/* @__PURE__ */ L("div", {
358
+ className: "flex items-center gap-2 mb-4",
359
+ children: [/* @__PURE__ */ I(O, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ I("h3", {
360
+ className: "text-sm font-semibold text-text-primary",
361
+ children: "Top Countries"
383
362
  })]
384
- })]
385
- }, e.countryCode))
386
- })]
387
- }), /* @__PURE__ */ F("div", {
388
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
389
- children: [
390
- /* @__PURE__ */ P("h3", {
391
- className: "text-sm font-semibold text-text-primary mb-4",
392
- children: "Device Breakdown"
393
- }),
394
- /* @__PURE__ */ P("div", {
395
- className: "space-y-4",
396
- children: X.devices.map((e) => /* @__PURE__ */ F("div", {
397
- className: "flex items-center gap-3",
398
- children: [/* @__PURE__ */ P(pe[e.device] || D, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ F("div", {
399
- className: "flex-1",
400
- children: [/* @__PURE__ */ F("div", {
401
- className: "flex items-center justify-between mb-1",
402
- children: [/* @__PURE__ */ P("span", {
363
+ }), /* @__PURE__ */ I("div", {
364
+ className: "space-y-3",
365
+ children: X.map((e) => /* @__PURE__ */ L("div", {
366
+ className: "flex items-center justify-between",
367
+ children: [/* @__PURE__ */ L("div", {
368
+ className: "flex items-center gap-2",
369
+ children: [/* @__PURE__ */ I("span", {
370
+ className: "text-xs font-mono text-text-secondary w-6",
371
+ children: e.countryCode
372
+ }), /* @__PURE__ */ I("span", {
403
373
  className: "text-sm text-text-primary",
404
- children: e.device
405
- }), /* @__PURE__ */ P("span", {
374
+ children: e.country
375
+ })]
376
+ }), /* @__PURE__ */ L("div", {
377
+ className: "flex items-center gap-4",
378
+ children: [/* @__PURE__ */ I("span", {
406
379
  className: "text-sm font-medium text-text-primary",
407
- children: p(e.percentage)
380
+ children: f(e.revenue)
381
+ }), /* @__PURE__ */ I("div", {
382
+ className: "w-24 h-2 rounded-full bg-bg-sunken overflow-hidden",
383
+ children: /* @__PURE__ */ I("div", {
384
+ className: "h-full rounded-full bg-action-primary-bg",
385
+ style: { width: `${e.revenue / (X[0]?.revenue || 1) * 100}%` }
386
+ })
408
387
  })]
409
- }), /* @__PURE__ */ P("div", {
410
- className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
411
- children: /* @__PURE__ */ P("div", {
412
- className: "h-full rounded-full bg-action-primary-bg",
413
- style: { width: `${e.percentage}%` }
414
- })
415
388
  })]
416
- })]
417
- }, e.device))
418
- }),
419
- /* @__PURE__ */ F("div", {
420
- className: "mt-6 pt-4 border-t border-border-subtle",
421
- children: [/* @__PURE__ */ P("h4", {
422
- className: "text-sm font-semibold text-text-primary mb-3",
423
- children: "Browser Usage"
424
- }), /* @__PURE__ */ P("div", {
425
- className: "space-y-2",
426
- children: X.browsers.map((e) => /* @__PURE__ */ F("div", {
427
- className: "flex items-center justify-between text-sm",
428
- children: [/* @__PURE__ */ P("span", {
429
- className: "text-text-secondary",
430
- children: e.browser
431
- }), /* @__PURE__ */ P("span", {
432
- className: "font-medium text-text-primary",
433
- children: p(e.percentage)
434
- })]
435
- }, e.browser))
389
+ }, e.countryCode))
436
390
  })]
437
- })
438
- ]
439
- })]
440
- }), /* @__PURE__ */ P(S, {
441
- data: Y,
442
- columns: fe,
443
- searchable: !0,
444
- searchPlaceholder: "Search countries..."
445
- })]
391
+ }), /* @__PURE__ */ L("div", {
392
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
393
+ children: [
394
+ /* @__PURE__ */ I("h3", {
395
+ className: "text-sm font-semibold text-text-primary mb-4",
396
+ children: "Device Breakdown"
397
+ }),
398
+ /* @__PURE__ */ I("div", {
399
+ className: "space-y-4",
400
+ children: Z.devices.map((e) => /* @__PURE__ */ L("div", {
401
+ className: "flex items-center gap-3",
402
+ children: [/* @__PURE__ */ I(ve[e.device] || k, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ L("div", {
403
+ className: "flex-1",
404
+ children: [/* @__PURE__ */ L("div", {
405
+ className: "flex items-center justify-between mb-1",
406
+ children: [/* @__PURE__ */ I("span", {
407
+ className: "text-sm text-text-primary",
408
+ children: e.device
409
+ }), /* @__PURE__ */ I("span", {
410
+ className: "text-sm font-medium text-text-primary",
411
+ children: m(e.percentage)
412
+ })]
413
+ }), /* @__PURE__ */ I("div", {
414
+ className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
415
+ children: /* @__PURE__ */ I("div", {
416
+ className: "h-full rounded-full bg-action-primary-bg",
417
+ style: { width: `${e.percentage}%` }
418
+ })
419
+ })]
420
+ })]
421
+ }, e.device))
422
+ }),
423
+ /* @__PURE__ */ L("div", {
424
+ className: "mt-6 pt-4 border-t border-border-subtle",
425
+ children: [/* @__PURE__ */ I("h4", {
426
+ className: "text-sm font-semibold text-text-primary mb-3",
427
+ children: "Browser Usage"
428
+ }), /* @__PURE__ */ I("div", {
429
+ className: "space-y-2",
430
+ children: Z.browsers.map((e) => /* @__PURE__ */ L("div", {
431
+ className: "flex items-center justify-between text-sm",
432
+ children: [/* @__PURE__ */ I("span", {
433
+ className: "text-text-secondary",
434
+ children: e.browser
435
+ }), /* @__PURE__ */ I("span", {
436
+ className: "font-medium text-text-primary",
437
+ children: m(e.percentage)
438
+ })]
439
+ }, e.browser))
440
+ })]
441
+ })
442
+ ]
443
+ })]
444
+ }), /* @__PURE__ */ I(S, {
445
+ data: X,
446
+ columns: _e,
447
+ searchable: !0,
448
+ searchPlaceholder: "Search countries..."
449
+ })]
450
+ })
451
+ ]
446
452
  })
447
453
  ]
448
454
  });
449
455
  };
450
456
  //#endregion
451
- export { B as AnalyticsPage };
457
+ export { H as AnalyticsPage };
452
458
 
453
459
  //# sourceMappingURL=AnalyticsPage.js.map