@burdenoff/microfe-headshotmarketing 2026.1205.1 → 2026.1206.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/generated/global-types.d.ts +3589 -380
  2. package/dist/generated/wspace-operations.d.ts +101 -3
  3. package/dist/generated/wspace-operations.js.map +1 -1
  4. package/dist/generated/wspace-types.d.ts +61782 -2332
  5. package/dist/generated/wspace-types.js.map +1 -1
  6. package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
  7. package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
  8. package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
  9. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  10. package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
  11. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
  12. package/dist/headshotmarketing/components/StatusBadge.js +1 -1
  13. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  14. package/dist/headshotmarketing/components/Toast.js +3 -3
  15. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  16. package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
  17. package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
  18. package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
  19. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
  20. package/dist/headshotmarketing/pages/HomePage.js +6 -6
  21. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  22. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
  23. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
  24. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
  25. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  26. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
  27. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  28. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
  29. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  30. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
  31. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
  33. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  34. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
  35. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  36. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
  37. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
  38. package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
  39. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  40. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
  41. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  42. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
  43. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  44. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
  45. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  46. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
  47. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
  48. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
  49. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
  51. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
  53. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
  55. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
  57. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
  59. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
  61. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  62. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
  64. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
  65. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
  67. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  70. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
  71. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
  73. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  74. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
  75. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
  77. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
  79. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
  81. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
  83. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
  85. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  86. package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  88. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  90. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  92. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  94. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  96. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
  97. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
  98. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
  99. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  100. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
  101. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  102. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
  103. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
  104. package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  106. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
  107. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
  108. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
  109. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
  111. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  112. package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  114. package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  116. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  118. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
  119. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  120. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
  121. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  122. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
  123. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  124. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  125. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  126. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +104 -103
  127. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  128. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
  129. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  130. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
  131. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  132. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
  133. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  134. package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
  135. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  136. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
  137. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  138. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
  139. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  140. package/dist/headshotmarketing/utils/index.d.ts +1 -0
  141. package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
  142. package/dist/headshotmarketing/utils/readableError.js +12 -0
  143. package/dist/headshotmarketing/utils/readableError.js.map +1 -0
  144. package/package.json +5 -3
@@ -3,30 +3,31 @@ import { AreaChart as t } from "../../../node_modules/recharts/es6/chart/AreaCha
3
3
  import { Area as n } from "../../../node_modules/recharts/es6/cartesian/Area.js";
4
4
  import { XAxis as ee } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
5
5
  import { YAxis as te } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
6
- import { CartesianGrid as ne } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
7
- import { Tooltip as re } from "../../../node_modules/recharts/es6/component/Tooltip.js";
8
- import { HeadshotmarketingBootstrapDataDocument as r, HeadshotmarketingCampaignsListDocument as i, useCreateHeadshotmarketingCampaignMutation as ie, useDeleteHeadshotmarketingCampaignMutation as a, useHeadshotmarketingCampaignByIdQuery as o, useHeadshotmarketingResourceActivityQuery as s, useUpdateHeadshotmarketingCampaignMutation as ae } from "../../../generated/wspace-operations.js";
9
- import { HeadshotmarketingCampaignStatus as c } from "../../../generated/wspace-types.js";
10
- import { cn as l, formatCurrency as u, formatDate as oe, formatNumber as se } from "../../utils/helpers.js";
11
- import { toCampaignModel as ce, toCampaignPerformanceSeries as le } from "../../utils/campaignMapper.js";
6
+ import { CartesianGrid as r } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
7
+ import { Tooltip as i } from "../../../node_modules/recharts/es6/component/Tooltip.js";
8
+ import { HeadshotmarketingBootstrapDataDocument as a, HeadshotmarketingCampaignsListDocument as o, useCreateHeadshotmarketingCampaignMutation as ne, useDeleteHeadshotmarketingCampaignMutation as re, useHeadshotmarketingCampaignByIdQuery as ie, useHeadshotmarketingResourceActivityQuery as ae, useUpdateHeadshotmarketingCampaignMutation as oe } from "../../../generated/wspace-operations.js";
9
+ import { HeadshotmarketingCampaignStatus as s } from "../../../generated/wspace-types.js";
10
+ import { cn as c, formatCurrency as l, formatDate as se, formatNumber as ce } from "../../utils/helpers.js";
11
+ import { toCampaignModel as le, toCampaignPerformanceSeries as ue } from "../../utils/campaignMapper.js";
12
12
  import "../../components/index.js";
13
- import { PageLayout as d } from "../../components/PageLayout.js";
14
- import { StatCard as f } from "../../components/StatCard.js";
15
- import { EmptyState as p } from "../../components/EmptyState.js";
16
- import { StatusBadge as ue } from "../../components/StatusBadge.js";
17
- import { ChartCard as de } from "../../components/ChartCard.js";
18
- import { QueryStateBoundary as fe } from "../../components/QueryStateBoundary.js";
13
+ import { PageLayout as u } from "../../components/PageLayout.js";
14
+ import { StatCard as d } from "../../components/StatCard.js";
15
+ import { EmptyState as f } from "../../components/EmptyState.js";
16
+ import { StatusBadge as de } from "../../components/StatusBadge.js";
17
+ import { ChartCard as fe } from "../../components/ChartCard.js";
19
18
  import { useHeadshotMarketing as pe } from "../../context/HeadshotMarketingContext.js";
20
- import { CampaignAiPanel as me } from "./CampaignAiPanel.js";
21
- import { EntityTagPicker as he } from "../../components/EntityTagPicker.js";
19
+ import { QueryStateBoundary as me } from "../../components/QueryStateBoundary.js";
20
+ import { CampaignAiPanel as he } from "./CampaignAiPanel.js";
21
+ import { EntityTagPicker as ge } from "../../components/EntityTagPicker.js";
22
+ import { readableError as p } from "../../utils/readableError.js";
22
23
  import { useState as m } from "react";
23
- import { Activity as ge, Archive as _e, ArrowLeft as h, Calendar as ve, Clock as ye, Copy as be, DollarSign as g, Edit as _, FileText as v, Image as y, Pause as xe, Play as Se, Target as b, Trash2 as Ce, TrendingUp as x } from "lucide-react";
24
+ import { Activity as _e, Archive as ve, ArrowLeft as h, Calendar as ye, Clock as be, Copy as xe, DollarSign as g, Edit as _, FileText as v, Image as y, Pause as Se, Play as Ce, Target as b, Trash2 as we, TrendingUp as x } from "lucide-react";
24
25
  import { useParams as S } from "react-router";
25
26
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
26
27
  import { CTAOverflowMenu as T, EmphasisPanel as E, NextSteps as D, PagePurpose as O, useConfirm as k } from "@burdenoff/fe-libs/ui";
27
28
  // src/headshotmarketing/pages/campaigns/CampaignDetailsPage.tsx
28
- var A = [{ query: r }, i];
29
- function we(e) {
29
+ var A = [{ query: a }, o];
30
+ function Te(e) {
30
31
  return e.toLowerCase().split(/[_\s]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
31
32
  }
32
33
  var j = [
@@ -37,14 +38,14 @@ var j = [
37
38
  "var(--color-chart-5)",
38
39
  "var(--color-chart-6)"
39
40
  ];
40
- function Te(e) {
41
+ function Ee(e) {
41
42
  return e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase();
42
43
  }
43
44
  var M = () => {
44
- let r = k(), { navigate: i, basePath: M } = pe(), { campaignId: N } = S(), { data: Ee, loading: De, error: Oe, refetch: ke } = o({
45
+ let a = k(), { navigate: o, basePath: M } = pe(), { campaignId: N } = S(), { data: De, loading: Oe, error: ke, refetch: Ae } = ie({
45
46
  skip: !N,
46
47
  variables: N ? { id: N } : void 0
47
- }), [Ae, { loading: je }] = a(), [Me, { loading: Ne }] = ae(), [P, { loading: Pe }] = ie(), [F, I] = m("overview"), [L, R] = m(null), z = Ee?.headshotmarketingCampaign, B = z ? ce(z) : null, V = z?.status, H = V === c.Paused, Fe = V === c.Archived, U = Ne || Pe || je, { data: Ie, loading: Le, error: Re } = s({
48
+ }), [je, { loading: Me }] = re(), [Ne, { loading: Pe }] = oe(), [P, { loading: Fe }] = ne(), [F, I] = m("overview"), [L, R] = m(null), z = De?.headshotmarketingCampaign, B = z ? le(z) : null, V = z?.status, H = V === s.Paused, Ie = V === s.Archived, U = Pe || Fe || Me, { data: Le, loading: Re, error: ze } = ae({
48
49
  skip: !N,
49
50
  variables: { filter: {
50
51
  resourceId: N,
@@ -52,11 +53,11 @@ var M = () => {
52
53
  } },
53
54
  errorPolicy: "all",
54
55
  fetchPolicy: "cache-and-network"
55
- }), W = Ie?.getActivities ?? [], G = async (e) => {
56
+ }), W = Le?.getActivities ?? [], G = async (e) => {
56
57
  if (N) {
57
58
  R(null);
58
59
  try {
59
- await Me({
60
+ await Ne({
60
61
  variables: {
61
62
  id: N,
62
63
  input: { status: e }
@@ -64,10 +65,10 @@ var M = () => {
64
65
  refetchQueries: A
65
66
  });
66
67
  } catch (e) {
67
- R(e instanceof Error ? e.message : "Failed to update campaign.");
68
+ R(p(e, "Failed to update campaign."));
68
69
  }
69
70
  }
70
- }, ze = async () => {
71
+ }, Be = async () => {
71
72
  if (z) {
72
73
  R(null);
73
74
  try {
@@ -75,7 +76,7 @@ var M = () => {
75
76
  name: `${z.name} (Copy)`,
76
77
  description: z.description ?? null,
77
78
  type: z.type,
78
- status: c.Draft,
79
+ status: s.Draft,
79
80
  budget: z.budget ?? null,
80
81
  startDate: z.startDate ?? null,
81
82
  endDate: z.endDate ?? null,
@@ -86,13 +87,13 @@ var M = () => {
86
87
  refetchQueries: A,
87
88
  awaitRefetchQueries: !0
88
89
  })).data?.createHeadshotmarketingCampaign?.id;
89
- t && i(M + "/campaigns/" + t);
90
+ t && o(M + "/campaigns/" + t);
90
91
  } catch (e) {
91
- R(e instanceof Error ? e.message : "Failed to duplicate campaign.");
92
+ R(p(e, "Failed to duplicate campaign."));
92
93
  }
93
94
  }
94
- }, Be = async () => {
95
- if (N && B && await r({
95
+ }, Ve = async () => {
96
+ if (N && B && await a({
96
97
  title: `Delete campaign "${B.name}"?`,
97
98
  description: "This cannot be undone.",
98
99
  tone: "danger",
@@ -100,50 +101,50 @@ var M = () => {
100
101
  })) {
101
102
  R(null);
102
103
  try {
103
- await Ae({
104
+ await je({
104
105
  variables: { id: N },
105
106
  refetchQueries: A,
106
107
  awaitRefetchQueries: !0
107
- }), i(M + "/campaigns");
108
+ }), o(M + "/campaigns");
108
109
  } catch (e) {
109
- R(e instanceof Error ? e.message : "Failed to delete campaign.");
110
+ R(p(e, "Failed to delete campaign."));
110
111
  }
111
112
  }
112
113
  };
113
- if (!B) return /* @__PURE__ */ C(d, {
114
+ if (!B) return /* @__PURE__ */ C(u, {
114
115
  title: "Campaign Details",
115
- children: /* @__PURE__ */ C(fe, {
116
- loading: De,
117
- error: Oe,
118
- onRetry: () => void ke(),
116
+ children: /* @__PURE__ */ C(me, {
117
+ loading: Oe,
118
+ error: ke,
119
+ onRetry: () => void Ae(),
119
120
  hasData: !1,
120
- children: /* @__PURE__ */ C(p, {
121
+ children: /* @__PURE__ */ C(f, {
121
122
  illustration: "empty-generic",
122
123
  title: "Campaign not found",
123
124
  description: "The campaign you're looking for doesn't exist or has been removed.",
124
125
  action: /* @__PURE__ */ w("button", {
125
- onClick: () => i(M + "/campaigns"),
126
+ onClick: () => o(M + "/campaigns"),
126
127
  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",
127
128
  children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Back to Campaigns"]
128
129
  })
129
130
  })
130
131
  })
131
132
  });
132
- 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), Ve = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / 864e5)), X = Math.max(0, Math.ceil((Ve.getTime() - q.getTime()) / 864e5)), He = 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)), Ue = le(B);
133
- return /* @__PURE__ */ w(d, {
133
+ 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), He = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / 864e5)), X = Math.max(0, Math.ceil((He.getTime() - q.getTime()) / 864e5)), Ue = 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)), We = ue(B);
134
+ return /* @__PURE__ */ w(u, {
134
135
  title: B.name,
135
136
  description: B.description,
136
137
  actions: /* @__PURE__ */ w("div", {
137
138
  className: "flex flex-wrap items-center gap-2",
138
139
  children: [
139
- /* @__PURE__ */ C(ue, { status: B.status }),
140
+ /* @__PURE__ */ C(de, { status: B.status }),
140
141
  /* @__PURE__ */ w("button", {
141
- onClick: () => i(M + "/campaigns"),
142
+ onClick: () => o(M + "/campaigns"),
142
143
  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",
143
144
  children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Back"]
144
145
  }),
145
146
  /* @__PURE__ */ w("button", {
146
- onClick: () => i(M + "/campaigns/" + B.id + "/edit"),
147
+ onClick: () => o(M + "/campaigns/" + B.id + "/edit"),
147
148
  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",
148
149
  children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Edit"]
149
150
  }),
@@ -152,28 +153,28 @@ var M = () => {
152
153
  actions: [
153
154
  {
154
155
  label: H ? "Resume" : "Pause",
155
- icon: C(H ? Se : xe, { className: "h-4 w-4" }),
156
+ icon: C(H ? Ce : Se, { className: "h-4 w-4" }),
156
157
  disabled: U,
157
- onSelect: () => void G(H ? c.Active : c.Paused)
158
+ onSelect: () => void G(H ? s.Active : s.Paused)
158
159
  },
159
160
  {
160
161
  label: "Duplicate",
161
- icon: /* @__PURE__ */ C(be, { className: "h-4 w-4" }),
162
+ icon: /* @__PURE__ */ C(xe, { className: "h-4 w-4" }),
162
163
  disabled: U,
163
- onSelect: () => void ze()
164
+ onSelect: () => void Be()
164
165
  },
165
166
  {
166
167
  label: "Archive",
167
- icon: /* @__PURE__ */ C(_e, { className: "h-4 w-4" }),
168
- disabled: U || Fe,
169
- onSelect: () => void G(c.Archived)
168
+ icon: /* @__PURE__ */ C(ve, { className: "h-4 w-4" }),
169
+ disabled: U || Ie,
170
+ onSelect: () => void G(s.Archived)
170
171
  },
171
172
  {
172
173
  label: "Delete",
173
- icon: /* @__PURE__ */ C(Ce, { className: "h-4 w-4" }),
174
+ icon: /* @__PURE__ */ C(we, { className: "h-4 w-4" }),
174
175
  intent: "destructive",
175
176
  disabled: U,
176
- onSelect: () => void Be()
177
+ onSelect: () => void Ve()
177
178
  }
178
179
  ]
179
180
  })
@@ -184,31 +185,31 @@ var M = () => {
184
185
  /* @__PURE__ */ C(E, { children: /* @__PURE__ */ w("div", {
185
186
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5",
186
187
  children: [
187
- /* @__PURE__ */ C(f, {
188
+ /* @__PURE__ */ C(d, {
188
189
  title: "Revenue",
189
- value: u(B.metrics.revenue),
190
+ value: l(B.metrics.revenue),
190
191
  icon: /* @__PURE__ */ C(g, { className: "h-5 w-5" })
191
192
  }),
192
- /* @__PURE__ */ C(f, {
193
+ /* @__PURE__ */ C(d, {
193
194
  title: "Conversions",
194
- value: se(B.metrics.conversions),
195
+ value: ce(B.metrics.conversions),
195
196
  icon: /* @__PURE__ */ C(b, { className: "h-5 w-5" })
196
197
  }),
197
- /* @__PURE__ */ C(f, {
198
+ /* @__PURE__ */ C(d, {
198
199
  title: "ROAS",
199
200
  value: `${B.metrics.roas.toFixed(1)}x`,
200
201
  icon: /* @__PURE__ */ C(x, { className: "h-5 w-5" })
201
202
  }),
202
- /* @__PURE__ */ C(f, {
203
+ /* @__PURE__ */ C(d, {
203
204
  title: "Budget Used",
204
205
  value: `${K}%`,
205
206
  icon: /* @__PURE__ */ C(g, { className: "h-5 w-5" }),
206
207
  className: "relative"
207
208
  }),
208
- /* @__PURE__ */ C(f, {
209
+ /* @__PURE__ */ C(d, {
209
210
  title: "Days Remaining",
210
- value: String(He),
211
- icon: /* @__PURE__ */ C(ve, { className: "h-5 w-5" })
211
+ value: String(Ue),
212
+ icon: /* @__PURE__ */ C(ye, { className: "h-5 w-5" })
212
213
  })
213
214
  ]
214
215
  }) }),
@@ -234,7 +235,7 @@ var M = () => {
234
235
  label: "Adjust budget or schedule",
235
236
  description: "Open the campaign editor to refine the setup.",
236
237
  icon: /* @__PURE__ */ C(_, { className: "h-4 w-4" }),
237
- onClick: () => i(M + "/campaigns/" + B.id + "/edit")
238
+ onClick: () => o(M + "/campaigns/" + B.id + "/edit")
238
239
  }
239
240
  ]
240
241
  }),
@@ -267,7 +268,7 @@ var M = () => {
267
268
  }
268
269
  ].map((e) => /* @__PURE__ */ C("button", {
269
270
  onClick: () => I(e.key),
270
- className: l("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"),
271
+ className: c("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"),
271
272
  children: e.label
272
273
  }, e.key))
273
274
  }), /* @__PURE__ */ w("div", {
@@ -283,7 +284,7 @@ var M = () => {
283
284
  children: [
284
285
  /* @__PURE__ */ w("h4", {
285
286
  className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
286
- children: [/* @__PURE__ */ C(ye, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
287
+ children: [/* @__PURE__ */ C(be, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
287
288
  }),
288
289
  /* @__PURE__ */ w("div", {
289
290
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
@@ -311,15 +312,15 @@ var M = () => {
311
312
  /* @__PURE__ */ w("div", {
312
313
  className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
313
314
  children: [
314
- /* @__PURE__ */ w("span", { children: [u(B.budget.spent), " spent"] }),
315
+ /* @__PURE__ */ w("span", { children: [l(B.budget.spent), " spent"] }),
315
316
  /* @__PURE__ */ w("span", { children: [K, "%"] }),
316
- /* @__PURE__ */ w("span", { children: [u(B.budget.total), " total"] })
317
+ /* @__PURE__ */ w("span", { children: [l(B.budget.total), " total"] })
317
318
  ]
318
319
  }),
319
320
  /* @__PURE__ */ C("div", {
320
321
  className: "h-2.5 w-full rounded-full bg-bg-sunken",
321
322
  children: /* @__PURE__ */ C("div", {
322
- className: l("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
323
+ className: c("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
323
324
  style: { width: `${K}%` }
324
325
  })
325
326
  })
@@ -341,7 +342,7 @@ var M = () => {
341
342
  }),
342
343
  /* @__PURE__ */ C("div", {
343
344
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
344
- children: /* @__PURE__ */ C(he, {
345
+ children: /* @__PURE__ */ C(ge, {
345
346
  entityType: "HEADSHOTMARKETING_CAMPAIGN",
346
347
  entityId: B.id
347
348
  })
@@ -350,8 +351,8 @@ var M = () => {
350
351
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
351
352
  children: [/* @__PURE__ */ w("h4", {
352
353
  className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
353
- children: [/* @__PURE__ */ C(ge, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
354
- }), Le && W.length === 0 ? /* @__PURE__ */ C("div", {
354
+ children: [/* @__PURE__ */ C(_e, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
355
+ }), Re && W.length === 0 ? /* @__PURE__ */ C("div", {
355
356
  className: "space-y-3 py-2",
356
357
  children: [
357
358
  0,
@@ -366,30 +367,30 @@ var M = () => {
366
367
  className: "min-w-0 flex-1",
367
368
  children: [/* @__PURE__ */ C("p", {
368
369
  className: "text-sm text-text-primary break-words",
369
- children: e.description ?? we(e.action)
370
+ children: e.description ?? Te(e.action)
370
371
  }), /* @__PURE__ */ C("p", {
371
372
  className: "text-xs text-text-secondary",
372
- children: oe(e.timestamp, "relative")
373
+ children: se(e.timestamp, "relative")
373
374
  })]
374
375
  })]
375
376
  }, e.id))
376
377
  }) : /* @__PURE__ */ C("p", {
377
378
  className: "text-sm text-text-secondary py-4 text-center",
378
- children: Re ? "Activity is unavailable right now." : "No recent activity yet."
379
+ children: ze ? "Activity is unavailable right now." : "No recent activity yet."
379
380
  })]
380
381
  })
381
382
  ]
382
383
  }),
383
- F === "analytics" && /* @__PURE__ */ C(de, {
384
+ F === "analytics" && /* @__PURE__ */ C(fe, {
384
385
  title: "Performance Over Time",
385
386
  subtitle: "Revenue, cost, and conversions trend",
386
387
  children: /* @__PURE__ */ C(e, {
387
388
  width: "100%",
388
389
  height: 350,
389
390
  children: /* @__PURE__ */ w(t, {
390
- data: Ue,
391
+ data: We,
391
392
  children: [
392
- /* @__PURE__ */ C(ne, {
393
+ /* @__PURE__ */ C(r, {
393
394
  strokeDasharray: "3 3",
394
395
  className: "stroke-border"
395
396
  }),
@@ -403,7 +404,7 @@ var M = () => {
403
404
  tick: { fontSize: 11 },
404
405
  className: "text-text-secondary"
405
406
  }),
406
- /* @__PURE__ */ C(re, { contentStyle: {
407
+ /* @__PURE__ */ C(i, { contentStyle: {
407
408
  backgroundColor: "var(--color-card)",
408
409
  border: "1px solid var(--color-border)",
409
410
  borderRadius: 8
@@ -507,7 +508,7 @@ var M = () => {
507
508
  })]
508
509
  })
509
510
  ]
510
- }), /* @__PURE__ */ C(me, {
511
+ }), /* @__PURE__ */ C(he, {
511
512
  campaignId: B.id,
512
513
  campaignName: B.name
513
514
  })]
@@ -562,14 +563,14 @@ var M = () => {
562
563
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop flex items-center gap-4",
563
564
  children: [/* @__PURE__ */ C("div", {
564
565
  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",
565
- children: Te(e)
566
+ children: Ee(e)
566
567
  }), /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("p", {
567
568
  className: "text-sm font-semibold text-text-primary",
568
569
  children: e
569
570
  }) })]
570
571
  }, e)), Q.length === 0 && /* @__PURE__ */ C("div", {
571
572
  className: "col-span-full",
572
- children: /* @__PURE__ */ C(p, {
573
+ children: /* @__PURE__ */ C(f, {
573
574
  illustration: "empty-people",
574
575
  title: "No team members",
575
576
  description: "No team members have been assigned to this campaign yet."