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