@burdenoff/microfe-headshotmarketing 2026.703.1 → 2026.704.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/generated/wspace-operations.js +960 -77
- 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 +334 -301
- 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 +221 -211
- 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 +290 -217
- 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/helpers.js +11 -1
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
- 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,27 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { cn as o, formatCurrency as s, formatNumber as c } from "../../utils/helpers.js";
|
|
11
|
-
import { toCampaignModel as l, toCampaignPerformanceSeries 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)",
|
|
@@ -29,161 +35,208 @@ var O = [
|
|
|
29
35
|
"var(--color-chart-5)",
|
|
30
36
|
"var(--color-chart-6)"
|
|
31
37
|
];
|
|
32
|
-
function
|
|
38
|
+
function N(e) {
|
|
33
39
|
return e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase();
|
|
34
40
|
}
|
|
35
|
-
var
|
|
36
|
-
let { navigate:
|
|
37
|
-
skip: !
|
|
38
|
-
variables:
|
|
39
|
-
}), [
|
|
40
|
-
|
|
41
|
-
|
|
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);
|
|
42
56
|
try {
|
|
43
|
-
await
|
|
44
|
-
variables: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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,
|
|
52
85
|
awaitRefetchQueries: !0
|
|
53
|
-
})
|
|
86
|
+
})).data?.createHeadshotmarketingCampaign?.id;
|
|
87
|
+
n && e(t + "/campaigns/" + n);
|
|
54
88
|
} catch (e) {
|
|
55
|
-
|
|
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,
|
|
99
|
+
awaitRefetchQueries: !0
|
|
100
|
+
}), e(t + "/campaigns");
|
|
101
|
+
} catch (e) {
|
|
102
|
+
R(e instanceof Error ? e.message : "Failed to delete campaign.");
|
|
56
103
|
}
|
|
57
104
|
}
|
|
58
105
|
};
|
|
59
|
-
if (!
|
|
106
|
+
if (!B) return /* @__PURE__ */ w(f, {
|
|
60
107
|
title: "Campaign Details",
|
|
61
|
-
children: /* @__PURE__ */
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
+
})
|
|
69
122
|
})
|
|
70
123
|
})
|
|
71
124
|
});
|
|
72
|
-
let K =
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
title:
|
|
75
|
-
description:
|
|
76
|
-
actions: /* @__PURE__ */
|
|
77
|
-
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",
|
|
78
131
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
onClick: () =>
|
|
132
|
+
/* @__PURE__ */ w(ue, { status: B.status }),
|
|
133
|
+
/* @__PURE__ */ T("button", {
|
|
134
|
+
onClick: () => e(t + "/campaigns"),
|
|
82
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",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Back"]
|
|
84
137
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
onClick: () =>
|
|
138
|
+
/* @__PURE__ */ T("button", {
|
|
139
|
+
onClick: () => e(t + "/campaigns/" + B.id + "/edit"),
|
|
87
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",
|
|
88
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Edit"]
|
|
89
142
|
}),
|
|
90
|
-
/* @__PURE__ */ w(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */ w("
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
+
]
|
|
119
172
|
})
|
|
120
173
|
]
|
|
121
174
|
}),
|
|
122
175
|
children: [
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__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", {
|
|
125
178
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5",
|
|
126
179
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ w(p, {
|
|
128
181
|
title: "Revenue",
|
|
129
|
-
value: s(
|
|
130
|
-
icon: /* @__PURE__ */
|
|
182
|
+
value: s(B.metrics.revenue),
|
|
183
|
+
icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" })
|
|
131
184
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ w(p, {
|
|
133
186
|
title: "Conversions",
|
|
134
|
-
value: c(
|
|
135
|
-
icon: /* @__PURE__ */
|
|
187
|
+
value: c(B.metrics.conversions),
|
|
188
|
+
icon: /* @__PURE__ */ w(x, { className: "h-5 w-5" })
|
|
136
189
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ w(p, {
|
|
138
191
|
title: "ROAS",
|
|
139
|
-
value: `${
|
|
140
|
-
icon: /* @__PURE__ */
|
|
192
|
+
value: `${B.metrics.roas.toFixed(1)}x`,
|
|
193
|
+
icon: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
|
|
141
194
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ w(p, {
|
|
143
196
|
title: "Budget Used",
|
|
144
197
|
value: `${K}%`,
|
|
145
|
-
icon: /* @__PURE__ */
|
|
198
|
+
icon: /* @__PURE__ */ w(_, { className: "h-5 w-5" }),
|
|
146
199
|
className: "relative"
|
|
147
200
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ w(p, {
|
|
149
202
|
title: "Days Remaining",
|
|
150
|
-
value: String(
|
|
151
|
-
icon: /* @__PURE__ */
|
|
203
|
+
value: String(Re),
|
|
204
|
+
icon: /* @__PURE__ */ w(he, { className: "h-5 w-5" })
|
|
152
205
|
})
|
|
153
206
|
]
|
|
154
207
|
}) }),
|
|
155
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ w(O, {
|
|
156
209
|
storageKey: "headshotmarketing-campaign-details",
|
|
157
210
|
steps: [
|
|
158
211
|
{
|
|
159
212
|
id: "analytics",
|
|
160
213
|
label: "Review performance",
|
|
161
214
|
description: "See revenue, cost and conversion trends over time.",
|
|
162
|
-
icon: /* @__PURE__ */
|
|
163
|
-
onClick: () =>
|
|
215
|
+
icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" }),
|
|
216
|
+
onClick: () => I("analytics")
|
|
164
217
|
},
|
|
165
218
|
{
|
|
166
219
|
id: "audience",
|
|
167
220
|
label: "Check audience targeting",
|
|
168
221
|
description: "Confirm demographics, interests and locations.",
|
|
169
|
-
icon: /* @__PURE__ */
|
|
170
|
-
onClick: () =>
|
|
222
|
+
icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
|
|
223
|
+
onClick: () => I("audience")
|
|
171
224
|
},
|
|
172
225
|
{
|
|
173
226
|
id: "edit",
|
|
174
227
|
label: "Adjust budget or schedule",
|
|
175
228
|
description: "Open the campaign editor to refine the setup.",
|
|
176
|
-
icon: /* @__PURE__ */
|
|
177
|
-
onClick: () =>
|
|
229
|
+
icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
|
|
230
|
+
onClick: () => e(t + "/campaigns/" + B.id + "/edit")
|
|
178
231
|
}
|
|
179
232
|
]
|
|
180
233
|
}),
|
|
181
|
-
|
|
234
|
+
L && /* @__PURE__ */ w("div", {
|
|
182
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",
|
|
183
|
-
children:
|
|
236
|
+
children: L
|
|
184
237
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
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",
|
|
187
240
|
children: [
|
|
188
241
|
{
|
|
189
242
|
key: "overview",
|
|
@@ -205,62 +258,60 @@ var A = () => {
|
|
|
205
258
|
key: "team",
|
|
206
259
|
label: "Team"
|
|
207
260
|
}
|
|
208
|
-
].map((e) => /* @__PURE__ */
|
|
209
|
-
onClick: () =>
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
className: o("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", R === 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"),
|
|
213
264
|
children: e.label
|
|
214
265
|
}, e.key))
|
|
215
|
-
}), /* @__PURE__ */
|
|
266
|
+
}), /* @__PURE__ */ T("div", {
|
|
216
267
|
className: "mt-6",
|
|
217
268
|
children: [
|
|
218
|
-
|
|
269
|
+
F === "overview" && /* @__PURE__ */ T("div", {
|
|
219
270
|
className: "space-y-6",
|
|
220
271
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ T("div", {
|
|
222
273
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
223
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ T("div", {
|
|
224
275
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
225
276
|
children: [
|
|
226
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ T("h4", {
|
|
227
278
|
className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ w(ge, { className: "h-4 w-4 text-text-secondary" }), "Timeline Progress"]
|
|
229
280
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ T("div", {
|
|
231
282
|
className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
|
|
232
283
|
children: [
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ w("span", { children: q.toLocaleDateString() }),
|
|
285
|
+
/* @__PURE__ */ T("span", { children: [Z, "%"] }),
|
|
286
|
+
/* @__PURE__ */ w("span", { children: J.toLocaleDateString() })
|
|
236
287
|
]
|
|
237
288
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ w("div", {
|
|
239
290
|
className: "h-2.5 w-full rounded-full bg-bg-sunken",
|
|
240
|
-
children: /* @__PURE__ */
|
|
291
|
+
children: /* @__PURE__ */ w("div", {
|
|
241
292
|
className: "h-2.5 rounded-full bg-action-primary-bg transition-all",
|
|
242
293
|
style: { width: `${Z}%` }
|
|
243
294
|
})
|
|
244
295
|
})
|
|
245
296
|
]
|
|
246
|
-
}), /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ T("div", {
|
|
247
298
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
248
299
|
children: [
|
|
249
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ T("h4", {
|
|
250
301
|
className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ w(_, { className: "h-4 w-4 text-text-secondary" }), "Budget Progress"]
|
|
252
303
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ T("div", {
|
|
254
305
|
className: "flex items-center justify-between text-xs text-text-secondary mb-1.5",
|
|
255
306
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
/* @__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"] })
|
|
259
310
|
]
|
|
260
311
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ w("div", {
|
|
262
313
|
className: "h-2.5 w-full rounded-full bg-bg-sunken",
|
|
263
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ w("div", {
|
|
264
315
|
className: o("h-2.5 rounded-full transition-all", K >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
|
|
265
316
|
style: { width: `${K}%` }
|
|
266
317
|
})
|
|
@@ -268,82 +319,104 @@ var A = () => {
|
|
|
268
319
|
]
|
|
269
320
|
})]
|
|
270
321
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ T("div", {
|
|
272
323
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
273
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
274
325
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
275
326
|
children: "Active Channels"
|
|
276
|
-
}), /* @__PURE__ */
|
|
327
|
+
}), /* @__PURE__ */ w("div", {
|
|
277
328
|
className: "flex flex-wrap gap-2",
|
|
278
|
-
children:
|
|
329
|
+
children: B.channels.map((e) => /* @__PURE__ */ w("span", {
|
|
279
330
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-3 py-1 text-xs font-medium text-text-primary",
|
|
280
331
|
children: e
|
|
281
332
|
}, e))
|
|
282
333
|
})]
|
|
283
334
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ T("div", {
|
|
285
336
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ T("h4", {
|
|
287
338
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
289
|
-
}), /* @__PURE__ */
|
|
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", {
|
|
350
|
+
className: "flex items-start gap-3",
|
|
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")
|
|
359
|
+
})]
|
|
360
|
+
})]
|
|
361
|
+
}, e.id))
|
|
362
|
+
}) : /* @__PURE__ */ w("p", {
|
|
290
363
|
className: "text-sm text-text-secondary py-4 text-center",
|
|
291
|
-
children: "No recent activity yet."
|
|
364
|
+
children: Pe ? "Activity is unavailable right now." : "No recent activity yet."
|
|
292
365
|
})]
|
|
293
366
|
})
|
|
294
367
|
]
|
|
295
368
|
}),
|
|
296
|
-
|
|
369
|
+
F === "analytics" && /* @__PURE__ */ w(de, {
|
|
297
370
|
title: "Performance Over Time",
|
|
298
371
|
subtitle: "Revenue, cost, and conversions trend",
|
|
299
|
-
children: /* @__PURE__ */
|
|
372
|
+
children: /* @__PURE__ */ w(ie, {
|
|
300
373
|
width: "100%",
|
|
301
374
|
height: 350,
|
|
302
|
-
children: /* @__PURE__ */
|
|
303
|
-
data:
|
|
375
|
+
children: /* @__PURE__ */ T(ce, {
|
|
376
|
+
data: ze,
|
|
304
377
|
children: [
|
|
305
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ w(ae, {
|
|
306
379
|
strokeDasharray: "3 3",
|
|
307
380
|
className: "stroke-border"
|
|
308
381
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ w(oe, {
|
|
310
383
|
dataKey: "date",
|
|
311
384
|
tick: { fontSize: 11 },
|
|
312
385
|
className: "text-text-secondary",
|
|
313
386
|
tickFormatter: (e) => e.slice(5)
|
|
314
387
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ w(se, {
|
|
316
389
|
tick: { fontSize: 11 },
|
|
317
390
|
className: "text-text-secondary"
|
|
318
391
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ w(re, { contentStyle: {
|
|
320
393
|
backgroundColor: "var(--color-card)",
|
|
321
394
|
border: "1px solid var(--color-border)",
|
|
322
395
|
borderRadius: 8
|
|
323
396
|
} }),
|
|
324
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ w(a, {
|
|
325
398
|
type: "monotone",
|
|
326
399
|
dataKey: "revenue",
|
|
327
|
-
stroke:
|
|
328
|
-
fill:
|
|
400
|
+
stroke: M[0],
|
|
401
|
+
fill: M[0],
|
|
329
402
|
fillOpacity: .15,
|
|
330
403
|
strokeWidth: 2,
|
|
331
404
|
name: "Revenue"
|
|
332
405
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ w(a, {
|
|
334
407
|
type: "monotone",
|
|
335
408
|
dataKey: "cost",
|
|
336
|
-
stroke:
|
|
337
|
-
fill:
|
|
409
|
+
stroke: M[3],
|
|
410
|
+
fill: M[3],
|
|
338
411
|
fillOpacity: .1,
|
|
339
412
|
strokeWidth: 2,
|
|
340
413
|
name: "Cost"
|
|
341
414
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ w(a, {
|
|
343
416
|
type: "monotone",
|
|
344
417
|
dataKey: "conversions",
|
|
345
|
-
stroke:
|
|
346
|
-
fill:
|
|
418
|
+
stroke: M[1],
|
|
419
|
+
fill: M[1],
|
|
347
420
|
fillOpacity: .1,
|
|
348
421
|
strokeWidth: 2,
|
|
349
422
|
name: "Conversions"
|
|
@@ -352,65 +425,65 @@ var A = () => {
|
|
|
352
425
|
})
|
|
353
426
|
})
|
|
354
427
|
}),
|
|
355
|
-
|
|
428
|
+
F === "audience" && /* @__PURE__ */ T("div", {
|
|
356
429
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
357
430
|
children: [
|
|
358
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ T("div", {
|
|
359
432
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
361
434
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
362
435
|
children: "Demographics"
|
|
363
|
-
}), /* @__PURE__ */
|
|
436
|
+
}), /* @__PURE__ */ T("div", {
|
|
364
437
|
className: "space-y-2",
|
|
365
|
-
children: [
|
|
438
|
+
children: [B.targeting.demographics.map((e) => /* @__PURE__ */ T("div", {
|
|
366
439
|
className: "flex items-center gap-2",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
440
|
+
children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), /* @__PURE__ */ w("span", {
|
|
368
441
|
className: "text-sm text-text-primary",
|
|
369
442
|
children: e
|
|
370
443
|
})]
|
|
371
|
-
}, e)), /* @__PURE__ */
|
|
444
|
+
}, e)), /* @__PURE__ */ T("div", {
|
|
372
445
|
className: "pt-2 border-t border-border-subtle mt-2",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
446
|
+
children: [/* @__PURE__ */ w("p", {
|
|
374
447
|
className: "text-xs text-text-secondary",
|
|
375
448
|
children: "Age Range"
|
|
376
|
-
}), /* @__PURE__ */
|
|
449
|
+
}), /* @__PURE__ */ T("p", {
|
|
377
450
|
className: "text-sm font-medium text-text-primary",
|
|
378
451
|
children: [
|
|
379
|
-
|
|
452
|
+
B.targeting.ageRange.min,
|
|
380
453
|
" -",
|
|
381
454
|
" ",
|
|
382
|
-
|
|
455
|
+
B.targeting.ageRange.max
|
|
383
456
|
]
|
|
384
457
|
})]
|
|
385
458
|
})]
|
|
386
459
|
})]
|
|
387
460
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ T("div", {
|
|
389
462
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
390
|
-
children: [/* @__PURE__ */
|
|
463
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
391
464
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
392
465
|
children: "Interests"
|
|
393
|
-
}), /* @__PURE__ */
|
|
466
|
+
}), /* @__PURE__ */ w("div", {
|
|
394
467
|
className: "space-y-2",
|
|
395
|
-
children:
|
|
468
|
+
children: B.targeting.interests.map((e) => /* @__PURE__ */ T("div", {
|
|
396
469
|
className: "flex items-center gap-2",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-success-text" }), /* @__PURE__ */ w("span", {
|
|
398
471
|
className: "text-sm text-text-primary",
|
|
399
472
|
children: e
|
|
400
473
|
})]
|
|
401
474
|
}, e))
|
|
402
475
|
})]
|
|
403
476
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ T("div", {
|
|
405
478
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
406
|
-
children: [/* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
407
480
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
408
481
|
children: "Locations"
|
|
409
|
-
}), /* @__PURE__ */
|
|
482
|
+
}), /* @__PURE__ */ w("div", {
|
|
410
483
|
className: "space-y-2",
|
|
411
|
-
children:
|
|
484
|
+
children: B.targeting.locations.map((e) => /* @__PURE__ */ T("div", {
|
|
412
485
|
className: "flex items-center gap-2",
|
|
413
|
-
children: [/* @__PURE__ */
|
|
486
|
+
children: [/* @__PURE__ */ w("div", { className: "h-2 w-2 rounded-full bg-status-warning-text" }), /* @__PURE__ */ w("span", {
|
|
414
487
|
className: "text-sm text-text-primary",
|
|
415
488
|
children: e
|
|
416
489
|
})]
|
|
@@ -419,64 +492,64 @@ var A = () => {
|
|
|
419
492
|
})
|
|
420
493
|
]
|
|
421
494
|
}),
|
|
422
|
-
|
|
495
|
+
F === "assets" && /* @__PURE__ */ T("div", {
|
|
423
496
|
className: "space-y-6",
|
|
424
|
-
children: [/* @__PURE__ */
|
|
497
|
+
children: [/* @__PURE__ */ T("div", {
|
|
425
498
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
426
|
-
children: [/* @__PURE__ */
|
|
499
|
+
children: [/* @__PURE__ */ T("h4", {
|
|
427
500
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
428
|
-
children: [/* @__PURE__ */
|
|
429
|
-
}), /* @__PURE__ */
|
|
501
|
+
children: [/* @__PURE__ */ w(b, { className: "h-4 w-4 text-text-secondary" }), "Images & Media"]
|
|
502
|
+
}), /* @__PURE__ */ w("div", {
|
|
430
503
|
className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",
|
|
431
|
-
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", {
|
|
432
505
|
className: "aspect-video rounded-lg border border-border-subtle bg-bg-sunken flex items-center justify-center",
|
|
433
|
-
children: /* @__PURE__ */
|
|
506
|
+
children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary" })
|
|
434
507
|
}, e)) : [
|
|
435
508
|
1,
|
|
436
509
|
2,
|
|
437
510
|
3
|
|
438
|
-
].map((e) => /* @__PURE__ */
|
|
511
|
+
].map((e) => /* @__PURE__ */ w("div", {
|
|
439
512
|
className: "aspect-video rounded-lg border border-dashed border-border-subtle bg-bg-sunken/30 flex items-center justify-center",
|
|
440
|
-
children: /* @__PURE__ */
|
|
513
|
+
children: /* @__PURE__ */ w(b, { className: "h-8 w-8 text-text-secondary/50" })
|
|
441
514
|
}, e))
|
|
442
515
|
})]
|
|
443
|
-
}), /* @__PURE__ */
|
|
516
|
+
}), /* @__PURE__ */ T("div", {
|
|
444
517
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
445
|
-
children: [/* @__PURE__ */
|
|
518
|
+
children: [/* @__PURE__ */ T("h4", {
|
|
446
519
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
448
|
-
}), $.length > 0 ? /* @__PURE__ */
|
|
520
|
+
children: [/* @__PURE__ */ w(y, { className: "h-4 w-4 text-text-secondary" }), "Documents"]
|
|
521
|
+
}), $.length > 0 ? /* @__PURE__ */ w("div", {
|
|
449
522
|
className: "space-y-2",
|
|
450
|
-
children: $.map((e) => /* @__PURE__ */
|
|
523
|
+
children: $.map((e) => /* @__PURE__ */ w("div", {
|
|
451
524
|
className: "flex items-center justify-between rounded-md border border-border-subtle p-3 hover:bg-bg-sunken/50 transition-colors",
|
|
452
|
-
children: /* @__PURE__ */
|
|
525
|
+
children: /* @__PURE__ */ T("div", {
|
|
453
526
|
className: "flex items-center gap-3",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ w(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ w("p", {
|
|
455
528
|
className: "text-sm font-medium text-text-primary break-all",
|
|
456
529
|
children: e.split("/").pop() ?? e
|
|
457
530
|
})]
|
|
458
531
|
})
|
|
459
532
|
}, e))
|
|
460
|
-
}) : /* @__PURE__ */
|
|
533
|
+
}) : /* @__PURE__ */ w("p", {
|
|
461
534
|
className: "text-sm text-text-secondary py-4 text-center",
|
|
462
535
|
children: "No documents yet."
|
|
463
536
|
})]
|
|
464
537
|
})]
|
|
465
538
|
}),
|
|
466
|
-
|
|
539
|
+
F === "team" && /* @__PURE__ */ T("div", {
|
|
467
540
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
468
|
-
children: [Q.map((e) => /* @__PURE__ */
|
|
541
|
+
children: [Q.map((e) => /* @__PURE__ */ T("div", {
|
|
469
542
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop flex items-center gap-4",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
543
|
+
children: [/* @__PURE__ */ w("div", {
|
|
471
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",
|
|
472
|
-
children:
|
|
473
|
-
}), /* @__PURE__ */
|
|
545
|
+
children: N(e)
|
|
546
|
+
}), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
|
|
474
547
|
className: "text-sm font-semibold text-text-primary",
|
|
475
548
|
children: e
|
|
476
549
|
}) })]
|
|
477
|
-
}, e)), Q.length === 0 && /* @__PURE__ */
|
|
550
|
+
}, e)), Q.length === 0 && /* @__PURE__ */ w("div", {
|
|
478
551
|
className: "col-span-full",
|
|
479
|
-
children: /* @__PURE__ */
|
|
552
|
+
children: /* @__PURE__ */ w(m, {
|
|
480
553
|
illustration: "empty-people",
|
|
481
554
|
title: "No team members",
|
|
482
555
|
description: "No team members have been assigned to this campaign yet."
|
|
@@ -489,6 +562,6 @@ var A = () => {
|
|
|
489
562
|
});
|
|
490
563
|
};
|
|
491
564
|
//#endregion
|
|
492
|
-
export {
|
|
565
|
+
export { P as CampaignDetailsPage };
|
|
493
566
|
|
|
494
567
|
//# sourceMappingURL=CampaignDetailsPage.js.map
|