@burdenoff/microfe-headshotmarketing 2026.1205.1 → 2026.1206.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-types.d.ts +3589 -380
- package/dist/generated/wspace-operations.d.ts +101 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +61782 -2332
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
- package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +3 -3
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
- package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
- package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +6 -6
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
- package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
- package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
- package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
- package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
- package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
- 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 +104 -103
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/index.d.ts +1 -0
- package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
- package/dist/headshotmarketing/utils/readableError.js +12 -0
- package/dist/headshotmarketing/utils/readableError.js.map +1 -0
- package/package.json +5 -3
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { useCreateHeadshotmarketingAdCreativeMutation as e, useDeleteHeadshotmarketingAdCreativeMutation as t, useHeadshotmarketingAdCreativesListQuery as n, useUpdateHeadshotmarketingAdCreativeMutation as r } from "../../../generated/wspace-operations.js";
|
|
2
2
|
import { HeadshotmarketingAdCreativeStatus as i, HeadshotmarketingAdCreativeType as a } from "../../../generated/wspace-types.js";
|
|
3
3
|
import { UploadAudienceSelect as ee } from "../../components/UploadAudienceSelect.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import { EmptyState as
|
|
7
|
-
import { StatusBadge as
|
|
8
|
-
import { FilterBar as
|
|
9
|
-
import { Modal as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { TrackedLinksPanel as se } from "../../components/TrackedLinksPanel.js";
|
|
4
|
+
import { cn as te, formatNumber as o, formatPercentage as s } from "../../utils/helpers.js";
|
|
5
|
+
import { PageLayout as c } from "../../components/PageLayout.js";
|
|
6
|
+
import { EmptyState as ne } from "../../components/EmptyState.js";
|
|
7
|
+
import { StatusBadge as re } from "../../components/StatusBadge.js";
|
|
8
|
+
import { FilterBar as ie } from "../../components/FilterBar.js";
|
|
9
|
+
import { Modal as l } from "../../components/Modal.js";
|
|
10
|
+
import { toAdCreativeModel as ae } from "../../utils/adsMapper.js";
|
|
11
|
+
import { QueryStateBoundary as oe } from "../../components/QueryStateBoundary.js";
|
|
12
|
+
import { Pagination as se } from "../../components/Pagination.js";
|
|
14
13
|
import "../../components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { TrackedLinksPanel as ce } from "../../components/TrackedLinksPanel.js";
|
|
15
|
+
import { useHeadshotmarketingBootstrap as le } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
16
|
+
import { usePagination as ue } from "../../hooks/usePagination.js";
|
|
17
|
+
import { AdCreativeTestsSection as de } from "./AdCreativeTestsSection.js";
|
|
18
|
+
import { readableError as u } from "../../utils/readableError.js";
|
|
18
19
|
import { useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
19
|
-
import { ExternalLink as
|
|
20
|
+
import { ExternalLink as fe, Eye as h, Image as g, Layers as pe, MoreHorizontal as _, Pencil as me, Plus as he, Smartphone as v, Trash2 as ge, Type as y, UploadCloud as _e, Video as ve } from "lucide-react";
|
|
20
21
|
import { useExclusiveMenu as b } from "@burdenoff/fe-libs/shared/hooks";
|
|
21
22
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
22
|
-
import { EmphasisPanel as
|
|
23
|
-
import { fileUploadVisibility as
|
|
23
|
+
import { EmphasisPanel as ye, PagePurpose as be, ThemedSelect as w } from "@burdenoff/fe-libs/ui";
|
|
24
|
+
import { fileUploadVisibility as xe, useSaveToFiles as Se } from "@burdenoff/fe-libs/storage";
|
|
24
25
|
// src/headshotmarketing/pages/ads/AdCreativesPage.tsx
|
|
25
|
-
var
|
|
26
|
+
var Ce = {
|
|
26
27
|
image: g,
|
|
27
|
-
video:
|
|
28
|
-
carousel:
|
|
28
|
+
video: ve,
|
|
29
|
+
carousel: pe,
|
|
29
30
|
text: y,
|
|
30
31
|
responsive: v
|
|
31
|
-
},
|
|
32
|
-
image: "bg-status-info-bg text-status-info-text",
|
|
32
|
+
}, we = {
|
|
33
|
+
image: "bg-status-info-bg-subtle text-status-info-text",
|
|
33
34
|
video: "bg-[var(--color-accent-soft)] text-action-primary-bg",
|
|
34
|
-
carousel: "bg-status-warning-bg text-status-warning-text",
|
|
35
|
+
carousel: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
35
36
|
text: "bg-bg-sunken text-text-secondary",
|
|
36
|
-
responsive: "bg-status-success-bg text-status-success-text"
|
|
37
|
-
},
|
|
37
|
+
responsive: "bg-status-success-bg-subtle text-status-success-text"
|
|
38
|
+
}, Te = {
|
|
38
39
|
image: a.Image,
|
|
39
40
|
video: a.Video,
|
|
40
41
|
carousel: a.Carousel,
|
|
@@ -47,12 +48,12 @@ var Se = {
|
|
|
47
48
|
rejected: i.Rejected
|
|
48
49
|
};
|
|
49
50
|
function E(e) {
|
|
50
|
-
return
|
|
51
|
+
return Te[e] ?? a.Image;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function Ee(e) {
|
|
53
54
|
return T[e] ?? i.PendingReview;
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function De(e) {
|
|
56
57
|
return e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "text";
|
|
57
58
|
}
|
|
58
59
|
var D = {
|
|
@@ -65,64 +66,64 @@ var D = {
|
|
|
65
66
|
status: "pending_review",
|
|
66
67
|
adCampaignId: ""
|
|
67
68
|
}, O = () => {
|
|
68
|
-
let { data: i, refetch: a } =
|
|
69
|
+
let { data: i, refetch: a } = le(), [h, pe] = m(""), [_, me] = m(""), [v, ge] = m("all"), [y, ve] = m("all"), [b, O] = m(null), [A, ke] = m(!1), [Ae, je] = m("PRIVATE"), j = p(!1), [M, N] = m(D), [P, F] = m(null), [I, L] = m(null), [R, z] = m(null), [B, Me] = m(null), [V, H] = m(null), [U, W] = m(null), G = p(null), K = ue({ initialPageSize: 12 }), { limit: Ne, offset: Pe, setPage: Fe, setTotal: Ie } = K;
|
|
69
70
|
d(() => {
|
|
70
|
-
let e = setTimeout(() =>
|
|
71
|
+
let e = setTimeout(() => me(h), 300);
|
|
71
72
|
return () => clearTimeout(e);
|
|
72
73
|
}, [h]), d(() => {
|
|
73
|
-
|
|
74
|
+
Fe(1);
|
|
74
75
|
}, [
|
|
75
76
|
_,
|
|
76
77
|
v,
|
|
77
78
|
y,
|
|
78
|
-
|
|
79
|
+
Fe
|
|
79
80
|
]);
|
|
80
|
-
let { data: q, loading:
|
|
81
|
+
let { data: q, loading: Le, error: Re, refetch: ze } = n({
|
|
81
82
|
variables: {
|
|
82
|
-
limit:
|
|
83
|
-
offset:
|
|
83
|
+
limit: Ne,
|
|
84
|
+
offset: Pe,
|
|
84
85
|
search: _ || null,
|
|
85
86
|
status: T[y] ?? null,
|
|
86
|
-
type:
|
|
87
|
+
type: Te[v] ?? null
|
|
87
88
|
},
|
|
88
89
|
errorPolicy: "all",
|
|
89
90
|
notifyOnNetworkStatusChange: !0
|
|
90
91
|
}), J = q?.headshotmarketingAdCreatives.total ?? 0;
|
|
91
92
|
d(() => {
|
|
92
|
-
|
|
93
|
-
}, [J,
|
|
94
|
-
let
|
|
95
|
-
let e = (i?.headshotmarketingAdCreatives.items ?? []).map((e) =>
|
|
93
|
+
Ie(J);
|
|
94
|
+
}, [J, Ie]);
|
|
95
|
+
let Be = f(() => (q?.headshotmarketingAdCreatives.items ?? []).map((e) => ae(e)), [q?.headshotmarketingAdCreatives.items]), Y = f(() => {
|
|
96
|
+
let e = (i?.headshotmarketingAdCreatives.items ?? []).map((e) => ae(e)), t = e.filter((e) => e.status === "active").length, n = e.reduce((e, t) => e + t.performance.impressions, 0), r = e.filter((e) => e.performance.impressions > 0), a = r.length > 0 ? r.reduce((e, t) => e + t.performance.ctr, 0) / r.length : 0;
|
|
96
97
|
return {
|
|
97
98
|
total: e.length,
|
|
98
99
|
active: t,
|
|
99
100
|
totalImpressions: n,
|
|
100
101
|
avgCtr: a
|
|
101
102
|
};
|
|
102
|
-
}, [i?.headshotmarketingAdCreatives.items]), X = f(() => i?.headshotmarketingAdCampaigns.items ?? [], [i?.headshotmarketingAdCampaigns.items]), { save:
|
|
103
|
-
await Promise.all([
|
|
103
|
+
}, [i?.headshotmarketingAdCreatives.items]), X = f(() => i?.headshotmarketingAdCampaigns.items ?? [], [i?.headshotmarketingAdCampaigns.items]), { save: Ve, isPending: He } = Se(), [Ue, { loading: We }] = e(), [Ge, { loading: Ke }] = r(), [qe, { loading: Je }] = t(), Z = async () => {
|
|
104
|
+
await Promise.all([ze(), a()]);
|
|
104
105
|
}, Q = () => {
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
},
|
|
106
|
+
ke(!1), N(D), F(null), I && URL.revokeObjectURL(I), L(null), G.current && (G.current.value = "");
|
|
107
|
+
}, Ye = () => {
|
|
108
|
+
je("PRIVATE"), W(null), N(D), F(null), L(null), ke(!0);
|
|
109
|
+
}, Xe = (e) => {
|
|
109
110
|
I && URL.revokeObjectURL(I), e ? (F(e), L(e.type.startsWith("image/") ? URL.createObjectURL(e) : null), N((t) => ({
|
|
110
111
|
...t,
|
|
111
112
|
name: t.name || e.name.replace(/\.[^.]+$/, ""),
|
|
112
|
-
type:
|
|
113
|
+
type: De(e.type)
|
|
113
114
|
}))) : (F(null), L(null));
|
|
114
|
-
},
|
|
115
|
+
}, Ze = async () => {
|
|
115
116
|
if (!j.current) {
|
|
116
117
|
if (!M.name.trim()) W("Creative name is required.");
|
|
117
118
|
else if (!M.adCampaignId) W("An ad campaign is required — select one, or create an ad campaign first.");
|
|
118
119
|
else {
|
|
119
120
|
W(null);
|
|
120
121
|
try {
|
|
121
|
-
let e =
|
|
122
|
+
let e = xe(Ae);
|
|
122
123
|
j.current = !0;
|
|
123
124
|
let t = [], n = {};
|
|
124
125
|
if (P) {
|
|
125
|
-
let t = P, r = await
|
|
126
|
+
let t = P, r = await Ve({
|
|
126
127
|
source: {
|
|
127
128
|
kind: "blob",
|
|
128
129
|
getBlob: async () => ({
|
|
@@ -138,7 +139,7 @@ var D = {
|
|
|
138
139
|
});
|
|
139
140
|
n.fileId = r.id, n.fileName = r.name;
|
|
140
141
|
}
|
|
141
|
-
await
|
|
142
|
+
await Ue({ variables: { input: {
|
|
142
143
|
adCampaignId: M.adCampaignId,
|
|
143
144
|
name: M.name.trim(),
|
|
144
145
|
type: E(M.type),
|
|
@@ -150,13 +151,13 @@ var D = {
|
|
|
150
151
|
metadata: Object.keys(n).length > 0 ? n : null
|
|
151
152
|
} } }), Q(), await Z();
|
|
152
153
|
} catch (e) {
|
|
153
|
-
W(e
|
|
154
|
+
W(u(e, "Failed to upload creative."));
|
|
154
155
|
} finally {
|
|
155
156
|
j.current = !1;
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
|
-
},
|
|
160
|
+
}, Qe = (e) => {
|
|
160
161
|
O(null), W(null), z({
|
|
161
162
|
id: e.id,
|
|
162
163
|
form: {
|
|
@@ -169,13 +170,13 @@ var D = {
|
|
|
169
170
|
status: e.status
|
|
170
171
|
}
|
|
171
172
|
});
|
|
172
|
-
},
|
|
173
|
+
}, $e = async () => {
|
|
173
174
|
if (R) {
|
|
174
175
|
if (!R.form.name.trim()) W("Creative name is required.");
|
|
175
176
|
else {
|
|
176
177
|
W(null);
|
|
177
178
|
try {
|
|
178
|
-
await
|
|
179
|
+
await Ge({ variables: {
|
|
179
180
|
id: R.id,
|
|
180
181
|
input: {
|
|
181
182
|
name: R.form.name.trim(),
|
|
@@ -184,35 +185,35 @@ var D = {
|
|
|
184
185
|
body: R.form.body || null,
|
|
185
186
|
callToAction: R.form.callToAction || null,
|
|
186
187
|
destinationUrl: R.form.destinationUrl || null,
|
|
187
|
-
status:
|
|
188
|
+
status: Ee(R.form.status)
|
|
188
189
|
}
|
|
189
190
|
} }), z(null), await Z();
|
|
190
191
|
} catch (e) {
|
|
191
|
-
W(e
|
|
192
|
+
W(u(e, "Failed to save creative."));
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
|
-
},
|
|
196
|
+
}, et = async () => {
|
|
196
197
|
if (V) {
|
|
197
198
|
W(null);
|
|
198
199
|
try {
|
|
199
|
-
await
|
|
200
|
+
await qe({ variables: { id: V.id } }), H(null), await Z();
|
|
200
201
|
} catch (e) {
|
|
201
|
-
W(e
|
|
202
|
+
W(u(e, "Failed to delete creative."));
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
}, $ =
|
|
205
|
-
return /* @__PURE__ */ C(
|
|
205
|
+
}, $ = He || We;
|
|
206
|
+
return /* @__PURE__ */ C(c, {
|
|
206
207
|
title: "Ad Creatives",
|
|
207
208
|
description: "Manage your advertising creative assets",
|
|
208
209
|
actions: /* @__PURE__ */ C("button", {
|
|
209
|
-
onClick:
|
|
210
|
+
onClick: Ye,
|
|
210
211
|
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",
|
|
211
|
-
children: [/* @__PURE__ */ S(
|
|
212
|
+
children: [/* @__PURE__ */ S(he, { className: "h-4 w-4" }), "Upload Creative"]
|
|
212
213
|
}),
|
|
213
214
|
children: [
|
|
214
|
-
/* @__PURE__ */ S(
|
|
215
|
-
/* @__PURE__ */ S(
|
|
215
|
+
/* @__PURE__ */ S(be, { children: "Your library of ad creatives — images, videos, carousels and copy. Keep every asset and its real performance (impressions, CTR) in one place so you can quickly see what's resonating and reuse your best creative across campaigns." }),
|
|
216
|
+
/* @__PURE__ */ S(ye, { children: /* @__PURE__ */ C("div", {
|
|
216
217
|
className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
|
|
217
218
|
children: [
|
|
218
219
|
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
@@ -220,42 +221,42 @@ var D = {
|
|
|
220
221
|
children: "Total Creatives"
|
|
221
222
|
}), /* @__PURE__ */ S("p", {
|
|
222
223
|
className: "text-2xl font-semibold text-text-primary",
|
|
223
|
-
children:
|
|
224
|
+
children: o(Y.total)
|
|
224
225
|
})] }),
|
|
225
226
|
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
226
227
|
className: "text-xs text-text-secondary",
|
|
227
228
|
children: "Active"
|
|
228
229
|
}), /* @__PURE__ */ S("p", {
|
|
229
230
|
className: "text-2xl font-semibold text-text-primary",
|
|
230
|
-
children:
|
|
231
|
+
children: o(Y.active)
|
|
231
232
|
})] }),
|
|
232
233
|
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
233
234
|
className: "text-xs text-text-secondary",
|
|
234
235
|
children: "Impressions"
|
|
235
236
|
}), /* @__PURE__ */ S("p", {
|
|
236
237
|
className: "text-2xl font-semibold text-text-primary",
|
|
237
|
-
children:
|
|
238
|
+
children: o(Y.totalImpressions)
|
|
238
239
|
})] }),
|
|
239
240
|
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
240
241
|
className: "text-xs text-text-secondary",
|
|
241
242
|
children: "Avg CTR"
|
|
242
243
|
}), /* @__PURE__ */ S("p", {
|
|
243
244
|
className: "text-2xl font-semibold text-text-primary",
|
|
244
|
-
children:
|
|
245
|
+
children: s(Y.avgCtr)
|
|
245
246
|
})] })
|
|
246
247
|
]
|
|
247
248
|
}) }),
|
|
248
|
-
/* @__PURE__ */ S(
|
|
249
|
+
/* @__PURE__ */ S(de, {
|
|
249
250
|
adCampaigns: X,
|
|
250
251
|
onCreativesChanged: Z
|
|
251
252
|
}),
|
|
252
|
-
/* @__PURE__ */ S(
|
|
253
|
+
/* @__PURE__ */ S(ie, {
|
|
253
254
|
searchValue: h,
|
|
254
|
-
onSearchChange:
|
|
255
|
+
onSearchChange: pe,
|
|
255
256
|
searchPlaceholder: "Search creatives...",
|
|
256
257
|
filters: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C(w, {
|
|
257
258
|
value: v,
|
|
258
|
-
onChange: (e) =>
|
|
259
|
+
onChange: (e) => ge(e.target.value),
|
|
259
260
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
260
261
|
children: [
|
|
261
262
|
/* @__PURE__ */ S("option", {
|
|
@@ -285,7 +286,7 @@ var D = {
|
|
|
285
286
|
]
|
|
286
287
|
}), /* @__PURE__ */ C(w, {
|
|
287
288
|
value: y,
|
|
288
|
-
onChange: (e) =>
|
|
289
|
+
onChange: (e) => ve(e.target.value),
|
|
289
290
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
290
291
|
children: [
|
|
291
292
|
/* @__PURE__ */ S("option", {
|
|
@@ -311,39 +312,39 @@ var D = {
|
|
|
311
312
|
]
|
|
312
313
|
})] })
|
|
313
314
|
}),
|
|
314
|
-
U && !
|
|
315
|
+
U && !A && !R && /* @__PURE__ */ S("div", {
|
|
315
316
|
role: "alert",
|
|
316
317
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
317
318
|
children: U
|
|
318
319
|
}),
|
|
319
|
-
/* @__PURE__ */ S(
|
|
320
|
-
loading:
|
|
321
|
-
error:
|
|
322
|
-
onRetry:
|
|
320
|
+
/* @__PURE__ */ S(oe, {
|
|
321
|
+
loading: Le,
|
|
322
|
+
error: Re,
|
|
323
|
+
onRetry: ze,
|
|
323
324
|
hasData: !!q,
|
|
324
|
-
children:
|
|
325
|
+
children: Be.length === 0 ? /* @__PURE__ */ S(ne, {
|
|
325
326
|
illustration: J === 0 ? "empty-files" : "empty-search",
|
|
326
327
|
title: J === 0 ? "No creatives yet" : "No creatives match your filters",
|
|
327
328
|
description: J === 0 ? "Upload images, videos or copy to build your ad creative library." : "Try a different search term, type or status.",
|
|
328
329
|
action: J === 0 ? /* @__PURE__ */ C("button", {
|
|
329
|
-
onClick:
|
|
330
|
+
onClick: Ye,
|
|
330
331
|
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",
|
|
331
|
-
children: [/* @__PURE__ */ S(
|
|
332
|
+
children: [/* @__PURE__ */ S(he, { className: "h-4 w-4" }), "Upload Creative"]
|
|
332
333
|
}) : void 0
|
|
333
334
|
}) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
334
335
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
|
|
335
|
-
children:
|
|
336
|
+
children: Be.map((e) => /* @__PURE__ */ S(Oe, {
|
|
336
337
|
creative: e,
|
|
337
338
|
menuOpen: b === e.id,
|
|
338
339
|
onToggleMenu: () => O(b === e.id ? null : e.id),
|
|
339
340
|
onCloseMenu: () => O(null),
|
|
340
|
-
onPreview: () =>
|
|
341
|
-
onEdit: () =>
|
|
341
|
+
onPreview: () => Me(e),
|
|
342
|
+
onEdit: () => Qe(e),
|
|
342
343
|
onDelete: () => {
|
|
343
344
|
O(null), H(e);
|
|
344
345
|
}
|
|
345
346
|
}, e.id))
|
|
346
|
-
}), /* @__PURE__ */ S(
|
|
347
|
+
}), /* @__PURE__ */ S(se, {
|
|
347
348
|
page: K.page,
|
|
348
349
|
pageSize: K.pageSize,
|
|
349
350
|
total: K.total,
|
|
@@ -354,12 +355,12 @@ var D = {
|
|
|
354
355
|
24,
|
|
355
356
|
48
|
|
356
357
|
],
|
|
357
|
-
disabled:
|
|
358
|
+
disabled: Le,
|
|
358
359
|
hideWhenSinglePage: !0
|
|
359
360
|
})] })
|
|
360
361
|
}),
|
|
361
|
-
/* @__PURE__ */ S(
|
|
362
|
-
open:
|
|
362
|
+
/* @__PURE__ */ S(l, {
|
|
363
|
+
open: A,
|
|
363
364
|
onClose: Q,
|
|
364
365
|
title: "Upload Creative",
|
|
365
366
|
description: "Add a new creative asset to your library",
|
|
@@ -369,7 +370,7 @@ var D = {
|
|
|
369
370
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
370
371
|
children: "Cancel"
|
|
371
372
|
}), /* @__PURE__ */ S("button", {
|
|
372
|
-
onClick:
|
|
373
|
+
onClick: Ze,
|
|
373
374
|
disabled: $,
|
|
374
375
|
className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
|
|
375
376
|
children: $ ? "Uploading..." : "Upload Creative"
|
|
@@ -378,8 +379,8 @@ var D = {
|
|
|
378
379
|
className: "space-y-4",
|
|
379
380
|
children: [
|
|
380
381
|
/* @__PURE__ */ S(ee, {
|
|
381
|
-
value:
|
|
382
|
-
onChange:
|
|
382
|
+
value: Ae,
|
|
383
|
+
onChange: je,
|
|
383
384
|
disabled: $
|
|
384
385
|
}),
|
|
385
386
|
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("input", {
|
|
@@ -388,7 +389,7 @@ var D = {
|
|
|
388
389
|
disabled: $,
|
|
389
390
|
accept: "image/*,video/*",
|
|
390
391
|
className: "sr-only",
|
|
391
|
-
onChange: (e) =>
|
|
392
|
+
onChange: (e) => Xe(e.target.files?.[0] ?? null)
|
|
392
393
|
}), /* @__PURE__ */ C("button", {
|
|
393
394
|
type: "button",
|
|
394
395
|
onClick: () => G.current?.click(),
|
|
@@ -399,7 +400,7 @@ var D = {
|
|
|
399
400
|
src: I,
|
|
400
401
|
alt: "Selected creative preview",
|
|
401
402
|
className: "max-h-40 rounded-md object-contain"
|
|
402
|
-
}) : /* @__PURE__ */ S(
|
|
403
|
+
}) : /* @__PURE__ */ S(_e, { className: "h-8 w-8 text-text-secondary" }),
|
|
403
404
|
/* @__PURE__ */ S("span", {
|
|
404
405
|
className: "text-sm font-medium text-text-primary",
|
|
405
406
|
children: P ? P.name : "Click to select a file"
|
|
@@ -530,7 +531,7 @@ var D = {
|
|
|
530
531
|
]
|
|
531
532
|
})
|
|
532
533
|
}),
|
|
533
|
-
/* @__PURE__ */ S(
|
|
534
|
+
/* @__PURE__ */ S(l, {
|
|
534
535
|
open: R !== null,
|
|
535
536
|
onClose: () => z(null),
|
|
536
537
|
title: "Edit Creative",
|
|
@@ -540,10 +541,10 @@ var D = {
|
|
|
540
541
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
541
542
|
children: "Cancel"
|
|
542
543
|
}), /* @__PURE__ */ S("button", {
|
|
543
|
-
onClick:
|
|
544
|
-
disabled:
|
|
544
|
+
onClick: $e,
|
|
545
|
+
disabled: Ke,
|
|
545
546
|
className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
|
|
546
|
-
children:
|
|
547
|
+
children: Ke ? "Saving..." : "Save Changes"
|
|
547
548
|
})] }),
|
|
548
549
|
children: R && /* @__PURE__ */ C("div", {
|
|
549
550
|
className: "space-y-4",
|
|
@@ -666,9 +667,9 @@ var D = {
|
|
|
666
667
|
]
|
|
667
668
|
})
|
|
668
669
|
}),
|
|
669
|
-
/* @__PURE__ */ S(
|
|
670
|
+
/* @__PURE__ */ S(l, {
|
|
670
671
|
open: B !== null,
|
|
671
|
-
onClose: () =>
|
|
672
|
+
onClose: () => Me(null),
|
|
672
673
|
title: B?.name ?? "Creative Preview",
|
|
673
674
|
description: B?.headline,
|
|
674
675
|
size: "lg",
|
|
@@ -688,7 +689,7 @@ var D = {
|
|
|
688
689
|
}) : /* @__PURE__ */ C("div", {
|
|
689
690
|
className: "flex flex-col items-center gap-2 text-text-secondary",
|
|
690
691
|
children: [(() => {
|
|
691
|
-
let e =
|
|
692
|
+
let e = Ce[B.type] ?? g;
|
|
692
693
|
return /* @__PURE__ */ S(e, { className: "h-12 w-12" });
|
|
693
694
|
})(), /* @__PURE__ */ S("span", {
|
|
694
695
|
className: "text-xs",
|
|
@@ -700,10 +701,10 @@ var D = {
|
|
|
700
701
|
className: "flex flex-wrap items-center gap-2",
|
|
701
702
|
children: [
|
|
702
703
|
/* @__PURE__ */ S("span", {
|
|
703
|
-
className:
|
|
704
|
+
className: te("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", we[B.type]),
|
|
704
705
|
children: B.type
|
|
705
706
|
}),
|
|
706
|
-
/* @__PURE__ */ S(
|
|
707
|
+
/* @__PURE__ */ S(re, { status: B.status }),
|
|
707
708
|
B.callToAction && /* @__PURE__ */ C("span", {
|
|
708
709
|
className: "text-xs text-text-secondary",
|
|
709
710
|
children: ["CTA: ", B.callToAction]
|
|
@@ -719,9 +720,9 @@ var D = {
|
|
|
719
720
|
target: "_blank",
|
|
720
721
|
rel: "noreferrer",
|
|
721
722
|
className: "inline-flex items-center gap-1.5 text-sm text-action-primary-bg hover:underline",
|
|
722
|
-
children: [/* @__PURE__ */ S(
|
|
723
|
+
children: [/* @__PURE__ */ S(fe, { className: "h-3.5 w-3.5" }), B.landingPageUrl]
|
|
723
724
|
}),
|
|
724
|
-
/* @__PURE__ */ S(
|
|
725
|
+
/* @__PURE__ */ S(ce, {
|
|
725
726
|
sourceType: "AD_CREATIVE",
|
|
726
727
|
sourceId: B.id,
|
|
727
728
|
allowCreate: !0,
|
|
@@ -735,26 +736,26 @@ var D = {
|
|
|
735
736
|
children: [
|
|
736
737
|
/* @__PURE__ */ S(k, {
|
|
737
738
|
label: "Impressions",
|
|
738
|
-
value:
|
|
739
|
+
value: o(B.performance.impressions)
|
|
739
740
|
}),
|
|
740
741
|
/* @__PURE__ */ S(k, {
|
|
741
742
|
label: "Clicks",
|
|
742
|
-
value:
|
|
743
|
+
value: o(B.performance.clicks)
|
|
743
744
|
}),
|
|
744
745
|
/* @__PURE__ */ S(k, {
|
|
745
746
|
label: "CTR",
|
|
746
|
-
value:
|
|
747
|
+
value: s(B.performance.ctr)
|
|
747
748
|
}),
|
|
748
749
|
/* @__PURE__ */ S(k, {
|
|
749
750
|
label: "Conversions",
|
|
750
|
-
value:
|
|
751
|
+
value: o(B.performance.conversions)
|
|
751
752
|
})
|
|
752
753
|
]
|
|
753
754
|
})
|
|
754
755
|
]
|
|
755
756
|
})
|
|
756
757
|
}),
|
|
757
|
-
/* @__PURE__ */ S(
|
|
758
|
+
/* @__PURE__ */ S(l, {
|
|
758
759
|
open: V !== null,
|
|
759
760
|
onClose: () => H(null),
|
|
760
761
|
title: "Delete Creative",
|
|
@@ -764,10 +765,10 @@ var D = {
|
|
|
764
765
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
765
766
|
children: "Cancel"
|
|
766
767
|
}), /* @__PURE__ */ S("button", {
|
|
767
|
-
onClick:
|
|
768
|
-
disabled:
|
|
768
|
+
onClick: et,
|
|
769
|
+
disabled: Je,
|
|
769
770
|
className: "rounded-md bg-status-error-text px-4 py-2 text-sm font-medium text-background hover:opacity-90 disabled:opacity-60",
|
|
770
|
-
children:
|
|
771
|
+
children: Je ? "Deleting..." : "Delete"
|
|
771
772
|
})] }),
|
|
772
773
|
children: /* @__PURE__ */ C("p", {
|
|
773
774
|
className: "text-sm text-text-secondary",
|
|
@@ -793,9 +794,9 @@ var D = {
|
|
|
793
794
|
className: "text-[10px] text-text-secondary",
|
|
794
795
|
children: e
|
|
795
796
|
})]
|
|
796
|
-
}),
|
|
797
|
+
}), Oe = ({ creative: e, menuOpen: t, onToggleMenu: n, onCloseMenu: r, onPreview: i, onEdit: a, onDelete: ee }) => {
|
|
797
798
|
b(`ad-creative-${e.id}`, t, r);
|
|
798
|
-
let
|
|
799
|
+
let c = Ce[e.type] || g;
|
|
799
800
|
return /* @__PURE__ */ C("div", {
|
|
800
801
|
className: "overflow-hidden rounded-lg border border-border-seam bg-gloss-card shadow-pop transition-colors hover:border-foreground/30",
|
|
801
802
|
children: [/* @__PURE__ */ C("button", {
|
|
@@ -807,9 +808,9 @@ var D = {
|
|
|
807
808
|
src: e.mediaUrl,
|
|
808
809
|
alt: e.name,
|
|
809
810
|
className: "h-full w-full object-cover"
|
|
810
|
-
}) : /* @__PURE__ */ S(
|
|
811
|
+
}) : /* @__PURE__ */ S(c, { className: "h-12 w-12 text-text-secondary/40" }), /* @__PURE__ */ S("div", {
|
|
811
812
|
className: "absolute end-2 top-2",
|
|
812
|
-
children: /* @__PURE__ */ S(
|
|
813
|
+
children: /* @__PURE__ */ S(re, { status: e.status })
|
|
813
814
|
})]
|
|
814
815
|
}), /* @__PURE__ */ C("div", {
|
|
815
816
|
className: "space-y-3 p-4",
|
|
@@ -831,7 +832,7 @@ var D = {
|
|
|
831
832
|
/* @__PURE__ */ C("div", {
|
|
832
833
|
className: "flex flex-wrap items-center gap-2",
|
|
833
834
|
children: [/* @__PURE__ */ S("span", {
|
|
834
|
-
className:
|
|
835
|
+
className: te("rounded-full px-2 py-0.5 text-xs font-medium capitalize", we[e.type]),
|
|
835
836
|
children: e.type
|
|
836
837
|
}), e.callToAction && /* @__PURE__ */ S("span", {
|
|
837
838
|
className: "rounded-md border border-border-subtle px-2 py-0.5 text-xs font-medium text-text-primary",
|
|
@@ -845,7 +846,7 @@ var D = {
|
|
|
845
846
|
className: "rounded-md bg-bg-sunken/50 py-1.5",
|
|
846
847
|
children: [/* @__PURE__ */ S("p", {
|
|
847
848
|
className: "text-xs font-bold text-text-primary",
|
|
848
|
-
children:
|
|
849
|
+
children: o(e.performance.impressions)
|
|
849
850
|
}), /* @__PURE__ */ S("p", {
|
|
850
851
|
className: "text-[10px] text-text-secondary",
|
|
851
852
|
children: "Impressions"
|
|
@@ -855,7 +856,7 @@ var D = {
|
|
|
855
856
|
className: "rounded-md bg-bg-sunken/50 py-1.5",
|
|
856
857
|
children: [/* @__PURE__ */ S("p", {
|
|
857
858
|
className: "text-xs font-bold text-text-primary",
|
|
858
|
-
children:
|
|
859
|
+
children: o(e.performance.clicks)
|
|
859
860
|
}), /* @__PURE__ */ S("p", {
|
|
860
861
|
className: "text-[10px] text-text-secondary",
|
|
861
862
|
children: "Clicks"
|
|
@@ -865,7 +866,7 @@ var D = {
|
|
|
865
866
|
className: "rounded-md bg-bg-sunken/50 py-1.5",
|
|
866
867
|
children: [/* @__PURE__ */ S("p", {
|
|
867
868
|
className: "text-xs font-bold text-text-primary",
|
|
868
|
-
children:
|
|
869
|
+
children: s(e.performance.ctr)
|
|
869
870
|
}), /* @__PURE__ */ S("p", {
|
|
870
871
|
className: "text-[10px] text-text-secondary",
|
|
871
872
|
children: "CTR"
|
|
@@ -875,7 +876,7 @@ var D = {
|
|
|
875
876
|
className: "rounded-md bg-bg-sunken/50 py-1.5",
|
|
876
877
|
children: [/* @__PURE__ */ S("p", {
|
|
877
878
|
className: "text-xs font-bold text-text-primary",
|
|
878
|
-
children:
|
|
879
|
+
children: o(e.performance.conversions)
|
|
879
880
|
}), /* @__PURE__ */ S("p", {
|
|
880
881
|
className: "text-[10px] text-text-secondary",
|
|
881
882
|
children: "Conversions"
|
|
@@ -905,12 +906,12 @@ var D = {
|
|
|
905
906
|
role: "menuitem",
|
|
906
907
|
onClick: a,
|
|
907
908
|
className: "flex w-full items-center gap-2 px-4 py-2 text-start text-sm text-text-primary hover:bg-bg-sunken",
|
|
908
|
-
children: [/* @__PURE__ */ S(
|
|
909
|
+
children: [/* @__PURE__ */ S(me, { className: "h-3.5 w-3.5" }), "Edit"]
|
|
909
910
|
}), /* @__PURE__ */ C("button", {
|
|
910
911
|
role: "menuitem",
|
|
911
912
|
onClick: ee,
|
|
912
913
|
className: "flex w-full items-center gap-2 px-4 py-2 text-start text-sm text-status-error-text hover:bg-bg-sunken",
|
|
913
|
-
children: [/* @__PURE__ */ S(
|
|
914
|
+
children: [/* @__PURE__ */ S(ge, { className: "h-3.5 w-3.5" }), "Delete"]
|
|
914
915
|
})]
|
|
915
916
|
})]
|
|
916
917
|
})]
|