@burdenoff/microfe-headshotmarketing 2026.703.1 → 2026.704.2

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 (137) hide show
  1. package/dist/generated/wspace-operations.js +960 -77
  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 +334 -301
  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 +221 -211
  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 +290 -217
  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/helpers.js +11 -1
  132. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  133. package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
  134. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  135. package/package.json +1 -1
  136. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  137. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -1,27 +1,33 @@
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 i, useHeadshotmarketingCampaignByIdQuery as a } from "../../../generated/wspace-operations.js";
10
- import { cn as o, formatCurrency as s, formatNumber as c } from "../../utils/helpers.js";
11
- import { toCampaignModel as l, toCampaignPerformanceSeries as ae } from "../../utils/campaignMapper.js";
12
- import { PageLayout as u } from "../../components/PageLayout.js";
13
- import { StatCard as d } from "../../components/StatCard.js";
14
- import { StatusBadge as oe } from "../../components/StatusBadge.js";
15
- import { EmptyState as f } from "../../components/EmptyState.js";
16
- import { ChartCard as p } 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 m } from "react";
19
- import { Activity as se, Archive as ce, ArrowLeft as h, Calendar as le, Clock as g, Copy as ue, DollarSign as _, Edit as v, FileText as y, Image as b, MoreVertical as de, Pause as fe, Target as x, Trash2 as pe, TrendingUp as S } from "lucide-react";
20
- import { useParams as me } from "react-router-dom";
21
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
22
- import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } 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 O = [
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)",
@@ -29,161 +35,208 @@ var O = [
29
35
  "var(--color-chart-5)",
30
36
  "var(--color-chart-6)"
31
37
  ];
32
- function k(e) {
38
+ function N(e) {
33
39
  return e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase();
34
40
  }
35
- var A = () => {
36
- let { navigate: A, basePath: j } = e(), { id: M } = me(), { data: N, loading: P, error: F } = a({
37
- skip: !M,
38
- variables: M ? { id: M } : void 0
39
- }), [I, { loading: L }] = i(), [R, z] = m("overview"), [B, V] = m(!1), [H, U] = m(null), W = N?.headshotmarketingCampaign, G = W ? l(W) : null, he = async () => {
40
- if (!(!M || !G) && window.confirm(`Delete campaign "${G.name}"? This cannot be undone.`)) {
41
- U(null);
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);
42
56
  try {
43
- await I({
44
- variables: { id: M },
45
- refetchQueries: [{
46
- query: ie,
47
- variables: {
48
- limit: 100,
49
- offset: 0
50
- }
51
- }],
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,
52
85
  awaitRefetchQueries: !0
53
- }), A(j + "/campaigns");
86
+ })).data?.createHeadshotmarketingCampaign?.id;
87
+ n && e(t + "/campaigns/" + n);
54
88
  } catch (e) {
55
- U(e instanceof Error ? e.message : "Failed to delete campaign.");
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,
99
+ awaitRefetchQueries: !0
100
+ }), e(t + "/campaigns");
101
+ } catch (e) {
102
+ R(e instanceof Error ? e.message : "Failed to delete campaign.");
56
103
  }
57
104
  }
58
105
  };
59
- if (!G) return /* @__PURE__ */ C(u, {
106
+ if (!B) return /* @__PURE__ */ w(f, {
60
107
  title: "Campaign Details",
61
- children: /* @__PURE__ */ C(f, {
62
- illustration: "empty-generic",
63
- title: "Campaign not found",
64
- description: P ? "Loading campaign details..." : F?.message ?? "The campaign you're looking for doesn't exist or has been removed.",
65
- action: /* @__PURE__ */ w("button", {
66
- onClick: () => A(j + "/campaigns"),
67
- 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",
68
- children: [/* @__PURE__ */ C(h, { 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
+ })
69
122
  })
70
123
  })
71
124
  });
72
- let K = G.budget.total > 0 ? Math.round(G.budget.spent / G.budget.total * 100) : 0, q = new Date(G.timeline.startDate), J = new Date(G.timeline.endDate), ge = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), X = Math.max(0, Math.ceil((ge.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), _e = Math.max(0, Y - X), Z = Math.min(Math.round(X / Y * 100), 100), Q = G.team, $ = G.assets.filter((e) => e.match(/\.(pdf|docx?|xlsx?|pptx?|txt|csv|rtf|odt|ods)$/i)), ve = ae(G);
73
- return /* @__PURE__ */ w(u, {
74
- title: G.name,
75
- description: G.description,
76
- actions: /* @__PURE__ */ w("div", {
77
- 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",
78
131
  children: [
79
- /* @__PURE__ */ C(oe, { status: G.status }),
80
- /* @__PURE__ */ w("button", {
81
- onClick: () => A(j + "/campaigns"),
132
+ /* @__PURE__ */ w(ue, { status: B.status }),
133
+ /* @__PURE__ */ T("button", {
134
+ onClick: () => e(t + "/campaigns"),
82
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",
83
- children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Back"]
136
+ children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Back"]
84
137
  }),
85
- /* @__PURE__ */ w("button", {
86
- onClick: () => A(j + "/campaigns/" + G.id + "/edit"),
138
+ /* @__PURE__ */ T("button", {
139
+ onClick: () => e(t + "/campaigns/" + B.id + "/edit"),
87
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",
88
- children: [/* @__PURE__ */ C(v, { className: "h-4 w-4" }), "Edit"]
141
+ children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Edit"]
89
142
  }),
90
- /* @__PURE__ */ w("div", {
91
- className: "relative",
92
- children: [/* @__PURE__ */ C("button", {
93
- onClick: () => V(!B),
94
- 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",
95
- children: /* @__PURE__ */ C(de, { className: "h-4 w-4" })
96
- }), B && /* @__PURE__ */ w("div", {
97
- 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",
98
- children: [
99
- /* @__PURE__ */ w("button", {
100
- className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
101
- children: [/* @__PURE__ */ C(fe, { className: "h-4 w-4" }), " Pause"]
102
- }),
103
- /* @__PURE__ */ w("button", {
104
- className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
105
- children: [/* @__PURE__ */ C(ue, { className: "h-4 w-4" }), " Duplicate"]
106
- }),
107
- /* @__PURE__ */ w("button", {
108
- className: "flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken",
109
- children: [/* @__PURE__ */ C(ce, { className: "h-4 w-4" }), " Archive"]
110
- }),
111
- /* @__PURE__ */ w("button", {
112
- onClick: he,
113
- disabled: L,
114
- 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",
115
- children: [/* @__PURE__ */ C(pe, { className: "h-4 w-4" }), " Delete"]
116
- })
117
- ]
118
- })]
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
+ ]
119
172
  })
120
173
  ]
121
174
  }),
122
175
  children: [
123
- /* @__PURE__ */ C(D, { 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." }),
124
- /* @__PURE__ */ C(T, { children: /* @__PURE__ */ w("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", {
125
178
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5",
126
179
  children: [
127
- /* @__PURE__ */ C(d, {
180
+ /* @__PURE__ */ w(p, {
128
181
  title: "Revenue",
129
- value: s(G.metrics.revenue),
130
- icon: /* @__PURE__ */ C(_, { className: "h-5 w-5" })
182
+ value: s(B.metrics.revenue),
183
+ icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" })
131
184
  }),
132
- /* @__PURE__ */ C(d, {
185
+ /* @__PURE__ */ w(p, {
133
186
  title: "Conversions",
134
- value: c(G.metrics.conversions),
135
- icon: /* @__PURE__ */ C(x, { className: "h-5 w-5" })
187
+ value: c(B.metrics.conversions),
188
+ icon: /* @__PURE__ */ w(x, { className: "h-5 w-5" })
136
189
  }),
137
- /* @__PURE__ */ C(d, {
190
+ /* @__PURE__ */ w(p, {
138
191
  title: "ROAS",
139
- value: `${G.metrics.roas.toFixed(1)}x`,
140
- icon: /* @__PURE__ */ C(S, { className: "h-5 w-5" })
192
+ value: `${B.metrics.roas.toFixed(1)}x`,
193
+ icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
141
194
  }),
142
- /* @__PURE__ */ C(d, {
195
+ /* @__PURE__ */ w(p, {
143
196
  title: "Budget Used",
144
197
  value: `${K}%`,
145
- icon: /* @__PURE__ */ C(_, { className: "h-5 w-5" }),
198
+ icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" }),
146
199
  className: "relative"
147
200
  }),
148
- /* @__PURE__ */ C(d, {
201
+ /* @__PURE__ */ w(p, {
149
202
  title: "Days Remaining",
150
- value: String(_e),
151
- icon: /* @__PURE__ */ C(le, { className: "h-5 w-5" })
203
+ value: String(Re),
204
+ icon: /* @__PURE__ */ w(he, { className: "h-5 w-5" })
152
205
  })
153
206
  ]
154
207
  }) }),
155
- /* @__PURE__ */ C(E, {
208
+ /* @__PURE__ */ w(O, {
156
209
  storageKey: "headshotmarketing-campaign-details",
157
210
  steps: [
158
211
  {
159
212
  id: "analytics",
160
213
  label: "Review performance",
161
214
  description: "See revenue, cost and conversion trends over time.",
162
- icon: /* @__PURE__ */ C(S, { className: "h-4 w-4" }),
163
- onClick: () => z("analytics")
215
+ icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" }),
216
+ onClick: () => I("analytics")
164
217
  },
165
218
  {
166
219
  id: "audience",
167
220
  label: "Check audience targeting",
168
221
  description: "Confirm demographics, interests and locations.",
169
- icon: /* @__PURE__ */ C(x, { className: "h-4 w-4" }),
170
- onClick: () => z("audience")
222
+ icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
223
+ onClick: () => I("audience")
171
224
  },
172
225
  {
173
226
  id: "edit",
174
227
  label: "Adjust budget or schedule",
175
228
  description: "Open the campaign editor to refine the setup.",
176
- icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
177
- onClick: () => A(j + "/campaigns/" + G.id + "/edit")
229
+ icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
230
+ onClick: () => e(t + "/campaigns/" + B.id + "/edit")
178
231
  }
179
232
  ]
180
233
  }),
181
- H && /* @__PURE__ */ C("div", {
234
+ L && /* @__PURE__ */ w("div", {
182
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",
183
- children: H
236
+ children: L
184
237
  }),
185
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
186
- 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",
187
240
  children: [
188
241
  {
189
242
  key: "overview",
@@ -205,62 +258,60 @@ var A = () => {
205
258
  key: "team",
206
259
  label: "Team"
207
260
  }
208
- ].map((e) => /* @__PURE__ */ C("button", {
209
- onClick: () => {
210
- z(e.key), V(!1);
211
- },
212
- className: o("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", R === 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"),
213
264
  children: e.label
214
265
  }, e.key))
215
- }), /* @__PURE__ */ w("div", {
266
+ }), /* @__PURE__ */ T("div", {
216
267
  className: "mt-6",
217
268
  children: [
218
- R === "overview" && /* @__PURE__ */ w("div", {
269
+ F === "overview" && /* @__PURE__ */ T("div", {
219
270
  className: "space-y-6",
220
271
  children: [
221
- /* @__PURE__ */ w("div", {
272
+ /* @__PURE__ */ T("div", {
222
273
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
223
- children: [/* @__PURE__ */ w("div", {
274
+ children: [/* @__PURE__ */ T("div", {
224
275
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
225
276
  children: [
226
- /* @__PURE__ */ w("h4", {
277
+ /* @__PURE__ */ T("h4", {
227
278
  className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
228
- children: [/* @__PURE__ */ C(g, { 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"]
229
280
  }),
230
- /* @__PURE__ */ w("div", {
281
+ /* @__PURE__ */ T("div", {
231
282
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
232
283
  children: [
233
- /* @__PURE__ */ C("span", { children: q.toLocaleDateString() }),
234
- /* @__PURE__ */ w("span", { children: [Z, "%"] }),
235
- /* @__PURE__ */ C("span", { children: J.toLocaleDateString() })
284
+ /* @__PURE__ */ w("span", { children: q.toLocaleDateString() }),
285
+ /* @__PURE__ */ T("span", { children: [Z, "%"] }),
286
+ /* @__PURE__ */ w("span", { children: J.toLocaleDateString() })
236
287
  ]
237
288
  }),
238
- /* @__PURE__ */ C("div", {
289
+ /* @__PURE__ */ w("div", {
239
290
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
240
- children: /* @__PURE__ */ C("div", {
291
+ children: /* @__PURE__ */ w("div", {
241
292
  className: "h-2.5 rounded-full bg-action-primary-bg transition-all",
242
293
  style: { width: `${Z}%` }
243
294
  })
244
295
  })
245
296
  ]
246
- }), /* @__PURE__ */ w("div", {
297
+ }), /* @__PURE__ */ T("div", {
247
298
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
248
299
  children: [
249
- /* @__PURE__ */ w("h4", {
300
+ /* @__PURE__ */ T("h4", {
250
301
  className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
251
- children: [/* @__PURE__ */ C(_, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
302
+ children: [/* @__PURE__ */ w(_, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
252
303
  }),
253
- /* @__PURE__ */ w("div", {
304
+ /* @__PURE__ */ T("div", {
254
305
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
255
306
  children: [
256
- /* @__PURE__ */ w("span", { children: [s(G.budget.spent), " spent"] }),
257
- /* @__PURE__ */ w("span", { children: [K, "%"] }),
258
- /* @__PURE__ */ w("span", { children: [s(G.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"] })
259
310
  ]
260
311
  }),
261
- /* @__PURE__ */ C("div", {
312
+ /* @__PURE__ */ w("div", {
262
313
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
263
- children: /* @__PURE__ */ C("div", {
314
+ children: /* @__PURE__ */ w("div", {
264
315
  className: o("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
265
316
  style: { width: `${K}%` }
266
317
  })
@@ -268,82 +319,104 @@ var A = () => {
268
319
  ]
269
320
  })]
270
321
  }),
271
- /* @__PURE__ */ w("div", {
322
+ /* @__PURE__ */ T("div", {
272
323
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
273
- children: [/* @__PURE__ */ C("h4", {
324
+ children: [/* @__PURE__ */ w("h4", {
274
325
  className: "text-sm font-semibold text-text-primary mb-3",
275
326
  children: "Active Channels"
276
- }), /* @__PURE__ */ C("div", {
327
+ }), /* @__PURE__ */ w("div", {
277
328
  className: "flex flex-wrap gap-2",
278
- children: G.channels.map((e) => /* @__PURE__ */ C("span", {
329
+ children: B.channels.map((e) => /* @__PURE__ */ w("span", {
279
330
  className: "inline-flex items-center rounded-full bg-bg-sunken px-3 py-1 text-xs font-medium text-text-primary",
280
331
  children: e
281
332
  }, e))
282
333
  })]
283
334
  }),
284
- /* @__PURE__ */ w("div", {
335
+ /* @__PURE__ */ T("div", {
285
336
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
286
- children: [/* @__PURE__ */ w("h4", {
337
+ children: [/* @__PURE__ */ T("h4", {
287
338
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
288
- children: [/* @__PURE__ */ C(se, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
289
- }), /* @__PURE__ */ C("p", {
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", {
350
+ className: "flex items-start gap-3",
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")
359
+ })]
360
+ })]
361
+ }, e.id))
362
+ }) : /* @__PURE__ */ w("p", {
290
363
  className: "text-sm text-text-secondary py-4 text-center",
291
- children: "No recent activity yet."
364
+ children: Pe ? "Activity is unavailable right now." : "No recent activity yet."
292
365
  })]
293
366
  })
294
367
  ]
295
368
  }),
296
- R === "analytics" && /* @__PURE__ */ C(p, {
369
+ F === "analytics" && /* @__PURE__ */ w(de, {
297
370
  title: "Performance Over Time",
298
371
  subtitle: "Revenue, cost, and conversions trend",
299
- children: /* @__PURE__ */ C(ee, {
372
+ children: /* @__PURE__ */ w(ie, {
300
373
  width: "100%",
301
374
  height: 350,
302
- children: /* @__PURE__ */ w(re, {
303
- data: ve,
375
+ children: /* @__PURE__ */ T(ce, {
376
+ data: ze,
304
377
  children: [
305
- /* @__PURE__ */ C(n, {
378
+ /* @__PURE__ */ w(ae, {
306
379
  strokeDasharray: "3 3",
307
380
  className: "stroke-border"
308
381
  }),
309
- /* @__PURE__ */ C(te, {
382
+ /* @__PURE__ */ w(oe, {
310
383
  dataKey: "date",
311
384
  tick: { fontSize: 11 },
312
385
  className: "text-text-secondary",
313
386
  tickFormatter: (e) => e.slice(5)
314
387
  }),
315
- /* @__PURE__ */ C(ne, {
388
+ /* @__PURE__ */ w(se, {
316
389
  tick: { fontSize: 11 },
317
390
  className: "text-text-secondary"
318
391
  }),
319
- /* @__PURE__ */ C(t, { contentStyle: {
392
+ /* @__PURE__ */ w(re, { contentStyle: {
320
393
  backgroundColor: "var(--color-card)",
321
394
  border: "1px solid var(--color-border)",
322
395
  borderRadius: 8
323
396
  } }),
324
- /* @__PURE__ */ C(r, {
397
+ /* @__PURE__ */ w(a, {
325
398
  type: "monotone",
326
399
  dataKey: "revenue",
327
- stroke: O[0],
328
- fill: O[0],
400
+ stroke: M[0],
401
+ fill: M[0],
329
402
  fillOpacity: .15,
330
403
  strokeWidth: 2,
331
404
  name: "Revenue"
332
405
  }),
333
- /* @__PURE__ */ C(r, {
406
+ /* @__PURE__ */ w(a, {
334
407
  type: "monotone",
335
408
  dataKey: "cost",
336
- stroke: O[3],
337
- fill: O[3],
409
+ stroke: M[3],
410
+ fill: M[3],
338
411
  fillOpacity: .1,
339
412
  strokeWidth: 2,
340
413
  name: "Cost"
341
414
  }),
342
- /* @__PURE__ */ C(r, {
415
+ /* @__PURE__ */ w(a, {
343
416
  type: "monotone",
344
417
  dataKey: "conversions",
345
- stroke: O[1],
346
- fill: O[1],
418
+ stroke: M[1],
419
+ fill: M[1],
347
420
  fillOpacity: .1,
348
421
  strokeWidth: 2,
349
422
  name: "Conversions"
@@ -352,65 +425,65 @@ var A = () => {
352
425
  })
353
426
  })
354
427
  }),
355
- R === "audience" && /* @__PURE__ */ w("div", {
428
+ F === "audience" && /* @__PURE__ */ T("div", {
356
429
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
357
430
  children: [
358
- /* @__PURE__ */ w("div", {
431
+ /* @__PURE__ */ T("div", {
359
432
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
360
- children: [/* @__PURE__ */ C("h4", {
433
+ children: [/* @__PURE__ */ w("h4", {
361
434
  className: "text-sm font-semibold text-text-primary mb-3",
362
435
  children: "Demographics"
363
- }), /* @__PURE__ */ w("div", {
436
+ }), /* @__PURE__ */ T("div", {
364
437
  className: "space-y-2",
365
- children: [G.targeting.demographics.map((e) => /* @__PURE__ */ w("div", {
438
+ children: [B.targeting.demographics.map((e) => /* @__PURE__ */ T("div", {
366
439
  className: "flex items-center gap-2",
367
- children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ C("span", {
440
+ children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ w("span", {
368
441
  className: "text-sm text-text-primary",
369
442
  children: e
370
443
  })]
371
- }, e)), /* @__PURE__ */ w("div", {
444
+ }, e)), /* @__PURE__ */ T("div", {
372
445
  className: "pt-2 border-t border-border-subtle mt-2",
373
- children: [/* @__PURE__ */ C("p", {
446
+ children: [/* @__PURE__ */ w("p", {
374
447
  className: "text-xs text-text-secondary",
375
448
  children: "Age Range"
376
- }), /* @__PURE__ */ w("p", {
449
+ }), /* @__PURE__ */ T("p", {
377
450
  className: "text-sm font-medium text-text-primary",
378
451
  children: [
379
- G.targeting.ageRange.min,
452
+ B.targeting.ageRange.min,
380
453
  " -",
381
454
  " ",
382
- G.targeting.ageRange.max
455
+ B.targeting.ageRange.max
383
456
  ]
384
457
  })]
385
458
  })]
386
459
  })]
387
460
  }),
388
- /* @__PURE__ */ w("div", {
461
+ /* @__PURE__ */ T("div", {
389
462
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
390
- children: [/* @__PURE__ */ C("h4", {
463
+ children: [/* @__PURE__ */ w("h4", {
391
464
  className: "text-sm font-semibold text-text-primary mb-3",
392
465
  children: "Interests"
393
- }), /* @__PURE__ */ C("div", {
466
+ }), /* @__PURE__ */ w("div", {
394
467
  className: "space-y-2",
395
- children: G.targeting.interests.map((e) => /* @__PURE__ */ w("div", {
468
+ children: B.targeting.interests.map((e) => /* @__PURE__ */ T("div", {
396
469
  className: "flex items-center gap-2",
397
- children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ C("span", {
470
+ children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ w("span", {
398
471
  className: "text-sm text-text-primary",
399
472
  children: e
400
473
  })]
401
474
  }, e))
402
475
  })]
403
476
  }),
404
- /* @__PURE__ */ w("div", {
477
+ /* @__PURE__ */ T("div", {
405
478
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
406
- children: [/* @__PURE__ */ C("h4", {
479
+ children: [/* @__PURE__ */ w("h4", {
407
480
  className: "text-sm font-semibold text-text-primary mb-3",
408
481
  children: "Locations"
409
- }), /* @__PURE__ */ C("div", {
482
+ }), /* @__PURE__ */ w("div", {
410
483
  className: "space-y-2",
411
- children: G.targeting.locations.map((e) => /* @__PURE__ */ w("div", {
484
+ children: B.targeting.locations.map((e) => /* @__PURE__ */ T("div", {
412
485
  className: "flex items-center gap-2",
413
- children: [/* @__PURE__ */ C("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ C("span", {
486
+ children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ w("span", {
414
487
  className: "text-sm text-text-primary",
415
488
  children: e
416
489
  })]
@@ -419,64 +492,64 @@ var A = () => {
419
492
  })
420
493
  ]
421
494
  }),
422
- R === "assets" && /* @__PURE__ */ w("div", {
495
+ F === "assets" && /* @__PURE__ */ T("div", {
423
496
  className: "space-y-6",
424
- children: [/* @__PURE__ */ w("div", {
497
+ children: [/* @__PURE__ */ T("div", {
425
498
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
426
- children: [/* @__PURE__ */ w("h4", {
499
+ children: [/* @__PURE__ */ T("h4", {
427
500
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
428
- children: [/* @__PURE__ */ C(b, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
429
- }), /* @__PURE__ */ C("div", {
501
+ children: [/* @__PURE__ */ w(b, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
502
+ }), /* @__PURE__ */ w("div", {
430
503
  className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",
431
- children: G.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).length > 0 ? G.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).map((e) => /* @__PURE__ */ C("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", {
432
505
  className: "aspect-video rounded-lg border border-border-subtle bg-bg-sunken flex items-center justify-center",
433
- children: /* @__PURE__ */ C(b, { className: "h-8 w-8 text-text-secondary" })
506
+ children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary" })
434
507
  }, e)) : [
435
508
  1,
436
509
  2,
437
510
  3
438
- ].map((e) => /* @__PURE__ */ C("div", {
511
+ ].map((e) => /* @__PURE__ */ w("div", {
439
512
  className: "aspect-video rounded-lg border border-dashed border-border-subtle bg-bg-sunken/30 flex items-center justify-center",
440
- children: /* @__PURE__ */ C(b, { className: "h-8 w-8 text-text-secondary/50" })
513
+ children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary/50" })
441
514
  }, e))
442
515
  })]
443
- }), /* @__PURE__ */ w("div", {
516
+ }), /* @__PURE__ */ T("div", {
444
517
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
445
- children: [/* @__PURE__ */ w("h4", {
518
+ children: [/* @__PURE__ */ T("h4", {
446
519
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
447
- children: [/* @__PURE__ */ C(y, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
448
- }), $.length > 0 ? /* @__PURE__ */ C("div", {
520
+ children: [/* @__PURE__ */ w(y, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
521
+ }), $.length > 0 ? /* @__PURE__ */ w("div", {
449
522
  className: "space-y-2",
450
- children: $.map((e) => /* @__PURE__ */ C("div", {
523
+ children: $.map((e) => /* @__PURE__ */ w("div", {
451
524
  className: "flex items-center justify-between rounded-md border border-border-subtle p-3 hover:bg-bg-sunken/50 transition-colors",
452
- children: /* @__PURE__ */ w("div", {
525
+ children: /* @__PURE__ */ T("div", {
453
526
  className: "flex items-center gap-3",
454
- children: [/* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ C("p", {
527
+ children: [/* @__PURE__ */ w(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ w("p", {
455
528
  className: "text-sm font-medium text-text-primary break-all",
456
529
  children: e.split("/").pop() ?? e
457
530
  })]
458
531
  })
459
532
  }, e))
460
- }) : /* @__PURE__ */ C("p", {
533
+ }) : /* @__PURE__ */ w("p", {
461
534
  className: "text-sm text-text-secondary py-4 text-center",
462
535
  children: "No documents yet."
463
536
  })]
464
537
  })]
465
538
  }),
466
- R === "team" && /* @__PURE__ */ w("div", {
539
+ F === "team" && /* @__PURE__ */ T("div", {
467
540
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
468
- children: [Q.map((e) => /* @__PURE__ */ w("div", {
541
+ children: [Q.map((e) => /* @__PURE__ */ T("div", {
469
542
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop flex items-center gap-4",
470
- children: [/* @__PURE__ */ C("div", {
543
+ children: [/* @__PURE__ */ w("div", {
471
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",
472
- children: k(e)
473
- }), /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("p", {
545
+ children: N(e)
546
+ }), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
474
547
  className: "text-sm font-semibold text-text-primary",
475
548
  children: e
476
549
  }) })]
477
- }, e)), Q.length === 0 && /* @__PURE__ */ C("div", {
550
+ }, e)), Q.length === 0 && /* @__PURE__ */ w("div", {
478
551
  className: "col-span-full",
479
- children: /* @__PURE__ */ C(f, {
552
+ children: /* @__PURE__ */ w(m, {
480
553
  illustration: "empty-people",
481
554
  title: "No team members",
482
555
  description: "No team members have been assigned to this campaign yet."
@@ -489,6 +562,6 @@ var A = () => {
489
562
  });
490
563
  };
491
564
  //#endregion
492
- export { A as CampaignDetailsPage };
565
+ export { P as CampaignDetailsPage };
493
566
 
494
567
  //# sourceMappingURL=CampaignDetailsPage.js.map