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