@burdenoff/microfe-headshotmarketing 2026.624.1 → 2026.625.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/ChartCard.js +11 -9
- package/dist/headshotmarketing/components/ChartCard.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +3 -3
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/EmptyState.js +17 -10
- package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
- package/dist/headshotmarketing/components/FilterBar.js +1 -1
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/Modal.js +2 -2
- package/dist/headshotmarketing/components/Modal.js.map +1 -1
- package/dist/headshotmarketing/components/StatCard.js +19 -16
- package/dist/headshotmarketing/components/StatCard.js.map +1 -1
- package/dist/headshotmarketing/components/StatusBadge.js +25 -25
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +259 -233
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +239 -223
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +167 -152
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +150 -111
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +137 -122
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +105 -103
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +49 -47
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +106 -104
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +30 -28
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +98 -86
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +29 -27
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +100 -61
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +112 -101
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +59 -57
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +155 -139
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +267 -262
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +221 -192
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +88 -94
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +162 -149
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +142 -140
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +86 -78
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +59 -47
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +30 -28
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +46 -44
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +85 -78
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +227 -212
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +63 -62
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +76 -75
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +170 -128
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +60 -53
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +185 -169
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +344 -339
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +107 -94
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +162 -147
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +105 -97
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +62 -34
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +203 -188
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +134 -127
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +40 -38
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +74 -73
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +160 -148
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +41 -40
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +121 -93
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -6,55 +6,57 @@ import { PageLayout as o } from "../../components/PageLayout.js";
|
|
|
6
6
|
import { StatCard as s } from "../../components/StatCard.js";
|
|
7
7
|
import { DataTable as c } from "../../components/DataTable.js";
|
|
8
8
|
import { StatusBadge as l } from "../../components/StatusBadge.js";
|
|
9
|
-
import {
|
|
9
|
+
import { EmptyState as u } from "../../components/EmptyState.js";
|
|
10
|
+
import { FilterBar as d } from "../../components/FilterBar.js";
|
|
10
11
|
import "../../components/index.js";
|
|
11
|
-
import { useMemo as
|
|
12
|
-
import { DollarSign as
|
|
13
|
-
import { useI18n as
|
|
14
|
-
import { Fragment as
|
|
12
|
+
import { useMemo as f, useState as p } from "react";
|
|
13
|
+
import { DollarSign as m, Eye as h, FileText as g, LayoutGrid as _, List as v, Megaphone as y, MoreVertical as b, MousePointerClick as x, Plus as S, Target as C, TrendingUp as w } from "lucide-react";
|
|
14
|
+
import { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
15
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
16
|
+
import { EmphasisPanel as k, PagePurpose as A } from "@burdenoff/fe-libs/ui";
|
|
15
17
|
//#region src/headshotmarketing/pages/campaigns/CampaignsPage.tsx
|
|
16
|
-
var
|
|
17
|
-
let { navigate:
|
|
18
|
-
let n =
|
|
18
|
+
var j = () => {
|
|
19
|
+
let { navigate: j, basePath: M } = e(), { t: N } = T(), P = (e, t) => {
|
|
20
|
+
let n = N(e);
|
|
19
21
|
return n === e ? t : n;
|
|
20
|
-
}, { data:
|
|
21
|
-
let t = !
|
|
22
|
+
}, { data: F } = t(), [I, L] = p(""), [R, z] = p("all"), [B, V] = p("all"), [H, U] = p("grid"), W = f(() => (F?.headshotmarketingCampaigns.items ?? []).map((e) => a(e)), [F?.headshotmarketingCampaigns.items]), G = f(() => W.filter((e) => {
|
|
23
|
+
let t = !I || e.name.toLowerCase().includes(I.toLowerCase()) || e.description.toLowerCase().includes(I.toLowerCase()), n = R === "all" || e.status === R, r = B === "all" || e.type === B;
|
|
22
24
|
return t && n && r;
|
|
23
25
|
}), [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
]),
|
|
29
|
-
let e =
|
|
26
|
+
W,
|
|
27
|
+
I,
|
|
28
|
+
R,
|
|
29
|
+
B
|
|
30
|
+
]), K = f(() => W.reduce((e, t) => e + t.budget.total, 0), [W]), q = f(() => W.filter((e) => e.status === "active").length, [W]), J = f(() => W.reduce((e, t) => e + t.metrics.conversions, 0), [W]), Y = f(() => {
|
|
31
|
+
let e = W.filter((e) => e.metrics.roas > 0);
|
|
30
32
|
return e.length > 0 ? e.reduce((e, t) => e + t.metrics.roas, 0) / e.length : 0;
|
|
31
|
-
}, [
|
|
33
|
+
}, [W]), X = [
|
|
32
34
|
{
|
|
33
35
|
key: "name",
|
|
34
|
-
header:
|
|
36
|
+
header: P("headshotmarketing.campaigns.table.columns.name", "Name"),
|
|
35
37
|
sortable: !0
|
|
36
38
|
},
|
|
37
39
|
{
|
|
38
40
|
key: "type",
|
|
39
|
-
header:
|
|
41
|
+
header: P("headshotmarketing.campaigns.table.columns.type", "Type"),
|
|
40
42
|
sortable: !0,
|
|
41
|
-
render: (e) => /* @__PURE__ */
|
|
43
|
+
render: (e) => /* @__PURE__ */ D("span", {
|
|
42
44
|
className: "capitalize",
|
|
43
45
|
children: e.type
|
|
44
46
|
})
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
49
|
key: "status",
|
|
48
|
-
header:
|
|
49
|
-
render: (e) => /* @__PURE__ */
|
|
50
|
+
header: P("headshotmarketing.campaigns.table.columns.status", "Status"),
|
|
51
|
+
render: (e) => /* @__PURE__ */ D(l, { status: e.status })
|
|
50
52
|
},
|
|
51
53
|
{
|
|
52
54
|
key: "budget",
|
|
53
|
-
header:
|
|
55
|
+
header: P("headshotmarketing.campaigns.table.columns.budget", "Budget"),
|
|
54
56
|
sortable: !0,
|
|
55
|
-
render: (e) => /* @__PURE__ */
|
|
57
|
+
render: (e) => /* @__PURE__ */ O("div", {
|
|
56
58
|
className: "space-y-1",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ O("span", {
|
|
58
60
|
className: "text-sm",
|
|
59
61
|
children: [
|
|
60
62
|
r(e.budget.spent),
|
|
@@ -62,9 +64,9 @@ var O = () => {
|
|
|
62
64
|
" ",
|
|
63
65
|
r(e.budget.total)
|
|
64
66
|
]
|
|
65
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ D("div", {
|
|
66
68
|
className: "h-1.5 w-20 rounded-full bg-bg-sunken",
|
|
67
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ D("div", {
|
|
68
70
|
className: "h-1.5 rounded-full bg-action-primary-bg",
|
|
69
71
|
style: { width: `${Math.min(e.budget.spent / e.budget.total * 100, 100)}%` }
|
|
70
72
|
})
|
|
@@ -73,295 +75,306 @@ var O = () => {
|
|
|
73
75
|
},
|
|
74
76
|
{
|
|
75
77
|
key: "impressions",
|
|
76
|
-
header:
|
|
78
|
+
header: P("headshotmarketing.campaigns.table.columns.impressions", "Impressions"),
|
|
77
79
|
sortable: !0,
|
|
78
80
|
render: (e) => i(e.metrics.impressions)
|
|
79
81
|
},
|
|
80
82
|
{
|
|
81
83
|
key: "clicks",
|
|
82
|
-
header:
|
|
84
|
+
header: P("headshotmarketing.campaigns.table.columns.clicks", "Clicks"),
|
|
83
85
|
sortable: !0,
|
|
84
86
|
render: (e) => i(e.metrics.clicks)
|
|
85
87
|
},
|
|
86
88
|
{
|
|
87
89
|
key: "conversions",
|
|
88
|
-
header:
|
|
90
|
+
header: P("headshotmarketing.campaigns.table.columns.conversions", "Conversions"),
|
|
89
91
|
sortable: !0,
|
|
90
92
|
render: (e) => i(e.metrics.conversions)
|
|
91
93
|
},
|
|
92
94
|
{
|
|
93
95
|
key: "roas",
|
|
94
|
-
header:
|
|
96
|
+
header: P("headshotmarketing.campaigns.table.columns.roas", "ROAS"),
|
|
95
97
|
sortable: !0,
|
|
96
98
|
render: (e) => e.metrics.roas > 0 ? `${e.metrics.roas.toFixed(1)}x` : "-"
|
|
97
99
|
}
|
|
98
|
-
],
|
|
100
|
+
], Z = [
|
|
99
101
|
{
|
|
100
102
|
value: "all",
|
|
101
|
-
label:
|
|
103
|
+
label: P("headshotmarketing.campaigns.filters.allStatuses", "All Statuses")
|
|
102
104
|
},
|
|
103
105
|
{
|
|
104
106
|
value: "active",
|
|
105
|
-
label:
|
|
107
|
+
label: P("headshotmarketing.common.status.active", "Active")
|
|
106
108
|
},
|
|
107
109
|
{
|
|
108
110
|
value: "paused",
|
|
109
|
-
label:
|
|
111
|
+
label: P("headshotmarketing.common.status.paused", "Paused")
|
|
110
112
|
},
|
|
111
113
|
{
|
|
112
114
|
value: "completed",
|
|
113
|
-
label:
|
|
115
|
+
label: P("headshotmarketing.common.status.completed", "Completed")
|
|
114
116
|
},
|
|
115
117
|
{
|
|
116
118
|
value: "draft",
|
|
117
|
-
label:
|
|
119
|
+
label: P("headshotmarketing.common.status.draft", "Draft")
|
|
118
120
|
},
|
|
119
121
|
{
|
|
120
122
|
value: "scheduled",
|
|
121
|
-
label:
|
|
123
|
+
label: P("headshotmarketing.common.status.scheduled", "Scheduled")
|
|
122
124
|
}
|
|
123
|
-
],
|
|
125
|
+
], Q = [
|
|
124
126
|
{
|
|
125
127
|
value: "all",
|
|
126
|
-
label:
|
|
128
|
+
label: P("headshotmarketing.campaigns.filters.allTypes", "All Types")
|
|
127
129
|
},
|
|
128
130
|
{
|
|
129
131
|
value: "email",
|
|
130
|
-
label:
|
|
132
|
+
label: P("headshotmarketing.common.types.email", "Email")
|
|
131
133
|
},
|
|
132
134
|
{
|
|
133
135
|
value: "social",
|
|
134
|
-
label:
|
|
136
|
+
label: P("headshotmarketing.common.types.social", "Social")
|
|
135
137
|
},
|
|
136
138
|
{
|
|
137
139
|
value: "ppc",
|
|
138
|
-
label:
|
|
140
|
+
label: P("headshotmarketing.common.types.ppc", "PPC")
|
|
139
141
|
},
|
|
140
142
|
{
|
|
141
143
|
value: "display",
|
|
142
|
-
label:
|
|
144
|
+
label: P("headshotmarketing.common.types.display", "Display")
|
|
143
145
|
},
|
|
144
146
|
{
|
|
145
147
|
value: "video",
|
|
146
|
-
label:
|
|
148
|
+
label: P("headshotmarketing.common.types.video", "Video")
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
151
|
value: "influencer",
|
|
150
|
-
label:
|
|
152
|
+
label: P("headshotmarketing.common.types.influencer", "Influencer")
|
|
151
153
|
},
|
|
152
154
|
{
|
|
153
155
|
value: "content",
|
|
154
|
-
label:
|
|
156
|
+
label: P("headshotmarketing.common.types.content", "Content")
|
|
155
157
|
}
|
|
156
158
|
];
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
title:
|
|
159
|
-
actions: /* @__PURE__ */
|
|
160
|
-
onClick: () =>
|
|
161
|
-
className: "inline-flex items-center gap-2 rounded-md border border-border-
|
|
162
|
-
children: [/* @__PURE__ */
|
|
163
|
-
}), /* @__PURE__ */
|
|
164
|
-
onClick: () =>
|
|
159
|
+
return /* @__PURE__ */ O(o, {
|
|
160
|
+
title: P("headshotmarketing.campaigns.title", "Campaigns"),
|
|
161
|
+
actions: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O("button", {
|
|
162
|
+
onClick: () => j(M + "/campaigns/templates"),
|
|
163
|
+
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",
|
|
164
|
+
children: [/* @__PURE__ */ D(g, { className: "h-4 w-4" }), P("headshotmarketing.campaigns.actions.templates", "Templates")]
|
|
165
|
+
}), /* @__PURE__ */ O("button", {
|
|
166
|
+
onClick: () => j(M + "/campaigns/new"),
|
|
165
167
|
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",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
168
|
+
children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), P("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
|
|
167
169
|
})] }),
|
|
168
170
|
children: [
|
|
169
|
-
/* @__PURE__ */ D("
|
|
171
|
+
/* @__PURE__ */ D(A, { children: P("headshotmarketing.campaigns.purpose", "Plan, launch and track every marketing campaign in one place — set budgets and goals, then watch spend, conversions and ROAS roll up here so you know what's working and where to reinvest.") }),
|
|
172
|
+
/* @__PURE__ */ D(k, { children: /* @__PURE__ */ O("div", {
|
|
170
173
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
171
174
|
children: [
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
title:
|
|
174
|
-
value: r(
|
|
175
|
-
icon: /* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ D(s, {
|
|
176
|
+
title: P("headshotmarketing.campaigns.stats.totalBudget", "Total Budget"),
|
|
177
|
+
value: r(K),
|
|
178
|
+
icon: /* @__PURE__ */ D(m, { className: "h-5 w-5" })
|
|
176
179
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
title:
|
|
179
|
-
value: String(
|
|
180
|
-
icon: /* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ D(s, {
|
|
181
|
+
title: P("headshotmarketing.campaigns.stats.activeCampaigns", "Active Campaigns"),
|
|
182
|
+
value: String(q),
|
|
183
|
+
icon: /* @__PURE__ */ D(y, { className: "h-5 w-5" })
|
|
181
184
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
title:
|
|
184
|
-
value: i(
|
|
185
|
-
icon: /* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ D(s, {
|
|
186
|
+
title: P("headshotmarketing.campaigns.stats.totalConversions", "Total Conversions"),
|
|
187
|
+
value: i(J),
|
|
188
|
+
icon: /* @__PURE__ */ D(C, { className: "h-5 w-5" })
|
|
186
189
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
title:
|
|
189
|
-
value: `${
|
|
190
|
-
icon: /* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ D(s, {
|
|
191
|
+
title: P("headshotmarketing.campaigns.stats.avgRoas", "Avg ROAS"),
|
|
192
|
+
value: `${Y.toFixed(1)}x`,
|
|
193
|
+
icon: /* @__PURE__ */ D(w, { className: "h-5 w-5" })
|
|
191
194
|
})
|
|
192
195
|
]
|
|
193
|
-
}),
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
searchValue:
|
|
196
|
-
onSearchChange:
|
|
197
|
-
searchPlaceholder:
|
|
198
|
-
filters: /* @__PURE__ */
|
|
199
|
-
value:
|
|
200
|
-
onChange: (e) =>
|
|
196
|
+
}) }),
|
|
197
|
+
/* @__PURE__ */ D(d, {
|
|
198
|
+
searchValue: I,
|
|
199
|
+
onSearchChange: L,
|
|
200
|
+
searchPlaceholder: P("headshotmarketing.campaigns.filters.searchPlaceholder", "Search campaigns..."),
|
|
201
|
+
filters: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("select", {
|
|
202
|
+
value: R,
|
|
203
|
+
onChange: (e) => z(e.target.value),
|
|
201
204
|
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
202
|
-
children:
|
|
205
|
+
children: Z.map((e) => /* @__PURE__ */ D("option", {
|
|
203
206
|
value: e.value,
|
|
204
207
|
children: e.label
|
|
205
208
|
}, e.value))
|
|
206
|
-
}), /* @__PURE__ */
|
|
207
|
-
value:
|
|
208
|
-
onChange: (e) =>
|
|
209
|
+
}), /* @__PURE__ */ D("select", {
|
|
210
|
+
value: B,
|
|
211
|
+
onChange: (e) => V(e.target.value),
|
|
209
212
|
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
210
|
-
children:
|
|
213
|
+
children: Q.map((e) => /* @__PURE__ */ D("option", {
|
|
211
214
|
value: e.value,
|
|
212
215
|
children: e.label
|
|
213
216
|
}, e.value))
|
|
214
217
|
})] }),
|
|
215
|
-
actions: /* @__PURE__ */
|
|
218
|
+
actions: /* @__PURE__ */ O("div", {
|
|
216
219
|
className: "flex items-center gap-1 rounded-md border border-border-subtle p-0.5",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
218
|
-
onClick: () =>
|
|
219
|
-
className: n("rounded p-1.5",
|
|
220
|
-
children: /* @__PURE__ */
|
|
221
|
-
}), /* @__PURE__ */
|
|
222
|
-
onClick: () =>
|
|
223
|
-
className: n("rounded p-1.5",
|
|
224
|
-
children: /* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ D("button", {
|
|
221
|
+
onClick: () => U("grid"),
|
|
222
|
+
className: n("rounded p-1.5", H === "grid" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
|
|
223
|
+
children: /* @__PURE__ */ D(_, { className: "h-4 w-4" })
|
|
224
|
+
}), /* @__PURE__ */ D("button", {
|
|
225
|
+
onClick: () => U("table"),
|
|
226
|
+
className: n("rounded p-1.5", H === "table" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
|
|
227
|
+
children: /* @__PURE__ */ D(v, { className: "h-4 w-4" })
|
|
225
228
|
})]
|
|
226
229
|
})
|
|
227
230
|
}),
|
|
228
|
-
|
|
231
|
+
H === "grid" && G.length === 0 && /* @__PURE__ */ D(u, {
|
|
232
|
+
illustration: W.length === 0 ? "empty-generic" : "empty-search",
|
|
233
|
+
title: W.length === 0 ? P("headshotmarketing.campaigns.empty.title", "No campaigns yet") : P("headshotmarketing.campaigns.empty.filteredTitle", "No campaigns match your filters"),
|
|
234
|
+
description: W.length === 0 ? P("headshotmarketing.campaigns.empty.description", "Create your first campaign to start planning budgets, channels and goals.") : P("headshotmarketing.campaigns.empty.filtered", "Try adjusting your search or filters."),
|
|
235
|
+
action: W.length === 0 ? /* @__PURE__ */ O("button", {
|
|
236
|
+
onClick: () => j(M + "/campaigns/new"),
|
|
237
|
+
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",
|
|
238
|
+
children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), P("headshotmarketing.campaigns.actions.createCampaign", "Create Campaign")]
|
|
239
|
+
}) : void 0
|
|
240
|
+
}),
|
|
241
|
+
H === "grid" && G.length > 0 && /* @__PURE__ */ D("div", {
|
|
229
242
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
230
|
-
children:
|
|
243
|
+
children: G.map((e) => {
|
|
231
244
|
let t = e.budget.total > 0 ? Math.min(e.budget.spent / e.budget.total * 100, 100) : 0;
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
-
className: "rounded-lg border border-border-
|
|
245
|
+
return /* @__PURE__ */ O("div", {
|
|
246
|
+
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop hover:shadow-md transition-shadow",
|
|
234
247
|
children: [
|
|
235
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ O("div", {
|
|
236
249
|
className: "flex items-start justify-between mb-3",
|
|
237
|
-
children: [/* @__PURE__ */
|
|
238
|
-
onClick: () =>
|
|
250
|
+
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("button", {
|
|
251
|
+
onClick: () => j(M + "/campaigns/" + e.id),
|
|
239
252
|
className: "text-sm font-semibold text-text-primary hover:text-primary transition-colors text-left",
|
|
240
253
|
children: e.name
|
|
241
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ O("div", {
|
|
242
255
|
className: "flex items-center gap-2 mt-1",
|
|
243
|
-
children: [/* @__PURE__ */
|
|
256
|
+
children: [/* @__PURE__ */ D(l, { status: e.status }), /* @__PURE__ */ D("span", {
|
|
244
257
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary capitalize",
|
|
245
258
|
children: e.type
|
|
246
259
|
})]
|
|
247
|
-
})] }), /* @__PURE__ */
|
|
260
|
+
})] }), /* @__PURE__ */ D("button", {
|
|
248
261
|
className: "rounded-md p-1 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
|
|
249
|
-
children: /* @__PURE__ */
|
|
262
|
+
children: /* @__PURE__ */ D(b, { className: "h-4 w-4" })
|
|
250
263
|
})]
|
|
251
264
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ O("div", {
|
|
253
266
|
className: "mb-3",
|
|
254
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ O("div", {
|
|
255
268
|
className: "flex items-center justify-between text-xs text-text-secondary mb-1",
|
|
256
|
-
children: [/* @__PURE__ */
|
|
257
|
-
}), /* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ O("span", { children: [r(e.budget.spent), " spent"] }), /* @__PURE__ */ O("span", { children: [r(e.budget.total), " total"] })]
|
|
270
|
+
}), /* @__PURE__ */ D("div", {
|
|
258
271
|
className: "h-1.5 w-full rounded-full bg-bg-sunken",
|
|
259
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ D("div", {
|
|
260
273
|
className: n("h-1.5 rounded-full transition-all", t >= 90 ? "bg-status-error-bg" : "bg-action-primary-bg"),
|
|
261
274
|
style: { width: `${t}%` }
|
|
262
275
|
})
|
|
263
276
|
})]
|
|
264
277
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ O("div", {
|
|
266
279
|
className: "grid grid-cols-4 gap-2 mb-3",
|
|
267
280
|
children: [
|
|
268
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ O("div", {
|
|
269
282
|
className: "text-center",
|
|
270
283
|
children: [
|
|
271
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ D("div", {
|
|
272
285
|
className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
|
|
273
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ D(h, { className: "h-3 w-3" })
|
|
274
287
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ D("p", {
|
|
276
289
|
className: "text-xs font-medium text-text-primary",
|
|
277
290
|
children: i(e.metrics.impressions)
|
|
278
291
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ D("p", {
|
|
280
293
|
className: "text-[10px] text-text-secondary",
|
|
281
|
-
children:
|
|
294
|
+
children: P("headshotmarketing.campaigns.table.columns.impressions", "Impressions")
|
|
282
295
|
})
|
|
283
296
|
]
|
|
284
297
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ O("div", {
|
|
286
299
|
className: "text-center",
|
|
287
300
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ D("div", {
|
|
289
302
|
className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
|
|
290
|
-
children: /* @__PURE__ */
|
|
303
|
+
children: /* @__PURE__ */ D(x, { className: "h-3 w-3" })
|
|
291
304
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ D("p", {
|
|
293
306
|
className: "text-xs font-medium text-text-primary",
|
|
294
307
|
children: i(e.metrics.clicks)
|
|
295
308
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ D("p", {
|
|
297
310
|
className: "text-[10px] text-text-secondary",
|
|
298
|
-
children:
|
|
311
|
+
children: P("headshotmarketing.campaigns.table.columns.clicks", "Clicks")
|
|
299
312
|
})
|
|
300
313
|
]
|
|
301
314
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ O("div", {
|
|
303
316
|
className: "text-center",
|
|
304
317
|
children: [
|
|
305
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ D("div", {
|
|
306
319
|
className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
|
|
307
|
-
children: /* @__PURE__ */
|
|
320
|
+
children: /* @__PURE__ */ D(C, { className: "h-3 w-3" })
|
|
308
321
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ D("p", {
|
|
310
323
|
className: "text-xs font-medium text-text-primary",
|
|
311
324
|
children: i(e.metrics.conversions)
|
|
312
325
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ D("p", {
|
|
314
327
|
className: "text-[10px] text-text-secondary",
|
|
315
|
-
children:
|
|
328
|
+
children: P("headshotmarketing.campaigns.table.columns.conversions", "Conversions")
|
|
316
329
|
})
|
|
317
330
|
]
|
|
318
331
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ O("div", {
|
|
320
333
|
className: "text-center",
|
|
321
334
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ D("div", {
|
|
323
336
|
className: "flex items-center justify-center gap-1 text-text-secondary mb-0.5",
|
|
324
|
-
children: /* @__PURE__ */
|
|
337
|
+
children: /* @__PURE__ */ D(w, { className: "h-3 w-3" })
|
|
325
338
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ D("p", {
|
|
327
340
|
className: "text-xs font-medium text-text-primary",
|
|
328
341
|
children: e.metrics.roas > 0 ? `${e.metrics.roas.toFixed(1)}x` : "-"
|
|
329
342
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ D("p", {
|
|
331
344
|
className: "text-[10px] text-text-secondary",
|
|
332
|
-
children:
|
|
345
|
+
children: P("headshotmarketing.campaigns.table.columns.roas", "ROAS")
|
|
333
346
|
})
|
|
334
347
|
]
|
|
335
348
|
})
|
|
336
349
|
]
|
|
337
350
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ O("div", {
|
|
339
352
|
className: "flex items-center gap-2 pt-3 border-t border-border-subtle",
|
|
340
|
-
children: [/* @__PURE__ */
|
|
341
|
-
onClick: () =>
|
|
353
|
+
children: [/* @__PURE__ */ D("button", {
|
|
354
|
+
onClick: () => j(M + "/campaigns/" + e.id),
|
|
342
355
|
className: "flex-1 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
343
|
-
children:
|
|
344
|
-
}), /* @__PURE__ */
|
|
345
|
-
onClick: () =>
|
|
356
|
+
children: P("headshotmarketing.campaigns.actions.viewDetails", "View Details")
|
|
357
|
+
}), /* @__PURE__ */ D("button", {
|
|
358
|
+
onClick: () => j(M + "/campaigns/" + e.id + "/edit"),
|
|
346
359
|
className: "flex-1 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
347
|
-
children:
|
|
360
|
+
children: P("headshotmarketing.common.edit", "Edit")
|
|
348
361
|
})]
|
|
349
362
|
})
|
|
350
363
|
]
|
|
351
364
|
}, e.id);
|
|
352
365
|
})
|
|
353
366
|
}),
|
|
354
|
-
|
|
355
|
-
data:
|
|
356
|
-
columns:
|
|
367
|
+
H === "table" && /* @__PURE__ */ D(c, {
|
|
368
|
+
data: G,
|
|
369
|
+
columns: X,
|
|
357
370
|
pageSize: 10,
|
|
358
|
-
onRowClick: (e) =>
|
|
359
|
-
emptyMessage:
|
|
371
|
+
onRowClick: (e) => j(M + "/campaigns/" + e.id),
|
|
372
|
+
emptyMessage: P("headshotmarketing.campaigns.empty.filtered", "No campaigns match your filters")
|
|
360
373
|
})
|
|
361
374
|
]
|
|
362
375
|
});
|
|
363
376
|
};
|
|
364
377
|
//#endregion
|
|
365
|
-
export {
|
|
378
|
+
export { j as CampaignsPage };
|
|
366
379
|
|
|
367
380
|
//# sourceMappingURL=CampaignsPage.js.map
|