@burdenoff/microfe-headshotmarketing 2026.625.1 → 2026.626.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 (89) hide show
  1. package/dist/headshotmarketing/components/DataTable.js +58 -53
  2. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  3. package/dist/headshotmarketing/pages/HomePage.js +146 -119
  4. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  5. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +276 -219
  6. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  7. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +202 -146
  8. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  9. package/dist/headshotmarketing/pages/ads/AdsPage.js +138 -99
  10. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  11. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +173 -117
  12. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  13. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +196 -194
  14. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  15. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +40 -38
  16. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  17. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +123 -95
  18. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +23 -21
  20. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +95 -83
  22. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +23 -21
  24. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/automation/AutomationPage.js +98 -59
  26. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  27. package/dist/headshotmarketing/pages/automation/TriggersPage.js +134 -97
  28. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +46 -44
  30. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +220 -137
  32. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  33. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +267 -262
  34. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +201 -173
  36. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +85 -91
  38. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +160 -147
  40. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +66 -64
  42. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/content/AIToolsPage.js +82 -74
  44. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +93 -48
  46. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +23 -21
  48. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +39 -37
  50. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/content/ContentPage.js +82 -75
  52. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/crm/ContactsPage.js +261 -213
  54. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +64 -63
  56. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +77 -76
  58. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/crm/CrmPage.js +162 -120
  60. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/crm/LeadsPage.js +58 -51
  62. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/crm/PipelinePage.js +173 -157
  64. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/events/CreateEventPage.js +345 -340
  66. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  67. package/dist/headshotmarketing/pages/events/EventsPage.js +100 -87
  68. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +162 -147
  70. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +136 -87
  72. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +56 -28
  74. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +246 -184
  76. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +144 -111
  78. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +27 -25
  80. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +269 -242
  82. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/social-media/PostsPage.js +149 -137
  84. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +119 -118
  86. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +104 -76
  88. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  89. package/package.json +2 -2
@@ -4,264 +4,321 @@ import { cn as n, formatCurrency as r, formatNumber as i, formatPercentage as a
4
4
  import { toAdCampaignModel as o } from "../../utils/adsMapper.js";
5
5
  import { PageLayout as s } from "../../components/PageLayout.js";
6
6
  import { StatusBadge as c } from "../../components/StatusBadge.js";
7
- import { FilterBar as l } from "../../components/FilterBar.js";
7
+ import { EmptyState as l } from "../../components/EmptyState.js";
8
+ import { FilterBar as u } from "../../components/FilterBar.js";
8
9
  import "../../components/index.js";
9
- import { useMemo as u, useState as d } from "react";
10
- import { DollarSign as f, Eye as p, MoreHorizontal as m, MousePointerClick as h, Plus as g, TrendingUp as _ } from "lucide-react";
11
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
10
+ import { useMemo as d, useState as f } from "react";
11
+ import { DollarSign as p, Eye as m, MoreHorizontal as h, MousePointerClick as g, Plus as _, TrendingUp as v } from "lucide-react";
12
+ import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
13
+ import { EmphasisPanel as S, PagePurpose as C } from "@burdenoff/fe-libs/ui";
12
14
  //#region src/headshotmarketing/pages/ads/AdCampaignsPage.tsx
13
- var x = {
15
+ var w = {
14
16
  google_ads: "Google Ads",
15
17
  facebook: "Facebook",
16
18
  instagram: "Instagram",
17
19
  linkedin: "LinkedIn",
18
20
  twitter: "Twitter"
19
- }, S = {
21
+ }, T = {
20
22
  google_ads: "bg-status-info-bg text-status-info-text",
21
23
  facebook: "bg-status-info-bg text-status-info-text",
22
24
  instagram: "bg-[var(--color-accent-soft)] text-action-primary-bg",
23
25
  linkedin: "bg-status-info-bg text-status-info-text",
24
26
  twitter: "bg-status-info-bg text-status-info-text"
25
- }, C = () => {
26
- let { navigate: C } = e(), { data: w } = t({ variables: {
27
+ }, E = () => {
28
+ let { navigate: E } = e(), { data: D } = t({ variables: {
27
29
  limit: 200,
28
30
  offset: 0
29
- } }), [T, E] = d(""), [D, O] = d("all"), [k, A] = d("all"), [j, M] = d(null), N = u(() => (w?.headshotmarketingAdCampaigns.items ?? []).map((e) => o(e)), [w?.headshotmarketingAdCampaigns.items]), P = u(() => {
30
- let e = [...N];
31
- if (T) {
32
- let t = T.toLowerCase();
31
+ } }), [O, k] = f(""), [A, j] = f("all"), [M, N] = f("all"), [P, F] = f(null), I = d(() => (D?.headshotmarketingAdCampaigns.items ?? []).map((e) => o(e)), [D?.headshotmarketingAdCampaigns.items]), L = d(() => {
32
+ let e = [...I];
33
+ if (O) {
34
+ let t = O.toLowerCase();
33
35
  e = e.filter((e) => e.name.toLowerCase().includes(t));
34
36
  }
35
- return D !== "all" && (e = e.filter((e) => e.status === D)), k !== "all" && (e = e.filter((e) => e.platform === k)), e;
37
+ return A !== "all" && (e = e.filter((e) => e.status === A)), M !== "all" && (e = e.filter((e) => e.platform === M)), e;
36
38
  }, [
37
- T,
38
- D,
39
- k,
40
- N
41
- ]);
42
- return /* @__PURE__ */ b(s, {
39
+ O,
40
+ A,
41
+ M,
42
+ I
43
+ ]), R = d(() => {
44
+ let e = I.filter((e) => e.status === "active").length, t = I.reduce((e, t) => e + t.metrics.spend, 0), n = I.reduce((e, t) => e + t.metrics.impressions, 0), r = I.filter((e) => e.metrics.roas > 0);
45
+ return {
46
+ active: e,
47
+ totalSpend: t,
48
+ totalImpressions: n,
49
+ avgRoas: r.length > 0 ? r.reduce((e, t) => e + t.metrics.roas, 0) / r.length : 0
50
+ };
51
+ }, [I]);
52
+ return /* @__PURE__ */ x(s, {
43
53
  title: "Ad Campaigns",
44
54
  description: "Create and manage your advertising campaigns",
45
- actions: /* @__PURE__ */ b("button", {
46
- onClick: () => C("/ads/campaigns/new"),
55
+ actions: /* @__PURE__ */ x("button", {
56
+ onClick: () => E("/ads/campaigns/new"),
47
57
  className: "inline-flex items-center gap-2 rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90",
48
- children: [/* @__PURE__ */ y(g, { className: "h-4 w-4" }), "Create Campaign"]
58
+ children: [/* @__PURE__ */ b(_, { className: "h-4 w-4" }), "Create Campaign"]
49
59
  }),
50
- children: [/* @__PURE__ */ y(l, {
51
- searchValue: T,
52
- onSearchChange: E,
53
- searchPlaceholder: "Search campaigns...",
54
- filters: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("select", {
55
- value: D,
56
- onChange: (e) => O(e.target.value),
57
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
60
+ children: [
61
+ /* @__PURE__ */ b(C, { children: "A focused view of every ad campaign — filter by platform or status, watch budget pacing at a glance, and pause, edit or duplicate any campaign without leaving the list." }),
62
+ /* @__PURE__ */ b(S, { children: /* @__PURE__ */ x("div", {
63
+ className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
58
64
  children: [
59
- /* @__PURE__ */ y("option", {
60
- value: "all",
61
- children: "All Status"
62
- }),
63
- /* @__PURE__ */ y("option", {
64
- value: "active",
65
- children: "Active"
66
- }),
67
- /* @__PURE__ */ y("option", {
68
- value: "paused",
69
- children: "Paused"
70
- }),
71
- /* @__PURE__ */ y("option", {
72
- value: "completed",
73
- children: "Completed"
74
- }),
75
- /* @__PURE__ */ y("option", {
76
- value: "draft",
77
- children: "Draft"
78
- })
65
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
66
+ className: "text-xs text-text-secondary",
67
+ children: "Active Campaigns"
68
+ }), /* @__PURE__ */ b("p", {
69
+ className: "text-2xl font-semibold text-text-primary",
70
+ children: i(R.active)
71
+ })] }),
72
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
73
+ className: "text-xs text-text-secondary",
74
+ children: "Total Spend"
75
+ }), /* @__PURE__ */ b("p", {
76
+ className: "text-2xl font-semibold text-text-primary",
77
+ children: r(R.totalSpend)
78
+ })] }),
79
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
80
+ className: "text-xs text-text-secondary",
81
+ children: "Impressions"
82
+ }), /* @__PURE__ */ b("p", {
83
+ className: "text-2xl font-semibold text-text-primary",
84
+ children: i(R.totalImpressions)
85
+ })] }),
86
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
87
+ className: "text-xs text-text-secondary",
88
+ children: "Avg ROAS"
89
+ }), /* @__PURE__ */ x("p", {
90
+ className: "text-2xl font-semibold text-text-primary",
91
+ children: [R.avgRoas.toFixed(1), "x"]
92
+ })] })
79
93
  ]
80
- }), /* @__PURE__ */ b("select", {
81
- value: k,
82
- onChange: (e) => A(e.target.value),
83
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
84
- children: [
85
- /* @__PURE__ */ y("option", {
86
- value: "all",
87
- children: "All Platforms"
88
- }),
89
- /* @__PURE__ */ y("option", {
90
- value: "google_ads",
91
- children: "Google Ads"
92
- }),
93
- /* @__PURE__ */ y("option", {
94
- value: "facebook",
95
- children: "Facebook"
96
- }),
97
- /* @__PURE__ */ y("option", {
98
- value: "instagram",
99
- children: "Instagram"
100
- }),
101
- /* @__PURE__ */ y("option", {
102
- value: "linkedin",
103
- children: "LinkedIn"
104
- }),
105
- /* @__PURE__ */ y("option", {
106
- value: "twitter",
107
- children: "Twitter"
108
- })
109
- ]
110
- })] })
111
- }), /* @__PURE__ */ y("div", {
112
- className: "space-y-4",
113
- children: P.map((e) => {
114
- let t = e.budget.total > 0 ? e.budget.spent / e.budget.total * 100 : 0;
115
- return /* @__PURE__ */ b("div", {
116
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-5",
94
+ }) }),
95
+ /* @__PURE__ */ b(u, {
96
+ searchValue: O,
97
+ onSearchChange: k,
98
+ searchPlaceholder: "Search campaigns...",
99
+ filters: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("select", {
100
+ value: A,
101
+ onChange: (e) => j(e.target.value),
102
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
117
103
  children: [
118
- /* @__PURE__ */ b("div", {
119
- className: "flex items-start justify-between mb-4",
120
- children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
121
- className: "flex items-center gap-3 mb-1",
122
- children: [
123
- /* @__PURE__ */ y("h3", {
124
- className: "text-sm font-semibold text-text-primary",
125
- children: e.name
126
- }),
127
- /* @__PURE__ */ y("span", {
128
- className: n("rounded-full px-2.5 py-0.5 text-xs font-medium", S[e.platform]),
129
- children: x[e.platform]
130
- }),
131
- /* @__PURE__ */ y(c, { status: e.status })
132
- ]
133
- }), /* @__PURE__ */ b("p", {
134
- className: "text-xs text-text-secondary",
135
- children: [
136
- e.adFormat,
137
- " · ",
138
- e.bidStrategy,
139
- " ·",
140
- " ",
141
- e.startDate,
142
- " to ",
143
- e.endDate
144
- ]
145
- })] }), /* @__PURE__ */ b("div", {
146
- className: "relative",
147
- children: [/* @__PURE__ */ y("button", {
148
- onClick: () => M(j === e.id ? null : e.id),
149
- className: "rounded-md p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
150
- children: /* @__PURE__ */ y(m, { className: "h-4 w-4" })
151
- }), j === e.id && /* @__PURE__ */ b("div", {
152
- className: "absolute right-0 top-8 z-10 w-40 rounded-md border border-border-seam bg-gloss-card shadow-pop py-1 shadow-lg",
104
+ /* @__PURE__ */ b("option", {
105
+ value: "all",
106
+ children: "All Status"
107
+ }),
108
+ /* @__PURE__ */ b("option", {
109
+ value: "active",
110
+ children: "Active"
111
+ }),
112
+ /* @__PURE__ */ b("option", {
113
+ value: "paused",
114
+ children: "Paused"
115
+ }),
116
+ /* @__PURE__ */ b("option", {
117
+ value: "completed",
118
+ children: "Completed"
119
+ }),
120
+ /* @__PURE__ */ b("option", {
121
+ value: "draft",
122
+ children: "Draft"
123
+ })
124
+ ]
125
+ }), /* @__PURE__ */ x("select", {
126
+ value: M,
127
+ onChange: (e) => N(e.target.value),
128
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
129
+ children: [
130
+ /* @__PURE__ */ b("option", {
131
+ value: "all",
132
+ children: "All Platforms"
133
+ }),
134
+ /* @__PURE__ */ b("option", {
135
+ value: "google_ads",
136
+ children: "Google Ads"
137
+ }),
138
+ /* @__PURE__ */ b("option", {
139
+ value: "facebook",
140
+ children: "Facebook"
141
+ }),
142
+ /* @__PURE__ */ b("option", {
143
+ value: "instagram",
144
+ children: "Instagram"
145
+ }),
146
+ /* @__PURE__ */ b("option", {
147
+ value: "linkedin",
148
+ children: "LinkedIn"
149
+ }),
150
+ /* @__PURE__ */ b("option", {
151
+ value: "twitter",
152
+ children: "Twitter"
153
+ })
154
+ ]
155
+ })] })
156
+ }),
157
+ L.length === 0 && /* @__PURE__ */ b(l, {
158
+ illustration: I.length === 0 ? "empty-generic" : "empty-search",
159
+ title: I.length === 0 ? "No ad campaigns yet" : "No campaigns match your filters",
160
+ description: I.length === 0 ? "Create your first ad campaign to start running paid traffic." : "Try a different search term, platform or status.",
161
+ action: I.length === 0 ? /* @__PURE__ */ x("button", {
162
+ onClick: () => E("/ads/campaigns/new"),
163
+ 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",
164
+ children: [/* @__PURE__ */ b(_, { className: "h-4 w-4" }), "Create Campaign"]
165
+ }) : void 0
166
+ }),
167
+ /* @__PURE__ */ b("div", {
168
+ className: "space-y-4",
169
+ children: L.map((e) => {
170
+ let t = e.budget.total > 0 ? e.budget.spent / e.budget.total * 100 : 0;
171
+ return /* @__PURE__ */ x("div", {
172
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-5",
173
+ children: [
174
+ /* @__PURE__ */ x("div", {
175
+ className: "flex items-start justify-between mb-4",
176
+ children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
177
+ className: "flex items-center gap-3 mb-1",
153
178
  children: [
154
- /* @__PURE__ */ y("button", {
155
- className: "w-full px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
156
- children: "Edit"
179
+ /* @__PURE__ */ b("h3", {
180
+ className: "text-sm font-semibold text-text-primary",
181
+ children: e.name
157
182
  }),
158
- /* @__PURE__ */ y("button", {
159
- className: "w-full px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
160
- children: e.status === "active" ? "Pause" : "Resume"
183
+ /* @__PURE__ */ b("span", {
184
+ className: n("rounded-full px-2.5 py-0.5 text-xs font-medium", T[e.platform]),
185
+ children: w[e.platform]
161
186
  }),
162
- /* @__PURE__ */ y("button", {
163
- className: "w-full px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
164
- children: "Duplicate"
165
- }),
166
- /* @__PURE__ */ y("button", {
167
- className: "w-full px-4 py-2 text-left text-sm text-status-error-text hover:bg-bg-sunken",
168
- children: "Delete"
169
- })
187
+ /* @__PURE__ */ b(c, { status: e.status })
170
188
  ]
171
- })]
172
- })]
173
- }),
174
- /* @__PURE__ */ b("div", {
175
- className: "mb-4",
176
- children: [/* @__PURE__ */ b("div", {
177
- className: "flex items-center justify-between text-xs mb-1",
178
- children: [/* @__PURE__ */ b("span", {
179
- className: "text-text-secondary",
189
+ }), /* @__PURE__ */ x("p", {
190
+ className: "text-xs text-text-secondary",
180
191
  children: [
181
- "Budget: ",
182
- r(e.budget.spent),
183
- " /",
192
+ e.adFormat,
193
+ " · ",
194
+ e.bidStrategy,
195
+ " ·",
184
196
  " ",
185
- r(e.budget.total)
197
+ e.startDate,
198
+ " to ",
199
+ e.endDate
186
200
  ]
187
- }), /* @__PURE__ */ b("span", {
188
- className: "text-text-secondary",
189
- children: [t.toFixed(0), "%"]
201
+ })] }), /* @__PURE__ */ x("div", {
202
+ className: "relative",
203
+ children: [/* @__PURE__ */ b("button", {
204
+ onClick: () => F(P === e.id ? null : e.id),
205
+ className: "rounded-md p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
206
+ children: /* @__PURE__ */ b(h, { className: "h-4 w-4" })
207
+ }), P === e.id && /* @__PURE__ */ x("div", {
208
+ className: "absolute right-0 top-8 z-10 w-40 rounded-md border border-border-seam bg-gloss-card shadow-pop py-1 shadow-lg",
209
+ children: [
210
+ /* @__PURE__ */ b("button", {
211
+ className: "w-full px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
212
+ children: "Edit"
213
+ }),
214
+ /* @__PURE__ */ b("button", {
215
+ className: "w-full px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
216
+ children: e.status === "active" ? "Pause" : "Resume"
217
+ }),
218
+ /* @__PURE__ */ b("button", {
219
+ className: "w-full px-4 py-2 text-left text-sm text-text-primary hover:bg-bg-sunken",
220
+ children: "Duplicate"
221
+ }),
222
+ /* @__PURE__ */ b("button", {
223
+ className: "w-full px-4 py-2 text-left text-sm text-status-error-text hover:bg-bg-sunken",
224
+ children: "Delete"
225
+ })
226
+ ]
227
+ })]
190
228
  })]
191
- }), /* @__PURE__ */ y("div", {
192
- className: "h-2 w-full rounded-full bg-bg-sunken overflow-hidden",
193
- children: /* @__PURE__ */ y("div", {
194
- className: n("h-full rounded-full", t > 90 ? "bg-status-error-text" : t > 70 ? "bg-status-warning-text" : "bg-status-success-text"),
195
- style: { width: `${Math.min(t, 100)}%` }
196
- })
197
- })]
198
- }),
199
- /* @__PURE__ */ b("div", {
200
- className: "grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-6",
201
- children: [
202
- /* @__PURE__ */ b("div", {
203
- className: "flex items-center gap-2",
204
- children: [/* @__PURE__ */ y(f, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
205
- className: "text-xs text-text-secondary",
206
- children: "Spend"
207
- }), /* @__PURE__ */ y("p", {
208
- className: "text-sm font-medium text-text-primary",
209
- children: r(e.metrics.spend)
210
- })] })]
211
- }),
212
- /* @__PURE__ */ b("div", {
213
- className: "flex items-center gap-2",
214
- children: [/* @__PURE__ */ y(p, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
215
- className: "text-xs text-text-secondary",
216
- children: "Impressions"
217
- }), /* @__PURE__ */ y("p", {
218
- className: "text-sm font-medium text-text-primary",
219
- children: i(e.metrics.impressions)
220
- })] })]
221
- }),
222
- /* @__PURE__ */ b("div", {
223
- className: "flex items-center gap-2",
224
- children: [/* @__PURE__ */ y(h, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
229
+ }),
230
+ /* @__PURE__ */ x("div", {
231
+ className: "mb-4",
232
+ children: [/* @__PURE__ */ x("div", {
233
+ className: "flex items-center justify-between text-xs mb-1",
234
+ children: [/* @__PURE__ */ x("span", {
235
+ className: "text-text-secondary",
236
+ children: [
237
+ "Budget: ",
238
+ r(e.budget.spent),
239
+ " /",
240
+ " ",
241
+ r(e.budget.total)
242
+ ]
243
+ }), /* @__PURE__ */ x("span", {
244
+ className: "text-text-secondary",
245
+ children: [t.toFixed(0), "%"]
246
+ })]
247
+ }), /* @__PURE__ */ b("div", {
248
+ className: "h-2 w-full rounded-full bg-bg-sunken overflow-hidden",
249
+ children: /* @__PURE__ */ b("div", {
250
+ className: n("h-full rounded-full", t > 90 ? "bg-status-error-text" : t > 70 ? "bg-status-warning-text" : "bg-status-success-text"),
251
+ style: { width: `${Math.min(t, 100)}%` }
252
+ })
253
+ })]
254
+ }),
255
+ /* @__PURE__ */ x("div", {
256
+ className: "grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-6",
257
+ children: [
258
+ /* @__PURE__ */ x("div", {
259
+ className: "flex items-center gap-2",
260
+ children: [/* @__PURE__ */ b(p, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
261
+ className: "text-xs text-text-secondary",
262
+ children: "Spend"
263
+ }), /* @__PURE__ */ b("p", {
264
+ className: "text-sm font-medium text-text-primary",
265
+ children: r(e.metrics.spend)
266
+ })] })]
267
+ }),
268
+ /* @__PURE__ */ x("div", {
269
+ className: "flex items-center gap-2",
270
+ children: [/* @__PURE__ */ b(m, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
271
+ className: "text-xs text-text-secondary",
272
+ children: "Impressions"
273
+ }), /* @__PURE__ */ b("p", {
274
+ className: "text-sm font-medium text-text-primary",
275
+ children: i(e.metrics.impressions)
276
+ })] })]
277
+ }),
278
+ /* @__PURE__ */ x("div", {
279
+ className: "flex items-center gap-2",
280
+ children: [/* @__PURE__ */ b(g, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
281
+ className: "text-xs text-text-secondary",
282
+ children: "Clicks"
283
+ }), /* @__PURE__ */ b("p", {
284
+ className: "text-sm font-medium text-text-primary",
285
+ children: i(e.metrics.clicks)
286
+ })] })]
287
+ }),
288
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
225
289
  className: "text-xs text-text-secondary",
226
- children: "Clicks"
227
- }), /* @__PURE__ */ y("p", {
290
+ children: "CTR"
291
+ }), /* @__PURE__ */ b("p", {
228
292
  className: "text-sm font-medium text-text-primary",
229
- children: i(e.metrics.clicks)
230
- })] })]
231
- }),
232
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
233
- className: "text-xs text-text-secondary",
234
- children: "CTR"
235
- }), /* @__PURE__ */ y("p", {
236
- className: "text-sm font-medium text-text-primary",
237
- children: a(e.metrics.ctr)
238
- })] }),
239
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
240
- className: "text-xs text-text-secondary",
241
- children: "CPC"
242
- }), /* @__PURE__ */ b("p", {
243
- className: "text-sm font-medium text-text-primary",
244
- children: ["$", e.metrics.cpc.toFixed(2)]
245
- })] }),
246
- /* @__PURE__ */ b("div", {
247
- className: "flex items-center gap-2",
248
- children: [/* @__PURE__ */ y(_, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
293
+ children: a(e.metrics.ctr)
294
+ })] }),
295
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
249
296
  className: "text-xs text-text-secondary",
250
- children: "ROAS"
251
- }), /* @__PURE__ */ b("p", {
297
+ children: "CPC"
298
+ }), /* @__PURE__ */ x("p", {
252
299
  className: "text-sm font-medium text-text-primary",
253
- children: [e.metrics.roas.toFixed(1), "x"]
254
- })] })]
255
- })
256
- ]
257
- })
258
- ]
259
- }, e.id);
300
+ children: ["$", e.metrics.cpc.toFixed(2)]
301
+ })] }),
302
+ /* @__PURE__ */ x("div", {
303
+ className: "flex items-center gap-2",
304
+ children: [/* @__PURE__ */ b(v, { className: "h-3.5 w-3.5 text-text-secondary" }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
305
+ className: "text-xs text-text-secondary",
306
+ children: "ROAS"
307
+ }), /* @__PURE__ */ x("p", {
308
+ className: "text-sm font-medium text-text-primary",
309
+ children: [e.metrics.roas.toFixed(1), "x"]
310
+ })] })]
311
+ })
312
+ ]
313
+ })
314
+ ]
315
+ }, e.id);
316
+ })
260
317
  })
261
- })]
318
+ ]
262
319
  });
263
320
  };
264
321
  //#endregion
265
- export { C as AdCampaignsPage };
322
+ export { E as AdCampaignsPage };
266
323
 
267
324
  //# sourceMappingURL=AdCampaignsPage.js.map