@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.
- package/dist/headshotmarketing/components/DataTable.js +58 -53
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +146 -119
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +276 -219
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +202 -146
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +138 -99
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +173 -117
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +196 -194
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +40 -38
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +123 -95
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +95 -83
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +98 -59
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +134 -97
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +46 -44
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +220 -137
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +267 -262
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +201 -173
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +85 -91
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +160 -147
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +66 -64
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +82 -74
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +93 -48
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +39 -37
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +82 -75
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +261 -213
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +64 -63
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +77 -76
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +162 -120
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +58 -51
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +173 -157
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +345 -340
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +100 -87
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +162 -147
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +136 -87
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +56 -28
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +246 -184
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +144 -111
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +27 -25
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +269 -242
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +149 -137
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +119 -118
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +104 -76
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- 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 {
|
|
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
|
|
10
|
-
import { DollarSign as
|
|
11
|
-
import { Fragment as
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
26
|
-
let { navigate:
|
|
27
|
+
}, E = () => {
|
|
28
|
+
let { navigate: E } = e(), { data: D } = t({ variables: {
|
|
27
29
|
limit: 200,
|
|
28
30
|
offset: 0
|
|
29
|
-
} }), [
|
|
30
|
-
let e = [...
|
|
31
|
-
if (
|
|
32
|
-
let t =
|
|
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
|
|
37
|
+
return A !== "all" && (e = e.filter((e) => e.status === A)), M !== "all" && (e = e.filter((e) => e.platform === M)), e;
|
|
36
38
|
}, [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
])
|
|
42
|
-
|
|
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__ */
|
|
46
|
-
onClick: () =>
|
|
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__ */
|
|
58
|
+
children: [/* @__PURE__ */ b(_, { className: "h-4 w-4" }), "Create Campaign"]
|
|
49
59
|
}),
|
|
50
|
-
children: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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__ */
|
|
60
|
-
|
|
61
|
-
children: "
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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("
|
|
119
|
-
|
|
120
|
-
children:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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__ */
|
|
155
|
-
className: "
|
|
156
|
-
children:
|
|
179
|
+
/* @__PURE__ */ b("h3", {
|
|
180
|
+
className: "text-sm font-semibold text-text-primary",
|
|
181
|
+
children: e.name
|
|
157
182
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
className: "
|
|
160
|
-
children: e.
|
|
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__ */
|
|
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
|
-
|
|
182
|
-
|
|
183
|
-
|
|
192
|
+
e.adFormat,
|
|
193
|
+
" · ",
|
|
194
|
+
e.bidStrategy,
|
|
195
|
+
" ·",
|
|
184
196
|
" ",
|
|
185
|
-
|
|
197
|
+
e.startDate,
|
|
198
|
+
" to ",
|
|
199
|
+
e.endDate
|
|
186
200
|
]
|
|
187
|
-
}), /* @__PURE__ */
|
|
188
|
-
className: "
|
|
189
|
-
children: [
|
|
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
|
-
}),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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: "
|
|
227
|
-
}), /* @__PURE__ */
|
|
290
|
+
children: "CTR"
|
|
291
|
+
}), /* @__PURE__ */ b("p", {
|
|
228
292
|
className: "text-sm font-medium text-text-primary",
|
|
229
|
-
children:
|
|
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: "
|
|
251
|
-
}), /* @__PURE__ */
|
|
297
|
+
children: "CPC"
|
|
298
|
+
}), /* @__PURE__ */ x("p", {
|
|
252
299
|
className: "text-sm font-medium text-text-primary",
|
|
253
|
-
children: [e.metrics.
|
|
254
|
-
})] })
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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 {
|
|
322
|
+
export { E as AdCampaignsPage };
|
|
266
323
|
|
|
267
324
|
//# sourceMappingURL=AdCampaignsPage.js.map
|