@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
|
@@ -5,9 +5,9 @@ import { PageLayout as i } from "../../components/PageLayout.js";
|
|
|
5
5
|
import "../../components/index.js";
|
|
6
6
|
import { HeadshotmarketingAdCampaignStatus as a, HeadshotmarketingAdPlatform as o } from "../../../generated/wspace-types.js";
|
|
7
7
|
import { useState as s } from "react";
|
|
8
|
-
import { ArrowLeft as c, Check as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { PagePurpose as f } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { ArrowLeft as c, Check as ee } from "lucide-react";
|
|
9
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as d, PagePurpose as f } from "@burdenoff/fe-libs/ui";
|
|
11
11
|
//#region src/headshotmarketing/pages/ads/CreateAdCampaignPage.tsx
|
|
12
12
|
var p = [
|
|
13
13
|
{
|
|
@@ -44,11 +44,11 @@ var p = [
|
|
|
44
44
|
"45-54",
|
|
45
45
|
"55-64",
|
|
46
46
|
"65+"
|
|
47
|
-
],
|
|
47
|
+
], g = [
|
|
48
48
|
"All",
|
|
49
49
|
"Male",
|
|
50
50
|
"Female"
|
|
51
|
-
],
|
|
51
|
+
], _ = [
|
|
52
52
|
"Photography",
|
|
53
53
|
"Business",
|
|
54
54
|
"Personal Branding",
|
|
@@ -57,73 +57,73 @@ var p = [
|
|
|
57
57
|
"Technology",
|
|
58
58
|
"Marketing",
|
|
59
59
|
"Entrepreneurship"
|
|
60
|
-
],
|
|
61
|
-
let { navigate:
|
|
62
|
-
|
|
60
|
+
], v = () => {
|
|
61
|
+
let { navigate: v } = e(), [y, { loading: b, error: x }] = n(), [S, C] = s(null), [w, T] = s("info"), [E, D] = s(""), [O, k] = s("google_ads"), [A, te] = s(""), [j, M] = s(""), [N, P] = s(new Set(["25-34", "35-44"])), [F, I] = s("All"), [L, R] = s("United States"), [z, B] = s(new Set(["Photography", "Business"])), [V, H] = s("total"), [U, W] = s("5000"), [G, K] = s(""), [q, J] = s(""), [Y, X] = s("Maximize Conversions"), Z = (e) => {
|
|
62
|
+
P((t) => {
|
|
63
63
|
let n = new Set(t);
|
|
64
64
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
65
65
|
});
|
|
66
|
-
},
|
|
67
|
-
|
|
66
|
+
}, ne = (e) => {
|
|
67
|
+
B((t) => {
|
|
68
68
|
let n = new Set(t);
|
|
69
69
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
70
70
|
});
|
|
71
|
-
}, Q = p.findIndex((e) => e.key ===
|
|
71
|
+
}, Q = p.findIndex((e) => e.key === w), re = () => {
|
|
72
72
|
let e = Q + 1;
|
|
73
|
-
e < p.length &&
|
|
74
|
-
}, re = () => {
|
|
75
|
-
let e = Q - 1;
|
|
76
|
-
e >= 0 && w(p[e].key);
|
|
73
|
+
e < p.length && T(p[e].key);
|
|
77
74
|
}, ie = () => {
|
|
78
|
-
|
|
75
|
+
let e = Q - 1;
|
|
76
|
+
e >= 0 && T(p[e].key);
|
|
77
|
+
}, ae = () => {
|
|
78
|
+
switch (O) {
|
|
79
79
|
case "facebook": return o.FacebookAds;
|
|
80
80
|
case "instagram": return o.InstagramAds;
|
|
81
81
|
case "linkedin": return o.LinkedinAds;
|
|
82
82
|
case "twitter": return o.TwitterAds;
|
|
83
83
|
default: return o.GoogleAds;
|
|
84
84
|
}
|
|
85
|
-
},
|
|
86
|
-
if (!
|
|
87
|
-
|
|
85
|
+
}, oe = async () => {
|
|
86
|
+
if (!E.trim()) {
|
|
87
|
+
C("Campaign name is required.");
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
let e = Number(
|
|
90
|
+
let e = Number(U);
|
|
91
91
|
if (!Number.isFinite(e) || e <= 0) {
|
|
92
|
-
|
|
92
|
+
C("Budget must be a valid number greater than zero.");
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
if (!
|
|
96
|
-
|
|
95
|
+
if (!G || !q) {
|
|
96
|
+
C("Start and end dates are required.");
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
let n = new Date(
|
|
99
|
+
let n = new Date(G).getTime(), r = new Date(q).getTime();
|
|
100
100
|
if (Number.isFinite(n) && Number.isFinite(r) && r < n) {
|
|
101
|
-
|
|
101
|
+
C("End date must be after start date.");
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
C(null);
|
|
105
105
|
let i = {
|
|
106
|
-
name:
|
|
107
|
-
description:
|
|
108
|
-
platform:
|
|
106
|
+
name: E,
|
|
107
|
+
description: j || null,
|
|
108
|
+
platform: ae(),
|
|
109
109
|
status: a.Draft,
|
|
110
|
-
bidStrategy:
|
|
111
|
-
startDate: new Date(
|
|
112
|
-
endDate: new Date(
|
|
113
|
-
dailyBudget:
|
|
114
|
-
totalBudget:
|
|
110
|
+
bidStrategy: Y,
|
|
111
|
+
startDate: new Date(G).toISOString(),
|
|
112
|
+
endDate: new Date(q).toISOString(),
|
|
113
|
+
dailyBudget: V === "daily" ? e : null,
|
|
114
|
+
totalBudget: V === "total" ? e : null,
|
|
115
115
|
metadata: {
|
|
116
|
-
objective:
|
|
116
|
+
objective: A,
|
|
117
117
|
targeting: {
|
|
118
|
-
ages: Array.from(
|
|
119
|
-
gender:
|
|
120
|
-
locations:
|
|
121
|
-
interests: Array.from(
|
|
118
|
+
ages: Array.from(N),
|
|
119
|
+
gender: F,
|
|
120
|
+
locations: L.split(",").map((e) => e.trim()).filter(Boolean),
|
|
121
|
+
interests: Array.from(z)
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
try {
|
|
126
|
-
await
|
|
126
|
+
await y({
|
|
127
127
|
variables: { input: i },
|
|
128
128
|
refetchQueries: [{
|
|
129
129
|
query: t,
|
|
@@ -133,356 +133,356 @@ var p = [
|
|
|
133
133
|
}
|
|
134
134
|
}],
|
|
135
135
|
awaitRefetchQueries: !0
|
|
136
|
-
}),
|
|
136
|
+
}), v("/ads/campaigns");
|
|
137
137
|
} catch (e) {
|
|
138
|
-
|
|
138
|
+
C(e instanceof Error ? e.message : "Failed to create ad campaign.");
|
|
139
139
|
}
|
|
140
|
-
}, $ =
|
|
141
|
-
return /* @__PURE__ */
|
|
140
|
+
}, $ = S ?? x?.message ?? null;
|
|
141
|
+
return /* @__PURE__ */ u(i, {
|
|
142
142
|
title: "Create Ad Campaign",
|
|
143
143
|
description: "Set up a new advertising campaign",
|
|
144
|
-
actions: /* @__PURE__ */
|
|
145
|
-
onClick: () =>
|
|
144
|
+
actions: /* @__PURE__ */ u("button", {
|
|
145
|
+
onClick: () => v("/ads/campaigns"),
|
|
146
146
|
className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ l(c, { className: "h-4 w-4" }), "Back"]
|
|
148
148
|
}),
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ l(f, { children: "Launch a paid campaign in four guided steps — name it and pick a platform and objective, choose who to target, set your budget and schedule, then review everything before it goes live." }),
|
|
151
|
+
/* @__PURE__ */ l("div", {
|
|
152
152
|
className: "flex items-center gap-2",
|
|
153
|
-
children: p.map((e, t) => /* @__PURE__ */
|
|
153
|
+
children: p.map((e, t) => /* @__PURE__ */ u("div", {
|
|
154
154
|
className: "flex items-center",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
156
|
-
onClick: () =>
|
|
157
|
-
className: r("flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition-colors",
|
|
158
|
-
children: [t < Q ? /* @__PURE__ */
|
|
155
|
+
children: [/* @__PURE__ */ u("button", {
|
|
156
|
+
onClick: () => T(e.key),
|
|
157
|
+
className: r("flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition-colors", w === e.key ? "bg-foreground text-background" : t < Q ? "bg-status-success-bg text-status-success-text" : "bg-bg-sunken text-text-secondary"),
|
|
158
|
+
children: [t < Q ? /* @__PURE__ */ l(ee, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ l("span", { children: e.step }), /* @__PURE__ */ l("span", {
|
|
159
159
|
className: "hidden sm:inline",
|
|
160
160
|
children: e.label
|
|
161
161
|
})]
|
|
162
|
-
}), t < p.length - 1 && /* @__PURE__ */
|
|
162
|
+
}), t < p.length - 1 && /* @__PURE__ */ l("div", { className: "mx-2 h-px w-8 bg-border" })]
|
|
163
163
|
}, e.key))
|
|
164
164
|
}),
|
|
165
|
-
|
|
166
|
-
className: "
|
|
165
|
+
w === "info" && /* @__PURE__ */ u(d, {
|
|
166
|
+
className: "p-6 space-y-5 max-w-2xl",
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
169
169
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
170
170
|
children: "Campaign Name"
|
|
171
|
-
}), /* @__PURE__ */
|
|
171
|
+
}), /* @__PURE__ */ l("input", {
|
|
172
172
|
type: "text",
|
|
173
|
-
value:
|
|
174
|
-
onChange: (e) =>
|
|
173
|
+
value: E,
|
|
174
|
+
onChange: (e) => D(e.target.value),
|
|
175
175
|
placeholder: "e.g., Spring Headshot Promo",
|
|
176
176
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
177
177
|
})] }),
|
|
178
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
179
179
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
180
180
|
children: "Platform"
|
|
181
|
-
}), /* @__PURE__ */
|
|
182
|
-
value:
|
|
183
|
-
onChange: (e) =>
|
|
181
|
+
}), /* @__PURE__ */ u("select", {
|
|
182
|
+
value: O,
|
|
183
|
+
onChange: (e) => k(e.target.value),
|
|
184
184
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ l("option", {
|
|
187
187
|
value: "google_ads",
|
|
188
188
|
children: "Google Ads"
|
|
189
189
|
}),
|
|
190
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ l("option", {
|
|
191
191
|
value: "facebook",
|
|
192
192
|
children: "Facebook"
|
|
193
193
|
}),
|
|
194
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ l("option", {
|
|
195
195
|
value: "instagram",
|
|
196
196
|
children: "Instagram"
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ l("option", {
|
|
199
199
|
value: "linkedin",
|
|
200
200
|
children: "LinkedIn"
|
|
201
201
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ l("option", {
|
|
203
203
|
value: "twitter",
|
|
204
204
|
children: "Twitter"
|
|
205
205
|
})
|
|
206
206
|
]
|
|
207
207
|
})] }),
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
209
209
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
210
210
|
children: "Objective"
|
|
211
|
-
}), /* @__PURE__ */
|
|
211
|
+
}), /* @__PURE__ */ l("div", {
|
|
212
212
|
className: "grid grid-cols-2 gap-2 sm:grid-cols-3",
|
|
213
|
-
children: m.map((e) => /* @__PURE__ */
|
|
213
|
+
children: m.map((e) => /* @__PURE__ */ l("button", {
|
|
214
214
|
onClick: () => te(e),
|
|
215
|
-
className: r("rounded-md border px-3 py-2 text-sm transition-colors",
|
|
215
|
+
className: r("rounded-md border px-3 py-2 text-sm transition-colors", A === e ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
216
216
|
children: e
|
|
217
217
|
}, e))
|
|
218
218
|
})] }),
|
|
219
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
220
220
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
221
221
|
children: "Description"
|
|
222
|
-
}), /* @__PURE__ */
|
|
223
|
-
value:
|
|
224
|
-
onChange: (e) =>
|
|
222
|
+
}), /* @__PURE__ */ l("textarea", {
|
|
223
|
+
value: j,
|
|
224
|
+
onChange: (e) => M(e.target.value),
|
|
225
225
|
rows: 3,
|
|
226
226
|
placeholder: "Describe your campaign goals...",
|
|
227
227
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none"
|
|
228
228
|
})] })
|
|
229
229
|
]
|
|
230
230
|
}),
|
|
231
|
-
|
|
232
|
-
className: "
|
|
231
|
+
w === "targeting" && /* @__PURE__ */ u(d, {
|
|
232
|
+
className: "p-6 space-y-5 max-w-2xl",
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
235
235
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
236
236
|
children: "Age Range"
|
|
237
|
-
}), /* @__PURE__ */
|
|
237
|
+
}), /* @__PURE__ */ l("div", {
|
|
238
238
|
className: "flex flex-wrap gap-2",
|
|
239
|
-
children: h.map((e) => /* @__PURE__ */
|
|
240
|
-
onClick: () =>
|
|
241
|
-
className: r("rounded-full border px-3 py-1.5 text-sm transition-colors",
|
|
239
|
+
children: h.map((e) => /* @__PURE__ */ l("button", {
|
|
240
|
+
onClick: () => Z(e),
|
|
241
|
+
className: r("rounded-full border px-3 py-1.5 text-sm transition-colors", N.has(e) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
242
242
|
children: e
|
|
243
243
|
}, e))
|
|
244
244
|
})] }),
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
246
246
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
247
247
|
children: "Gender"
|
|
248
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ l("div", {
|
|
249
249
|
className: "flex gap-2",
|
|
250
|
-
children:
|
|
251
|
-
onClick: () =>
|
|
252
|
-
className: r("rounded-full border px-4 py-1.5 text-sm transition-colors",
|
|
250
|
+
children: g.map((e) => /* @__PURE__ */ l("button", {
|
|
251
|
+
onClick: () => I(e),
|
|
252
|
+
className: r("rounded-full border px-4 py-1.5 text-sm transition-colors", F === e ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
253
253
|
children: e
|
|
254
254
|
}, e))
|
|
255
255
|
})] }),
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
257
257
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
258
258
|
children: "Locations"
|
|
259
|
-
}), /* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ l("input", {
|
|
260
260
|
type: "text",
|
|
261
|
-
value:
|
|
262
|
-
onChange: (e) =>
|
|
261
|
+
value: L,
|
|
262
|
+
onChange: (e) => R(e.target.value),
|
|
263
263
|
placeholder: "Enter locations (comma-separated)",
|
|
264
264
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
265
265
|
})] }),
|
|
266
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
267
267
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
268
268
|
children: "Interests"
|
|
269
|
-
}), /* @__PURE__ */
|
|
269
|
+
}), /* @__PURE__ */ l("div", {
|
|
270
270
|
className: "flex flex-wrap gap-2",
|
|
271
|
-
children:
|
|
272
|
-
onClick: () =>
|
|
273
|
-
className: r("rounded-full border px-3 py-1.5 text-sm transition-colors",
|
|
271
|
+
children: _.map((e) => /* @__PURE__ */ l("button", {
|
|
272
|
+
onClick: () => ne(e),
|
|
273
|
+
className: r("rounded-full border px-3 py-1.5 text-sm transition-colors", z.has(e) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
274
274
|
children: e
|
|
275
275
|
}, e))
|
|
276
276
|
})] })
|
|
277
277
|
]
|
|
278
278
|
}),
|
|
279
|
-
|
|
280
|
-
className: "
|
|
279
|
+
w === "budget" && /* @__PURE__ */ u(d, {
|
|
280
|
+
className: "p-6 space-y-5 max-w-2xl",
|
|
281
281
|
children: [
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
283
283
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
284
284
|
children: "Budget Type"
|
|
285
|
-
}), /* @__PURE__ */
|
|
285
|
+
}), /* @__PURE__ */ u("div", {
|
|
286
286
|
className: "flex gap-2",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
288
|
-
onClick: () =>
|
|
289
|
-
className: r("rounded-md border px-4 py-2 text-sm",
|
|
287
|
+
children: [/* @__PURE__ */ l("button", {
|
|
288
|
+
onClick: () => H("daily"),
|
|
289
|
+
className: r("rounded-md border px-4 py-2 text-sm", V === "daily" ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
290
290
|
children: "Daily Budget"
|
|
291
|
-
}), /* @__PURE__ */
|
|
292
|
-
onClick: () =>
|
|
293
|
-
className: r("rounded-md border px-4 py-2 text-sm",
|
|
291
|
+
}), /* @__PURE__ */ l("button", {
|
|
292
|
+
onClick: () => H("total"),
|
|
293
|
+
className: r("rounded-md border px-4 py-2 text-sm", V === "total" ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
294
294
|
children: "Total Budget"
|
|
295
295
|
})]
|
|
296
296
|
})] }),
|
|
297
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("label", {
|
|
298
298
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
299
|
-
children: [
|
|
300
|
-
}), /* @__PURE__ */
|
|
299
|
+
children: [V === "daily" ? "Daily" : "Total", " Budget (USD)"]
|
|
300
|
+
}), /* @__PURE__ */ l("input", {
|
|
301
301
|
type: "number",
|
|
302
|
-
value:
|
|
303
|
-
onChange: (e) =>
|
|
302
|
+
value: U,
|
|
303
|
+
onChange: (e) => W(e.target.value),
|
|
304
304
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
305
305
|
})] }),
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ u("div", {
|
|
307
307
|
className: "grid grid-cols-2 gap-4",
|
|
308
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
309
309
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
310
310
|
children: "Start Date"
|
|
311
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ l("input", {
|
|
312
312
|
type: "date",
|
|
313
|
-
value:
|
|
314
|
-
onChange: (e) =>
|
|
313
|
+
value: G,
|
|
314
|
+
onChange: (e) => K(e.target.value),
|
|
315
315
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
316
|
-
})] }), /* @__PURE__ */
|
|
316
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
317
317
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
318
318
|
children: "End Date"
|
|
319
|
-
}), /* @__PURE__ */
|
|
319
|
+
}), /* @__PURE__ */ l("input", {
|
|
320
320
|
type: "date",
|
|
321
|
-
value:
|
|
322
|
-
onChange: (e) =>
|
|
321
|
+
value: q,
|
|
322
|
+
onChange: (e) => J(e.target.value),
|
|
323
323
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
324
324
|
})] })]
|
|
325
325
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
327
327
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
328
328
|
children: "Bid Strategy"
|
|
329
|
-
}), /* @__PURE__ */
|
|
330
|
-
value:
|
|
331
|
-
onChange: (e) =>
|
|
329
|
+
}), /* @__PURE__ */ u("select", {
|
|
330
|
+
value: Y,
|
|
331
|
+
onChange: (e) => X(e.target.value),
|
|
332
332
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
333
333
|
children: [
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
/* @__PURE__ */
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ l("option", { children: "Maximize Conversions" }),
|
|
335
|
+
/* @__PURE__ */ l("option", { children: "Target CPA" }),
|
|
336
|
+
/* @__PURE__ */ l("option", { children: "Target ROAS" }),
|
|
337
|
+
/* @__PURE__ */ l("option", { children: "Lowest Cost" }),
|
|
338
|
+
/* @__PURE__ */ l("option", { children: "Manual CPC" })
|
|
339
339
|
]
|
|
340
340
|
})] })
|
|
341
341
|
]
|
|
342
342
|
}),
|
|
343
|
-
|
|
344
|
-
className: "
|
|
345
|
-
children: [/* @__PURE__ */
|
|
343
|
+
w === "review" && /* @__PURE__ */ u(d, {
|
|
344
|
+
className: "p-6 space-y-5 max-w-2xl",
|
|
345
|
+
children: [/* @__PURE__ */ l("h3", {
|
|
346
346
|
className: "text-sm font-semibold text-text-primary",
|
|
347
347
|
children: "Campaign Summary"
|
|
348
|
-
}), /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ u("div", {
|
|
349
349
|
className: "space-y-3",
|
|
350
350
|
children: [
|
|
351
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ u("div", {
|
|
352
352
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
353
|
-
children: [/* @__PURE__ */
|
|
353
|
+
children: [/* @__PURE__ */ l("span", {
|
|
354
354
|
className: "text-sm text-text-secondary",
|
|
355
355
|
children: "Name"
|
|
356
|
-
}), /* @__PURE__ */
|
|
356
|
+
}), /* @__PURE__ */ l("span", {
|
|
357
357
|
className: "text-sm font-medium text-text-primary",
|
|
358
|
-
children:
|
|
358
|
+
children: E || "(Not set)"
|
|
359
359
|
})]
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ u("div", {
|
|
362
362
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ l("span", {
|
|
364
364
|
className: "text-sm text-text-secondary",
|
|
365
365
|
children: "Platform"
|
|
366
|
-
}), /* @__PURE__ */
|
|
366
|
+
}), /* @__PURE__ */ l("span", {
|
|
367
367
|
className: "text-sm font-medium text-text-primary capitalize",
|
|
368
|
-
children:
|
|
368
|
+
children: O.replace("_", " ")
|
|
369
369
|
})]
|
|
370
370
|
}),
|
|
371
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ u("div", {
|
|
372
372
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ l("span", {
|
|
374
374
|
className: "text-sm text-text-secondary",
|
|
375
375
|
children: "Objective"
|
|
376
|
-
}), /* @__PURE__ */
|
|
376
|
+
}), /* @__PURE__ */ l("span", {
|
|
377
377
|
className: "text-sm font-medium text-text-primary",
|
|
378
|
-
children:
|
|
378
|
+
children: A || "(Not set)"
|
|
379
379
|
})]
|
|
380
380
|
}),
|
|
381
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ u("div", {
|
|
382
382
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
383
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ l("span", {
|
|
384
384
|
className: "text-sm text-text-secondary",
|
|
385
385
|
children: "Target Ages"
|
|
386
|
-
}), /* @__PURE__ */
|
|
386
|
+
}), /* @__PURE__ */ l("span", {
|
|
387
387
|
className: "text-sm font-medium text-text-primary",
|
|
388
|
-
children: Array.from(
|
|
388
|
+
children: Array.from(N).join(", ") || "(Not set)"
|
|
389
389
|
})]
|
|
390
390
|
}),
|
|
391
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ u("div", {
|
|
392
392
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
393
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ l("span", {
|
|
394
394
|
className: "text-sm text-text-secondary",
|
|
395
395
|
children: "Gender"
|
|
396
|
-
}), /* @__PURE__ */
|
|
396
|
+
}), /* @__PURE__ */ l("span", {
|
|
397
397
|
className: "text-sm font-medium text-text-primary",
|
|
398
|
-
children:
|
|
398
|
+
children: F
|
|
399
399
|
})]
|
|
400
400
|
}),
|
|
401
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ u("div", {
|
|
402
402
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
403
|
+
children: [/* @__PURE__ */ l("span", {
|
|
404
404
|
className: "text-sm text-text-secondary",
|
|
405
405
|
children: "Locations"
|
|
406
|
-
}), /* @__PURE__ */
|
|
406
|
+
}), /* @__PURE__ */ l("span", {
|
|
407
407
|
className: "text-sm font-medium text-text-primary",
|
|
408
|
-
children:
|
|
408
|
+
children: L || "(Not set)"
|
|
409
409
|
})]
|
|
410
410
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ u("div", {
|
|
412
412
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
413
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ l("span", {
|
|
414
414
|
className: "text-sm text-text-secondary",
|
|
415
415
|
children: "Interests"
|
|
416
|
-
}), /* @__PURE__ */
|
|
416
|
+
}), /* @__PURE__ */ l("span", {
|
|
417
417
|
className: "text-sm font-medium text-text-primary",
|
|
418
|
-
children: Array.from(
|
|
418
|
+
children: Array.from(z).join(", ") || "(Not set)"
|
|
419
419
|
})]
|
|
420
420
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ u("div", {
|
|
422
422
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
423
|
-
children: [/* @__PURE__ */
|
|
423
|
+
children: [/* @__PURE__ */ l("span", {
|
|
424
424
|
className: "text-sm text-text-secondary",
|
|
425
425
|
children: "Budget"
|
|
426
|
-
}), /* @__PURE__ */
|
|
426
|
+
}), /* @__PURE__ */ u("span", {
|
|
427
427
|
className: "text-sm font-medium text-text-primary",
|
|
428
428
|
children: [
|
|
429
429
|
"$",
|
|
430
|
-
|
|
430
|
+
U,
|
|
431
431
|
" (",
|
|
432
|
-
|
|
432
|
+
V,
|
|
433
433
|
")"
|
|
434
434
|
]
|
|
435
435
|
})]
|
|
436
436
|
}),
|
|
437
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ u("div", {
|
|
438
438
|
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
439
|
-
children: [/* @__PURE__ */
|
|
439
|
+
children: [/* @__PURE__ */ l("span", {
|
|
440
440
|
className: "text-sm text-text-secondary",
|
|
441
441
|
children: "Schedule"
|
|
442
|
-
}), /* @__PURE__ */
|
|
442
|
+
}), /* @__PURE__ */ l("span", {
|
|
443
443
|
className: "text-sm font-medium text-text-primary",
|
|
444
|
-
children:
|
|
444
|
+
children: G && q ? `${G} to ${q}` : "(Not set)"
|
|
445
445
|
})]
|
|
446
446
|
}),
|
|
447
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ u("div", {
|
|
448
448
|
className: "flex justify-between",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
449
|
+
children: [/* @__PURE__ */ l("span", {
|
|
450
450
|
className: "text-sm text-text-secondary",
|
|
451
451
|
children: "Bid Strategy"
|
|
452
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ l("span", {
|
|
453
453
|
className: "text-sm font-medium text-text-primary",
|
|
454
|
-
children:
|
|
454
|
+
children: Y
|
|
455
455
|
})]
|
|
456
456
|
})
|
|
457
457
|
]
|
|
458
458
|
})]
|
|
459
459
|
}),
|
|
460
|
-
$ && /* @__PURE__ */
|
|
460
|
+
$ && /* @__PURE__ */ l("div", {
|
|
461
461
|
className: "max-w-2xl rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
462
462
|
children: $
|
|
463
463
|
}),
|
|
464
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ u("div", {
|
|
465
465
|
className: "flex items-center justify-between max-w-2xl",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
467
|
-
onClick:
|
|
466
|
+
children: [/* @__PURE__ */ l("button", {
|
|
467
|
+
onClick: ie,
|
|
468
468
|
disabled: Q === 0,
|
|
469
469
|
className: r("rounded-md border border-border-subtle px-4 py-2 text-sm font-medium", Q === 0 ? "opacity-50 cursor-not-allowed text-text-secondary" : "text-text-primary hover:bg-bg-sunken"),
|
|
470
470
|
children: "Previous"
|
|
471
|
-
}), Q < p.length - 1 ? /* @__PURE__ */
|
|
472
|
-
onClick:
|
|
471
|
+
}), Q < p.length - 1 ? /* @__PURE__ */ l("button", {
|
|
472
|
+
onClick: re,
|
|
473
473
|
className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90",
|
|
474
474
|
children: "Next"
|
|
475
|
-
}) : /* @__PURE__ */
|
|
476
|
-
onClick:
|
|
477
|
-
disabled:
|
|
475
|
+
}) : /* @__PURE__ */ l("button", {
|
|
476
|
+
onClick: oe,
|
|
477
|
+
disabled: b,
|
|
478
478
|
className: "rounded-md bg-foreground px-6 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
|
|
479
|
-
children:
|
|
479
|
+
children: b ? "Creating..." : "Create Campaign"
|
|
480
480
|
})]
|
|
481
481
|
})
|
|
482
482
|
]
|
|
483
483
|
});
|
|
484
484
|
};
|
|
485
485
|
//#endregion
|
|
486
|
-
export {
|
|
486
|
+
export { v as CreateAdCampaignPage };
|
|
487
487
|
|
|
488
488
|
//# sourceMappingURL=CreateAdCampaignPage.js.map
|