@burdenoff/microfe-headshotmarketing 2026.626.2 → 2026.704.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/wspace-operations.js +970 -52
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +26 -10
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
- package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js +57 -0
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
- package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
- package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
- package/dist/headshotmarketing/components/Modal.js +6 -3
- package/dist/headshotmarketing/components/Modal.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +117 -0
- package/dist/headshotmarketing/components/Pagination.js.map +1 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
- package/dist/headshotmarketing/components/index.js +6 -0
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
- package/dist/headshotmarketing/hooks/index.js +4 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
- package/dist/headshotmarketing/hooks/usePagination.js +53 -0
- package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +291 -322
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +227 -210
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +303 -342
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/adsMapper.js +74 -51
- package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/analyticsMapper.js +11 -11
- package/dist/headshotmarketing/utils/analyticsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/helpers.js +11 -1
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +5 -4
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/package.json +1 -1
- package/dist/headshotmarketing/utils/reportMapper.js +0 -33
- package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
|
@@ -1,273 +1,242 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { cn as
|
|
11
|
-
import { toCampaignModel as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import { HeadshotmarketingBootstrapDataDocument as e, HeadshotmarketingCampaignsListDocument as t, useCreateHeadshotmarketingCampaignMutation as n, useDeleteHeadshotmarketingCampaignMutation as ee, useHeadshotmarketingCampaignByIdQuery as te, useHeadshotmarketingResourceActivityQuery as ne, useUpdateHeadshotmarketingCampaignMutation as r } from "../../../generated/wspace-operations.js";
|
|
2
|
+
import { useHeadshotMarketing as i } from "../../context/HeadshotMarketingContext.js";
|
|
3
|
+
import { Tooltip as re } from "../../../node_modules/recharts/es6/component/Tooltip.js";
|
|
4
|
+
import { ResponsiveContainer as ie } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
|
|
5
|
+
import { CartesianGrid as ae } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
|
|
6
|
+
import { Area as a } from "../../../node_modules/recharts/es6/cartesian/Area.js";
|
|
7
|
+
import { XAxis as oe } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
|
|
8
|
+
import { YAxis as se } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
9
|
+
import { AreaChart as ce } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
10
|
+
import { cn as o, formatCurrency as s, formatDate as le, formatNumber as c } from "../../utils/helpers.js";
|
|
11
|
+
import { toCampaignModel as l, toCampaignPerformanceSeries as u } from "../../utils/campaignMapper.js";
|
|
12
|
+
import { HeadshotmarketingCampaignStatus as d } from "../../../generated/wspace-types.js";
|
|
13
|
+
import { PageLayout as f } from "../../components/PageLayout.js";
|
|
14
|
+
import { StatCard as p } from "../../components/StatCard.js";
|
|
15
|
+
import { StatusBadge as ue } from "../../components/StatusBadge.js";
|
|
16
|
+
import { EmptyState as m } from "../../components/EmptyState.js";
|
|
17
|
+
import { ChartCard as de } from "../../components/ChartCard.js";
|
|
18
|
+
import { QueryStateBoundary as fe } from "../../components/QueryStateBoundary.js";
|
|
17
19
|
import "../../components/index.js";
|
|
18
|
-
import { useState as
|
|
19
|
-
import { Activity as
|
|
20
|
-
import { useParams as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import { EmphasisPanel as
|
|
20
|
+
import { useState as h } from "react";
|
|
21
|
+
import { Activity as pe, Archive as me, ArrowLeft as g, Calendar as he, Clock as ge, Copy as _e, DollarSign as _, Edit as v, FileText as y, Image as b, Pause as ve, Play as ye, Target as x, Trash2 as be, TrendingUp as S } from "lucide-react";
|
|
22
|
+
import { useParams as C } from "react-router-dom";
|
|
23
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
24
|
+
import { CTAOverflowMenu as E, EmphasisPanel as D, NextSteps as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
|
|
23
25
|
//#region src/headshotmarketing/pages/campaigns/CampaignDetailsPage.tsx
|
|
24
|
-
var
|
|
26
|
+
var A = [{ query: e }, t];
|
|
27
|
+
function j(e) {
|
|
28
|
+
return e.toLowerCase().split(/[_\s]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
29
|
+
}
|
|
30
|
+
var M = [
|
|
25
31
|
"var(--color-chart-1)",
|
|
26
32
|
"var(--color-chart-2)",
|
|
27
33
|
"var(--color-chart-3)",
|
|
28
34
|
"var(--color-chart-4)",
|
|
29
35
|
"var(--color-chart-5)",
|
|
30
36
|
"var(--color-chart-6)"
|
|
31
|
-
]
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
avatar: "DC"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: "Emma Davis",
|
|
54
|
-
role: "Creative Director",
|
|
55
|
-
avatar: "ED"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "Frank Lee",
|
|
59
|
-
role: "SEO Analyst",
|
|
60
|
-
avatar: "FL"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "Grace Kim",
|
|
64
|
-
role: "Social Media Manager",
|
|
65
|
-
avatar: "GK"
|
|
66
|
-
}
|
|
67
|
-
], k = [
|
|
68
|
-
{
|
|
69
|
-
id: 1,
|
|
70
|
-
action: "Campaign budget increased by $2,000",
|
|
71
|
-
user: "Alice Johnson",
|
|
72
|
-
time: "2 hours ago",
|
|
73
|
-
type: "budget"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: 2,
|
|
77
|
-
action: "New ad creative \"Spring Banner v3\" uploaded",
|
|
78
|
-
user: "Emma Davis",
|
|
79
|
-
time: "5 hours ago",
|
|
80
|
-
type: "asset"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 3,
|
|
84
|
-
action: "Targeting adjusted: added age group 35-44",
|
|
85
|
-
user: "Bob Smith",
|
|
86
|
-
time: "1 day ago",
|
|
87
|
-
type: "targeting"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
id: 4,
|
|
91
|
-
action: "Performance report generated and shared",
|
|
92
|
-
user: "Frank Lee",
|
|
93
|
-
time: "2 days ago",
|
|
94
|
-
type: "report"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: 5,
|
|
98
|
-
action: "Campaign launched on Instagram channel",
|
|
99
|
-
user: "Grace Kim",
|
|
100
|
-
time: "3 days ago",
|
|
101
|
-
type: "launch"
|
|
102
|
-
}
|
|
103
|
-
], A = [
|
|
104
|
-
{
|
|
105
|
-
name: "Campaign Brief.pdf",
|
|
106
|
-
size: "2.4 MB",
|
|
107
|
-
updated: "Feb 8, 2026"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: "Creative Guidelines.docx",
|
|
111
|
-
size: "1.1 MB",
|
|
112
|
-
updated: "Feb 6, 2026"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: "Audience Research.xlsx",
|
|
116
|
-
size: "890 KB",
|
|
117
|
-
updated: "Feb 3, 2026"
|
|
118
|
-
}
|
|
119
|
-
], j = () => {
|
|
120
|
-
let { navigate: j, basePath: M } = e(), { id: N } = he(), { data: P, loading: F, error: I } = oe({
|
|
121
|
-
skip: !N,
|
|
122
|
-
variables: N ? { id: N } : void 0
|
|
123
|
-
}), [L, { loading: R }] = ae(), [z, B] = f("overview"), [V, H] = f(!1), [U, W] = f(null), G = P?.headshotmarketingCampaign, K = G ? s(G) : null, ge = async () => {
|
|
124
|
-
if (!(!N || !K) && window.confirm(`Delete campaign "${K.name}"? This cannot be undone.`)) {
|
|
125
|
-
W(null);
|
|
37
|
+
];
|
|
38
|
+
function N(e) {
|
|
39
|
+
return e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase();
|
|
40
|
+
}
|
|
41
|
+
var P = () => {
|
|
42
|
+
let { navigate: e, basePath: t } = i(), { id: P } = C(), { data: xe, loading: Se, error: Ce, refetch: we } = te({
|
|
43
|
+
skip: !P,
|
|
44
|
+
variables: P ? { id: P } : void 0
|
|
45
|
+
}), [Te, { loading: Ee }] = ee(), [De, { loading: Oe }] = r(), [ke, { loading: Ae }] = n(), [F, I] = h("overview"), [L, R] = h(null), z = xe?.headshotmarketingCampaign, B = z ? l(z) : null, V = z?.status, H = V === d.Paused, je = V === d.Archived, U = Oe || Ae || Ee, { data: Me, loading: Ne, error: Pe } = ne({
|
|
46
|
+
skip: !P,
|
|
47
|
+
variables: { filter: {
|
|
48
|
+
resourceId: P,
|
|
49
|
+
limit: 12
|
|
50
|
+
} },
|
|
51
|
+
errorPolicy: "all",
|
|
52
|
+
fetchPolicy: "cache-and-network"
|
|
53
|
+
}), W = Me?.getActivities ?? [], G = async (e) => {
|
|
54
|
+
if (P) {
|
|
55
|
+
R(null);
|
|
126
56
|
try {
|
|
127
|
-
await
|
|
128
|
-
variables: {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
57
|
+
await De({
|
|
58
|
+
variables: {
|
|
59
|
+
id: P,
|
|
60
|
+
input: { status: e }
|
|
61
|
+
},
|
|
62
|
+
refetchQueries: A
|
|
63
|
+
});
|
|
64
|
+
} catch (e) {
|
|
65
|
+
R(e instanceof Error ? e.message : "Failed to update campaign.");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, Fe = async () => {
|
|
69
|
+
if (z) {
|
|
70
|
+
R(null);
|
|
71
|
+
try {
|
|
72
|
+
let n = (await ke({
|
|
73
|
+
variables: { input: {
|
|
74
|
+
name: `${z.name} (Copy)`,
|
|
75
|
+
description: z.description ?? null,
|
|
76
|
+
type: z.type,
|
|
77
|
+
status: d.Draft,
|
|
78
|
+
budget: z.budget ?? null,
|
|
79
|
+
startDate: z.startDate ?? null,
|
|
80
|
+
endDate: z.endDate ?? null,
|
|
81
|
+
tags: z.tags,
|
|
82
|
+
goals: z.goals ?? void 0
|
|
83
|
+
} },
|
|
84
|
+
refetchQueries: A,
|
|
85
|
+
awaitRefetchQueries: !0
|
|
86
|
+
})).data?.createHeadshotmarketingCampaign?.id;
|
|
87
|
+
n && e(t + "/campaigns/" + n);
|
|
88
|
+
} catch (e) {
|
|
89
|
+
R(e instanceof Error ? e.message : "Failed to duplicate campaign.");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}, Ie = async () => {
|
|
93
|
+
if (!(!P || !B) && window.confirm(`Delete campaign "${B.name}"? This cannot be undone.`)) {
|
|
94
|
+
R(null);
|
|
95
|
+
try {
|
|
96
|
+
await Te({
|
|
97
|
+
variables: { id: P },
|
|
98
|
+
refetchQueries: A,
|
|
136
99
|
awaitRefetchQueries: !0
|
|
137
|
-
}),
|
|
100
|
+
}), e(t + "/campaigns");
|
|
138
101
|
} catch (e) {
|
|
139
|
-
|
|
102
|
+
R(e instanceof Error ? e.message : "Failed to delete campaign.");
|
|
140
103
|
}
|
|
141
104
|
}
|
|
142
105
|
};
|
|
143
|
-
if (!
|
|
106
|
+
if (!B) return /* @__PURE__ */ w(f, {
|
|
144
107
|
title: "Campaign Details",
|
|
145
|
-
children: /* @__PURE__ */
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
108
|
+
children: /* @__PURE__ */ w(fe, {
|
|
109
|
+
loading: Se,
|
|
110
|
+
error: Ce,
|
|
111
|
+
onRetry: () => void we(),
|
|
112
|
+
hasData: !1,
|
|
113
|
+
children: /* @__PURE__ */ w(m, {
|
|
114
|
+
illustration: "empty-generic",
|
|
115
|
+
title: "Campaign not found",
|
|
116
|
+
description: "The campaign you're looking for doesn't exist or has been removed.",
|
|
117
|
+
action: /* @__PURE__ */ T("button", {
|
|
118
|
+
onClick: () => e(t + "/campaigns"),
|
|
119
|
+
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",
|
|
120
|
+
children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Back to Campaigns"]
|
|
121
|
+
})
|
|
153
122
|
})
|
|
154
123
|
})
|
|
155
124
|
});
|
|
156
|
-
let
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
title:
|
|
159
|
-
description:
|
|
160
|
-
actions: /* @__PURE__ */
|
|
161
|
-
className: "flex items-center gap-2",
|
|
125
|
+
let K = B.budget.total > 0 ? Math.round(B.budget.spent / B.budget.total * 100) : 0, q = new Date(B.timeline.startDate), J = new Date(B.timeline.endDate), Le = /* @__PURE__ */ new Date(), Y = Math.max(1, Math.ceil((J.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), X = Math.max(0, Math.ceil((Le.getTime() - q.getTime()) / (1e3 * 60 * 60 * 24))), Re = Math.max(0, Y - X), Z = Math.min(Math.round(X / Y * 100), 100), Q = B.team, $ = B.assets.filter((e) => e.match(/\.(pdf|docx?|xlsx?|pptx?|txt|csv|rtf|odt|ods)$/i)), ze = u(B);
|
|
126
|
+
return /* @__PURE__ */ T(f, {
|
|
127
|
+
title: B.name,
|
|
128
|
+
description: B.description,
|
|
129
|
+
actions: /* @__PURE__ */ T("div", {
|
|
130
|
+
className: "flex flex-wrap items-center gap-2",
|
|
162
131
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
onClick: () =>
|
|
132
|
+
/* @__PURE__ */ w(ue, { status: B.status }),
|
|
133
|
+
/* @__PURE__ */ T("button", {
|
|
134
|
+
onClick: () => e(t + "/campaigns"),
|
|
166
135
|
className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Back"]
|
|
168
137
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
onClick: () =>
|
|
138
|
+
/* @__PURE__ */ T("button", {
|
|
139
|
+
onClick: () => e(t + "/campaigns/" + B.id + "/edit"),
|
|
171
140
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Edit"]
|
|
173
142
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
143
|
+
/* @__PURE__ */ w(E, {
|
|
144
|
+
align: "end",
|
|
145
|
+
actions: [
|
|
146
|
+
{
|
|
147
|
+
label: H ? "Resume" : "Pause",
|
|
148
|
+
icon: w(H ? ye : ve, { className: "h-4 w-4" }),
|
|
149
|
+
disabled: U,
|
|
150
|
+
onSelect: () => void G(H ? d.Active : d.Paused)
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: "Duplicate",
|
|
154
|
+
icon: /* @__PURE__ */ w(_e, { className: "h-4 w-4" }),
|
|
155
|
+
disabled: U,
|
|
156
|
+
onSelect: () => void Fe()
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: "Archive",
|
|
160
|
+
icon: /* @__PURE__ */ w(me, { className: "h-4 w-4" }),
|
|
161
|
+
disabled: U || je,
|
|
162
|
+
onSelect: () => void G(d.Archived)
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
label: "Delete",
|
|
166
|
+
icon: /* @__PURE__ */ w(be, { className: "h-4 w-4" }),
|
|
167
|
+
intent: "destructive",
|
|
168
|
+
disabled: U,
|
|
169
|
+
onSelect: () => void Ie()
|
|
170
|
+
}
|
|
171
|
+
]
|
|
203
172
|
})
|
|
204
173
|
]
|
|
205
174
|
}),
|
|
206
175
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ w(k, { children: "Everything about this campaign in one workspace — track budget pacing and ROAS, review performance trends, audience targeting, creative assets and the team working on it. Use the tabs below to dig into each area." }),
|
|
177
|
+
/* @__PURE__ */ w(D, { children: /* @__PURE__ */ T("div", {
|
|
209
178
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5",
|
|
210
179
|
children: [
|
|
211
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ w(p, {
|
|
212
181
|
title: "Revenue",
|
|
213
|
-
value:
|
|
214
|
-
icon: /* @__PURE__ */
|
|
182
|
+
value: s(B.metrics.revenue),
|
|
183
|
+
icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" })
|
|
215
184
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ w(p, {
|
|
217
186
|
title: "Conversions",
|
|
218
|
-
value:
|
|
219
|
-
icon: /* @__PURE__ */
|
|
187
|
+
value: c(B.metrics.conversions),
|
|
188
|
+
icon: /* @__PURE__ */ w(x, { className: "h-5 w-5" })
|
|
220
189
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ w(p, {
|
|
222
191
|
title: "ROAS",
|
|
223
|
-
value: `${
|
|
224
|
-
icon: /* @__PURE__ */ S
|
|
192
|
+
value: `${B.metrics.roas.toFixed(1)}x`,
|
|
193
|
+
icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
|
|
225
194
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ w(p, {
|
|
227
196
|
title: "Budget Used",
|
|
228
|
-
value: `${
|
|
229
|
-
icon: /* @__PURE__ */
|
|
197
|
+
value: `${K}%`,
|
|
198
|
+
icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" }),
|
|
230
199
|
className: "relative"
|
|
231
200
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ w(p, {
|
|
233
202
|
title: "Days Remaining",
|
|
234
|
-
value: String(
|
|
235
|
-
icon: /* @__PURE__ */
|
|
203
|
+
value: String(Re),
|
|
204
|
+
icon: /* @__PURE__ */ w(he, { className: "h-5 w-5" })
|
|
236
205
|
})
|
|
237
206
|
]
|
|
238
207
|
}) }),
|
|
239
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ w(O, {
|
|
240
209
|
storageKey: "headshotmarketing-campaign-details",
|
|
241
210
|
steps: [
|
|
242
211
|
{
|
|
243
212
|
id: "analytics",
|
|
244
213
|
label: "Review performance",
|
|
245
214
|
description: "See revenue, cost and conversion trends over time.",
|
|
246
|
-
icon: /* @__PURE__ */ S
|
|
247
|
-
onClick: () =>
|
|
215
|
+
icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" }),
|
|
216
|
+
onClick: () => I("analytics")
|
|
248
217
|
},
|
|
249
218
|
{
|
|
250
219
|
id: "audience",
|
|
251
220
|
label: "Check audience targeting",
|
|
252
221
|
description: "Confirm demographics, interests and locations.",
|
|
253
|
-
icon: /* @__PURE__ */
|
|
254
|
-
onClick: () =>
|
|
222
|
+
icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
|
|
223
|
+
onClick: () => I("audience")
|
|
255
224
|
},
|
|
256
225
|
{
|
|
257
226
|
id: "edit",
|
|
258
227
|
label: "Adjust budget or schedule",
|
|
259
228
|
description: "Open the campaign editor to refine the setup.",
|
|
260
|
-
icon: /* @__PURE__ */
|
|
261
|
-
onClick: () =>
|
|
229
|
+
icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
|
|
230
|
+
onClick: () => e(t + "/campaigns/" + B.id + "/edit")
|
|
262
231
|
}
|
|
263
232
|
]
|
|
264
233
|
}),
|
|
265
|
-
|
|
234
|
+
L && /* @__PURE__ */ w("div", {
|
|
266
235
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
267
|
-
children:
|
|
236
|
+
children: L
|
|
268
237
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
className: "flex items-center gap-1 border-b border-border-subtle",
|
|
238
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("div", {
|
|
239
|
+
className: "flex flex-nowrap items-center gap-1 overflow-x-auto border-b border-border-subtle",
|
|
271
240
|
children: [
|
|
272
241
|
{
|
|
273
242
|
key: "overview",
|
|
@@ -289,167 +258,165 @@ var D = [
|
|
|
289
258
|
key: "team",
|
|
290
259
|
label: "Team"
|
|
291
260
|
}
|
|
292
|
-
].map((e) => /* @__PURE__ */
|
|
293
|
-
onClick: () =>
|
|
294
|
-
|
|
295
|
-
},
|
|
296
|
-
className: i("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", z === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
261
|
+
].map((e) => /* @__PURE__ */ w("button", {
|
|
262
|
+
onClick: () => I(e.key),
|
|
263
|
+
className: o("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", F === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
297
264
|
children: e.label
|
|
298
265
|
}, e.key))
|
|
299
|
-
}), /* @__PURE__ */
|
|
266
|
+
}), /* @__PURE__ */ T("div", {
|
|
300
267
|
className: "mt-6",
|
|
301
268
|
children: [
|
|
302
|
-
|
|
269
|
+
F === "overview" && /* @__PURE__ */ T("div", {
|
|
303
270
|
className: "space-y-6",
|
|
304
271
|
children: [
|
|
305
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ T("div", {
|
|
306
273
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ T("div", {
|
|
308
275
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
309
276
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ T("h4", {
|
|
311
278
|
className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ w(ge, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
|
|
313
280
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ T("div", {
|
|
315
282
|
className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
|
|
316
283
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ w("span", { children: q.toLocaleDateString() }),
|
|
285
|
+
/* @__PURE__ */ T("span", { children: [Z, "%"] }),
|
|
286
|
+
/* @__PURE__ */ w("span", { children: J.toLocaleDateString() })
|
|
320
287
|
]
|
|
321
288
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ w("div", {
|
|
323
290
|
className: "h-2.5 w-full rounded-full bg-bg-sunken",
|
|
324
|
-
children: /* @__PURE__ */
|
|
291
|
+
children: /* @__PURE__ */ w("div", {
|
|
325
292
|
className: "h-2.5 rounded-full bg-action-primary-bg transition-all",
|
|
326
|
-
style: { width: `${
|
|
293
|
+
style: { width: `${Z}%` }
|
|
327
294
|
})
|
|
328
295
|
})
|
|
329
296
|
]
|
|
330
|
-
}), /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ T("div", {
|
|
331
298
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
332
299
|
children: [
|
|
333
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ T("h4", {
|
|
334
301
|
className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
335
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ w(_, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
|
|
336
303
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ T("div", {
|
|
338
305
|
className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
|
|
339
306
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ T("span", { children: [s(B.budget.spent), " spent"] }),
|
|
308
|
+
/* @__PURE__ */ T("span", { children: [K, "%"] }),
|
|
309
|
+
/* @__PURE__ */ T("span", { children: [s(B.budget.total), " total"] })
|
|
343
310
|
]
|
|
344
311
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ w("div", {
|
|
346
313
|
className: "h-2.5 w-full rounded-full bg-bg-sunken",
|
|
347
|
-
children: /* @__PURE__ */
|
|
348
|
-
className:
|
|
349
|
-
style: { width: `${
|
|
314
|
+
children: /* @__PURE__ */ w("div", {
|
|
315
|
+
className: o("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
|
|
316
|
+
style: { width: `${K}%` }
|
|
350
317
|
})
|
|
351
318
|
})
|
|
352
319
|
]
|
|
353
320
|
})]
|
|
354
321
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ T("div", {
|
|
356
323
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
358
325
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
359
326
|
children: "Active Channels"
|
|
360
|
-
}), /* @__PURE__ */
|
|
327
|
+
}), /* @__PURE__ */ w("div", {
|
|
361
328
|
className: "flex flex-wrap gap-2",
|
|
362
|
-
children:
|
|
329
|
+
children: B.channels.map((e) => /* @__PURE__ */ w("span", {
|
|
363
330
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-3 py-1 text-xs font-medium text-text-primary",
|
|
364
331
|
children: e
|
|
365
332
|
}, e))
|
|
366
333
|
})]
|
|
367
334
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ T("div", {
|
|
369
336
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
370
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ T("h4", {
|
|
371
338
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
372
|
-
children: [/* @__PURE__ */
|
|
373
|
-
}), /* @__PURE__ */
|
|
374
|
-
className: "space-y-
|
|
375
|
-
children:
|
|
339
|
+
children: [/* @__PURE__ */ w(pe, { className: "h-4 w-4 text-text-secondary" }), "Recent Activity"]
|
|
340
|
+
}), Ne && W.length === 0 ? /* @__PURE__ */ w("div", {
|
|
341
|
+
className: "space-y-3 py-2",
|
|
342
|
+
children: [
|
|
343
|
+
0,
|
|
344
|
+
1,
|
|
345
|
+
2
|
|
346
|
+
].map((e) => /* @__PURE__ */ w("div", { className: "h-10 rounded-md bg-bg-sunken/50 animate-pulse" }, e))
|
|
347
|
+
}) : W.length > 0 ? /* @__PURE__ */ w("ul", {
|
|
348
|
+
className: "space-y-3",
|
|
349
|
+
children: W.map((e) => /* @__PURE__ */ T("li", {
|
|
376
350
|
className: "flex items-start gap-3",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
378
|
-
className: "
|
|
379
|
-
children: [/* @__PURE__ */
|
|
380
|
-
className: "
|
|
381
|
-
children: e.
|
|
382
|
-
}),
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
children: [/* @__PURE__ */ S("p", {
|
|
386
|
-
className: "text-sm text-text-primary",
|
|
387
|
-
children: e.action
|
|
388
|
-
}), /* @__PURE__ */ C("p", {
|
|
389
|
-
className: "text-xs text-text-secondary mt-0.5",
|
|
390
|
-
children: [
|
|
391
|
-
e.user,
|
|
392
|
-
" · ",
|
|
393
|
-
e.time
|
|
394
|
-
]
|
|
351
|
+
children: [/* @__PURE__ */ w("span", { className: "mt-1 h-2 w-2 flex-shrink-0 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ T("div", {
|
|
352
|
+
className: "min-w-0 flex-1",
|
|
353
|
+
children: [/* @__PURE__ */ w("p", {
|
|
354
|
+
className: "text-sm text-text-primary break-words",
|
|
355
|
+
children: e.description ?? j(e.action)
|
|
356
|
+
}), /* @__PURE__ */ w("p", {
|
|
357
|
+
className: "text-xs text-text-secondary",
|
|
358
|
+
children: le(e.timestamp, "relative")
|
|
395
359
|
})]
|
|
396
360
|
})]
|
|
397
361
|
}, e.id))
|
|
362
|
+
}) : /* @__PURE__ */ w("p", {
|
|
363
|
+
className: "text-sm text-text-secondary py-4 text-center",
|
|
364
|
+
children: Pe ? "Activity is unavailable right now." : "No recent activity yet."
|
|
398
365
|
})]
|
|
399
366
|
})
|
|
400
367
|
]
|
|
401
368
|
}),
|
|
402
|
-
|
|
369
|
+
F === "analytics" && /* @__PURE__ */ w(de, {
|
|
403
370
|
title: "Performance Over Time",
|
|
404
371
|
subtitle: "Revenue, cost, and conversions trend",
|
|
405
|
-
children: /* @__PURE__ */
|
|
372
|
+
children: /* @__PURE__ */ w(ie, {
|
|
406
373
|
width: "100%",
|
|
407
374
|
height: 350,
|
|
408
|
-
children: /* @__PURE__ */
|
|
409
|
-
data:
|
|
375
|
+
children: /* @__PURE__ */ T(ce, {
|
|
376
|
+
data: ze,
|
|
410
377
|
children: [
|
|
411
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ w(ae, {
|
|
412
379
|
strokeDasharray: "3 3",
|
|
413
380
|
className: "stroke-border"
|
|
414
381
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ w(oe, {
|
|
416
383
|
dataKey: "date",
|
|
417
384
|
tick: { fontSize: 11 },
|
|
418
385
|
className: "text-text-secondary",
|
|
419
386
|
tickFormatter: (e) => e.slice(5)
|
|
420
387
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ w(se, {
|
|
422
389
|
tick: { fontSize: 11 },
|
|
423
390
|
className: "text-text-secondary"
|
|
424
391
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ w(re, { contentStyle: {
|
|
426
393
|
backgroundColor: "var(--color-card)",
|
|
427
394
|
border: "1px solid var(--color-border)",
|
|
428
395
|
borderRadius: 8
|
|
429
396
|
} }),
|
|
430
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ w(a, {
|
|
431
398
|
type: "monotone",
|
|
432
399
|
dataKey: "revenue",
|
|
433
|
-
stroke:
|
|
434
|
-
fill:
|
|
400
|
+
stroke: M[0],
|
|
401
|
+
fill: M[0],
|
|
435
402
|
fillOpacity: .15,
|
|
436
403
|
strokeWidth: 2,
|
|
437
404
|
name: "Revenue"
|
|
438
405
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ w(a, {
|
|
440
407
|
type: "monotone",
|
|
441
408
|
dataKey: "cost",
|
|
442
|
-
stroke:
|
|
443
|
-
fill:
|
|
409
|
+
stroke: M[3],
|
|
410
|
+
fill: M[3],
|
|
444
411
|
fillOpacity: .1,
|
|
445
412
|
strokeWidth: 2,
|
|
446
413
|
name: "Cost"
|
|
447
414
|
}),
|
|
448
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ w(a, {
|
|
449
416
|
type: "monotone",
|
|
450
417
|
dataKey: "conversions",
|
|
451
|
-
stroke:
|
|
452
|
-
fill:
|
|
418
|
+
stroke: M[1],
|
|
419
|
+
fill: M[1],
|
|
453
420
|
fillOpacity: .1,
|
|
454
421
|
strokeWidth: 2,
|
|
455
422
|
name: "Conversions"
|
|
@@ -458,65 +425,65 @@ var D = [
|
|
|
458
425
|
})
|
|
459
426
|
})
|
|
460
427
|
}),
|
|
461
|
-
|
|
428
|
+
F === "audience" && /* @__PURE__ */ T("div", {
|
|
462
429
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
463
430
|
children: [
|
|
464
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ T("div", {
|
|
465
432
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
467
434
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
468
435
|
children: "Demographics"
|
|
469
|
-
}), /* @__PURE__ */
|
|
436
|
+
}), /* @__PURE__ */ T("div", {
|
|
470
437
|
className: "space-y-2",
|
|
471
|
-
children: [
|
|
438
|
+
children: [B.targeting.demographics.map((e) => /* @__PURE__ */ T("div", {
|
|
472
439
|
className: "flex items-center gap-2",
|
|
473
|
-
children: [/* @__PURE__ */
|
|
440
|
+
children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ w("span", {
|
|
474
441
|
className: "text-sm text-text-primary",
|
|
475
442
|
children: e
|
|
476
443
|
})]
|
|
477
|
-
}, e)), /* @__PURE__ */
|
|
444
|
+
}, e)), /* @__PURE__ */ T("div", {
|
|
478
445
|
className: "pt-2 border-t border-border-subtle mt-2",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
446
|
+
children: [/* @__PURE__ */ w("p", {
|
|
480
447
|
className: "text-xs text-text-secondary",
|
|
481
448
|
children: "Age Range"
|
|
482
|
-
}), /* @__PURE__ */
|
|
449
|
+
}), /* @__PURE__ */ T("p", {
|
|
483
450
|
className: "text-sm font-medium text-text-primary",
|
|
484
451
|
children: [
|
|
485
|
-
|
|
452
|
+
B.targeting.ageRange.min,
|
|
486
453
|
" -",
|
|
487
454
|
" ",
|
|
488
|
-
|
|
455
|
+
B.targeting.ageRange.max
|
|
489
456
|
]
|
|
490
457
|
})]
|
|
491
458
|
})]
|
|
492
459
|
})]
|
|
493
460
|
}),
|
|
494
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ T("div", {
|
|
495
462
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
496
|
-
children: [/* @__PURE__ */
|
|
463
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
497
464
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
498
465
|
children: "Interests"
|
|
499
|
-
}), /* @__PURE__ */
|
|
466
|
+
}), /* @__PURE__ */ w("div", {
|
|
500
467
|
className: "space-y-2",
|
|
501
|
-
children:
|
|
468
|
+
children: B.targeting.interests.map((e) => /* @__PURE__ */ T("div", {
|
|
502
469
|
className: "flex items-center gap-2",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ w("span", {
|
|
504
471
|
className: "text-sm text-text-primary",
|
|
505
472
|
children: e
|
|
506
473
|
})]
|
|
507
474
|
}, e))
|
|
508
475
|
})]
|
|
509
476
|
}),
|
|
510
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ T("div", {
|
|
511
478
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
512
|
-
children: [/* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
513
480
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
514
481
|
children: "Locations"
|
|
515
|
-
}), /* @__PURE__ */
|
|
482
|
+
}), /* @__PURE__ */ w("div", {
|
|
516
483
|
className: "space-y-2",
|
|
517
|
-
children:
|
|
484
|
+
children: B.targeting.locations.map((e) => /* @__PURE__ */ T("div", {
|
|
518
485
|
className: "flex items-center gap-2",
|
|
519
|
-
children: [/* @__PURE__ */
|
|
486
|
+
children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ w("span", {
|
|
520
487
|
className: "text-sm text-text-primary",
|
|
521
488
|
children: e
|
|
522
489
|
})]
|
|
@@ -525,70 +492,64 @@ var D = [
|
|
|
525
492
|
})
|
|
526
493
|
]
|
|
527
494
|
}),
|
|
528
|
-
|
|
495
|
+
F === "assets" && /* @__PURE__ */ T("div", {
|
|
529
496
|
className: "space-y-6",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
497
|
+
children: [/* @__PURE__ */ T("div", {
|
|
531
498
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
532
|
-
children: [/* @__PURE__ */
|
|
499
|
+
children: [/* @__PURE__ */ T("h4", {
|
|
533
500
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
534
|
-
children: [/* @__PURE__ */
|
|
535
|
-
}), /* @__PURE__ */
|
|
501
|
+
children: [/* @__PURE__ */ w(b, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
|
|
502
|
+
}), /* @__PURE__ */ w("div", {
|
|
536
503
|
className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",
|
|
537
|
-
children:
|
|
504
|
+
children: B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).length > 0 ? B.assets.filter((e) => e.match(/\.(jpg|jpeg|png|gif|mp4|webm)$/i)).map((e) => /* @__PURE__ */ w("div", {
|
|
538
505
|
className: "aspect-video rounded-lg border border-border-subtle bg-bg-sunken flex items-center justify-center",
|
|
539
|
-
children: /* @__PURE__ */
|
|
506
|
+
children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary" })
|
|
540
507
|
}, e)) : [
|
|
541
508
|
1,
|
|
542
509
|
2,
|
|
543
510
|
3
|
|
544
|
-
].map((e) => /* @__PURE__ */
|
|
511
|
+
].map((e) => /* @__PURE__ */ w("div", {
|
|
545
512
|
className: "aspect-video rounded-lg border border-dashed border-border-subtle bg-bg-sunken/30 flex items-center justify-center",
|
|
546
|
-
children: /* @__PURE__ */
|
|
513
|
+
children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary/50" })
|
|
547
514
|
}, e))
|
|
548
515
|
})]
|
|
549
|
-
}), /* @__PURE__ */
|
|
516
|
+
}), /* @__PURE__ */ T("div", {
|
|
550
517
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
551
|
-
children: [/* @__PURE__ */
|
|
518
|
+
children: [/* @__PURE__ */ T("h4", {
|
|
552
519
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
553
|
-
children: [/* @__PURE__ */
|
|
554
|
-
}), /* @__PURE__ */
|
|
520
|
+
children: [/* @__PURE__ */ w(y, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
|
|
521
|
+
}), $.length > 0 ? /* @__PURE__ */ w("div", {
|
|
555
522
|
className: "space-y-2",
|
|
556
|
-
children:
|
|
523
|
+
children: $.map((e) => /* @__PURE__ */ w("div", {
|
|
557
524
|
className: "flex items-center justify-between rounded-md border border-border-subtle p-3 hover:bg-bg-sunken/50 transition-colors",
|
|
558
|
-
children:
|
|
525
|
+
children: /* @__PURE__ */ T("div", {
|
|
559
526
|
className: "flex items-center gap-3",
|
|
560
|
-
children: [/* @__PURE__ */
|
|
561
|
-
className: "text-sm font-medium text-text-primary",
|
|
562
|
-
children: e.
|
|
563
|
-
})
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
children: e.updated
|
|
570
|
-
})]
|
|
571
|
-
}, e.name))
|
|
527
|
+
children: [/* @__PURE__ */ w(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ w("p", {
|
|
528
|
+
className: "text-sm font-medium text-text-primary break-all",
|
|
529
|
+
children: e.split("/").pop() ?? e
|
|
530
|
+
})]
|
|
531
|
+
})
|
|
532
|
+
}, e))
|
|
533
|
+
}) : /* @__PURE__ */ w("p", {
|
|
534
|
+
className: "text-sm text-text-secondary py-4 text-center",
|
|
535
|
+
children: "No documents yet."
|
|
572
536
|
})]
|
|
573
537
|
})]
|
|
574
538
|
}),
|
|
575
|
-
|
|
539
|
+
F === "team" && /* @__PURE__ */ T("div", {
|
|
576
540
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
577
|
-
children: [
|
|
541
|
+
children: [Q.map((e) => /* @__PURE__ */ T("div", {
|
|
578
542
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop flex items-center gap-4",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
543
|
+
children: [/* @__PURE__ */ w("div", {
|
|
580
544
|
className: "h-12 w-12 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-sm font-semibold text-primary flex-shrink-0",
|
|
581
|
-
children: e
|
|
582
|
-
}), /* @__PURE__ */
|
|
545
|
+
children: N(e)
|
|
546
|
+
}), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
|
|
583
547
|
className: "text-sm font-semibold text-text-primary",
|
|
584
|
-
children: e
|
|
585
|
-
})
|
|
586
|
-
|
|
587
|
-
children: e.role
|
|
588
|
-
})] })]
|
|
589
|
-
}, e.name)), $.length === 0 && /* @__PURE__ */ S("div", {
|
|
548
|
+
children: e
|
|
549
|
+
}) })]
|
|
550
|
+
}, e)), Q.length === 0 && /* @__PURE__ */ w("div", {
|
|
590
551
|
className: "col-span-full",
|
|
591
|
-
children: /* @__PURE__ */
|
|
552
|
+
children: /* @__PURE__ */ w(m, {
|
|
592
553
|
illustration: "empty-people",
|
|
593
554
|
title: "No team members",
|
|
594
555
|
description: "No team members have been assigned to this campaign yet."
|
|
@@ -601,6 +562,6 @@ var D = [
|
|
|
601
562
|
});
|
|
602
563
|
};
|
|
603
564
|
//#endregion
|
|
604
|
-
export {
|
|
565
|
+
export { P as CampaignDetailsPage };
|
|
605
566
|
|
|
606
567
|
//# sourceMappingURL=CampaignDetailsPage.js.map
|