@burdenoff/microfe-headshotmarketing 2026.1201.1 → 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.
- package/dist/headshotmarketing/components/ActionMenu.js +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +33 -33
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
- package/dist/headshotmarketing/components/EmptyState.js +35 -15
- package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
- package/dist/headshotmarketing/components/FilterBar.js +2 -2
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +38 -37
- package/dist/headshotmarketing/components/Pagination.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +1 -1
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +10 -10
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,8 +5,8 @@ import { toAdCampaignModel as u, toAdCampaignStatusEnum as d, toAdPlatformEnum a
|
|
|
5
5
|
import "../../components/index.js";
|
|
6
6
|
import { PageLayout as p } from "../../components/PageLayout.js";
|
|
7
7
|
import { StatCard as m } from "../../components/StatCard.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { EmptyState as h } from "../../components/EmptyState.js";
|
|
9
|
+
import { StatusBadge as g } from "../../components/StatusBadge.js";
|
|
10
10
|
import { FilterBar as ee } from "../../components/FilterBar.js";
|
|
11
11
|
import { Modal as te } from "../../components/Modal.js";
|
|
12
12
|
import { QueryStateBoundary as ne } from "../../components/QueryStateBoundary.js";
|
|
@@ -19,7 +19,7 @@ import { useEffect as y, useMemo as b, useState as x } from "react";
|
|
|
19
19
|
import { Copy as S, DollarSign as se, Eye as ce, Megaphone as le, MoreHorizontal as C, MousePointerClick as ue, Pause as de, Pencil as fe, Play as pe, Plus as me, Settings2 as w, Trash2 as he, TrendingUp as ge } from "lucide-react";
|
|
20
20
|
import { useExclusiveMenu as T } from "@burdenoff/fe-libs/shared/hooks";
|
|
21
21
|
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
22
|
-
import { PagePurpose as _e } from "@burdenoff/fe-libs/ui";
|
|
22
|
+
import { PagePurpose as _e, ThemedSelect as k } from "@burdenoff/fe-libs/ui";
|
|
23
23
|
// src/headshotmarketing/pages/ads/AdCampaignsPage.tsx
|
|
24
24
|
var ve = {
|
|
25
25
|
active: i.Active,
|
|
@@ -34,25 +34,25 @@ var ve = {
|
|
|
34
34
|
twitter: a.TwitterAds,
|
|
35
35
|
tiktok: a.TiktokAds
|
|
36
36
|
};
|
|
37
|
-
function
|
|
37
|
+
function A(e) {
|
|
38
38
|
if (!e) return "";
|
|
39
39
|
let t = new Date(e);
|
|
40
40
|
return Number.isNaN(t.getTime()) ? "" : t.toISOString().slice(0, 10);
|
|
41
41
|
}
|
|
42
|
-
var
|
|
43
|
-
let { navigate: a, basePath: o } = ie(), l = (e) => a(o + e), { data:
|
|
42
|
+
var j = () => {
|
|
43
|
+
let { navigate: a, basePath: o } = ie(), l = (e) => a(o + e), { data: g, refetch: _ } = ae(), [v, S] = x(""), [C, fe] = x(""), [w, he] = x("all"), [T, j] = x("all"), [M, N] = x(null), [P, F] = x(null), [I, L] = x(null), [R, z] = x(null), [B, V] = x(/* @__PURE__ */ new Set()), [H, U] = x(!1), W = oe({ initialPageSize: 10 }), { limit: xe, offset: Se, setPage: G, setTotal: Ce } = W;
|
|
44
44
|
y(() => {
|
|
45
45
|
let e = setTimeout(() => fe(v), 300);
|
|
46
46
|
return () => clearTimeout(e);
|
|
47
47
|
}, [v]), y(() => {
|
|
48
|
-
|
|
48
|
+
G(1);
|
|
49
49
|
}, [
|
|
50
50
|
C,
|
|
51
51
|
w,
|
|
52
52
|
T,
|
|
53
|
-
|
|
53
|
+
G
|
|
54
54
|
]);
|
|
55
|
-
let { data: K, loading:
|
|
55
|
+
let { data: K, loading: we, error: Te, refetch: Ee } = n({
|
|
56
56
|
variables: {
|
|
57
57
|
limit: xe,
|
|
58
58
|
offset: Se,
|
|
@@ -64,10 +64,10 @@ var A = () => {
|
|
|
64
64
|
notifyOnNetworkStatusChange: !0
|
|
65
65
|
}), q = K?.headshotmarketingAdCampaigns.total ?? 0;
|
|
66
66
|
y(() => {
|
|
67
|
-
|
|
68
|
-
}, [q,
|
|
67
|
+
Ce(q);
|
|
68
|
+
}, [q, Ce]);
|
|
69
69
|
let J = b(() => (K?.headshotmarketingAdCampaigns.items ?? []).map((e) => u(e)), [K?.headshotmarketingAdCampaigns.items]), Y = b(() => {
|
|
70
|
-
let e =
|
|
70
|
+
let e = g?.headshotmarketingAdMetrics, t = (g?.headshotmarketingAdCampaigns.items ?? []).map((e) => u(e)), n = t.filter((e) => e.metrics.roas > 0), r = n.length > 0 ? n.reduce((e, t) => e + t.metrics.roas, 0) / n.length : 0;
|
|
71
71
|
return {
|
|
72
72
|
active: e?.activeAdCampaigns ?? t.filter((e) => e.status === "active").length,
|
|
73
73
|
totalSpend: e?.totalSpent ?? t.reduce((e, t) => e + t.metrics.spend, 0),
|
|
@@ -75,48 +75,48 @@ var A = () => {
|
|
|
75
75
|
totalClicks: e?.totalClicks ?? 0,
|
|
76
76
|
avgRoas: r
|
|
77
77
|
};
|
|
78
|
-
}, [
|
|
78
|
+
}, [g?.headshotmarketingAdCampaigns.items, g?.headshotmarketingAdMetrics]);
|
|
79
79
|
y(() => {
|
|
80
|
-
|
|
80
|
+
V((e) => {
|
|
81
81
|
let t = new Set(J.map((e) => e.id)), n = new Set([...e].filter((e) => t.has(e)));
|
|
82
82
|
return n.size === e.size ? e : n;
|
|
83
83
|
});
|
|
84
84
|
}, [J]);
|
|
85
|
-
let
|
|
86
|
-
|
|
85
|
+
let De = J.length > 0 && J.every((e) => B.has(e.id)), Oe = (e) => {
|
|
86
|
+
V((t) => {
|
|
87
87
|
let n = new Set(t);
|
|
88
88
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
89
89
|
});
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
}, [
|
|
93
|
-
await Promise.all([
|
|
94
|
-
},
|
|
95
|
-
|
|
90
|
+
}, ke = () => {
|
|
91
|
+
V(De ? /* @__PURE__ */ new Set() : new Set(J.map((e) => e.id)));
|
|
92
|
+
}, [Ae] = e(), [X, { loading: je }] = r(), [Me, { loading: Z }] = t(), Q = async () => {
|
|
93
|
+
await Promise.all([Ee(), _()]);
|
|
94
|
+
}, Ne = async (e) => {
|
|
95
|
+
N(null), z(null);
|
|
96
96
|
try {
|
|
97
97
|
await X({ variables: {
|
|
98
98
|
id: e.id,
|
|
99
99
|
input: { status: e.status === "active" ? i.Paused : i.Active }
|
|
100
100
|
} }), await Q();
|
|
101
101
|
} catch (e) {
|
|
102
|
-
|
|
102
|
+
z(e instanceof Error ? e.message : "Failed to update campaign.");
|
|
103
103
|
}
|
|
104
104
|
}, $ = async (e) => {
|
|
105
|
-
|
|
105
|
+
z(null), U(!0);
|
|
106
106
|
try {
|
|
107
|
-
await Promise.all([...
|
|
107
|
+
await Promise.all([...B].map((t) => X({ variables: {
|
|
108
108
|
id: t,
|
|
109
109
|
input: { status: e }
|
|
110
|
-
} }))),
|
|
110
|
+
} }))), V(/* @__PURE__ */ new Set()), await Q();
|
|
111
111
|
} catch (e) {
|
|
112
|
-
|
|
112
|
+
z(e instanceof Error ? e.message : "Failed to update campaigns.");
|
|
113
113
|
} finally {
|
|
114
|
-
|
|
114
|
+
U(!1);
|
|
115
115
|
}
|
|
116
|
-
},
|
|
117
|
-
|
|
116
|
+
}, Pe = async (e) => {
|
|
117
|
+
N(null), z(null);
|
|
118
118
|
try {
|
|
119
|
-
await
|
|
119
|
+
await Ae({ variables: { input: {
|
|
120
120
|
name: `${e.name} (Copy)`,
|
|
121
121
|
platform: f(e.platform),
|
|
122
122
|
status: i.Draft,
|
|
@@ -127,49 +127,49 @@ var A = () => {
|
|
|
127
127
|
audienceId: e.audiences[0] ?? null
|
|
128
128
|
} } }), await Q();
|
|
129
129
|
} catch (e) {
|
|
130
|
-
|
|
130
|
+
z(e instanceof Error ? e.message : "Failed to duplicate campaign.");
|
|
131
131
|
}
|
|
132
|
-
},
|
|
133
|
-
if (!
|
|
134
|
-
if (!
|
|
135
|
-
|
|
132
|
+
}, Fe = async () => {
|
|
133
|
+
if (!P) return;
|
|
134
|
+
if (!P.name.trim()) {
|
|
135
|
+
z("Campaign name is required.");
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
let e = Number(
|
|
138
|
+
z(null);
|
|
139
|
+
let e = Number(P.totalBudget);
|
|
140
140
|
try {
|
|
141
141
|
await X({ variables: {
|
|
142
|
-
id:
|
|
142
|
+
id: P.id,
|
|
143
143
|
input: {
|
|
144
|
-
name:
|
|
145
|
-
status: d(
|
|
146
|
-
bidStrategy:
|
|
147
|
-
totalBudget:
|
|
148
|
-
startDate:
|
|
149
|
-
endDate:
|
|
144
|
+
name: P.name.trim(),
|
|
145
|
+
status: d(P.status),
|
|
146
|
+
bidStrategy: P.bidStrategy || null,
|
|
147
|
+
totalBudget: P.totalBudget && Number.isFinite(e) ? e : null,
|
|
148
|
+
startDate: P.startDate ? new Date(P.startDate).toISOString() : null,
|
|
149
|
+
endDate: P.endDate ? new Date(P.endDate).toISOString() : null
|
|
150
150
|
}
|
|
151
|
-
} }),
|
|
151
|
+
} }), F(null), await Q();
|
|
152
152
|
} catch (e) {
|
|
153
|
-
|
|
153
|
+
z(e instanceof Error ? e.message : "Failed to save campaign.");
|
|
154
154
|
}
|
|
155
|
-
},
|
|
156
|
-
if (
|
|
157
|
-
|
|
155
|
+
}, Ie = async () => {
|
|
156
|
+
if (I) {
|
|
157
|
+
z(null);
|
|
158
158
|
try {
|
|
159
|
-
await
|
|
159
|
+
await Me({ variables: { id: I.id } }), L(null), await Q();
|
|
160
160
|
} catch (e) {
|
|
161
|
-
|
|
161
|
+
z(e instanceof Error ? e.message : "Failed to delete campaign.");
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
},
|
|
165
|
-
|
|
164
|
+
}, Le = (e) => {
|
|
165
|
+
N(null), z(null), F({
|
|
166
166
|
id: e.id,
|
|
167
167
|
name: e.name,
|
|
168
168
|
status: e.status,
|
|
169
169
|
totalBudget: e.budget.total > 0 ? String(e.budget.total) : "",
|
|
170
170
|
bidStrategy: e.bidStrategy,
|
|
171
|
-
startDate:
|
|
172
|
-
endDate:
|
|
171
|
+
startDate: A(e.startDate),
|
|
172
|
+
endDate: A(e.endDate)
|
|
173
173
|
});
|
|
174
174
|
};
|
|
175
175
|
return /* @__PURE__ */ O(p, {
|
|
@@ -217,7 +217,7 @@ var A = () => {
|
|
|
217
217
|
searchValue: v,
|
|
218
218
|
onSearchChange: S,
|
|
219
219
|
searchPlaceholder: "Search campaigns...",
|
|
220
|
-
filters: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O(
|
|
220
|
+
filters: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O(k, {
|
|
221
221
|
"aria-label": "Status",
|
|
222
222
|
value: w,
|
|
223
223
|
onChange: (e) => he(e.target.value),
|
|
@@ -244,10 +244,10 @@ var A = () => {
|
|
|
244
244
|
children: "Draft"
|
|
245
245
|
})
|
|
246
246
|
]
|
|
247
|
-
}), /* @__PURE__ */ O(
|
|
247
|
+
}), /* @__PURE__ */ O(k, {
|
|
248
248
|
"aria-label": "Platform",
|
|
249
249
|
value: T,
|
|
250
|
-
onChange: (e) =>
|
|
250
|
+
onChange: (e) => j(e.target.value),
|
|
251
251
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
252
252
|
children: [
|
|
253
253
|
/* @__PURE__ */ D("option", {
|
|
@@ -281,17 +281,17 @@ var A = () => {
|
|
|
281
281
|
]
|
|
282
282
|
})] })
|
|
283
283
|
}),
|
|
284
|
-
|
|
284
|
+
R && /* @__PURE__ */ D("div", {
|
|
285
285
|
role: "alert",
|
|
286
286
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
287
|
-
children:
|
|
287
|
+
children: R
|
|
288
288
|
}),
|
|
289
289
|
/* @__PURE__ */ D(ne, {
|
|
290
|
-
loading:
|
|
291
|
-
error:
|
|
292
|
-
onRetry:
|
|
290
|
+
loading: we,
|
|
291
|
+
error: Te,
|
|
292
|
+
onRetry: Ee,
|
|
293
293
|
hasData: !!K,
|
|
294
|
-
children: J.length === 0 ? /* @__PURE__ */ D(
|
|
294
|
+
children: J.length === 0 ? /* @__PURE__ */ D(h, {
|
|
295
295
|
illustration: q === 0 ? "empty-generic" : "empty-search",
|
|
296
296
|
title: q === 0 ? "No ad campaigns yet" : "No campaigns match your filters",
|
|
297
297
|
description: q === 0 ? "Create your first ad campaign to start running paid traffic." : "Try a different search term, platform or status.",
|
|
@@ -301,28 +301,28 @@ var A = () => {
|
|
|
301
301
|
children: [/* @__PURE__ */ D(me, { className: "h-4 w-4" }), "Create Campaign"]
|
|
302
302
|
}) : void 0
|
|
303
303
|
}) : /* @__PURE__ */ O(E, { children: [
|
|
304
|
-
|
|
304
|
+
B.size > 0 && /* @__PURE__ */ O("div", {
|
|
305
305
|
className: "flex flex-wrap items-center gap-2 rounded-lg border border-border-seam bg-bg-surface px-4 py-2 text-sm",
|
|
306
306
|
children: [
|
|
307
307
|
/* @__PURE__ */ O("span", {
|
|
308
308
|
className: "font-medium text-text-primary",
|
|
309
|
-
children: [
|
|
309
|
+
children: [B.size, " selected"]
|
|
310
310
|
}),
|
|
311
311
|
/* @__PURE__ */ O("button", {
|
|
312
312
|
onClick: () => $(i.Paused),
|
|
313
|
-
disabled:
|
|
313
|
+
disabled: H,
|
|
314
314
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
315
315
|
children: [/* @__PURE__ */ D(de, { className: "h-3.5 w-3.5" }), "Pause"]
|
|
316
316
|
}),
|
|
317
317
|
/* @__PURE__ */ O("button", {
|
|
318
318
|
onClick: () => $(i.Active),
|
|
319
|
-
disabled:
|
|
319
|
+
disabled: H,
|
|
320
320
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
321
321
|
children: [/* @__PURE__ */ D(pe, { className: "h-3.5 w-3.5" }), "Activate"]
|
|
322
322
|
}),
|
|
323
323
|
/* @__PURE__ */ D("button", {
|
|
324
|
-
onClick: () =>
|
|
325
|
-
className: "
|
|
324
|
+
onClick: () => V(/* @__PURE__ */ new Set()),
|
|
325
|
+
className: "ms-auto text-text-secondary hover:text-text-primary",
|
|
326
326
|
children: "Clear"
|
|
327
327
|
})
|
|
328
328
|
]
|
|
@@ -333,7 +333,7 @@ var A = () => {
|
|
|
333
333
|
className: "w-full min-w-[960px] text-sm",
|
|
334
334
|
"aria-label": "Ad campaigns",
|
|
335
335
|
children: [/* @__PURE__ */ D("thead", {
|
|
336
|
-
className: "border-b border-border-seam bg-bg-sunken/60 text-
|
|
336
|
+
className: "border-b border-border-seam bg-bg-sunken/60 text-start text-xs font-medium text-text-secondary",
|
|
337
337
|
children: /* @__PURE__ */ O("tr", { children: [
|
|
338
338
|
/* @__PURE__ */ D("th", {
|
|
339
339
|
scope: "col",
|
|
@@ -341,8 +341,8 @@ var A = () => {
|
|
|
341
341
|
children: /* @__PURE__ */ D("input", {
|
|
342
342
|
type: "checkbox",
|
|
343
343
|
"aria-label": "Select all campaigns on this page",
|
|
344
|
-
checked:
|
|
345
|
-
onChange:
|
|
344
|
+
checked: De,
|
|
345
|
+
onChange: ke,
|
|
346
346
|
className: "h-4 w-4 rounded border-border-subtle"
|
|
347
347
|
})
|
|
348
348
|
}),
|
|
@@ -363,7 +363,7 @@ var A = () => {
|
|
|
363
363
|
}),
|
|
364
364
|
/* @__PURE__ */ D("th", {
|
|
365
365
|
scope: "col",
|
|
366
|
-
className: "px-3 py-3 text-
|
|
366
|
+
className: "px-3 py-3 text-end",
|
|
367
367
|
children: "Daily Budget"
|
|
368
368
|
}),
|
|
369
369
|
/* @__PURE__ */ D("th", {
|
|
@@ -373,22 +373,22 @@ var A = () => {
|
|
|
373
373
|
}),
|
|
374
374
|
/* @__PURE__ */ D("th", {
|
|
375
375
|
scope: "col",
|
|
376
|
-
className: "px-3 py-3 text-
|
|
376
|
+
className: "px-3 py-3 text-end",
|
|
377
377
|
children: "Impressions"
|
|
378
378
|
}),
|
|
379
379
|
/* @__PURE__ */ D("th", {
|
|
380
380
|
scope: "col",
|
|
381
|
-
className: "px-3 py-3 text-
|
|
381
|
+
className: "px-3 py-3 text-end",
|
|
382
382
|
children: "Clicks"
|
|
383
383
|
}),
|
|
384
384
|
/* @__PURE__ */ D("th", {
|
|
385
385
|
scope: "col",
|
|
386
|
-
className: "px-3 py-3 text-
|
|
386
|
+
className: "px-3 py-3 text-end",
|
|
387
387
|
children: "CTR"
|
|
388
388
|
}),
|
|
389
389
|
/* @__PURE__ */ D("th", {
|
|
390
390
|
scope: "col",
|
|
391
|
-
className: "px-3 py-3 text-
|
|
391
|
+
className: "px-3 py-3 text-end",
|
|
392
392
|
children: "ROAS"
|
|
393
393
|
}),
|
|
394
394
|
/* @__PURE__ */ D("th", {
|
|
@@ -402,49 +402,49 @@ var A = () => {
|
|
|
402
402
|
] })
|
|
403
403
|
}), /* @__PURE__ */ D("tbody", { children: J.map((e) => /* @__PURE__ */ D(be, {
|
|
404
404
|
campaign: e,
|
|
405
|
-
selected:
|
|
406
|
-
onToggleSelected: () =>
|
|
407
|
-
menuOpen:
|
|
408
|
-
onToggleMenu: () => M
|
|
409
|
-
onCloseMenu: () =>
|
|
405
|
+
selected: B.has(e.id),
|
|
406
|
+
onToggleSelected: () => Oe(e.id),
|
|
407
|
+
menuOpen: M === e.id,
|
|
408
|
+
onToggleMenu: () => N(M === e.id ? null : e.id),
|
|
409
|
+
onCloseMenu: () => N(null),
|
|
410
410
|
onManage: () => l("/ads/campaigns/" + e.id),
|
|
411
|
-
onEdit: () =>
|
|
412
|
-
onToggleStatus: () =>
|
|
413
|
-
onDuplicate: () =>
|
|
411
|
+
onEdit: () => Le(e),
|
|
412
|
+
onToggleStatus: () => Ne(e),
|
|
413
|
+
onDuplicate: () => Pe(e),
|
|
414
414
|
onDelete: () => {
|
|
415
|
-
|
|
415
|
+
N(null), L(e);
|
|
416
416
|
}
|
|
417
417
|
}, e.id)) })]
|
|
418
418
|
})
|
|
419
419
|
}),
|
|
420
420
|
/* @__PURE__ */ D(re, {
|
|
421
|
-
page:
|
|
422
|
-
pageSize:
|
|
423
|
-
total:
|
|
424
|
-
onPageChange:
|
|
425
|
-
onPageSizeChange:
|
|
426
|
-
disabled:
|
|
421
|
+
page: W.page,
|
|
422
|
+
pageSize: W.pageSize,
|
|
423
|
+
total: W.total,
|
|
424
|
+
onPageChange: W.setPage,
|
|
425
|
+
onPageSizeChange: W.setPageSize,
|
|
426
|
+
disabled: we,
|
|
427
427
|
hideWhenSinglePage: !0
|
|
428
428
|
})
|
|
429
429
|
] })
|
|
430
430
|
}),
|
|
431
431
|
/* @__PURE__ */ D(te, {
|
|
432
|
-
open:
|
|
433
|
-
onClose: () =>
|
|
432
|
+
open: P !== null,
|
|
433
|
+
onClose: () => F(null),
|
|
434
434
|
title: "Edit Campaign",
|
|
435
435
|
description: "Update campaign details",
|
|
436
436
|
size: "lg",
|
|
437
437
|
footer: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("button", {
|
|
438
|
-
onClick: () =>
|
|
438
|
+
onClick: () => F(null),
|
|
439
439
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
440
440
|
children: "Cancel"
|
|
441
441
|
}), /* @__PURE__ */ D("button", {
|
|
442
|
-
onClick:
|
|
443
|
-
disabled:
|
|
442
|
+
onClick: Fe,
|
|
443
|
+
disabled: je,
|
|
444
444
|
className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
|
|
445
|
-
children:
|
|
445
|
+
children: je ? "Saving..." : "Save Changes"
|
|
446
446
|
})] }),
|
|
447
|
-
children:
|
|
447
|
+
children: P && /* @__PURE__ */ O("div", {
|
|
448
448
|
className: "space-y-4",
|
|
449
449
|
children: [
|
|
450
450
|
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
|
|
@@ -452,9 +452,9 @@ var A = () => {
|
|
|
452
452
|
children: "Campaign Name"
|
|
453
453
|
}), /* @__PURE__ */ D("input", {
|
|
454
454
|
type: "text",
|
|
455
|
-
value:
|
|
456
|
-
onChange: (e) =>
|
|
457
|
-
...
|
|
455
|
+
value: P.name,
|
|
456
|
+
onChange: (e) => F({
|
|
457
|
+
...P,
|
|
458
458
|
name: e.target.value
|
|
459
459
|
}),
|
|
460
460
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
@@ -464,10 +464,10 @@ var A = () => {
|
|
|
464
464
|
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
|
|
465
465
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
466
466
|
children: "Status"
|
|
467
|
-
}), /* @__PURE__ */ O(
|
|
468
|
-
value:
|
|
469
|
-
onChange: (e) =>
|
|
470
|
-
...
|
|
467
|
+
}), /* @__PURE__ */ O(k, {
|
|
468
|
+
value: P.status,
|
|
469
|
+
onChange: (e) => F({
|
|
470
|
+
...P,
|
|
471
471
|
status: e.target.value
|
|
472
472
|
}),
|
|
473
473
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
@@ -494,9 +494,9 @@ var A = () => {
|
|
|
494
494
|
children: "Total Budget (USD)"
|
|
495
495
|
}), /* @__PURE__ */ D("input", {
|
|
496
496
|
type: "number",
|
|
497
|
-
value:
|
|
498
|
-
onChange: (e) =>
|
|
499
|
-
...
|
|
497
|
+
value: P.totalBudget,
|
|
498
|
+
onChange: (e) => F({
|
|
499
|
+
...P,
|
|
500
500
|
totalBudget: e.target.value
|
|
501
501
|
}),
|
|
502
502
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
@@ -507,9 +507,9 @@ var A = () => {
|
|
|
507
507
|
children: "Bid Strategy"
|
|
508
508
|
}), /* @__PURE__ */ D("input", {
|
|
509
509
|
type: "text",
|
|
510
|
-
value:
|
|
511
|
-
onChange: (e) =>
|
|
512
|
-
...
|
|
510
|
+
value: P.bidStrategy,
|
|
511
|
+
onChange: (e) => F({
|
|
512
|
+
...P,
|
|
513
513
|
bidStrategy: e.target.value
|
|
514
514
|
}),
|
|
515
515
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
@@ -521,9 +521,9 @@ var A = () => {
|
|
|
521
521
|
children: "Start Date"
|
|
522
522
|
}), /* @__PURE__ */ D("input", {
|
|
523
523
|
type: "date",
|
|
524
|
-
value:
|
|
525
|
-
onChange: (e) =>
|
|
526
|
-
...
|
|
524
|
+
value: P.startDate,
|
|
525
|
+
onChange: (e) => F({
|
|
526
|
+
...P,
|
|
527
527
|
startDate: e.target.value
|
|
528
528
|
}),
|
|
529
529
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
@@ -532,35 +532,35 @@ var A = () => {
|
|
|
532
532
|
children: "End Date"
|
|
533
533
|
}), /* @__PURE__ */ D("input", {
|
|
534
534
|
type: "date",
|
|
535
|
-
value:
|
|
536
|
-
onChange: (e) =>
|
|
537
|
-
...
|
|
535
|
+
value: P.endDate,
|
|
536
|
+
onChange: (e) => F({
|
|
537
|
+
...P,
|
|
538
538
|
endDate: e.target.value
|
|
539
539
|
}),
|
|
540
540
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
541
541
|
})] })]
|
|
542
542
|
}),
|
|
543
|
-
|
|
543
|
+
R && /* @__PURE__ */ D("p", {
|
|
544
544
|
className: "text-sm text-status-error-text",
|
|
545
|
-
children:
|
|
545
|
+
children: R
|
|
546
546
|
})
|
|
547
547
|
]
|
|
548
548
|
})
|
|
549
549
|
}),
|
|
550
550
|
/* @__PURE__ */ D(te, {
|
|
551
|
-
open:
|
|
552
|
-
onClose: () =>
|
|
551
|
+
open: I !== null,
|
|
552
|
+
onClose: () => L(null),
|
|
553
553
|
title: "Delete Campaign",
|
|
554
554
|
size: "sm",
|
|
555
555
|
footer: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("button", {
|
|
556
|
-
onClick: () =>
|
|
556
|
+
onClick: () => L(null),
|
|
557
557
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
558
558
|
children: "Cancel"
|
|
559
559
|
}), /* @__PURE__ */ D("button", {
|
|
560
|
-
onClick:
|
|
561
|
-
disabled:
|
|
560
|
+
onClick: Ie,
|
|
561
|
+
disabled: Z,
|
|
562
562
|
className: "rounded-md bg-status-error-text px-4 py-2 text-sm font-medium text-background hover:opacity-90 disabled:opacity-60",
|
|
563
|
-
children:
|
|
563
|
+
children: Z ? "Deleting..." : "Delete"
|
|
564
564
|
})] }),
|
|
565
565
|
children: /* @__PURE__ */ O("p", {
|
|
566
566
|
className: "text-sm text-text-secondary",
|
|
@@ -569,7 +569,7 @@ var A = () => {
|
|
|
569
569
|
" ",
|
|
570
570
|
/* @__PURE__ */ D("span", {
|
|
571
571
|
className: "font-semibold text-text-primary",
|
|
572
|
-
children:
|
|
572
|
+
children: I?.name
|
|
573
573
|
}),
|
|
574
574
|
"? This action cannot be undone."
|
|
575
575
|
]
|
|
@@ -579,7 +579,7 @@ var A = () => {
|
|
|
579
579
|
});
|
|
580
580
|
}, be = ({ campaign: e, selected: t, onToggleSelected: n, menuOpen: r, onToggleMenu: i, onCloseMenu: a, onManage: u, onEdit: d, onToggleStatus: f, onDuplicate: p, onDelete: m }) => {
|
|
581
581
|
T(`ad-campaign-${e.id}`, r, a);
|
|
582
|
-
let
|
|
582
|
+
let h = e.budget.total > 0 ? e.budget.spent / e.budget.total * 100 : 0;
|
|
583
583
|
return /* @__PURE__ */ O("tr", {
|
|
584
584
|
className: o("border-b border-border-subtle last:border-b-0 hover:bg-bg-sunken/40", t && "bg-bg-sunken/60"),
|
|
585
585
|
children: [
|
|
@@ -597,11 +597,11 @@ var A = () => {
|
|
|
597
597
|
className: "px-3 py-3",
|
|
598
598
|
children: [/* @__PURE__ */ D("button", {
|
|
599
599
|
onClick: u,
|
|
600
|
-
className: "block max-w-[260px] truncate rounded text-
|
|
600
|
+
className: "block max-w-[260px] truncate rounded text-start font-medium text-text-primary hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
601
601
|
children: e.name
|
|
602
602
|
}), /* @__PURE__ */ O("div", {
|
|
603
603
|
className: "mt-1 flex items-center gap-1.5 text-xs text-text-secondary",
|
|
604
|
-
children: [/* @__PURE__ */ D("span", { children: "Sync:" }), /* @__PURE__ */ D(
|
|
604
|
+
children: [/* @__PURE__ */ D("span", { children: "Sync:" }), /* @__PURE__ */ D(g, {
|
|
605
605
|
status: e.syncStatus,
|
|
606
606
|
className: "px-1.5 py-0 text-[10px]"
|
|
607
607
|
})]
|
|
@@ -616,10 +616,10 @@ var A = () => {
|
|
|
616
616
|
}),
|
|
617
617
|
/* @__PURE__ */ D("td", {
|
|
618
618
|
className: "px-3 py-3",
|
|
619
|
-
children: /* @__PURE__ */ D(
|
|
619
|
+
children: /* @__PURE__ */ D(g, { status: e.status })
|
|
620
620
|
}),
|
|
621
621
|
/* @__PURE__ */ D("td", {
|
|
622
|
-
className: "whitespace-nowrap px-3 py-3 text-
|
|
622
|
+
className: "whitespace-nowrap px-3 py-3 text-end tabular-nums text-text-primary",
|
|
623
623
|
children: e.dailyBudget > 0 ? s(e.dailyBudget) : "—"
|
|
624
624
|
}),
|
|
625
625
|
/* @__PURE__ */ D("td", {
|
|
@@ -635,28 +635,28 @@ var A = () => {
|
|
|
635
635
|
"aria-label": `Budget used for ${e.name}`,
|
|
636
636
|
"aria-valuemin": 0,
|
|
637
637
|
"aria-valuemax": 100,
|
|
638
|
-
"aria-valuenow": Math.round(Math.min(
|
|
638
|
+
"aria-valuenow": Math.round(Math.min(h, 100)),
|
|
639
639
|
children: /* @__PURE__ */ D("div", {
|
|
640
|
-
className: o("h-full rounded-full",
|
|
641
|
-
style: { width: `${Math.min(
|
|
640
|
+
className: o("h-full rounded-full", h > 90 ? "bg-status-error-text" : h > 70 ? "bg-status-warning-text" : "bg-status-success-text"),
|
|
641
|
+
style: { width: `${Math.min(h, 100)}%` }
|
|
642
642
|
})
|
|
643
643
|
})]
|
|
644
644
|
})
|
|
645
645
|
}),
|
|
646
646
|
/* @__PURE__ */ D("td", {
|
|
647
|
-
className: "px-3 py-3 text-
|
|
647
|
+
className: "px-3 py-3 text-end tabular-nums text-text-primary",
|
|
648
648
|
children: c(e.metrics.impressions)
|
|
649
649
|
}),
|
|
650
650
|
/* @__PURE__ */ D("td", {
|
|
651
|
-
className: "px-3 py-3 text-
|
|
651
|
+
className: "px-3 py-3 text-end tabular-nums text-text-primary",
|
|
652
652
|
children: c(e.metrics.clicks)
|
|
653
653
|
}),
|
|
654
654
|
/* @__PURE__ */ D("td", {
|
|
655
|
-
className: "px-3 py-3 text-
|
|
655
|
+
className: "px-3 py-3 text-end tabular-nums text-text-primary",
|
|
656
656
|
children: l(e.metrics.ctr, 2)
|
|
657
657
|
}),
|
|
658
658
|
/* @__PURE__ */ O("td", {
|
|
659
|
-
className: "px-3 py-3 text-
|
|
659
|
+
className: "px-3 py-3 text-end tabular-nums text-text-primary",
|
|
660
660
|
children: [e.metrics.roas.toFixed(1), "x"]
|
|
661
661
|
}),
|
|
662
662
|
/* @__PURE__ */ D("td", {
|
|
@@ -672,36 +672,36 @@ var A = () => {
|
|
|
672
672
|
children: /* @__PURE__ */ D(C, { className: "h-4 w-4" })
|
|
673
673
|
}), r && /* @__PURE__ */ O("div", {
|
|
674
674
|
role: "menu",
|
|
675
|
-
className: "absolute
|
|
675
|
+
className: "absolute end-0 top-8 z-20 w-44 rounded-md border border-border-seam bg-gloss-card py-1 shadow-lg",
|
|
676
676
|
children: [
|
|
677
677
|
/* @__PURE__ */ O("button", {
|
|
678
678
|
role: "menuitem",
|
|
679
679
|
onClick: u,
|
|
680
|
-
className: "flex w-full items-center gap-2 px-4 py-2 text-
|
|
680
|
+
className: "flex w-full items-center gap-2 px-4 py-2 text-start text-sm text-text-primary hover:bg-bg-sunken",
|
|
681
681
|
children: [/* @__PURE__ */ D(w, { className: "h-3.5 w-3.5" }), "Manage"]
|
|
682
682
|
}),
|
|
683
683
|
/* @__PURE__ */ O("button", {
|
|
684
684
|
role: "menuitem",
|
|
685
685
|
onClick: d,
|
|
686
|
-
className: "flex w-full items-center gap-2 px-4 py-2 text-
|
|
686
|
+
className: "flex w-full items-center gap-2 px-4 py-2 text-start text-sm text-text-primary hover:bg-bg-sunken",
|
|
687
687
|
children: [/* @__PURE__ */ D(fe, { className: "h-3.5 w-3.5" }), "Edit"]
|
|
688
688
|
}),
|
|
689
689
|
/* @__PURE__ */ D("button", {
|
|
690
690
|
role: "menuitem",
|
|
691
691
|
onClick: f,
|
|
692
|
-
className: "flex w-full items-center gap-2 px-4 py-2 text-
|
|
692
|
+
className: "flex w-full items-center gap-2 px-4 py-2 text-start text-sm text-text-primary hover:bg-bg-sunken",
|
|
693
693
|
children: e.status === "active" ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(de, { className: "h-3.5 w-3.5" }), "Pause"] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(pe, { className: "h-3.5 w-3.5" }), "Resume"] })
|
|
694
694
|
}),
|
|
695
695
|
/* @__PURE__ */ O("button", {
|
|
696
696
|
role: "menuitem",
|
|
697
697
|
onClick: p,
|
|
698
|
-
className: "flex w-full items-center gap-2 px-4 py-2 text-
|
|
698
|
+
className: "flex w-full items-center gap-2 px-4 py-2 text-start text-sm text-text-primary hover:bg-bg-sunken",
|
|
699
699
|
children: [/* @__PURE__ */ D(S, { className: "h-3.5 w-3.5" }), "Duplicate"]
|
|
700
700
|
}),
|
|
701
701
|
/* @__PURE__ */ O("button", {
|
|
702
702
|
role: "menuitem",
|
|
703
703
|
onClick: m,
|
|
704
|
-
className: "flex w-full items-center gap-2 px-4 py-2 text-
|
|
704
|
+
className: "flex w-full items-center gap-2 px-4 py-2 text-start text-sm text-status-error-text hover:bg-bg-sunken",
|
|
705
705
|
children: [/* @__PURE__ */ D(he, { className: "h-3.5 w-3.5" }), "Delete"]
|
|
706
706
|
})
|
|
707
707
|
]
|
|
@@ -711,6 +711,6 @@ var A = () => {
|
|
|
711
711
|
]
|
|
712
712
|
});
|
|
713
713
|
};
|
|
714
|
-
export {
|
|
714
|
+
export { j as AdCampaignsPage };
|
|
715
715
|
|
|
716
716
|
//# sourceMappingURL=AdCampaignsPage.js.map
|