@burdenoff/microfe-headshotmarketing 2026.625.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/pages/HomePage.js +176 -175
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +234 -218
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +162 -147
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +138 -99
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +133 -118
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +101 -99
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +40 -38
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +98 -96
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +95 -83
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +98 -59
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +105 -94
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +43 -41
- 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 +266 -261
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +201 -173
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +85 -91
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +160 -147
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +136 -134
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +82 -74
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +58 -46
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +23 -21
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +39 -37
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +82 -75
- 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 +62 -61
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +75 -74
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +162 -120
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +58 -51
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +173 -157
- 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 +100 -87
- 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 +91 -83
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +56 -28
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +199 -184
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +118 -111
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +27 -25
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +55 -54
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +149 -137
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +27 -26
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +104 -76
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -9,8 +9,9 @@ import { useEffect as u, useState as d } from "react";
|
|
|
9
9
|
import { ArrowLeft as f, FileText as te, Image as ne, Rocket as re, Save as ie, Upload as ae, Video as oe, X as p } from "lucide-react";
|
|
10
10
|
import { useParams as m } from "react-router-dom";
|
|
11
11
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
|
+
import { PagePurpose as _ } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
//#region src/headshotmarketing/pages/campaigns/CreateCampaignPage.tsx
|
|
13
|
-
var
|
|
14
|
+
var v = [
|
|
14
15
|
"Brand Awareness",
|
|
15
16
|
"Lead Generation",
|
|
16
17
|
"Sales Conversion",
|
|
@@ -19,7 +20,7 @@ var _ = [
|
|
|
19
20
|
"Engagement",
|
|
20
21
|
"Product Launch",
|
|
21
22
|
"Market Research"
|
|
22
|
-
],
|
|
23
|
+
], y = [
|
|
23
24
|
"Google Ads",
|
|
24
25
|
"Facebook",
|
|
25
26
|
"Instagram",
|
|
@@ -30,7 +31,7 @@ var _ = [
|
|
|
30
31
|
"Email",
|
|
31
32
|
"Blog",
|
|
32
33
|
"Display Network"
|
|
33
|
-
],
|
|
34
|
+
], se = [
|
|
34
35
|
"Impressions",
|
|
35
36
|
"Clicks",
|
|
36
37
|
"CTR",
|
|
@@ -41,7 +42,7 @@ var _ = [
|
|
|
41
42
|
"Revenue",
|
|
42
43
|
"Engagement Rate",
|
|
43
44
|
"Reach"
|
|
44
|
-
],
|
|
45
|
+
], ce = [
|
|
45
46
|
{
|
|
46
47
|
value: "email",
|
|
47
48
|
label: "Email"
|
|
@@ -70,20 +71,20 @@ var _ = [
|
|
|
70
71
|
value: "content",
|
|
71
72
|
label: "Content"
|
|
72
73
|
}
|
|
73
|
-
],
|
|
74
|
+
], le = [
|
|
74
75
|
"USD",
|
|
75
76
|
"EUR",
|
|
76
77
|
"GBP",
|
|
77
78
|
"CAD",
|
|
78
79
|
"AUD"
|
|
79
|
-
],
|
|
80
|
+
], ue = [
|
|
80
81
|
"Urban Professionals",
|
|
81
82
|
"College Students",
|
|
82
83
|
"Parents",
|
|
83
84
|
"Retirees",
|
|
84
85
|
"Tech Enthusiasts",
|
|
85
86
|
"Small Business Owners"
|
|
86
|
-
],
|
|
87
|
+
], de = [
|
|
87
88
|
{
|
|
88
89
|
key: "basics",
|
|
89
90
|
label: "Basics"
|
|
@@ -105,64 +106,64 @@ var _ = [
|
|
|
105
106
|
label: "Tracking"
|
|
106
107
|
}
|
|
107
108
|
];
|
|
108
|
-
function
|
|
109
|
+
function b(e) {
|
|
109
110
|
return typeof e == "object" && e && !Array.isArray(e) ? e : {};
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function x(e) {
|
|
112
113
|
return Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function S(e, t) {
|
|
115
116
|
let n = Number(e);
|
|
116
117
|
return Number.isFinite(n) ? String(n) : t;
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
let n =
|
|
119
|
+
function C(e, t) {
|
|
120
|
+
let n = b(t.ageRange);
|
|
120
121
|
return {
|
|
121
122
|
name: e?.name ?? "",
|
|
122
123
|
description: e?.description ?? "",
|
|
123
124
|
type: e?.type ?? "",
|
|
124
|
-
objectives:
|
|
125
|
+
objectives: x(t.objectives),
|
|
125
126
|
channels: e?.channels ?? [],
|
|
126
127
|
budget: e ? String(e.budget.total) : "",
|
|
127
128
|
currency: String(t.currency ?? e?.budget.currency ?? "USD"),
|
|
128
129
|
startDate: e?.timeline.startDate ?? "",
|
|
129
130
|
endDate: e?.timeline.endDate ?? "",
|
|
130
|
-
kpis:
|
|
131
|
+
kpis: x(t.kpis),
|
|
131
132
|
tags: e?.tags ?? [],
|
|
132
|
-
ageMin:
|
|
133
|
-
ageMax:
|
|
133
|
+
ageMin: S(n.min, "18"),
|
|
134
|
+
ageMax: S(n.max, "65"),
|
|
134
135
|
demographics: e?.targeting.demographics ?? []
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
|
-
var
|
|
138
|
-
let { navigate:
|
|
139
|
-
skip: !
|
|
140
|
-
variables:
|
|
141
|
-
}),
|
|
138
|
+
var w = () => {
|
|
139
|
+
let { navigate: x, basePath: S } = e(), { id: w } = m(), { data: fe, loading: T, error: pe } = ee({
|
|
140
|
+
skip: !w,
|
|
141
|
+
variables: w ? { id: w } : void 0
|
|
142
|
+
}), E = fe?.headshotmarketingCampaign, D = E ? o(E) : null, O = b(E?.goals), k = !!w, [A, { loading: j, error: M }] = r(), [N, { loading: P, error: F }] = i(), [I, L] = d("basics"), [R, z] = d(""), [B, V] = d(""), [me, H] = d(null), [U, W] = d(() => C(D, O));
|
|
142
143
|
u(() => {
|
|
143
|
-
|
|
144
|
-
}, [
|
|
145
|
-
let
|
|
146
|
-
|
|
144
|
+
D && W(C(D, O));
|
|
145
|
+
}, [E?.id, E?.updatedAt]);
|
|
146
|
+
let G = (e, t) => {
|
|
147
|
+
W((n) => ({
|
|
147
148
|
...n,
|
|
148
149
|
[e]: t
|
|
149
150
|
}));
|
|
150
|
-
},
|
|
151
|
-
|
|
151
|
+
}, K = (e, t) => {
|
|
152
|
+
W((n) => ({
|
|
152
153
|
...n,
|
|
153
154
|
[e]: n[e].includes(t) ? n[e].filter((e) => e !== t) : [...n[e], t]
|
|
154
155
|
}));
|
|
155
|
-
},
|
|
156
|
-
let e =
|
|
157
|
-
e && !
|
|
158
|
-
}, pe = (e) => {
|
|
159
|
-
K("tags", W.tags.filter((t) => t !== e));
|
|
160
|
-
}, Y = (e) => {
|
|
161
|
-
let t = (e || V).trim();
|
|
162
|
-
t && !W.demographics.includes(t) && K("demographics", [...W.demographics, t]), H("");
|
|
163
|
-
}, me = (e) => {
|
|
164
|
-
K("demographics", W.demographics.filter((t) => t !== e));
|
|
156
|
+
}, q = () => {
|
|
157
|
+
let e = R.trim();
|
|
158
|
+
e && !U.tags.includes(e) && G("tags", [...U.tags, e]), z("");
|
|
165
159
|
}, he = (e) => {
|
|
160
|
+
G("tags", U.tags.filter((t) => t !== e));
|
|
161
|
+
}, J = (e) => {
|
|
162
|
+
let t = (e || B).trim();
|
|
163
|
+
t && !U.demographics.includes(t) && G("demographics", [...U.demographics, t]), V("");
|
|
164
|
+
}, ge = (e) => {
|
|
165
|
+
G("demographics", U.demographics.filter((t) => t !== e));
|
|
166
|
+
}, _e = (e) => {
|
|
166
167
|
switch (e) {
|
|
167
168
|
case "email": return l.Email;
|
|
168
169
|
case "social": return l.Social;
|
|
@@ -172,67 +173,67 @@ var T = () => {
|
|
|
172
173
|
case "influencer": return l.Influencer;
|
|
173
174
|
default: return l.Content;
|
|
174
175
|
}
|
|
175
|
-
},
|
|
176
|
+
}, Y = (e) => {
|
|
176
177
|
if (e === "draft") return c.Draft;
|
|
177
|
-
if (
|
|
178
|
-
let e = new Date(
|
|
178
|
+
if (U.startDate) {
|
|
179
|
+
let e = new Date(U.startDate).getTime();
|
|
179
180
|
if (Number.isFinite(e) && e > Date.now()) return c.Scheduled;
|
|
180
181
|
}
|
|
181
182
|
return c.Active;
|
|
182
|
-
},
|
|
183
|
-
if (!
|
|
184
|
-
if (!
|
|
185
|
-
if (
|
|
186
|
-
let e = Number(
|
|
183
|
+
}, ve = () => {
|
|
184
|
+
if (!U.name.trim()) return "Campaign name is required.";
|
|
185
|
+
if (!U.type) return "Campaign type is required.";
|
|
186
|
+
if (U.budget) {
|
|
187
|
+
let e = Number(U.budget);
|
|
187
188
|
if (!Number.isFinite(e) || e < 0) return "Budget must be a valid non-negative number.";
|
|
188
189
|
}
|
|
189
|
-
let e = Number(
|
|
190
|
+
let e = Number(U.ageMin), t = Number(U.ageMax);
|
|
190
191
|
if (!Number.isFinite(e) || !Number.isFinite(t) || e > t) return "Age range is invalid.";
|
|
191
|
-
if (
|
|
192
|
-
let e = new Date(
|
|
192
|
+
if (U.startDate && U.endDate) {
|
|
193
|
+
let e = new Date(U.startDate).getTime(), t = new Date(U.endDate).getTime();
|
|
193
194
|
if (Number.isFinite(e) && Number.isFinite(t) && t < e) return "End date must be on or after start date.";
|
|
194
195
|
}
|
|
195
196
|
return null;
|
|
196
197
|
}, X = (e) => {
|
|
197
|
-
let t =
|
|
198
|
+
let t = U.type ? _e(U.type) : l.Content;
|
|
198
199
|
return {
|
|
199
|
-
name:
|
|
200
|
-
description:
|
|
200
|
+
name: U.name,
|
|
201
|
+
description: U.description || null,
|
|
201
202
|
type: t,
|
|
202
|
-
status:
|
|
203
|
-
budget:
|
|
204
|
-
startDate:
|
|
205
|
-
endDate:
|
|
206
|
-
tags:
|
|
207
|
-
metadata: { currency:
|
|
203
|
+
status: Y(e),
|
|
204
|
+
budget: U.budget ? Number(U.budget) : null,
|
|
205
|
+
startDate: U.startDate || null,
|
|
206
|
+
endDate: U.endDate || null,
|
|
207
|
+
tags: U.tags,
|
|
208
|
+
metadata: { currency: U.currency },
|
|
208
209
|
goals: {
|
|
209
|
-
currency:
|
|
210
|
-
objectives:
|
|
211
|
-
channels:
|
|
212
|
-
kpis:
|
|
213
|
-
demographics:
|
|
210
|
+
currency: U.currency,
|
|
211
|
+
objectives: U.objectives,
|
|
212
|
+
channels: U.channels,
|
|
213
|
+
kpis: U.kpis,
|
|
214
|
+
demographics: U.demographics,
|
|
214
215
|
ageRange: {
|
|
215
|
-
min: Number(
|
|
216
|
-
max: Number(
|
|
216
|
+
min: Number(U.ageMin || "18"),
|
|
217
|
+
max: Number(U.ageMax || "65")
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
};
|
|
220
221
|
}, Z = async (e) => {
|
|
221
|
-
let r =
|
|
222
|
+
let r = ve();
|
|
222
223
|
if (r) {
|
|
223
|
-
|
|
224
|
+
H(r);
|
|
224
225
|
return;
|
|
225
226
|
}
|
|
226
|
-
|
|
227
|
+
H(null);
|
|
227
228
|
try {
|
|
228
|
-
|
|
229
|
+
k && w ? await N({
|
|
229
230
|
variables: {
|
|
230
|
-
id:
|
|
231
|
+
id: w,
|
|
231
232
|
input: X(e)
|
|
232
233
|
},
|
|
233
234
|
refetchQueries: [{
|
|
234
235
|
query: t,
|
|
235
|
-
variables: { id:
|
|
236
|
+
variables: { id: w }
|
|
236
237
|
}, {
|
|
237
238
|
query: n,
|
|
238
239
|
variables: {
|
|
@@ -241,7 +242,7 @@ var T = () => {
|
|
|
241
242
|
}
|
|
242
243
|
}],
|
|
243
244
|
awaitRefetchQueries: !0
|
|
244
|
-
}) : await
|
|
245
|
+
}) : await A({
|
|
245
246
|
variables: { input: X(e) },
|
|
246
247
|
refetchQueries: [{
|
|
247
248
|
query: n,
|
|
@@ -251,18 +252,18 @@ var T = () => {
|
|
|
251
252
|
}
|
|
252
253
|
}],
|
|
253
254
|
awaitRefetchQueries: !0
|
|
254
|
-
}), S
|
|
255
|
+
}), x(S + "/campaigns");
|
|
255
256
|
} catch (e) {
|
|
256
|
-
|
|
257
|
+
H(e instanceof Error ? e.message : "Failed to save campaign.");
|
|
257
258
|
}
|
|
258
|
-
}, Q =
|
|
259
|
-
return
|
|
259
|
+
}, Q = j || P, $ = me ?? M?.message ?? F?.message ?? null;
|
|
260
|
+
return k && T && !D ? /* @__PURE__ */ h(s, {
|
|
260
261
|
title: "Edit Campaign",
|
|
261
262
|
children: /* @__PURE__ */ h("div", {
|
|
262
263
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-sm text-text-secondary",
|
|
263
264
|
children: "Loading campaign details..."
|
|
264
265
|
})
|
|
265
|
-
}) :
|
|
266
|
+
}) : k && !T && !D ? /* @__PURE__ */ h(s, {
|
|
266
267
|
title: "Edit Campaign",
|
|
267
268
|
children: /* @__PURE__ */ g("div", {
|
|
268
269
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
@@ -273,28 +274,29 @@ var T = () => {
|
|
|
273
274
|
}),
|
|
274
275
|
/* @__PURE__ */ h("p", {
|
|
275
276
|
className: "text-xs text-text-secondary mt-1",
|
|
276
|
-
children:
|
|
277
|
+
children: pe?.message ?? "The requested campaign could not be loaded."
|
|
277
278
|
}),
|
|
278
279
|
/* @__PURE__ */ g("button", {
|
|
279
|
-
onClick: () => S
|
|
280
|
+
onClick: () => x(S + "/campaigns"),
|
|
280
281
|
className: "mt-4 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",
|
|
281
282
|
children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), "Back to Campaigns"]
|
|
282
283
|
})
|
|
283
284
|
]
|
|
284
285
|
})
|
|
285
286
|
}) : /* @__PURE__ */ g(s, {
|
|
286
|
-
title:
|
|
287
|
+
title: k ? "Edit Campaign" : "Create Campaign",
|
|
287
288
|
actions: /* @__PURE__ */ g("button", {
|
|
288
|
-
onClick: () => S
|
|
289
|
+
onClick: () => x(S + "/campaigns"),
|
|
289
290
|
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",
|
|
290
291
|
children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), "Back to Campaigns"]
|
|
291
292
|
}),
|
|
292
293
|
children: [
|
|
294
|
+
/* @__PURE__ */ h(_, { children: k ? "Refine this campaign's setup — its goals, audience targeting, creative, budget and the KPIs you'll track. Changes apply the next time the campaign runs." : "Set up a new campaign step by step: name it and pick a type, define who you're targeting, attach creative, set a budget and timeline, then choose the KPIs you want to measure. Save as a draft anytime or launch when ready." }),
|
|
293
295
|
/* @__PURE__ */ h("div", {
|
|
294
296
|
className: "flex items-center gap-1 border-b border-border-subtle",
|
|
295
|
-
children:
|
|
296
|
-
onClick: () =>
|
|
297
|
-
className: a("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px",
|
|
297
|
+
children: de.map((e, t) => /* @__PURE__ */ g("button", {
|
|
298
|
+
onClick: () => L(e.key),
|
|
299
|
+
className: a("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", I === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
298
300
|
children: [/* @__PURE__ */ g("span", {
|
|
299
301
|
className: "mr-1.5 text-xs text-text-secondary",
|
|
300
302
|
children: [t + 1, "."]
|
|
@@ -304,7 +306,7 @@ var T = () => {
|
|
|
304
306
|
/* @__PURE__ */ g("div", {
|
|
305
307
|
className: "rounded-lg border border-border-seam bg-gloss-card p-6 shadow-pop",
|
|
306
308
|
children: [
|
|
307
|
-
|
|
309
|
+
I === "basics" && /* @__PURE__ */ g("div", {
|
|
308
310
|
className: "space-y-6 max-w-2xl",
|
|
309
311
|
children: [
|
|
310
312
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
@@ -312,8 +314,8 @@ var T = () => {
|
|
|
312
314
|
children: "Campaign Name"
|
|
313
315
|
}), /* @__PURE__ */ h("input", {
|
|
314
316
|
type: "text",
|
|
315
|
-
value:
|
|
316
|
-
onChange: (e) =>
|
|
317
|
+
value: U.name,
|
|
318
|
+
onChange: (e) => G("name", e.target.value),
|
|
317
319
|
placeholder: "Enter campaign name...",
|
|
318
320
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
319
321
|
})] }),
|
|
@@ -321,13 +323,13 @@ var T = () => {
|
|
|
321
323
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
322
324
|
children: "Campaign Type"
|
|
323
325
|
}), /* @__PURE__ */ g("select", {
|
|
324
|
-
value:
|
|
325
|
-
onChange: (e) =>
|
|
326
|
+
value: U.type,
|
|
327
|
+
onChange: (e) => G("type", e.target.value),
|
|
326
328
|
className: "w-full 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)]",
|
|
327
329
|
children: [/* @__PURE__ */ h("option", {
|
|
328
330
|
value: "",
|
|
329
331
|
children: "Select type..."
|
|
330
|
-
}),
|
|
332
|
+
}), ce.map((e) => /* @__PURE__ */ h("option", {
|
|
331
333
|
value: e.value,
|
|
332
334
|
children: e.label
|
|
333
335
|
}, e.value))]
|
|
@@ -336,8 +338,8 @@ var T = () => {
|
|
|
336
338
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
337
339
|
children: "Description"
|
|
338
340
|
}), /* @__PURE__ */ h("textarea", {
|
|
339
|
-
value:
|
|
340
|
-
onChange: (e) =>
|
|
341
|
+
value: U.description,
|
|
342
|
+
onChange: (e) => G("description", e.target.value),
|
|
341
343
|
placeholder: "Describe the campaign goals and strategy...",
|
|
342
344
|
rows: 4,
|
|
343
345
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none"
|
|
@@ -347,15 +349,15 @@ var T = () => {
|
|
|
347
349
|
children: "Objectives"
|
|
348
350
|
}), /* @__PURE__ */ h("div", {
|
|
349
351
|
className: "flex flex-wrap gap-2",
|
|
350
|
-
children:
|
|
351
|
-
onClick: () =>
|
|
352
|
-
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors",
|
|
352
|
+
children: v.map((e) => /* @__PURE__ */ h("button", {
|
|
353
|
+
onClick: () => K("objectives", e),
|
|
354
|
+
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", U.objectives.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
353
355
|
children: e
|
|
354
356
|
}, e))
|
|
355
357
|
})] })
|
|
356
358
|
]
|
|
357
359
|
}),
|
|
358
|
-
|
|
360
|
+
I === "targeting" && /* @__PURE__ */ g("div", {
|
|
359
361
|
className: "space-y-6 max-w-2xl",
|
|
360
362
|
children: [
|
|
361
363
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
@@ -366,8 +368,8 @@ var T = () => {
|
|
|
366
368
|
children: [
|
|
367
369
|
/* @__PURE__ */ h("input", {
|
|
368
370
|
type: "number",
|
|
369
|
-
value:
|
|
370
|
-
onChange: (e) =>
|
|
371
|
+
value: U.ageMin,
|
|
372
|
+
onChange: (e) => G("ageMin", e.target.value),
|
|
371
373
|
min: 13,
|
|
372
374
|
max: 100,
|
|
373
375
|
className: "w-24 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)]"
|
|
@@ -378,8 +380,8 @@ var T = () => {
|
|
|
378
380
|
}),
|
|
379
381
|
/* @__PURE__ */ h("input", {
|
|
380
382
|
type: "number",
|
|
381
|
-
value:
|
|
382
|
-
onChange: (e) =>
|
|
383
|
+
value: U.ageMax,
|
|
384
|
+
onChange: (e) => G("ageMax", e.target.value),
|
|
383
385
|
min: 13,
|
|
384
386
|
max: 100,
|
|
385
387
|
className: "w-24 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)]"
|
|
@@ -393,10 +395,10 @@ var T = () => {
|
|
|
393
395
|
}),
|
|
394
396
|
/* @__PURE__ */ h("div", {
|
|
395
397
|
className: "flex flex-wrap gap-2 mb-2",
|
|
396
|
-
children:
|
|
398
|
+
children: U.demographics.map((e) => /* @__PURE__ */ g("span", {
|
|
397
399
|
className: "inline-flex items-center gap-1 rounded-full border border-border-subtle bg-bg-sunken px-2.5 py-1 text-xs font-medium text-text-primary",
|
|
398
400
|
children: [e, /* @__PURE__ */ h("button", {
|
|
399
|
-
onClick: () =>
|
|
401
|
+
onClick: () => ge(e),
|
|
400
402
|
className: "text-text-secondary hover:text-text-primary",
|
|
401
403
|
children: /* @__PURE__ */ h(p, { className: "h-3 w-3" })
|
|
402
404
|
})]
|
|
@@ -406,21 +408,21 @@ var T = () => {
|
|
|
406
408
|
className: "flex items-center gap-2 mb-2",
|
|
407
409
|
children: [/* @__PURE__ */ h("input", {
|
|
408
410
|
type: "text",
|
|
409
|
-
value:
|
|
410
|
-
onChange: (e) =>
|
|
411
|
-
onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(),
|
|
411
|
+
value: B,
|
|
412
|
+
onChange: (e) => V(e.target.value),
|
|
413
|
+
onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), J()),
|
|
412
414
|
placeholder: "Add demographic...",
|
|
413
415
|
className: "flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
414
416
|
}), /* @__PURE__ */ h("button", {
|
|
415
|
-
onClick: () =>
|
|
417
|
+
onClick: () => J(),
|
|
416
418
|
className: "rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
417
419
|
children: "Add"
|
|
418
420
|
})]
|
|
419
421
|
}),
|
|
420
422
|
/* @__PURE__ */ h("div", {
|
|
421
423
|
className: "flex flex-wrap gap-1.5",
|
|
422
|
-
children:
|
|
423
|
-
onClick: () =>
|
|
424
|
+
children: ue.filter((e) => !U.demographics.includes(e)).map((e) => /* @__PURE__ */ g("button", {
|
|
425
|
+
onClick: () => J(e),
|
|
424
426
|
className: "rounded-full border border-dashed border-border-subtle px-2.5 py-1 text-xs text-text-secondary hover:text-text-primary hover:border-foreground transition-colors",
|
|
425
427
|
children: ["+ ", e]
|
|
426
428
|
}, e))
|
|
@@ -431,15 +433,15 @@ var T = () => {
|
|
|
431
433
|
children: "Channels"
|
|
432
434
|
}), /* @__PURE__ */ h("div", {
|
|
433
435
|
className: "flex flex-wrap gap-2",
|
|
434
|
-
children:
|
|
435
|
-
onClick: () =>
|
|
436
|
-
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors",
|
|
436
|
+
children: y.map((e) => /* @__PURE__ */ h("button", {
|
|
437
|
+
onClick: () => K("channels", e),
|
|
438
|
+
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", U.channels.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
437
439
|
children: e
|
|
438
440
|
}, e))
|
|
439
441
|
})] })
|
|
440
442
|
]
|
|
441
443
|
}),
|
|
442
|
-
|
|
444
|
+
I === "content" && /* @__PURE__ */ g("div", {
|
|
443
445
|
className: "space-y-6",
|
|
444
446
|
children: [/* @__PURE__ */ h("p", {
|
|
445
447
|
className: "text-sm text-text-secondary",
|
|
@@ -485,7 +487,7 @@ var T = () => {
|
|
|
485
487
|
}, e.label))
|
|
486
488
|
})]
|
|
487
489
|
}),
|
|
488
|
-
|
|
490
|
+
I === "budget" && /* @__PURE__ */ g("div", {
|
|
489
491
|
className: "space-y-6 max-w-2xl",
|
|
490
492
|
children: [/* @__PURE__ */ g("div", {
|
|
491
493
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
@@ -494,8 +496,8 @@ var T = () => {
|
|
|
494
496
|
children: "Budget"
|
|
495
497
|
}), /* @__PURE__ */ h("input", {
|
|
496
498
|
type: "number",
|
|
497
|
-
value:
|
|
498
|
-
onChange: (e) =>
|
|
499
|
+
value: U.budget,
|
|
500
|
+
onChange: (e) => G("budget", e.target.value),
|
|
499
501
|
placeholder: "0",
|
|
500
502
|
min: 0,
|
|
501
503
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
@@ -503,10 +505,10 @@ var T = () => {
|
|
|
503
505
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
504
506
|
children: "Currency"
|
|
505
507
|
}), /* @__PURE__ */ h("select", {
|
|
506
|
-
value:
|
|
507
|
-
onChange: (e) =>
|
|
508
|
+
value: U.currency,
|
|
509
|
+
onChange: (e) => G("currency", e.target.value),
|
|
508
510
|
className: "w-full 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)]",
|
|
509
|
-
children:
|
|
511
|
+
children: le.map((e) => /* @__PURE__ */ h("option", {
|
|
510
512
|
value: e,
|
|
511
513
|
children: e
|
|
512
514
|
}, e))
|
|
@@ -518,30 +520,30 @@ var T = () => {
|
|
|
518
520
|
children: "Start Date"
|
|
519
521
|
}), /* @__PURE__ */ h("input", {
|
|
520
522
|
type: "date",
|
|
521
|
-
value:
|
|
522
|
-
onChange: (e) =>
|
|
523
|
+
value: U.startDate,
|
|
524
|
+
onChange: (e) => G("startDate", e.target.value),
|
|
523
525
|
className: "w-full 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)]"
|
|
524
526
|
})] }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
525
527
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
526
528
|
children: "End Date"
|
|
527
529
|
}), /* @__PURE__ */ h("input", {
|
|
528
530
|
type: "date",
|
|
529
|
-
value:
|
|
530
|
-
onChange: (e) =>
|
|
531
|
+
value: U.endDate,
|
|
532
|
+
onChange: (e) => G("endDate", e.target.value),
|
|
531
533
|
className: "w-full 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)]"
|
|
532
534
|
})] })]
|
|
533
535
|
})]
|
|
534
536
|
}),
|
|
535
|
-
|
|
537
|
+
I === "tracking" && /* @__PURE__ */ g("div", {
|
|
536
538
|
className: "space-y-6 max-w-2xl",
|
|
537
539
|
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
538
540
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
539
541
|
children: "Key Performance Indicators"
|
|
540
542
|
}), /* @__PURE__ */ h("div", {
|
|
541
543
|
className: "flex flex-wrap gap-2",
|
|
542
|
-
children:
|
|
543
|
-
onClick: () =>
|
|
544
|
-
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors",
|
|
544
|
+
children: se.map((e) => /* @__PURE__ */ h("button", {
|
|
545
|
+
onClick: () => K("kpis", e),
|
|
546
|
+
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", U.kpis.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
545
547
|
children: e
|
|
546
548
|
}, e))
|
|
547
549
|
})] }), /* @__PURE__ */ g("div", { children: [
|
|
@@ -551,10 +553,10 @@ var T = () => {
|
|
|
551
553
|
}),
|
|
552
554
|
/* @__PURE__ */ h("div", {
|
|
553
555
|
className: "flex flex-wrap gap-2 mb-2",
|
|
554
|
-
children:
|
|
556
|
+
children: U.tags.map((e) => /* @__PURE__ */ g("span", {
|
|
555
557
|
className: "inline-flex items-center gap-1 rounded-full border border-border-subtle bg-bg-sunken px-2.5 py-1 text-xs font-medium text-text-primary",
|
|
556
558
|
children: [e, /* @__PURE__ */ h("button", {
|
|
557
|
-
onClick: () =>
|
|
559
|
+
onClick: () => he(e),
|
|
558
560
|
className: "text-text-secondary hover:text-text-primary",
|
|
559
561
|
children: /* @__PURE__ */ h(p, { className: "h-3 w-3" })
|
|
560
562
|
})]
|
|
@@ -564,13 +566,13 @@ var T = () => {
|
|
|
564
566
|
className: "flex items-center gap-2",
|
|
565
567
|
children: [/* @__PURE__ */ h("input", {
|
|
566
568
|
type: "text",
|
|
567
|
-
value:
|
|
568
|
-
onChange: (e) =>
|
|
569
|
-
onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(),
|
|
569
|
+
value: R,
|
|
570
|
+
onChange: (e) => z(e.target.value),
|
|
571
|
+
onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), q()),
|
|
570
572
|
placeholder: "Add a tag...",
|
|
571
573
|
className: "flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
572
574
|
}), /* @__PURE__ */ h("button", {
|
|
573
|
-
onClick:
|
|
575
|
+
onClick: q,
|
|
574
576
|
className: "rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
575
577
|
children: "Add"
|
|
576
578
|
})]
|
|
@@ -587,7 +589,7 @@ var T = () => {
|
|
|
587
589
|
className: "flex items-center justify-end gap-3 rounded-lg border border-border-seam bg-gloss-card p-4 shadow-pop",
|
|
588
590
|
children: [
|
|
589
591
|
/* @__PURE__ */ h("button", {
|
|
590
|
-
onClick: () => S
|
|
592
|
+
onClick: () => x(S + "/campaigns"),
|
|
591
593
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
592
594
|
children: "Cancel"
|
|
593
595
|
}),
|
|
@@ -601,7 +603,7 @@ var T = () => {
|
|
|
601
603
|
onClick: () => Z("launch"),
|
|
602
604
|
disabled: Q,
|
|
603
605
|
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 disabled:opacity-60",
|
|
604
|
-
children: [/* @__PURE__ */ h(re, { className: "h-4 w-4" }),
|
|
606
|
+
children: [/* @__PURE__ */ h(re, { className: "h-4 w-4" }), k ? "Update Campaign" : "Create Campaign"]
|
|
605
607
|
})
|
|
606
608
|
]
|
|
607
609
|
})
|
|
@@ -609,6 +611,6 @@ var T = () => {
|
|
|
609
611
|
});
|
|
610
612
|
};
|
|
611
613
|
//#endregion
|
|
612
|
-
export {
|
|
614
|
+
export { w as CreateCampaignPage };
|
|
613
615
|
|
|
614
616
|
//# sourceMappingURL=CreateCampaignPage.js.map
|