@burdenoff/microfe-headshotmarketing 2026.1124.3 → 2026.1202.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/headshotmarketing/components/ActionMenu.js +1 -1
  2. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
  3. package/dist/headshotmarketing/components/DataTable.js +33 -33
  4. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  5. package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
  6. package/dist/headshotmarketing/components/EmptyState.js +35 -15
  7. package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
  8. package/dist/headshotmarketing/components/FilterBar.js +2 -2
  9. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  10. package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
  11. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  12. package/dist/headshotmarketing/components/Pagination.js +38 -37
  13. package/dist/headshotmarketing/components/Pagination.js.map +1 -1
  14. package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
  15. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
  16. package/dist/headshotmarketing/components/Toast.js +1 -1
  17. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  18. package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
  19. package/dist/headshotmarketing/pages/HomePage.js +10 -10
  20. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
  22. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
  24. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
  26. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  27. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
  28. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
  30. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  31. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  33. package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
  34. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
  36. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
  38. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
  40. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
  42. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
  44. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
  46. package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
  48. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  57. package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
  62. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
  64. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  67. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
  70. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
  72. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
  73. package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
  74. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
  86. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
  88. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
  90. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
  92. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
  94. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
  96. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  97. package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
  98. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  99. package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
  100. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
  102. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
  104. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
  106. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  107. package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
  108. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  111. package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
  112. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
  114. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
  116. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
  118. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
  120. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
  121. package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
  122. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
  124. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
  126. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
  128. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  129. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
  130. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  131. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  132. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  133. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
  134. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  135. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
  136. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  137. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
  138. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  139. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
  140. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  141. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
  142. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  143. package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
  144. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  145. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
  146. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
  147. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
  148. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  149. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
  150. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  151. package/package.json +6 -2
@@ -1,159 +1,164 @@
1
- import { HeadshotmarketingBootstrapDataDocument as e, HeadshotmarketingCampaignsListDocument as t, useCreateHeadshotmarketingCampaignMutation as n, useDeleteHeadshotmarketingCampaignMutation as r, useHeadshotmarketingCampaignsListQuery as ee } from "../../../generated/wspace-operations.js";
2
- import { HeadshotmarketingCampaignStatus as te } from "../../../generated/wspace-types.js";
1
+ import { HeadshotmarketingBootstrapDataDocument as e, HeadshotmarketingCampaignsListDocument as t, useCreateHeadshotmarketingCampaignMutation as n, useDeleteHeadshotmarketingCampaignMutation as ee, useHeadshotmarketingCampaignsListQuery as te } from "../../../generated/wspace-operations.js";
2
+ import { HeadshotmarketingCampaignStatus as r } from "../../../generated/wspace-types.js";
3
3
  import { cn as i, formatCurrency as a, formatNumber as o } from "../../utils/helpers.js";
4
4
  import { toCampaignModel as s } from "../../utils/campaignMapper.js";
5
5
  import "../../components/index.js";
6
- import { PageLayout as ne } from "../../components/PageLayout.js";
7
- import { StatCard as c } from "../../components/StatCard.js";
8
- import { DataTable as l } from "../../components/DataTable.js";
9
- import { StatusBadge as u } from "../../components/StatusBadge.js";
10
- import { EmptyState as re } from "../../components/EmptyState.js";
11
- import { FilterBar as ie } from "../../components/FilterBar.js";
12
- import { QueryStateBoundary as d } from "../../components/QueryStateBoundary.js";
13
- import { Pagination as ae } from "../../components/Pagination.js";
14
- import { useHeadshotMarketing as oe } from "../../context/HeadshotMarketingContext.js";
15
- import { useHeadshotmarketingBootstrap as se } from "../../hooks/useHeadshotmarketingBootstrap.js";
16
- import { usePagination as ce } from "../../hooks/usePagination.js";
6
+ import { PageLayout as c } from "../../components/PageLayout.js";
7
+ import { StatCard as l } from "../../components/StatCard.js";
8
+ import { EmptyState as u } from "../../components/EmptyState.js";
9
+ import { DataTable as d } from "../../components/DataTable.js";
10
+ import { StatusBadge as f } from "../../components/StatusBadge.js";
11
+ import { FilterBar as ne } from "../../components/FilterBar.js";
12
+ import { QueryStateBoundary as re } from "../../components/QueryStateBoundary.js";
13
+ import { Pagination as ie } from "../../components/Pagination.js";
14
+ import { useHeadshotMarketing as ae } from "../../context/HeadshotMarketingContext.js";
15
+ import { useHeadshotmarketingBootstrap as oe } from "../../hooks/useHeadshotmarketingBootstrap.js";
16
+ import { usePagination as se } from "../../hooks/usePagination.js";
17
17
  import "../../hooks/index.js";
18
- import { useEffect as f, useMemo as p, useState as m } from "react";
19
- import { Copy as le, DollarSign as ue, Eye as de, FileText as h, LayoutGrid as g, List as fe, Megaphone as pe, MousePointerClick as me, Pencil as he, Plus as _, Target as v, Trash2 as y, TrendingUp as b } from "lucide-react";
20
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
21
- import { CTAOverflowMenu as C, EmphasisPanel as ge, PagePurpose as _e } from "@burdenoff/fe-libs/ui";
22
- import { useI18n as ve } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
18
+ import { useEffect as p, useMemo as m, useState as h } from "react";
19
+ import { Copy as ce, DollarSign as le, Eye as g, FileText as ue, LayoutGrid as de, List as fe, Megaphone as pe, MousePointerClick as me, Pencil as he, Plus as _, Target as v, Trash2 as ge, TrendingUp as y } from "lucide-react";
20
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
21
+ import { CTAOverflowMenu as S, EmphasisPanel as _e, PagePurpose as ve, ThemedSelect as C, useConfirm as ye } from "@burdenoff/fe-libs/ui";
22
+ import { useI18n as be } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
23
23
  // src/headshotmarketing/pages/campaigns/CampaignsPage.tsx
24
24
  var w = [{ query: e }, t], T = () => {
25
- let { navigate: e, basePath: t } = oe(), { t: T } = ve(), E = (e, t) => {
26
- let n = T(e);
25
+ let e = ye(), { navigate: t, basePath: T } = ae(), { t: E } = be(), D = (e, t) => {
26
+ let n = E(e);
27
27
  return n === e ? t : n;
28
- }, { data: D, loading: O, refetch: k } = se(), [A, j] = m(""), [M, N] = m(""), [P, F] = m("all"), [I, ye] = m("all"), [L, R] = m("grid"), [z, B] = m(null), [V, H] = m(null);
29
- f(() => {
30
- let e = setTimeout(() => N(A.trim()), 300);
28
+ }, { data: O, loading: k, refetch: A } = oe(), [j, M] = h(""), [N, xe] = h(""), [P, Se] = h("all"), [F, Ce] = h("all"), [I, L] = h("grid"), [R, z] = h(null), [B, V] = h(null);
29
+ p(() => {
30
+ let e = setTimeout(() => xe(j.trim()), 300);
31
31
  return () => clearTimeout(e);
32
- }, [A]);
33
- let U = ce({ initialPageSize: 12 }), { limit: be, offset: xe, setTotal: W, setPage: G } = U, Se = P === "all" ? void 0 : P, Ce = I === "all" ? void 0 : I;
34
- f(() => {
32
+ }, [j]);
33
+ let H = se({ initialPageSize: 12 }), { limit: U, offset: we, setTotal: W, setPage: G } = H, Te = P === "all" ? void 0 : P, Ee = F === "all" ? void 0 : F;
34
+ p(() => {
35
35
  G(1);
36
36
  }, [
37
- M,
37
+ N,
38
38
  P,
39
- I,
39
+ F,
40
40
  G
41
41
  ]);
42
- let { data: K, loading: q, error: we, refetch: Te } = ee({
42
+ let { data: K, loading: q, error: De, refetch: Oe } = te({
43
43
  variables: {
44
- limit: be,
45
- offset: xe,
46
- search: M || void 0,
47
- status: Se,
48
- type: Ce
44
+ limit: U,
45
+ offset: we,
46
+ search: N || void 0,
47
+ status: Te,
48
+ type: Ee
49
49
  },
50
50
  notifyOnNetworkStatusChange: !0,
51
51
  fetchPolicy: "cache-and-network"
52
52
  }), J = K?.headshotmarketingCampaigns.total ?? 0;
53
- f(() => {
53
+ p(() => {
54
54
  W(J);
55
55
  }, [J, W]);
56
- let [Ee] = n(), [De] = r(), Y = p(() => (D?.headshotmarketingCampaigns.items ?? []).map((e) => s(e)), [D?.headshotmarketingCampaigns.items]), Oe = p(() => Y.reduce((e, t) => e + t.budget.total, 0), [Y]), ke = p(() => Y.filter((e) => e.status === "active").length, [Y]), Ae = p(() => Y.reduce((e, t) => e + t.metrics.conversions, 0), [Y]), je = p(() => {
56
+ let [ke] = n(), [Ae] = ee(), Y = m(() => (O?.headshotmarketingCampaigns.items ?? []).map((e) => s(e)), [O?.headshotmarketingCampaigns.items]), je = m(() => Y.reduce((e, t) => e + t.budget.total, 0), [Y]), Me = m(() => Y.filter((e) => e.status === "active").length, [Y]), Ne = m(() => Y.reduce((e, t) => e + t.metrics.conversions, 0), [Y]), Pe = m(() => {
57
57
  let e = Y.filter((e) => e.metrics.roas > 0);
58
58
  return e.length > 0 ? e.reduce((e, t) => e + t.metrics.roas, 0) / e.length : 0;
59
- }, [Y]), X = p(() => K?.headshotmarketingCampaigns.items ?? [], [K?.headshotmarketingCampaigns.items]), Me = p(() => {
59
+ }, [Y]), X = m(() => K?.headshotmarketingCampaigns.items ?? [], [K?.headshotmarketingCampaigns.items]), Fe = m(() => {
60
60
  let e = /* @__PURE__ */ new Map();
61
61
  for (let t of X) e.set(t.id, t);
62
62
  return e;
63
- }, [X]), Z = p(() => X.map((e) => s(e)), [X]), Ne = !!M || P !== "all" || I !== "all", Q = (D?.headshotmarketingCampaigns.total ?? Y.length) > 0, Pe = () => {
64
- Te(), k();
65
- }, Fe = async (e) => {
66
- B(null), H(e.id);
63
+ }, [X]), Z = m(() => X.map((e) => s(e)), [X]), Ie = !!N || P !== "all" || F !== "all", Q = (O?.headshotmarketingCampaigns.total ?? Y.length) > 0, Le = () => {
64
+ Oe(), A();
65
+ }, Re = async (e) => {
66
+ z(null), V(e.id);
67
67
  try {
68
68
  let t = {
69
69
  name: `${e.name} (Copy)`,
70
70
  description: e.description ?? null,
71
71
  type: e.type,
72
- status: te.Draft,
72
+ status: r.Draft,
73
73
  budget: e.budget ?? null,
74
74
  startDate: e.startDate ?? null,
75
75
  endDate: e.endDate ?? null,
76
76
  tags: e.tags,
77
77
  goals: e.goals ?? void 0
78
78
  };
79
- await Ee({
79
+ await ke({
80
80
  variables: { input: t },
81
81
  refetchQueries: w,
82
82
  awaitRefetchQueries: !0
83
83
  });
84
84
  } catch (e) {
85
- B(e instanceof Error ? e.message : "Failed to duplicate campaign.");
85
+ z(e instanceof Error ? e.message : "Failed to duplicate campaign.");
86
86
  } finally {
87
- H(null);
87
+ V(null);
88
88
  }
89
- }, Ie = async (e, t) => {
90
- if (window.confirm(`Delete campaign "${t}"? This cannot be undone.`)) {
91
- B(null), H(e);
89
+ }, ze = async (t, n) => {
90
+ if (await e({
91
+ title: `Delete campaign "${n}"?`,
92
+ description: "This cannot be undone.",
93
+ tone: "danger",
94
+ confirmLabel: "Delete campaign"
95
+ })) {
96
+ z(null), V(t);
92
97
  try {
93
- await De({
94
- variables: { id: e },
98
+ await Ae({
99
+ variables: { id: t },
95
100
  refetchQueries: w,
96
101
  awaitRefetchQueries: !0
97
102
  });
98
103
  } catch (e) {
99
- B(e instanceof Error ? e.message : "Failed to delete campaign.");
104
+ z(e instanceof Error ? e.message : "Failed to delete campaign.");
100
105
  } finally {
101
- H(null);
106
+ V(null);
102
107
  }
103
108
  }
104
- }, $ = (n) => {
105
- let r = Me.get(n);
109
+ }, $ = (e) => {
110
+ let n = Fe.get(e);
106
111
  return [
107
112
  {
108
- label: E("headshotmarketing.common.edit", "Edit"),
109
- icon: /* @__PURE__ */ x(he, { className: "h-4 w-4" }),
110
- onSelect: () => e(t + "/campaigns/" + n + "/edit")
113
+ label: D("headshotmarketing.common.edit", "Edit"),
114
+ icon: /* @__PURE__ */ b(he, { className: "h-4 w-4" }),
115
+ onSelect: () => t(T + "/campaigns/" + e + "/edit")
111
116
  },
112
117
  {
113
- label: E("headshotmarketing.common.duplicate", "Duplicate"),
114
- icon: /* @__PURE__ */ x(le, { className: "h-4 w-4" }),
115
- disabled: !r || V === n,
118
+ label: D("headshotmarketing.common.duplicate", "Duplicate"),
119
+ icon: /* @__PURE__ */ b(ce, { className: "h-4 w-4" }),
120
+ disabled: !n || B === e,
116
121
  onSelect: () => {
117
- r && Fe(r);
122
+ n && Re(n);
118
123
  }
119
124
  },
120
125
  {
121
- label: E("headshotmarketing.common.delete", "Delete"),
122
- icon: /* @__PURE__ */ x(y, { className: "h-4 w-4" }),
126
+ label: D("headshotmarketing.common.delete", "Delete"),
127
+ icon: /* @__PURE__ */ b(ge, { className: "h-4 w-4" }),
123
128
  intent: "destructive",
124
- disabled: V === n,
129
+ disabled: B === e,
125
130
  onSelect: () => {
126
- Ie(n, r?.name ?? "");
131
+ ze(e, n?.name ?? "");
127
132
  }
128
133
  }
129
134
  ];
130
- }, Le = [
135
+ }, Be = [
131
136
  {
132
137
  key: "name",
133
- header: E("headshotmarketing.campaigns.table.columns.name", "Name"),
138
+ header: D("headshotmarketing.campaigns.table.columns.name", "Name"),
134
139
  sortable: !0
135
140
  },
136
141
  {
137
142
  key: "type",
138
- header: E("headshotmarketing.campaigns.table.columns.type", "Type"),
143
+ header: D("headshotmarketing.campaigns.table.columns.type", "Type"),
139
144
  sortable: !0,
140
- render: (e) => /* @__PURE__ */ x("span", {
145
+ render: (e) => /* @__PURE__ */ b("span", {
141
146
  className: "capitalize",
142
147
  children: e.type
143
148
  })
144
149
  },
145
150
  {
146
151
  key: "status",
147
- header: E("headshotmarketing.campaigns.table.columns.status", "Status"),
148
- render: (e) => /* @__PURE__ */ x(u, { status: e.status })
152
+ header: D("headshotmarketing.campaigns.table.columns.status", "Status"),
153
+ render: (e) => /* @__PURE__ */ b(f, { status: e.status })
149
154
  },
150
155
  {
151
156
  key: "budget",
152
- header: E("headshotmarketing.campaigns.table.columns.budget", "Budget"),
157
+ header: D("headshotmarketing.campaigns.table.columns.budget", "Budget"),
153
158
  sortable: !0,
154
- render: (e) => /* @__PURE__ */ S("div", {
159
+ render: (e) => /* @__PURE__ */ x("div", {
155
160
  className: "space-y-1",
156
- children: [/* @__PURE__ */ S("span", {
161
+ children: [/* @__PURE__ */ x("span", {
157
162
  className: "text-sm",
158
163
  children: [
159
164
  a(e.budget.spent),
@@ -161,9 +166,9 @@ var w = [{ query: e }, t], T = () => {
161
166
  " ",
162
167
  a(e.budget.total)
163
168
  ]
164
- }), /* @__PURE__ */ x("div", {
169
+ }), /* @__PURE__ */ b("div", {
165
170
  className: "h-1.5 w-20 rounded-full bg-bg-sunken",
166
- children: /* @__PURE__ */ x("div", {
171
+ children: /* @__PURE__ */ b("div", {
167
172
  className: "h-1.5 rounded-full bg-action-primary-bg",
168
173
  style: { width: `${e.budget.total > 0 ? Math.min(e.budget.spent / e.budget.total * 100, 100) : 0}%` }
169
174
  })
@@ -172,25 +177,25 @@ var w = [{ query: e }, t], T = () => {
172
177
  },
173
178
  {
174
179
  key: "impressions",
175
- header: E("headshotmarketing.campaigns.table.columns.impressions", "Impressions"),
180
+ header: D("headshotmarketing.campaigns.table.columns.impressions", "Impressions"),
176
181
  sortable: !0,
177
182
  render: (e) => o(e.metrics.impressions)
178
183
  },
179
184
  {
180
185
  key: "clicks",
181
- header: E("headshotmarketing.campaigns.table.columns.clicks", "Clicks"),
186
+ header: D("headshotmarketing.campaigns.table.columns.clicks", "Clicks"),
182
187
  sortable: !0,
183
188
  render: (e) => o(e.metrics.clicks)
184
189
  },
185
190
  {
186
191
  key: "conversions",
187
- header: E("headshotmarketing.campaigns.table.columns.conversions", "Conversions"),
192
+ header: D("headshotmarketing.campaigns.table.columns.conversions", "Conversions"),
188
193
  sortable: !0,
189
194
  render: (e) => o(e.metrics.conversions)
190
195
  },
191
196
  {
192
197
  key: "roas",
193
- header: E("headshotmarketing.campaigns.table.columns.roas", "ROAS"),
198
+ header: D("headshotmarketing.campaigns.table.columns.roas", "ROAS"),
194
199
  sortable: !0,
195
200
  render: (e) => e.metrics.roas > 0 ? `${e.metrics.roas.toFixed(1)}x` : "-"
196
201
  },
@@ -198,317 +203,317 @@ var w = [{ query: e }, t], T = () => {
198
203
  key: "actions",
199
204
  header: "",
200
205
  className: "w-12 text-right",
201
- render: (e) => /* @__PURE__ */ x("div", {
206
+ render: (e) => /* @__PURE__ */ b("div", {
202
207
  className: "flex justify-end",
203
208
  onClick: (e) => e.stopPropagation(),
204
209
  role: "presentation",
205
- children: /* @__PURE__ */ x(C, {
210
+ children: /* @__PURE__ */ b(S, {
206
211
  actions: $(e.id),
207
212
  align: "end"
208
213
  })
209
214
  })
210
215
  }
211
- ], Re = [
216
+ ], Ve = [
212
217
  {
213
218
  value: "all",
214
- label: E("headshotmarketing.campaigns.filters.allStatuses", "All Statuses")
219
+ label: D("headshotmarketing.campaigns.filters.allStatuses", "All Statuses")
215
220
  },
216
221
  {
217
222
  value: "ACTIVE",
218
- label: E("headshotmarketing.common.status.active", "Active")
223
+ label: D("headshotmarketing.common.status.active", "Active")
219
224
  },
220
225
  {
221
226
  value: "PAUSED",
222
- label: E("headshotmarketing.common.status.paused", "Paused")
227
+ label: D("headshotmarketing.common.status.paused", "Paused")
223
228
  },
224
229
  {
225
230
  value: "SCHEDULED",
226
- label: E("headshotmarketing.common.status.scheduled", "Scheduled")
231
+ label: D("headshotmarketing.common.status.scheduled", "Scheduled")
227
232
  },
228
233
  {
229
234
  value: "DRAFT",
230
- label: E("headshotmarketing.common.status.draft", "Draft")
235
+ label: D("headshotmarketing.common.status.draft", "Draft")
231
236
  },
232
237
  {
233
238
  value: "COMPLETED",
234
- label: E("headshotmarketing.common.status.completed", "Completed")
239
+ label: D("headshotmarketing.common.status.completed", "Completed")
235
240
  },
236
241
  {
237
242
  value: "ARCHIVED",
238
- label: E("headshotmarketing.common.status.archived", "Archived")
243
+ label: D("headshotmarketing.common.status.archived", "Archived")
239
244
  }
240
- ], ze = [
245
+ ], He = [
241
246
  {
242
247
  value: "all",
243
- label: E("headshotmarketing.campaigns.filters.allTypes", "All Types")
248
+ label: D("headshotmarketing.campaigns.filters.allTypes", "All Types")
244
249
  },
245
250
  {
246
251
  value: "EMAIL",
247
- label: E("headshotmarketing.common.types.email", "Email")
252
+ label: D("headshotmarketing.common.types.email", "Email")
248
253
  },
249
254
  {
250
255
  value: "SOCIAL",
251
- label: E("headshotmarketing.common.types.social", "Social")
256
+ label: D("headshotmarketing.common.types.social", "Social")
252
257
  },
253
258
  {
254
259
  value: "AD",
255
- label: E("headshotmarketing.common.types.ad", "Ads")
260
+ label: D("headshotmarketing.common.types.ad", "Ads")
256
261
  },
257
262
  {
258
263
  value: "INFLUENCER",
259
- label: E("headshotmarketing.common.types.influencer", "Influencer")
264
+ label: D("headshotmarketing.common.types.influencer", "Influencer")
260
265
  },
261
266
  {
262
267
  value: "CONTENT",
263
- label: E("headshotmarketing.common.types.content", "Content")
268
+ label: D("headshotmarketing.common.types.content", "Content")
264
269
  },
265
270
  {
266
271
  value: "EVENT",
267
- label: E("headshotmarketing.common.types.event", "Event")
272
+ label: D("headshotmarketing.common.types.event", "Event")
268
273
  },
269
274
  {
270
275
  value: "MULTI_CHANNEL",
271
- label: E("headshotmarketing.common.types.multiChannel", "Multi-channel")
276
+ label: D("headshotmarketing.common.types.multiChannel", "Multi-channel")
272
277
  }
273
278
  ];
274
- return /* @__PURE__ */ S(ne, {
275
- title: E("headshotmarketing.campaigns.title", "Campaigns"),
276
- actions: /* @__PURE__ */ S("div", {
279
+ return /* @__PURE__ */ x(c, {
280
+ title: D("headshotmarketing.campaigns.title", "Campaigns"),
281
+ actions: /* @__PURE__ */ x("div", {
277
282
  className: "flex flex-wrap items-center gap-2",
278
- children: [/* @__PURE__ */ S("button", {
279
- onClick: () => e(t + "/campaigns/templates"),
283
+ children: [/* @__PURE__ */ x("button", {
284
+ onClick: () => t(T + "/campaigns/templates"),
280
285
  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",
281
- children: [/* @__PURE__ */ x(h, { className: "h-4 w-4" }), E("headshotmarketing.campaigns.actions.templates", "Templates")]
282
- }), /* @__PURE__ */ S("button", {
283
- onClick: () => e(t + "/campaigns/new"),
286
+ children: [/* @__PURE__ */ b(ue, { className: "h-4 w-4" }), D("headshotmarketing.campaigns.actions.templates", "Templates")]
287
+ }), /* @__PURE__ */ x("button", {
288
+ onClick: () => t(T + "/campaigns/new"),
284
289
  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",
285
- children: [/* @__PURE__ */ x(_, { className: "h-4 w-4" }), E("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
290
+ children: [/* @__PURE__ */ b(_, { className: "h-4 w-4" }), D("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
286
291
  })]
287
292
  }),
288
293
  children: [
289
- /* @__PURE__ */ x(_e, { children: E("headshotmarketing.campaigns.purpose", "Plan, launch and track every marketing campaign in one place — set budgets and goals, then watch spend, conversions and ROAS roll up here so you know what's working and where to reinvest.") }),
290
- /* @__PURE__ */ x(ge, { children: /* @__PURE__ */ S("div", {
294
+ /* @__PURE__ */ b(ve, { children: D("headshotmarketing.campaigns.purpose", "Plan, launch and track every marketing campaign in one place — set budgets and goals, then watch spend, conversions and ROAS roll up here so you know what's working and where to reinvest.") }),
295
+ /* @__PURE__ */ b(_e, { children: /* @__PURE__ */ x("div", {
291
296
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
292
297
  children: [
293
- /* @__PURE__ */ x(c, {
294
- title: E("headshotmarketing.campaigns.stats.totalBudget", "Total Budget"),
295
- value: a(Oe),
296
- icon: /* @__PURE__ */ x(ue, { className: "h-5 w-5" })
298
+ /* @__PURE__ */ b(l, {
299
+ title: D("headshotmarketing.campaigns.stats.totalBudget", "Total Budget"),
300
+ value: a(je),
301
+ icon: /* @__PURE__ */ b(le, { className: "h-5 w-5" })
297
302
  }),
298
- /* @__PURE__ */ x(c, {
299
- title: E("headshotmarketing.campaigns.stats.activeCampaigns", "Active Campaigns"),
300
- value: String(ke),
301
- icon: /* @__PURE__ */ x(pe, { className: "h-5 w-5" })
303
+ /* @__PURE__ */ b(l, {
304
+ title: D("headshotmarketing.campaigns.stats.activeCampaigns", "Active Campaigns"),
305
+ value: String(Me),
306
+ icon: /* @__PURE__ */ b(pe, { className: "h-5 w-5" })
302
307
  }),
303
- /* @__PURE__ */ x(c, {
304
- title: E("headshotmarketing.campaigns.stats.totalConversions", "Total Conversions"),
305
- value: o(Ae),
306
- icon: /* @__PURE__ */ x(v, { className: "h-5 w-5" })
308
+ /* @__PURE__ */ b(l, {
309
+ title: D("headshotmarketing.campaigns.stats.totalConversions", "Total Conversions"),
310
+ value: o(Ne),
311
+ icon: /* @__PURE__ */ b(v, { className: "h-5 w-5" })
307
312
  }),
308
- /* @__PURE__ */ x(c, {
309
- title: E("headshotmarketing.campaigns.stats.avgRoas", "Avg ROAS"),
310
- value: `${je.toFixed(1)}x`,
311
- icon: /* @__PURE__ */ x(b, { className: "h-5 w-5" })
313
+ /* @__PURE__ */ b(l, {
314
+ title: D("headshotmarketing.campaigns.stats.avgRoas", "Avg ROAS"),
315
+ value: `${Pe.toFixed(1)}x`,
316
+ icon: /* @__PURE__ */ b(y, { className: "h-5 w-5" })
312
317
  })
313
318
  ]
314
319
  }) }),
315
- /* @__PURE__ */ x(ie, {
316
- searchValue: A,
317
- onSearchChange: j,
318
- searchPlaceholder: E("headshotmarketing.campaigns.filters.searchPlaceholder", "Search campaigns..."),
319
- filters: /* @__PURE__ */ S("div", {
320
+ /* @__PURE__ */ b(ne, {
321
+ searchValue: j,
322
+ onSearchChange: M,
323
+ searchPlaceholder: D("headshotmarketing.campaigns.filters.searchPlaceholder", "Search campaigns..."),
324
+ filters: /* @__PURE__ */ x("div", {
320
325
  className: "flex flex-nowrap items-center gap-2 overflow-x-auto",
321
- children: [/* @__PURE__ */ x("select", {
326
+ children: [/* @__PURE__ */ b(C, {
322
327
  value: P,
323
- onChange: (e) => F(e.target.value),
328
+ onChange: (e) => Se(e.target.value),
324
329
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
325
- children: Re.map((e) => /* @__PURE__ */ x("option", {
330
+ children: Ve.map((e) => /* @__PURE__ */ b("option", {
326
331
  value: e.value,
327
332
  children: e.label
328
333
  }, e.value))
329
- }), /* @__PURE__ */ x("select", {
330
- value: I,
331
- onChange: (e) => ye(e.target.value),
334
+ }), /* @__PURE__ */ b(C, {
335
+ value: F,
336
+ onChange: (e) => Ce(e.target.value),
332
337
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
333
- children: ze.map((e) => /* @__PURE__ */ x("option", {
338
+ children: He.map((e) => /* @__PURE__ */ b("option", {
334
339
  value: e.value,
335
340
  children: e.label
336
341
  }, e.value))
337
342
  })]
338
343
  }),
339
- actions: /* @__PURE__ */ S("div", {
344
+ actions: /* @__PURE__ */ x("div", {
340
345
  className: "flex items-center gap-1 rounded-md border border-border-subtle p-0.5",
341
- children: [/* @__PURE__ */ x("button", {
342
- onClick: () => R("grid"),
343
- className: i("rounded p-1.5", L === "grid" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
344
- children: /* @__PURE__ */ x(g, { className: "h-4 w-4" })
345
- }), /* @__PURE__ */ x("button", {
346
- onClick: () => R("table"),
347
- className: i("rounded p-1.5", L === "table" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
348
- children: /* @__PURE__ */ x(fe, { className: "h-4 w-4" })
346
+ children: [/* @__PURE__ */ b("button", {
347
+ onClick: () => L("grid"),
348
+ className: i("rounded p-1.5", I === "grid" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
349
+ children: /* @__PURE__ */ b(de, { className: "h-4 w-4" })
350
+ }), /* @__PURE__ */ b("button", {
351
+ onClick: () => L("table"),
352
+ className: i("rounded p-1.5", I === "table" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
353
+ children: /* @__PURE__ */ b(fe, { className: "h-4 w-4" })
349
354
  })]
350
355
  })
351
356
  }),
352
- z && /* @__PURE__ */ x("div", {
357
+ R && /* @__PURE__ */ b("div", {
353
358
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
354
- children: z
359
+ children: R
355
360
  }),
356
- /* @__PURE__ */ x(d, {
357
- loading: q || O && !D,
358
- error: we,
359
- onRetry: Pe,
361
+ /* @__PURE__ */ b(re, {
362
+ loading: q || k && !O,
363
+ error: De,
364
+ onRetry: Le,
360
365
  hasData: !!K,
361
- children: Z.length === 0 ? /* @__PURE__ */ x(re, {
366
+ children: Z.length === 0 ? /* @__PURE__ */ b(u, {
362
367
  illustration: Q ? "empty-search" : "empty-generic",
363
- title: Q ? E("headshotmarketing.campaigns.empty.filteredTitle", "No campaigns match your filters") : E("headshotmarketing.campaigns.empty.title", "No campaigns yet"),
364
- description: Q ? E("headshotmarketing.campaigns.empty.filtered", "Try adjusting your search or filters.") : E("headshotmarketing.campaigns.empty.description", "Create your first campaign to start planning budgets, channels and goals."),
365
- action: !Q && !Ne ? /* @__PURE__ */ S("button", {
366
- onClick: () => e(t + "/campaigns/new"),
368
+ title: Q ? D("headshotmarketing.campaigns.empty.filteredTitle", "No campaigns match your filters") : D("headshotmarketing.campaigns.empty.title", "No campaigns yet"),
369
+ description: Q ? D("headshotmarketing.campaigns.empty.filtered", "Try adjusting your search or filters.") : D("headshotmarketing.campaigns.empty.description", "Create your first campaign to start planning budgets, channels and goals."),
370
+ action: !Q && !Ie ? /* @__PURE__ */ x("button", {
371
+ onClick: () => t(T + "/campaigns/new"),
367
372
  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",
368
- children: [/* @__PURE__ */ x(_, { className: "h-4 w-4" }), E("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
373
+ children: [/* @__PURE__ */ b(_, { className: "h-4 w-4" }), D("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
369
374
  }) : void 0
370
- }) : /* @__PURE__ */ S("div", {
375
+ }) : /* @__PURE__ */ x("div", {
371
376
  className: "space-y-4",
372
377
  children: [
373
- L === "grid" && /* @__PURE__ */ x("div", {
378
+ I === "grid" && /* @__PURE__ */ b("div", {
374
379
  className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
375
- children: Z.map((n) => {
376
- let r = n.budget.total > 0 ? Math.min(n.budget.spent / n.budget.total * 100, 100) : 0;
377
- return /* @__PURE__ */ S("div", {
380
+ children: Z.map((e) => {
381
+ let n = e.budget.total > 0 ? Math.min(e.budget.spent / e.budget.total * 100, 100) : 0;
382
+ return /* @__PURE__ */ x("div", {
378
383
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop hover:shadow-md transition-shadow",
379
384
  children: [
380
- /* @__PURE__ */ S("div", {
385
+ /* @__PURE__ */ x("div", {
381
386
  className: "flex items-start justify-between mb-3",
382
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("button", {
383
- onClick: () => e(t + "/campaigns/" + n.id),
384
- className: "text-sm font-semibold text-text-primary hover:text-primary transition-colors text-left",
385
- children: n.name
386
- }), /* @__PURE__ */ S("div", {
387
+ children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("button", {
388
+ onClick: () => t(T + "/campaigns/" + e.id),
389
+ className: "text-sm font-semibold text-text-primary hover:text-primary transition-colors text-start",
390
+ children: e.name
391
+ }), /* @__PURE__ */ x("div", {
387
392
  className: "flex items-center gap-2 mt-1",
388
- children: [/* @__PURE__ */ x(u, { status: n.status }), /* @__PURE__ */ x("span", {
393
+ children: [/* @__PURE__ */ b(f, { status: e.status }), /* @__PURE__ */ b("span", {
389
394
  className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary capitalize",
390
- children: n.type
395
+ children: e.type
391
396
  })]
392
- })] }), /* @__PURE__ */ x(C, {
393
- actions: $(n.id),
397
+ })] }), /* @__PURE__ */ b(S, {
398
+ actions: $(e.id),
394
399
  align: "end"
395
400
  })]
396
401
  }),
397
- /* @__PURE__ */ S("div", {
402
+ /* @__PURE__ */ x("div", {
398
403
  className: "mb-3",
399
- children: [/* @__PURE__ */ S("div", {
404
+ children: [/* @__PURE__ */ x("div", {
400
405
  className: "flex items-center justify-between text-xs text-text-secondary mb-1",
401
- children: [/* @__PURE__ */ S("span", { children: [a(n.budget.spent), " spent"] }), /* @__PURE__ */ S("span", { children: [a(n.budget.total), " total"] })]
402
- }), /* @__PURE__ */ x("div", {
406
+ children: [/* @__PURE__ */ x("span", { children: [a(e.budget.spent), " spent"] }), /* @__PURE__ */ x("span", { children: [a(e.budget.total), " total"] })]
407
+ }), /* @__PURE__ */ b("div", {
403
408
  className: "h-1.5 w-full rounded-full bg-bg-sunken",
404
- children: /* @__PURE__ */ x("div", {
405
- className: i("h-1.5 rounded-full transition-all", r >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
406
- style: { width: `${r}%` }
409
+ children: /* @__PURE__ */ b("div", {
410
+ className: i("h-1.5 rounded-full transition-all", n >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
411
+ style: { width: `${n}%` }
407
412
  })
408
413
  })]
409
414
  }),
410
- /* @__PURE__ */ S("div", {
415
+ /* @__PURE__ */ x("div", {
411
416
  className: "grid grid-cols-4 gap-2 mb-3",
412
417
  children: [
413
- /* @__PURE__ */ S("div", {
418
+ /* @__PURE__ */ x("div", {
414
419
  className: "text-center",
415
420
  children: [
416
- /* @__PURE__ */ x("div", {
421
+ /* @__PURE__ */ b("div", {
417
422
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
418
- children: /* @__PURE__ */ x(de, { className: "h-3 w-3" })
423
+ children: /* @__PURE__ */ b(g, { className: "h-3 w-3" })
419
424
  }),
420
- /* @__PURE__ */ x("p", {
425
+ /* @__PURE__ */ b("p", {
421
426
  className: "text-xs font-medium text-text-primary",
422
- children: o(n.metrics.impressions)
427
+ children: o(e.metrics.impressions)
423
428
  }),
424
- /* @__PURE__ */ x("p", {
429
+ /* @__PURE__ */ b("p", {
425
430
  className: "text-[10px] text-text-secondary",
426
- children: E("headshotmarketing.campaigns.table.columns.impressions", "Impressions")
431
+ children: D("headshotmarketing.campaigns.table.columns.impressions", "Impressions")
427
432
  })
428
433
  ]
429
434
  }),
430
- /* @__PURE__ */ S("div", {
435
+ /* @__PURE__ */ x("div", {
431
436
  className: "text-center",
432
437
  children: [
433
- /* @__PURE__ */ x("div", {
438
+ /* @__PURE__ */ b("div", {
434
439
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
435
- children: /* @__PURE__ */ x(me, { className: "h-3 w-3" })
440
+ children: /* @__PURE__ */ b(me, { className: "h-3 w-3" })
436
441
  }),
437
- /* @__PURE__ */ x("p", {
442
+ /* @__PURE__ */ b("p", {
438
443
  className: "text-xs font-medium text-text-primary",
439
- children: o(n.metrics.clicks)
444
+ children: o(e.metrics.clicks)
440
445
  }),
441
- /* @__PURE__ */ x("p", {
446
+ /* @__PURE__ */ b("p", {
442
447
  className: "text-[10px] text-text-secondary",
443
- children: E("headshotmarketing.campaigns.table.columns.clicks", "Clicks")
448
+ children: D("headshotmarketing.campaigns.table.columns.clicks", "Clicks")
444
449
  })
445
450
  ]
446
451
  }),
447
- /* @__PURE__ */ S("div", {
452
+ /* @__PURE__ */ x("div", {
448
453
  className: "text-center",
449
454
  children: [
450
- /* @__PURE__ */ x("div", {
455
+ /* @__PURE__ */ b("div", {
451
456
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
452
- children: /* @__PURE__ */ x(v, { className: "h-3 w-3" })
457
+ children: /* @__PURE__ */ b(v, { className: "h-3 w-3" })
453
458
  }),
454
- /* @__PURE__ */ x("p", {
459
+ /* @__PURE__ */ b("p", {
455
460
  className: "text-xs font-medium text-text-primary",
456
- children: o(n.metrics.conversions)
461
+ children: o(e.metrics.conversions)
457
462
  }),
458
- /* @__PURE__ */ x("p", {
463
+ /* @__PURE__ */ b("p", {
459
464
  className: "text-[10px] text-text-secondary",
460
- children: E("headshotmarketing.campaigns.table.columns.conversions", "Conversions")
465
+ children: D("headshotmarketing.campaigns.table.columns.conversions", "Conversions")
461
466
  })
462
467
  ]
463
468
  }),
464
- /* @__PURE__ */ S("div", {
469
+ /* @__PURE__ */ x("div", {
465
470
  className: "text-center",
466
471
  children: [
467
- /* @__PURE__ */ x("div", {
472
+ /* @__PURE__ */ b("div", {
468
473
  className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
469
- children: /* @__PURE__ */ x(b, { className: "h-3 w-3" })
474
+ children: /* @__PURE__ */ b(y, { className: "h-3 w-3" })
470
475
  }),
471
- /* @__PURE__ */ x("p", {
476
+ /* @__PURE__ */ b("p", {
472
477
  className: "text-xs font-medium text-text-primary",
473
- children: n.metrics.roas > 0 ? `${n.metrics.roas.toFixed(1)}x` : "-"
478
+ children: e.metrics.roas > 0 ? `${e.metrics.roas.toFixed(1)}x` : "-"
474
479
  }),
475
- /* @__PURE__ */ x("p", {
480
+ /* @__PURE__ */ b("p", {
476
481
  className: "text-[10px] text-text-secondary",
477
- children: E("headshotmarketing.campaigns.table.columns.roas", "ROAS")
482
+ children: D("headshotmarketing.campaigns.table.columns.roas", "ROAS")
478
483
  })
479
484
  ]
480
485
  })
481
486
  ]
482
487
  }),
483
- /* @__PURE__ */ S("div", {
488
+ /* @__PURE__ */ x("div", {
484
489
  className: "flex flex-wrap items-center gap-2 pt-3 border-t border-border-subtle",
485
- children: [/* @__PURE__ */ x("button", {
486
- onClick: () => e(t + "/campaigns/" + n.id),
490
+ children: [/* @__PURE__ */ b("button", {
491
+ onClick: () => t(T + "/campaigns/" + e.id),
487
492
  className: "flex-1 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
488
- children: E("headshotmarketing.campaigns.actions.viewDetails", "View Details")
489
- }), /* @__PURE__ */ x("button", {
490
- onClick: () => e(t + "/campaigns/" + n.id + "/edit"),
493
+ children: D("headshotmarketing.campaigns.actions.viewDetails", "View Details")
494
+ }), /* @__PURE__ */ b("button", {
495
+ onClick: () => t(T + "/campaigns/" + e.id + "/edit"),
491
496
  className: "flex-1 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
492
- children: E("headshotmarketing.common.edit", "Edit")
497
+ children: D("headshotmarketing.common.edit", "Edit")
493
498
  })]
494
499
  })
495
500
  ]
496
- }, n.id);
501
+ }, e.id);
497
502
  })
498
503
  }),
499
- L === "table" && /* @__PURE__ */ x(l, {
504
+ I === "table" && /* @__PURE__ */ b(d, {
500
505
  data: Z,
501
- columns: Le,
502
- pageSize: U.pageSize,
503
- onRowClick: (n) => e(t + "/campaigns/" + n.id),
504
- emptyMessage: E("headshotmarketing.campaigns.empty.filtered", "No campaigns match your filters")
506
+ columns: Be,
507
+ pageSize: H.pageSize,
508
+ onRowClick: (e) => t(T + "/campaigns/" + e.id),
509
+ emptyMessage: D("headshotmarketing.campaigns.empty.filtered", "No campaigns match your filters")
505
510
  }),
506
- /* @__PURE__ */ x(ae, {
507
- page: U.page,
508
- pageSize: U.pageSize,
509
- total: U.total,
510
- onPageChange: U.setPage,
511
- onPageSizeChange: U.setPageSize,
511
+ /* @__PURE__ */ b(ie, {
512
+ page: H.page,
513
+ pageSize: H.pageSize,
514
+ total: H.total,
515
+ onPageChange: H.setPage,
516
+ onPageSizeChange: H.setPageSize,
512
517
  disabled: q,
513
518
  hideWhenSinglePage: !0
514
519
  })