@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
@@ -1,273 +1,242 @@
1
- import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { Tooltip as t } from "../../../node_modules/recharts/es6/component/Tooltip.js";
3
- import { ResponsiveContainer as ee } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
4
- import { CartesianGrid as n } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
5
- import { Area as r } from "../../../node_modules/recharts/es6/cartesian/Area.js";
6
- import { XAxis as te } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
7
- import { YAxis as ne } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
8
- import { AreaChart as re } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
9
- import { HeadshotmarketingCampaignsListDocument as ie, useDeleteHeadshotmarketingCampaignMutation as ae, useHeadshotmarketingCampaignByIdQuery as oe } from "../../../generated/wspace-operations.js";
10
- import { cn as i, formatCurrency as a, formatNumber as o } from "../../utils/helpers.js";
11
- import { toCampaignModel as s, toCampaignPerformanceSeries as se } from "../../utils/campaignMapper.js";
12
- import { PageLayout as c } from "../../components/PageLayout.js";
13
- import { StatCard as l } from "../../components/StatCard.js";
14
- import { StatusBadge as ce } from "../../components/StatusBadge.js";
15
- import { EmptyState as u } from "../../components/EmptyState.js";
16
- import { ChartCard as d } from "../../components/ChartCard.js";
1
+ import { HeadshotmarketingBootstrapDataDocument as e, HeadshotmarketingCampaignsListDocument as t, useCreateHeadshotmarketingCampaignMutation as n, useDeleteHeadshotmarketingCampaignMutation as ee, useHeadshotmarketingCampaignByIdQuery as te, useHeadshotmarketingResourceActivityQuery as ne, useUpdateHeadshotmarketingCampaignMutation as r } from "../../../generated/wspace-operations.js";
2
+ import { useHeadshotMarketing as i } from "../../context/HeadshotMarketingContext.js";
3
+ import { Tooltip as re } from "../../../node_modules/recharts/es6/component/Tooltip.js";
4
+ import { ResponsiveContainer as ie } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
5
+ import { CartesianGrid as ae } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
6
+ import { Area as a } from "../../../node_modules/recharts/es6/cartesian/Area.js";
7
+ import { XAxis as oe } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
8
+ import { YAxis as se } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
9
+ import { AreaChart as ce } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
10
+ import { cn as o, formatCurrency as s, formatDate as le, formatNumber as c } from "../../utils/helpers.js";
11
+ import { toCampaignModel as l, toCampaignPerformanceSeries as u } from "../../utils/campaignMapper.js";
12
+ import { HeadshotmarketingCampaignStatus as d } from "../../../generated/wspace-types.js";
13
+ import { PageLayout as f } from "../../components/PageLayout.js";
14
+ import { StatCard as p } from "../../components/StatCard.js";
15
+ import { StatusBadge as ue } from "../../components/StatusBadge.js";
16
+ import { EmptyState as m } from "../../components/EmptyState.js";
17
+ import { ChartCard as de } from "../../components/ChartCard.js";
18
+ import { QueryStateBoundary as fe } from "../../components/QueryStateBoundary.js";
17
19
  import "../../components/index.js";
18
- import { useState as f } from "react";
19
- import { Activity as le, Archive as ue, ArrowLeft as p, Calendar as m, Clock as h, Copy as de, DollarSign as g, Edit as _, FileText as v, Image as y, MoreVertical as fe, Pause as pe, Target as b, Trash2 as me, TrendingUp as x } from "lucide-react";
20
- import { useParams as he } from "react-router-dom";
21
- import { jsx as S, jsxs as C } from "react/jsx-runtime";
22
- import { EmphasisPanel as w, NextSteps as T, PagePurpose as E } from "@burdenoff/fe-libs/ui";
20
+ import { useState as h } from "react";
21
+ import { Activity as pe, Archive as me, ArrowLeft as g, Calendar as he, Clock as ge, Copy as _e, DollarSign as _, Edit as v, FileText as y, Image as b, Pause as ve, Play as ye, Target as x, Trash2 as be, TrendingUp as S } from "lucide-react";
22
+ import { useParams as C } from "react-router-dom";
23
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
24
+ import { CTAOverflowMenu as E, EmphasisPanel as D, NextSteps as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
23
25
  //#region src/headshotmarketing/pages/campaigns/CampaignDetailsPage.tsx
24
- var D = [
26
+ var A = [{ query: e }, t];
27
+ function j(e) {
28
+ return e.toLowerCase().split(/[_\s]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
29
+ }
30
+ var M = [
25
31
  "var(--color-chart-1)",
26
32
  "var(--color-chart-2)",
27
33
  "var(--color-chart-3)",
28
34
  "var(--color-chart-4)",
29
35
  "var(--color-chart-5)",
30
36
  "var(--color-chart-6)"
31
- ], O = [
32
- {
33
- name: "Alice Johnson",
34
- role: "Campaign Manager",
35
- avatar: "AJ"
36
- },
37
- {
38
- name: "Bob Smith",
39
- role: "Content Strategist",
40
- avatar: "BS"
41
- },
42
- {
43
- name: "Carol Williams",
44
- role: "Email Specialist",
45
- avatar: "CW"
46
- },
47
- {
48
- name: "David Chen",
49
- role: "Paid Media Lead",
50
- avatar: "DC"
51
- },
52
- {
53
- name: "Emma Davis",
54
- role: "Creative Director",
55
- avatar: "ED"
56
- },
57
- {
58
- name: "Frank Lee",
59
- role: "SEO Analyst",
60
- avatar: "FL"
61
- },
62
- {
63
- name: "Grace Kim",
64
- role: "Social Media Manager",
65
- avatar: "GK"
66
- }
67
- ], k = [
68
- {
69
- id: 1,
70
- action: "Campaign budget increased by $2,000",
71
- user: "Alice Johnson",
72
- time: "2 hours ago",
73
- type: "budget"
74
- },
75
- {
76
- id: 2,
77
- action: "New ad creative \"Spring Banner v3\" uploaded",
78
- user: "Emma Davis",
79
- time: "5 hours ago",
80
- type: "asset"
81
- },
82
- {
83
- id: 3,
84
- action: "Targeting adjusted: added age group 35-44",
85
- user: "Bob Smith",
86
- time: "1 day ago",
87
- type: "targeting"
88
- },
89
- {
90
- id: 4,
91
- action: "Performance report generated and shared",
92
- user: "Frank Lee",
93
- time: "2 days ago",
94
- type: "report"
95
- },
96
- {
97
- id: 5,
98
- action: "Campaign launched on Instagram channel",
99
- user: "Grace Kim",
100
- time: "3 days ago",
101
- type: "launch"
102
- }
103
- ], A = [
104
- {
105
- name: "Campaign Brief.pdf",
106
- size: "2.4 MB",
107
- updated: "Feb 8, 2026"
108
- },
109
- {
110
- name: "Creative Guidelines.docx",
111
- size: "1.1 MB",
112
- updated: "Feb 6, 2026"
113
- },
114
- {
115
- name: "Audience Research.xlsx",
116
- size: "890 KB",
117
- updated: "Feb 3, 2026"
118
- }
119
- ], j = () => {
120
- let { navigate: j, basePath: M } = e(), { id: N } = he(), { data: P, loading: F, error: I } = oe({
121
- skip: !N,
122
- variables: N ? { id: N } : void 0
123
- }), [L, { loading: R }] = ae(), [z, B] = f("overview"), [V, H] = f(!1), [U, W] = f(null), G = P?.headshotmarketingCampaign, K = G ? s(G) : null, ge = async () => {
124
- if (!(!N || !K) && window.confirm(`Delete campaign "${K.name}"? This cannot be undone.`)) {
125
- W(null);
37
+ ];
38
+ function N(e) {
39
+ return e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase();
40
+ }
41
+ var P = () => {
42
+ let { navigate: e, basePath: t } = i(), { id: P } = C(), { data: xe, loading: Se, error: Ce, refetch: we } = te({
43
+ skip: !P,
44
+ variables: P ? { id: P } : void 0
45
+ }), [Te, { loading: Ee }] = ee(), [De, { loading: Oe }] = r(), [ke, { loading: Ae }] = n(), [F, I] = h("overview"), [L, R] = h(null), z = xe?.headshotmarketingCampaign, B = z ? l(z) : null, V = z?.status, H = V === d.Paused, je = V === d.Archived, U = Oe || Ae || Ee, { data: Me, loading: Ne, error: Pe } = ne({
46
+ skip: !P,
47
+ variables: { filter: {
48
+ resourceId: P,
49
+ limit: 12
50
+ } },
51
+ errorPolicy: "all",
52
+ fetchPolicy: "cache-and-network"
53
+ }), W = Me?.getActivities ?? [], G = async (e) => {
54
+ if (P) {
55
+ R(null);
126
56
  try {
127
- await L({
128
- variables: { id: N },
129
- refetchQueries: [{
130
- query: ie,
131
- variables: {
132
- limit: 100,
133
- offset: 0
134
- }
135
- }],
57
+ await De({
58
+ variables: {
59
+ id: P,
60
+ input: { status: e }
61
+ },
62
+ refetchQueries: A
63
+ });
64
+ } catch (e) {
65
+ R(e instanceof Error ? e.message : "Failed to update campaign.");
66
+ }
67
+ }
68
+ }, Fe = async () => {
69
+ if (z) {
70
+ R(null);
71
+ try {
72
+ let n = (await ke({
73
+ variables: { input: {
74
+ name: `${z.name} (Copy)`,
75
+ description: z.description ?? null,
76
+ type: z.type,
77
+ status: d.Draft,
78
+ budget: z.budget ?? null,
79
+ startDate: z.startDate ?? null,
80
+ endDate: z.endDate ?? null,
81
+ tags: z.tags,
82
+ goals: z.goals ?? void 0
83
+ } },
84
+ refetchQueries: A,
85
+ awaitRefetchQueries: !0
86
+ })).data?.createHeadshotmarketingCampaign?.id;
87
+ n && e(t + "/campaigns/" + n);
88
+ } catch (e) {
89
+ R(e instanceof Error ? e.message : "Failed to duplicate campaign.");
90
+ }
91
+ }
92
+ }, Ie = async () => {
93
+ if (!(!P || !B) && window.confirm(`Delete campaign "${B.name}"? This cannot be undone.`)) {
94
+ R(null);
95
+ try {
96
+ await Te({
97
+ variables: { id: P },
98
+ refetchQueries: A,
136
99
  awaitRefetchQueries: !0
137
- }), j(M + "/campaigns");
100
+ }), e(t + "/campaigns");
138
101
  } catch (e) {
139
- W(e instanceof Error ? e.message : "Failed to delete campaign.");
102
+ R(e instanceof Error ? e.message : "Failed to delete campaign.");
140
103
  }
141
104
  }
142
105
  };
143
- if (!K) return /* @__PURE__ */ S(c, {
106
+ if (!B) return /* @__PURE__ */ w(f, {
144
107
  title: "Campaign Details",
145
- children: /* @__PURE__ */ S(u, {
146
- illustration: "empty-generic",
147
- title: "Campaign not found",
148
- description: F ? "Loading campaign details..." : I?.message ?? "The campaign you're looking for doesn't exist or has been removed.",
149
- action: /* @__PURE__ */ C("button", {
150
- onClick: () => j(M + "/campaigns"),
151
- className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
152
- children: [/* @__PURE__ */ S(p, { className: "h-4 w-4" }), "Back to Campaigns"]
108
+ children: /* @__PURE__ */ w(fe, {
109
+ loading: Se,
110
+ error: Ce,
111
+ onRetry: () => void we(),
112
+ hasData: !1,
113
+ children: /* @__PURE__ */ w(m, {
114
+ illustration: "empty-generic",
115
+ title: "Campaign not found",
116
+ description: "The campaign you're looking for doesn't exist or has been removed.",
117
+ action: /* @__PURE__ */ T("button", {
118
+ onClick: () => e(t + "/campaigns"),
119
+ className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
120
+ children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Back to Campaigns"]
121
+ })
153
122
  })
154
123
  })
155
124
  });
156
- let q = K.budget.total > 0 ? Math.round(K.budget.spent / K.budget.total * 100) : 0, J = new Date(K.timeline.startDate), Y = new Date(K.timeline.endDate), _e = /* @__PURE__ */ new Date(), X = Math.max(1, Math.ceil((Y.getTime() - J.getTime()) / (1e3 * 60 * 60 * 24))), Z = Math.max(0, Math.ceil((_e.getTime() - J.getTime()) / (1e3 * 60 * 60 * 24))), ve = Math.max(0, X - Z), Q = Math.min(Math.round(Z / X * 100), 100), $ = O.filter((e) => K.team.includes(e.name)), ye = se(K);
157
- return /* @__PURE__ */ C(c, {
158
- title: K.name,
159
- description: K.description,
160
- actions: /* @__PURE__ */ C("div", {
161
- className: "flex items-center gap-2",
125
+ let K = B.budget.total > 0 ? Math.round(B.budget.spent / B.budget.total * 100) : 0, q = new Date(B.timeline.startDate), J = new Date(B.timeline.endDate), Le = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), X = Math.max(0, Math.ceil((Le.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), Re = Math.max(0, Y - X), Z = Math.min(Math.round(X / Y * 100), 100), Q = B.team, $ = B.assets.filter((e) => e.match(/\.(pdf|docx?|xlsx?|pptx?|txt|csv|rtf|odt|ods)$/i)), ze = u(B);
126
+ return /* @__PURE__ */ T(f, {
127
+ title: B.name,
128
+ description: B.description,
129
+ actions: /* @__PURE__ */ T("div", {
130
+ className: "flex flex-wrap items-center gap-2",
162
131
  children: [
163
- /* @__PURE__ */ S(ce, { status: K.status }),
164
- /* @__PURE__ */ C("button", {
165
- onClick: () => j(M + "/campaigns"),
132
+ /* @__PURE__ */ w(ue, { status: B.status }),
133
+ /* @__PURE__ */ T("button", {
134
+ onClick: () => e(t + "/campaigns"),
166
135
  className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
167
- children: [/* @__PURE__ */ S(p, { className: "h-4 w-4" }), "Back"]
136
+ children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Back"]
168
137
  }),
169
- /* @__PURE__ */ C("button", {
170
- onClick: () => j(M + "/campaigns/" + K.id + "/edit"),
138
+ /* @__PURE__ */ T("button", {
139
+ onClick: () => e(t + "/campaigns/" + B.id + "/edit"),
171
140
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
172
- children: [/* @__PURE__ */ S(_, { className: "h-4 w-4" }), "Edit"]
141
+ children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Edit"]
173
142
  }),
174
- /* @__PURE__ */ C("div", {
175
- className: "relative",
176
- children: [/* @__PURE__ */ S("button", {
177
- onClick: () => H(!V),
178
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
179
- children: /* @__PURE__ */ S(fe, { className: "h-4 w-4" })
180
- }), V && /* @__PURE__ */ C("div", {
181
- className: "absolute right-0 top-full mt-1 w-44 rounded-lg border border-border-seam bg-gloss-card shadow-pop p-1 shadow-lg z-10",
182
- children: [
183
- /* @__PURE__ */ C("button", {
184
- className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
185
- children: [/* @__PURE__ */ S(pe, { className: "h-4 w-4" }), " Pause"]
186
- }),
187
- /* @__PURE__ */ C("button", {
188
- className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
189
- children: [/* @__PURE__ */ S(de, { className: "h-4 w-4" }), " Duplicate"]
190
- }),
191
- /* @__PURE__ */ C("button", {
192
- className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
193
- children: [/* @__PURE__ */ S(ue, { className: "h-4 w-4" }), " Archive"]
194
- }),
195
- /* @__PURE__ */ C("button", {
196
- onClick: ge,
197
- disabled: R,
198
- className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-status-error-text hover:bg-bg-sunken disabled:opacity-60",
199
- children: [/* @__PURE__ */ S(me, { className: "h-4 w-4" }), " Delete"]
200
- })
201
- ]
202
- })]
143
+ /* @__PURE__ */ w(E, {
144
+ align: "end",
145
+ actions: [
146
+ {
147
+ label: H ? "Resume" : "Pause",
148
+ icon: w(H ? ye : ve, { className: "h-4 w-4" }),
149
+ disabled: U,
150
+ onSelect: () => void G(H ? d.Active : d.Paused)
151
+ },
152
+ {
153
+ label: "Duplicate",
154
+ icon: /* @__PURE__ */ w(_e, { className: "h-4 w-4" }),
155
+ disabled: U,
156
+ onSelect: () => void Fe()
157
+ },
158
+ {
159
+ label: "Archive",
160
+ icon: /* @__PURE__ */ w(me, { className: "h-4 w-4" }),
161
+ disabled: U || je,
162
+ onSelect: () => void G(d.Archived)
163
+ },
164
+ {
165
+ label: "Delete",
166
+ icon: /* @__PURE__ */ w(be, { className: "h-4 w-4" }),
167
+ intent: "destructive",
168
+ disabled: U,
169
+ onSelect: () => void Ie()
170
+ }
171
+ ]
203
172
  })
204
173
  ]
205
174
  }),
206
175
  children: [
207
- /* @__PURE__ */ S(E, { children: "Everything about this campaign in one workspace — track budget pacing and ROAS, review performance trends, audience targeting, creative assets and the team working on it. Use the tabs below to dig into each area." }),
208
- /* @__PURE__ */ S(w, { children: /* @__PURE__ */ C("div", {
176
+ /* @__PURE__ */ w(k, { children: "Everything about this campaign in one workspace — track budget pacing and ROAS, review performance trends, audience targeting, creative assets and the team working on it. Use the tabs below to dig into each area." }),
177
+ /* @__PURE__ */ w(D, { children: /* @__PURE__ */ T("div", {
209
178
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5",
210
179
  children: [
211
- /* @__PURE__ */ S(l, {
180
+ /* @__PURE__ */ w(p, {
212
181
  title: "Revenue",
213
- value: a(K.metrics.revenue),
214
- icon: /* @__PURE__ */ S(g, { className: "h-5 w-5" })
182
+ value: s(B.metrics.revenue),
183
+ icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" })
215
184
  }),
216
- /* @__PURE__ */ S(l, {
185
+ /* @__PURE__ */ w(p, {
217
186
  title: "Conversions",
218
- value: o(K.metrics.conversions),
219
- icon: /* @__PURE__ */ S(b, { className: "h-5 w-5" })
187
+ value: c(B.metrics.conversions),
188
+ icon: /* @__PURE__ */ w(x, { className: "h-5 w-5" })
220
189
  }),
221
- /* @__PURE__ */ S(l, {
190
+ /* @__PURE__ */ w(p, {
222
191
  title: "ROAS",
223
- value: `${K.metrics.roas.toFixed(1)}x`,
224
- icon: /* @__PURE__ */ S(x, { className: "h-5 w-5" })
192
+ value: `${B.metrics.roas.toFixed(1)}x`,
193
+ icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
225
194
  }),
226
- /* @__PURE__ */ S(l, {
195
+ /* @__PURE__ */ w(p, {
227
196
  title: "Budget Used",
228
- value: `${q}%`,
229
- icon: /* @__PURE__ */ S(g, { className: "h-5 w-5" }),
197
+ value: `${K}%`,
198
+ icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" }),
230
199
  className: "relative"
231
200
  }),
232
- /* @__PURE__ */ S(l, {
201
+ /* @__PURE__ */ w(p, {
233
202
  title: "Days Remaining",
234
- value: String(ve),
235
- icon: /* @__PURE__ */ S(m, { className: "h-5 w-5" })
203
+ value: String(Re),
204
+ icon: /* @__PURE__ */ w(he, { className: "h-5 w-5" })
236
205
  })
237
206
  ]
238
207
  }) }),
239
- /* @__PURE__ */ S(T, {
208
+ /* @__PURE__ */ w(O, {
240
209
  storageKey: "headshotmarketing-campaign-details",
241
210
  steps: [
242
211
  {
243
212
  id: "analytics",
244
213
  label: "Review performance",
245
214
  description: "See revenue, cost and conversion trends over time.",
246
- icon: /* @__PURE__ */ S(x, { className: "h-4 w-4" }),
247
- onClick: () => B("analytics")
215
+ icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" }),
216
+ onClick: () => I("analytics")
248
217
  },
249
218
  {
250
219
  id: "audience",
251
220
  label: "Check audience targeting",
252
221
  description: "Confirm demographics, interests and locations.",
253
- icon: /* @__PURE__ */ S(b, { className: "h-4 w-4" }),
254
- onClick: () => B("audience")
222
+ icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
223
+ onClick: () => I("audience")
255
224
  },
256
225
  {
257
226
  id: "edit",
258
227
  label: "Adjust budget or schedule",
259
228
  description: "Open the campaign editor to refine the setup.",
260
- icon: /* @__PURE__ */ S(_, { className: "h-4 w-4" }),
261
- onClick: () => j(M + "/campaigns/" + K.id + "/edit")
229
+ icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
230
+ onClick: () => e(t + "/campaigns/" + B.id + "/edit")
262
231
  }
263
232
  ]
264
233
  }),
265
- U && /* @__PURE__ */ S("div", {
234
+ L && /* @__PURE__ */ w("div", {
266
235
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
267
- children: U
236
+ children: L
268
237
  }),
269
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", {
270
- className: "flex items-center gap-1 border-b border-border-subtle",
238
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("div", {
239
+ className: "flex flex-nowrap items-center gap-1 overflow-x-auto border-b border-border-subtle",
271
240
  children: [
272
241
  {
273
242
  key: "overview",
@@ -289,167 +258,165 @@ var D = [
289
258
  key: "team",
290
259
  label: "Team"
291
260
  }
292
- ].map((e) => /* @__PURE__ */ S("button", {
293
- onClick: () => {
294
- B(e.key), H(!1);
295
- },
296
- className: i("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", z === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
261
+ ].map((e) => /* @__PURE__ */ w("button", {
262
+ onClick: () => I(e.key),
263
+ className: o("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", F === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
297
264
  children: e.label
298
265
  }, e.key))
299
- }), /* @__PURE__ */ C("div", {
266
+ }), /* @__PURE__ */ T("div", {
300
267
  className: "mt-6",
301
268
  children: [
302
- z === "overview" && /* @__PURE__ */ C("div", {
269
+ F === "overview" && /* @__PURE__ */ T("div", {
303
270
  className: "space-y-6",
304
271
  children: [
305
- /* @__PURE__ */ C("div", {
272
+ /* @__PURE__ */ T("div", {
306
273
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
307
- children: [/* @__PURE__ */ C("div", {
274
+ children: [/* @__PURE__ */ T("div", {
308
275
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
309
276
  children: [
310
- /* @__PURE__ */ C("h4", {
277
+ /* @__PURE__ */ T("h4", {
311
278
  className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
312
- children: [/* @__PURE__ */ S(h, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
279
+ children: [/* @__PURE__ */ w(ge, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
313
280
  }),
314
- /* @__PURE__ */ C("div", {
281
+ /* @__PURE__ */ T("div", {
315
282
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
316
283
  children: [
317
- /* @__PURE__ */ S("span", { children: J.toLocaleDateString() }),
318
- /* @__PURE__ */ C("span", { children: [Q, "%"] }),
319
- /* @__PURE__ */ S("span", { children: Y.toLocaleDateString() })
284
+ /* @__PURE__ */ w("span", { children: q.toLocaleDateString() }),
285
+ /* @__PURE__ */ T("span", { children: [Z, "%"] }),
286
+ /* @__PURE__ */ w("span", { children: J.toLocaleDateString() })
320
287
  ]
321
288
  }),
322
- /* @__PURE__ */ S("div", {
289
+ /* @__PURE__ */ w("div", {
323
290
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
324
- children: /* @__PURE__ */ S("div", {
291
+ children: /* @__PURE__ */ w("div", {
325
292
  className: "h-2.5 rounded-full bg-action-primary-bg transition-all",
326
- style: { width: `${Q}%` }
293
+ style: { width: `${Z}%` }
327
294
  })
328
295
  })
329
296
  ]
330
- }), /* @__PURE__ */ C("div", {
297
+ }), /* @__PURE__ */ T("div", {
331
298
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
332
299
  children: [
333
- /* @__PURE__ */ C("h4", {
300
+ /* @__PURE__ */ T("h4", {
334
301
  className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
335
- children: [/* @__PURE__ */ S(g, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
302
+ children: [/* @__PURE__ */ w(_, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
336
303
  }),
337
- /* @__PURE__ */ C("div", {
304
+ /* @__PURE__ */ T("div", {
338
305
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
339
306
  children: [
340
- /* @__PURE__ */ C("span", { children: [a(K.budget.spent), " spent"] }),
341
- /* @__PURE__ */ C("span", { children: [q, "%"] }),
342
- /* @__PURE__ */ C("span", { children: [a(K.budget.total), " total"] })
307
+ /* @__PURE__ */ T("span", { children: [s(B.budget.spent), " spent"] }),
308
+ /* @__PURE__ */ T("span", { children: [K, "%"] }),
309
+ /* @__PURE__ */ T("span", { children: [s(B.budget.total), " total"] })
343
310
  ]
344
311
  }),
345
- /* @__PURE__ */ S("div", {
312
+ /* @__PURE__ */ w("div", {
346
313
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
347
- children: /* @__PURE__ */ S("div", {
348
- className: i("h-2.5 rounded-full transition-all", q >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
349
- style: { width: `${q}%` }
314
+ children: /* @__PURE__ */ w("div", {
315
+ className: o("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
316
+ style: { width: `${K}%` }
350
317
  })
351
318
  })
352
319
  ]
353
320
  })]
354
321
  }),
355
- /* @__PURE__ */ C("div", {
322
+ /* @__PURE__ */ T("div", {
356
323
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
357
- children: [/* @__PURE__ */ S("h4", {
324
+ children: [/* @__PURE__ */ w("h4", {
358
325
  className: "text-sm font-semibold text-text-primary mb-3",
359
326
  children: "Active Channels"
360
- }), /* @__PURE__ */ S("div", {
327
+ }), /* @__PURE__ */ w("div", {
361
328
  className: "flex flex-wrap gap-2",
362
- children: K.channels.map((e) => /* @__PURE__ */ S("span", {
329
+ children: B.channels.map((e) => /* @__PURE__ */ w("span", {
363
330
  className: "inline-flex items-center rounded-full bg-bg-sunken px-3 py-1 text-xs font-medium text-text-primary",
364
331
  children: e
365
332
  }, e))
366
333
  })]
367
334
  }),
368
- /* @__PURE__ */ C("div", {
335
+ /* @__PURE__ */ T("div", {
369
336
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
370
- children: [/* @__PURE__ */ C("h4", {
337
+ children: [/* @__PURE__ */ T("h4", {
371
338
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
372
- children: [/* @__PURE__ */ S(le, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
373
- }), /* @__PURE__ */ S("div", {
374
- className: "space-y-4",
375
- children: k.map((e, t) => /* @__PURE__ */ C("div", {
339
+ children: [/* @__PURE__ */ w(pe, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
340
+ }), Ne && W.length === 0 ? /* @__PURE__ */ w("div", {
341
+ className: "space-y-3 py-2",
342
+ children: [
343
+ 0,
344
+ 1,
345
+ 2
346
+ ].map((e) => /* @__PURE__ */ w("div", { className: "h-10 rounded-md bg-bg-sunken/50 animate-pulse" }, e))
347
+ }) : W.length > 0 ? /* @__PURE__ */ w("ul", {
348
+ className: "space-y-3",
349
+ children: W.map((e) => /* @__PURE__ */ T("li", {
376
350
  className: "flex items-start gap-3",
377
- children: [/* @__PURE__ */ C("div", {
378
- className: "relative flex-shrink-0",
379
- children: [/* @__PURE__ */ S("div", {
380
- className: "h-8 w-8 rounded-full bg-bg-sunken flex items-center justify-center text-xs font-medium text-text-secondary",
381
- children: e.user.split(" ").map((e) => e[0]).join("")
382
- }), t < k.length - 1 && /* @__PURE__ */ S("div", { className: "absolute left-4 top-8 h-6 w-px bg-border" })]
383
- }), /* @__PURE__ */ C("div", {
384
- className: "flex-1 min-w-0",
385
- children: [/* @__PURE__ */ S("p", {
386
- className: "text-sm text-text-primary",
387
- children: e.action
388
- }), /* @__PURE__ */ C("p", {
389
- className: "text-xs text-text-secondary mt-0.5",
390
- children: [
391
- e.user,
392
- " · ",
393
- e.time
394
- ]
351
+ children: [/* @__PURE__ */ w("span", { className: "mt-1 h-2 w-2 flex-shrink-0 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ T("div", {
352
+ className: "min-w-0 flex-1",
353
+ children: [/* @__PURE__ */ w("p", {
354
+ className: "text-sm text-text-primary break-words",
355
+ children: e.description ?? j(e.action)
356
+ }), /* @__PURE__ */ w("p", {
357
+ className: "text-xs text-text-secondary",
358
+ children: le(e.timestamp, "relative")
395
359
  })]
396
360
  })]
397
361
  }, e.id))
362
+ }) : /* @__PURE__ */ w("p", {
363
+ className: "text-sm text-text-secondary py-4 text-center",
364
+ children: Pe ? "Activity is unavailable right now." : "No recent activity yet."
398
365
  })]
399
366
  })
400
367
  ]
401
368
  }),
402
- z === "analytics" && /* @__PURE__ */ S(d, {
369
+ F === "analytics" && /* @__PURE__ */ w(de, {
403
370
  title: "Performance Over Time",
404
371
  subtitle: "Revenue, cost, and conversions trend",
405
- children: /* @__PURE__ */ S(ee, {
372
+ children: /* @__PURE__ */ w(ie, {
406
373
  width: "100%",
407
374
  height: 350,
408
- children: /* @__PURE__ */ C(re, {
409
- data: ye,
375
+ children: /* @__PURE__ */ T(ce, {
376
+ data: ze,
410
377
  children: [
411
- /* @__PURE__ */ S(n, {
378
+ /* @__PURE__ */ w(ae, {
412
379
  strokeDasharray: "3 3",
413
380
  className: "stroke-border"
414
381
  }),
415
- /* @__PURE__ */ S(te, {
382
+ /* @__PURE__ */ w(oe, {
416
383
  dataKey: "date",
417
384
  tick: { fontSize: 11 },
418
385
  className: "text-text-secondary",
419
386
  tickFormatter: (e) => e.slice(5)
420
387
  }),
421
- /* @__PURE__ */ S(ne, {
388
+ /* @__PURE__ */ w(se, {
422
389
  tick: { fontSize: 11 },
423
390
  className: "text-text-secondary"
424
391
  }),
425
- /* @__PURE__ */ S(t, { contentStyle: {
392
+ /* @__PURE__ */ w(re, { contentStyle: {
426
393
  backgroundColor: "var(--color-card)",
427
394
  border: "1px solid var(--color-border)",
428
395
  borderRadius: 8
429
396
  } }),
430
- /* @__PURE__ */ S(r, {
397
+ /* @__PURE__ */ w(a, {
431
398
  type: "monotone",
432
399
  dataKey: "revenue",
433
- stroke: D[0],
434
- fill: D[0],
400
+ stroke: M[0],
401
+ fill: M[0],
435
402
  fillOpacity: .15,
436
403
  strokeWidth: 2,
437
404
  name: "Revenue"
438
405
  }),
439
- /* @__PURE__ */ S(r, {
406
+ /* @__PURE__ */ w(a, {
440
407
  type: "monotone",
441
408
  dataKey: "cost",
442
- stroke: D[3],
443
- fill: D[3],
409
+ stroke: M[3],
410
+ fill: M[3],
444
411
  fillOpacity: .1,
445
412
  strokeWidth: 2,
446
413
  name: "Cost"
447
414
  }),
448
- /* @__PURE__ */ S(r, {
415
+ /* @__PURE__ */ w(a, {
449
416
  type: "monotone",
450
417
  dataKey: "conversions",
451
- stroke: D[1],
452
- fill: D[1],
418
+ stroke: M[1],
419
+ fill: M[1],
453
420
  fillOpacity: .1,
454
421
  strokeWidth: 2,
455
422
  name: "Conversions"
@@ -458,65 +425,65 @@ var D = [
458
425
  })
459
426
  })
460
427
  }),
461
- z === "audience" && /* @__PURE__ */ C("div", {
428
+ F === "audience" && /* @__PURE__ */ T("div", {
462
429
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
463
430
  children: [
464
- /* @__PURE__ */ C("div", {
431
+ /* @__PURE__ */ T("div", {
465
432
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
466
- children: [/* @__PURE__ */ S("h4", {
433
+ children: [/* @__PURE__ */ w("h4", {
467
434
  className: "text-sm font-semibold text-text-primary mb-3",
468
435
  children: "Demographics"
469
- }), /* @__PURE__ */ C("div", {
436
+ }), /* @__PURE__ */ T("div", {
470
437
  className: "space-y-2",
471
- children: [K.targeting.demographics.map((e) => /* @__PURE__ */ C("div", {
438
+ children: [B.targeting.demographics.map((e) => /* @__PURE__ */ T("div", {
472
439
  className: "flex items-center gap-2",
473
- children: [/* @__PURE__ */ S("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ S("span", {
440
+ children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ w("span", {
474
441
  className: "text-sm text-text-primary",
475
442
  children: e
476
443
  })]
477
- }, e)), /* @__PURE__ */ C("div", {
444
+ }, e)), /* @__PURE__ */ T("div", {
478
445
  className: "pt-2 border-t border-border-subtle mt-2",
479
- children: [/* @__PURE__ */ S("p", {
446
+ children: [/* @__PURE__ */ w("p", {
480
447
  className: "text-xs text-text-secondary",
481
448
  children: "Age Range"
482
- }), /* @__PURE__ */ C("p", {
449
+ }), /* @__PURE__ */ T("p", {
483
450
  className: "text-sm font-medium text-text-primary",
484
451
  children: [
485
- K.targeting.ageRange.min,
452
+ B.targeting.ageRange.min,
486
453
  " -",
487
454
  " ",
488
- K.targeting.ageRange.max
455
+ B.targeting.ageRange.max
489
456
  ]
490
457
  })]
491
458
  })]
492
459
  })]
493
460
  }),
494
- /* @__PURE__ */ C("div", {
461
+ /* @__PURE__ */ T("div", {
495
462
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
496
- children: [/* @__PURE__ */ S("h4", {
463
+ children: [/* @__PURE__ */ w("h4", {
497
464
  className: "text-sm font-semibold text-text-primary mb-3",
498
465
  children: "Interests"
499
- }), /* @__PURE__ */ S("div", {
466
+ }), /* @__PURE__ */ w("div", {
500
467
  className: "space-y-2",
501
- children: K.targeting.interests.map((e) => /* @__PURE__ */ C("div", {
468
+ children: B.targeting.interests.map((e) => /* @__PURE__ */ T("div", {
502
469
  className: "flex items-center gap-2",
503
- children: [/* @__PURE__ */ S("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ S("span", {
470
+ children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ w("span", {
504
471
  className: "text-sm text-text-primary",
505
472
  children: e
506
473
  })]
507
474
  }, e))
508
475
  })]
509
476
  }),
510
- /* @__PURE__ */ C("div", {
477
+ /* @__PURE__ */ T("div", {
511
478
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
512
- children: [/* @__PURE__ */ S("h4", {
479
+ children: [/* @__PURE__ */ w("h4", {
513
480
  className: "text-sm font-semibold text-text-primary mb-3",
514
481
  children: "Locations"
515
- }), /* @__PURE__ */ S("div", {
482
+ }), /* @__PURE__ */ w("div", {
516
483
  className: "space-y-2",
517
- children: K.targeting.locations.map((e) => /* @__PURE__ */ C("div", {
484
+ children: B.targeting.locations.map((e) => /* @__PURE__ */ T("div", {
518
485
  className: "flex items-center gap-2",
519
- children: [/* @__PURE__ */ S("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ S("span", {
486
+ children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ w("span", {
520
487
  className: "text-sm text-text-primary",
521
488
  children: e
522
489
  })]
@@ -525,70 +492,64 @@ var D = [
525
492
  })
526
493
  ]
527
494
  }),
528
- z === "assets" && /* @__PURE__ */ C("div", {
495
+ F === "assets" && /* @__PURE__ */ T("div", {
529
496
  className: "space-y-6",
530
- children: [/* @__PURE__ */ C("div", {
497
+ children: [/* @__PURE__ */ T("div", {
531
498
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
532
- children: [/* @__PURE__ */ C("h4", {
499
+ children: [/* @__PURE__ */ T("h4", {
533
500
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
534
- children: [/* @__PURE__ */ S(y, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
535
- }), /* @__PURE__ */ S("div", {
501
+ children: [/* @__PURE__ */ w(b, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
502
+ }), /* @__PURE__ */ w("div", {
536
503
  className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",
537
- children: K.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).length > 0 ? K.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).map((e) => /* @__PURE__ */ S("div", {
504
+ children: B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).length > 0 ? B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).map((e) => /* @__PURE__ */ w("div", {
538
505
  className: "aspect-video rounded-lg border border-border-subtle bg-bg-sunken flex items-center justify-center",
539
- children: /* @__PURE__ */ S(y, { className: "h-8 w-8 text-text-secondary" })
506
+ children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary" })
540
507
  }, e)) : [
541
508
  1,
542
509
  2,
543
510
  3
544
- ].map((e) => /* @__PURE__ */ S("div", {
511
+ ].map((e) => /* @__PURE__ */ w("div", {
545
512
  className: "aspect-video rounded-lg border border-dashed border-border-subtle bg-bg-sunken/30 flex items-center justify-center",
546
- children: /* @__PURE__ */ S(y, { className: "h-8 w-8 text-text-secondary/50" })
513
+ children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary/50" })
547
514
  }, e))
548
515
  })]
549
- }), /* @__PURE__ */ C("div", {
516
+ }), /* @__PURE__ */ T("div", {
550
517
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
551
- children: [/* @__PURE__ */ C("h4", {
518
+ children: [/* @__PURE__ */ T("h4", {
552
519
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
553
- children: [/* @__PURE__ */ S(v, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
554
- }), /* @__PURE__ */ S("div", {
520
+ children: [/* @__PURE__ */ w(y, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
521
+ }), $.length > 0 ? /* @__PURE__ */ w("div", {
555
522
  className: "space-y-2",
556
- children: A.map((e) => /* @__PURE__ */ C("div", {
523
+ children: $.map((e) => /* @__PURE__ */ w("div", {
557
524
  className: "flex items-center justify-between rounded-md border border-border-subtle p-3 hover:bg-bg-sunken/50 transition-colors",
558
- children: [/* @__PURE__ */ C("div", {
525
+ children: /* @__PURE__ */ T("div", {
559
526
  className: "flex items-center gap-3",
560
- children: [/* @__PURE__ */ S(v, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
561
- className: "text-sm font-medium text-text-primary",
562
- children: e.name
563
- }), /* @__PURE__ */ S("p", {
564
- className: "text-xs text-text-secondary",
565
- children: e.size
566
- })] })]
567
- }), /* @__PURE__ */ S("span", {
568
- className: "text-xs text-text-secondary",
569
- children: e.updated
570
- })]
571
- }, e.name))
527
+ children: [/* @__PURE__ */ w(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ w("p", {
528
+ className: "text-sm font-medium text-text-primary break-all",
529
+ children: e.split("/").pop() ?? e
530
+ })]
531
+ })
532
+ }, e))
533
+ }) : /* @__PURE__ */ w("p", {
534
+ className: "text-sm text-text-secondary py-4 text-center",
535
+ children: "No documents yet."
572
536
  })]
573
537
  })]
574
538
  }),
575
- z === "team" && /* @__PURE__ */ C("div", {
539
+ F === "team" && /* @__PURE__ */ T("div", {
576
540
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
577
- children: [$.map((e) => /* @__PURE__ */ C("div", {
541
+ children: [Q.map((e) => /* @__PURE__ */ T("div", {
578
542
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop flex items-center gap-4",
579
- children: [/* @__PURE__ */ S("div", {
543
+ children: [/* @__PURE__ */ w("div", {
580
544
  className: "h-12 w-12 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-sm font-semibold text-primary flex-shrink-0",
581
- children: e.avatar
582
- }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
545
+ children: N(e)
546
+ }), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
583
547
  className: "text-sm font-semibold text-text-primary",
584
- children: e.name
585
- }), /* @__PURE__ */ S("p", {
586
- className: "text-xs text-text-secondary",
587
- children: e.role
588
- })] })]
589
- }, e.name)), $.length === 0 && /* @__PURE__ */ S("div", {
548
+ children: e
549
+ }) })]
550
+ }, e)), Q.length === 0 && /* @__PURE__ */ w("div", {
590
551
  className: "col-span-full",
591
- children: /* @__PURE__ */ S(u, {
552
+ children: /* @__PURE__ */ w(m, {
592
553
  illustration: "empty-people",
593
554
  title: "No team members",
594
555
  description: "No team members have been assigned to this campaign yet."
@@ -601,6 +562,6 @@ var D = [
601
562
  });
602
563
  };
603
564
  //#endregion
604
- export { j as CampaignDetailsPage };
565
+ export { P as CampaignDetailsPage };
605
566
 
606
567
  //# sourceMappingURL=CampaignDetailsPage.js.map