@burdenoff/microfe-headshotmarketing 2026.704.3 → 2026.704.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/wspace-operations.js +118 -111
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +27 -19
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +56 -2
- package/dist/headshotmarketing/components/Toast.js.map +1 -0
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +1 -1
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeFunnel.js +54 -0
- package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +423 -259
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeStatCard.js +79 -0
- package/dist/headshotmarketing/pages/HomeStatCard.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformChips.js +93 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformChips.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +452 -390
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +405 -115
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +566 -346
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +107 -0
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +213 -0
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +150 -0
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +380 -371
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +92 -0
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/SectionContent.js +346 -0
- package/dist/headshotmarketing/pages/builder/SectionContent.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +358 -0
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/builderCatalog.js +274 -0
- package/dist/headshotmarketing/pages/builder/builderCatalog.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +479 -193
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +492 -197
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetThumbnail.js +37 -0
- package/dist/headshotmarketing/pages/content/AssetThumbnail.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +672 -219
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +200 -0
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentPage.js +224 -204
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentSubNav.js +51 -0
- package/dist/headshotmarketing/pages/content/ContentSubNav.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +250 -131
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsWidgets.js +179 -0
- package/dist/headshotmarketing/pages/crm/LeadsWidgets.js.map +1 -0
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +631 -379
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventImageUpload.js +123 -0
- package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -0
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +99 -0
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -0
- package/dist/headshotmarketing/pages/events/EventsPage.js +267 -228
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js +50 -0
- package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js.map +1 -0
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +147 -0
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -0
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +562 -419
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +108 -0
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +100 -0
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +315 -250
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js +60 -0
- package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js.map +1 -0
- package/dist/headshotmarketing/utils/automationMapper.js +1 -1
- package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js +4 -24
- package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/eventsMapper.js +9 -9
- package/dist/headshotmarketing/utils/eventsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/helpers.js +7 -4
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/dist/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
- package/dist/node_modules/lodash/_assignValue.js +17 -0
- package/dist/node_modules/lodash/_assignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssign.js +16 -0
- package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
- package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseClone.js +64 -0
- package/dist/node_modules/lodash/_baseClone.js.map +1 -0
- package/dist/node_modules/lodash/_baseCreate.js +21 -0
- package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMap.js +16 -0
- package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsSet.js +16 -0
- package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnset.js +26 -0
- package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
- package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneDataView.js +16 -0
- package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
- package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
- package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyArray.js +15 -0
- package/dist/node_modules/lodash/_copyArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyObject.js +22 -0
- package/dist/node_modules/lodash/_copyObject.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbols.js +16 -0
- package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_customOmitClone.js +15 -0
- package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
- package/dist/node_modules/lodash/_flatRest.js +17 -0
- package/dist/node_modules/lodash/_flatRest.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneArray.js +15 -0
- package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
- package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneObject.js +17 -0
- package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_parent.js +16 -0
- package/dist/node_modules/lodash/_parent.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +15 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/isMap.js +14 -0
- package/dist/node_modules/lodash/isMap.js.map +1 -0
- package/dist/node_modules/lodash/isSet.js +14 -0
- package/dist/node_modules/lodash/isSet.js.map +1 -0
- package/dist/node_modules/lodash/keysIn.js +17 -0
- package/dist/node_modules/lodash/keysIn.js.map +1 -0
- package/dist/node_modules/lodash/omit.js +28 -0
- package/dist/node_modules/lodash/omit.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/FunnelChart.js +15 -0
- package/dist/node_modules/recharts/es6/chart/FunnelChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/numberAxis/Funnel.js +370 -0
- package/dist/node_modules/recharts/es6/numberAxis/Funnel.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/FunnelUtils.js +81 -0
- package/dist/node_modules/recharts/es6/util/FunnelUtils.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { HeadshotmarketingBootstrapDataDocument as e, useCreateHeadshotmarketingAdCampaignMutation as t } from "../../../generated/wspace-operations.js";
|
|
2
|
-
import { useHeadshotMarketing as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { HeadshotmarketingAdCampaignStatus as
|
|
5
|
-
import { PageLayout as
|
|
1
|
+
import { HeadshotmarketingBootstrapDataDocument as e, useCreateHeadshotmarketingAdCampaignMutation as t, useHeadshotmarketingAudiencesListQuery as n } from "../../../generated/wspace-operations.js";
|
|
2
|
+
import { useHeadshotMarketing as r } from "../../context/HeadshotMarketingContext.js";
|
|
3
|
+
import { cn as i, formatCurrency as a, formatNumber as o } from "../../utils/helpers.js";
|
|
4
|
+
import { HeadshotmarketingAdCampaignStatus as s } from "../../../generated/wspace-types.js";
|
|
5
|
+
import { PageLayout as ee } from "../../components/PageLayout.js";
|
|
6
6
|
import "../../components/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { AdPlatformChips as c, mapPlatformValueToEnum as te, platformLabel as l, renderPlatformIcon as ne } from "./AdPlatformChips.js";
|
|
8
|
+
import { useState as u } from "react";
|
|
9
|
+
import { ArrowLeft as d, ArrowRight as re, CalendarDays as ie, Check as f, Rocket as ae, Save as oe, Sparkles as se, Target as ce, Users as p, Wallet as le } from "lucide-react";
|
|
10
|
+
import { useSearchParams as ue } from "react-router-dom";
|
|
11
|
+
import { Fragment as de, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
12
|
+
import { EmphasisPanel as g, GlassCard as fe, PagePurpose as pe } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
//#region src/headshotmarketing/pages/ads/CreateAdCampaignPage.tsx
|
|
13
|
-
var
|
|
14
|
+
var _ = [
|
|
14
15
|
{
|
|
15
16
|
key: "info",
|
|
16
17
|
label: "Campaign Info",
|
|
@@ -31,25 +32,25 @@ var h = [
|
|
|
31
32
|
label: "Review",
|
|
32
33
|
step: 4
|
|
33
34
|
}
|
|
34
|
-
],
|
|
35
|
+
], v = [
|
|
35
36
|
"Brand Awareness",
|
|
36
37
|
"Traffic",
|
|
37
38
|
"Engagement",
|
|
38
39
|
"Lead Generation",
|
|
39
40
|
"Conversions",
|
|
40
41
|
"App Installs"
|
|
41
|
-
],
|
|
42
|
+
], me = [
|
|
42
43
|
"18-24",
|
|
43
44
|
"25-34",
|
|
44
45
|
"35-44",
|
|
45
46
|
"45-54",
|
|
46
47
|
"55-64",
|
|
47
48
|
"65+"
|
|
48
|
-
],
|
|
49
|
+
], he = [
|
|
49
50
|
"All",
|
|
50
51
|
"Male",
|
|
51
52
|
"Female"
|
|
52
|
-
],
|
|
53
|
+
], ge = [
|
|
53
54
|
"Photography",
|
|
54
55
|
"Business",
|
|
55
56
|
"Personal Branding",
|
|
@@ -58,443 +59,504 @@ var h = [
|
|
|
58
59
|
"Technology",
|
|
59
60
|
"Marketing",
|
|
60
61
|
"Entrepreneurship"
|
|
61
|
-
],
|
|
62
|
-
let { navigate:
|
|
63
|
-
|
|
62
|
+
], y = () => {
|
|
63
|
+
let { navigate: y, basePath: S } = r(), [C] = ue(), _e = C.get("audienceId"), w = C.get("audienceName"), [ve, { loading: T, error: ye }] = t(), [be, E] = u(null), [D, O] = u("info"), [k, A] = u(null), { data: xe, loading: j } = n({
|
|
64
|
+
variables: {
|
|
65
|
+
limit: 200,
|
|
66
|
+
offset: 0,
|
|
67
|
+
search: null
|
|
68
|
+
},
|
|
69
|
+
errorPolicy: "all"
|
|
70
|
+
}), M = xe?.headshotmarketingAudiences.items ?? [], [N, Se] = u(""), [P, Ce] = u("google_ads"), [F, we] = u(""), [I, Te] = u(""), [L, Ee] = u(_e ?? ""), [R, De] = u(new Set(["25-34", "35-44"])), [z, Oe] = u("All"), [B, ke] = u("United States"), [V, Ae] = u(new Set(["Photography", "Business"])), [H, U] = u("total"), [W, je] = u("5000"), [G, Me] = u(""), [K, Ne] = u(""), [q, Pe] = u("Maximize Conversions"), J = M.find((e) => e.id === L) ?? (L && w ? {
|
|
71
|
+
id: L,
|
|
72
|
+
name: w,
|
|
73
|
+
estimatedSize: null
|
|
74
|
+
} : null), Fe = (e) => {
|
|
75
|
+
De((t) => {
|
|
64
76
|
let n = new Set(t);
|
|
65
77
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
66
78
|
});
|
|
67
|
-
},
|
|
68
|
-
|
|
79
|
+
}, Ie = (e) => {
|
|
80
|
+
Ae((t) => {
|
|
69
81
|
let n = new Set(t);
|
|
70
82
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
71
83
|
});
|
|
72
|
-
},
|
|
73
|
-
let e =
|
|
74
|
-
e <
|
|
75
|
-
},
|
|
76
|
-
let e =
|
|
77
|
-
e >= 0 &&
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
case "instagram": return a.InstagramAds;
|
|
82
|
-
case "linkedin": return a.LinkedinAds;
|
|
83
|
-
case "twitter": return a.TwitterAds;
|
|
84
|
-
default: return a.GoogleAds;
|
|
85
|
-
}
|
|
86
|
-
}, fe = async () => {
|
|
87
|
-
if (!A.trim()) {
|
|
88
|
-
D("Campaign name is required.");
|
|
84
|
+
}, Y = _.findIndex((e) => e.key === D), Le = () => {
|
|
85
|
+
let e = Y + 1;
|
|
86
|
+
e < _.length && O(_[e].key);
|
|
87
|
+
}, Re = () => {
|
|
88
|
+
let e = Y - 1;
|
|
89
|
+
e >= 0 && O(_[e].key);
|
|
90
|
+
}, X = Number(W), Z = G && K ? Math.max(1, Math.round((new Date(K).getTime() - new Date(G).getTime()) / 864e5) + 1) : null, Q = async (t) => {
|
|
91
|
+
if (!N.trim()) {
|
|
92
|
+
E("Campaign name is required.");
|
|
89
93
|
return;
|
|
90
94
|
}
|
|
91
|
-
let
|
|
92
|
-
if (!Number.isFinite(
|
|
93
|
-
|
|
95
|
+
let n = Number(W);
|
|
96
|
+
if (!Number.isFinite(n) || n <= 0) {
|
|
97
|
+
E("Budget must be a valid number greater than zero.");
|
|
94
98
|
return;
|
|
95
99
|
}
|
|
96
|
-
if (!
|
|
97
|
-
|
|
100
|
+
if (!G || !K) {
|
|
101
|
+
E("Start and end dates are required.");
|
|
98
102
|
return;
|
|
99
103
|
}
|
|
100
|
-
let
|
|
101
|
-
if (Number.isFinite(
|
|
102
|
-
|
|
104
|
+
let r = new Date(G).getTime(), i = new Date(K).getTime();
|
|
105
|
+
if (Number.isFinite(r) && Number.isFinite(i) && i < r) {
|
|
106
|
+
E("End date must be after start date.");
|
|
103
107
|
return;
|
|
104
108
|
}
|
|
105
|
-
|
|
106
|
-
let a = {
|
|
107
|
-
name:
|
|
108
|
-
description:
|
|
109
|
-
platform:
|
|
110
|
-
status:
|
|
111
|
-
audienceId:
|
|
112
|
-
bidStrategy:
|
|
113
|
-
startDate: new Date(
|
|
114
|
-
endDate: new Date(
|
|
115
|
-
dailyBudget:
|
|
116
|
-
totalBudget:
|
|
109
|
+
E(null), A(t);
|
|
110
|
+
let a = t === "launch" ? s.PendingReview : s.Draft, o = {
|
|
111
|
+
name: N,
|
|
112
|
+
description: I || null,
|
|
113
|
+
platform: te(P),
|
|
114
|
+
status: a,
|
|
115
|
+
audienceId: L || null,
|
|
116
|
+
bidStrategy: q,
|
|
117
|
+
startDate: new Date(G).toISOString(),
|
|
118
|
+
endDate: new Date(K).toISOString(),
|
|
119
|
+
dailyBudget: H === "daily" ? n : null,
|
|
120
|
+
totalBudget: H === "total" ? n : null,
|
|
117
121
|
metadata: {
|
|
118
|
-
objective:
|
|
122
|
+
objective: F,
|
|
119
123
|
targeting: {
|
|
120
|
-
ages: Array.from(
|
|
124
|
+
ages: Array.from(R),
|
|
121
125
|
gender: z,
|
|
122
|
-
locations:
|
|
123
|
-
interests: Array.from(
|
|
126
|
+
locations: B.split(",").map((e) => e.trim()).filter(Boolean),
|
|
127
|
+
interests: Array.from(V)
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
};
|
|
127
131
|
try {
|
|
128
|
-
await
|
|
129
|
-
variables: { input:
|
|
132
|
+
await ve({
|
|
133
|
+
variables: { input: o },
|
|
130
134
|
refetchQueries: [{
|
|
131
135
|
query: e,
|
|
132
136
|
variables: { limit: 200 }
|
|
133
137
|
}],
|
|
134
138
|
awaitRefetchQueries: !0
|
|
135
|
-
}),
|
|
139
|
+
}), y(S + "/ads/campaigns");
|
|
136
140
|
} catch (e) {
|
|
137
|
-
|
|
141
|
+
E(e instanceof Error ? e.message : "Failed to create ad campaign.");
|
|
142
|
+
} finally {
|
|
143
|
+
A(null);
|
|
138
144
|
}
|
|
139
|
-
}, $ =
|
|
140
|
-
return /* @__PURE__ */
|
|
145
|
+
}, $ = be ?? ye?.message ?? null;
|
|
146
|
+
return /* @__PURE__ */ h(ee, {
|
|
141
147
|
title: "Create Ad Campaign",
|
|
142
148
|
description: "Set up a new advertising campaign",
|
|
143
|
-
actions: /* @__PURE__ */
|
|
144
|
-
onClick: () =>
|
|
145
|
-
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",
|
|
146
|
-
children: [/* @__PURE__ */
|
|
149
|
+
actions: /* @__PURE__ */ h("button", {
|
|
150
|
+
onClick: () => y(S + "/ads/campaigns"),
|
|
151
|
+
className: "inline-flex min-h-11 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",
|
|
152
|
+
children: [/* @__PURE__ */ m(d, { className: "h-4 w-4" }), "Back"]
|
|
147
153
|
}),
|
|
148
154
|
children: [
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
|
|
155
|
+
/* @__PURE__ */ m(pe, { 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." }),
|
|
156
|
+
J && /* @__PURE__ */ h("div", {
|
|
151
157
|
className: "flex items-center gap-2 rounded-lg border border-status-info-border/30 bg-status-info-bg/20 px-4 py-3 text-sm text-status-info-text",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ m(p, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ h("span", { children: [
|
|
153
159
|
"This campaign will target the",
|
|
154
160
|
" ",
|
|
155
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ m("span", {
|
|
156
162
|
className: "font-semibold",
|
|
157
|
-
children:
|
|
163
|
+
children: J.name
|
|
158
164
|
}),
|
|
159
165
|
" ",
|
|
160
166
|
"audience."
|
|
161
167
|
] })]
|
|
162
168
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
className: "flex items-center gap-
|
|
165
|
-
children:
|
|
166
|
-
className: "flex items-center",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
168
|
-
onClick: () =>
|
|
169
|
-
className:
|
|
170
|
-
children: [t <
|
|
169
|
+
/* @__PURE__ */ m("div", {
|
|
170
|
+
className: "flex items-center gap-1 overflow-x-auto pb-1",
|
|
171
|
+
children: _.map((e, t) => /* @__PURE__ */ h("div", {
|
|
172
|
+
className: "flex shrink-0 items-center",
|
|
173
|
+
children: [/* @__PURE__ */ h("button", {
|
|
174
|
+
onClick: () => O(e.key),
|
|
175
|
+
className: i("flex min-h-9 items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition-colors", D === e.key ? "bg-foreground text-background" : t < Y ? "bg-status-success-bg text-status-success-text" : "bg-bg-sunken text-text-secondary hover:bg-bg-surface"),
|
|
176
|
+
children: [t < Y ? /* @__PURE__ */ m(f, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ m("span", {
|
|
177
|
+
className: i("flex h-5 w-5 items-center justify-center rounded-full text-xs", D === e.key ? "bg-background/20" : "bg-bg-surface"),
|
|
178
|
+
children: e.step
|
|
179
|
+
}), /* @__PURE__ */ m("span", {
|
|
171
180
|
className: "hidden sm:inline",
|
|
172
181
|
children: e.label
|
|
173
182
|
})]
|
|
174
|
-
}), t <
|
|
183
|
+
}), t < _.length - 1 && /* @__PURE__ */ m("div", { className: i("mx-1.5 h-0.5 w-6 rounded-full sm:w-10", t < Y ? "bg-action-primary-bg" : "bg-border") })]
|
|
175
184
|
}, e.key))
|
|
176
185
|
}),
|
|
177
|
-
|
|
178
|
-
className: "
|
|
179
|
-
children: [
|
|
180
|
-
|
|
181
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
182
|
-
children: "Campaign Name"
|
|
183
|
-
}), /* @__PURE__ */ f("input", {
|
|
184
|
-
type: "text",
|
|
185
|
-
value: A,
|
|
186
|
-
onChange: (e) => re(e.target.value),
|
|
187
|
-
placeholder: "e.g., Spring Headshot Promo",
|
|
188
|
-
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)]"
|
|
189
|
-
})] }),
|
|
190
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
191
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
192
|
-
children: "Platform"
|
|
193
|
-
}), /* @__PURE__ */ p("select", {
|
|
194
|
-
value: j,
|
|
195
|
-
onChange: (e) => M(e.target.value),
|
|
196
|
-
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)]",
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ f("option", {
|
|
199
|
-
value: "google_ads",
|
|
200
|
-
children: "Google Ads"
|
|
201
|
-
}),
|
|
202
|
-
/* @__PURE__ */ f("option", {
|
|
203
|
-
value: "facebook",
|
|
204
|
-
children: "Facebook"
|
|
205
|
-
}),
|
|
206
|
-
/* @__PURE__ */ f("option", {
|
|
207
|
-
value: "instagram",
|
|
208
|
-
children: "Instagram"
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ f("option", {
|
|
211
|
-
value: "linkedin",
|
|
212
|
-
children: "LinkedIn"
|
|
213
|
-
}),
|
|
214
|
-
/* @__PURE__ */ f("option", {
|
|
215
|
-
value: "twitter",
|
|
216
|
-
children: "Twitter"
|
|
217
|
-
})
|
|
218
|
-
]
|
|
219
|
-
})] }),
|
|
220
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
221
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
222
|
-
children: "Objective"
|
|
223
|
-
}), /* @__PURE__ */ f("div", {
|
|
224
|
-
className: "grid grid-cols-2 gap-2 sm:grid-cols-3",
|
|
225
|
-
children: g.map((e) => /* @__PURE__ */ f("button", {
|
|
226
|
-
onClick: () => P(e),
|
|
227
|
-
className: r("rounded-md border px-3 py-2 text-sm transition-colors", N === e ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
228
|
-
children: e
|
|
229
|
-
}, e))
|
|
230
|
-
})] }),
|
|
231
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
232
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
233
|
-
children: "Description"
|
|
234
|
-
}), /* @__PURE__ */ f("textarea", {
|
|
235
|
-
value: F,
|
|
236
|
-
onChange: (e) => I(e.target.value),
|
|
237
|
-
rows: 3,
|
|
238
|
-
placeholder: "Describe your campaign goals...",
|
|
239
|
-
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"
|
|
240
|
-
})] })
|
|
241
|
-
]
|
|
242
|
-
}),
|
|
243
|
-
O === "targeting" && /* @__PURE__ */ p(m, {
|
|
244
|
-
className: "p-6 space-y-5 max-w-2xl",
|
|
245
|
-
children: [
|
|
246
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
247
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
248
|
-
children: "Age Range"
|
|
249
|
-
}), /* @__PURE__ */ f("div", {
|
|
250
|
-
className: "flex flex-wrap gap-2",
|
|
251
|
-
children: _.map((e) => /* @__PURE__ */ f("button", {
|
|
252
|
-
onClick: () => se(e),
|
|
253
|
-
className: r("rounded-full border px-3 py-1.5 text-sm transition-colors", L.has(e) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
254
|
-
children: e
|
|
255
|
-
}, e))
|
|
256
|
-
})] }),
|
|
257
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
258
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
259
|
-
children: "Gender"
|
|
260
|
-
}), /* @__PURE__ */ f("div", {
|
|
261
|
-
className: "flex gap-2",
|
|
262
|
-
children: v.map((e) => /* @__PURE__ */ f("button", {
|
|
263
|
-
onClick: () => B(e),
|
|
264
|
-
className: r("rounded-full border px-4 py-1.5 text-sm transition-colors", z === e ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
265
|
-
children: e
|
|
266
|
-
}, e))
|
|
267
|
-
})] }),
|
|
268
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
269
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
270
|
-
children: "Locations"
|
|
271
|
-
}), /* @__PURE__ */ f("input", {
|
|
272
|
-
type: "text",
|
|
273
|
-
value: V,
|
|
274
|
-
onChange: (e) => H(e.target.value),
|
|
275
|
-
placeholder: "Enter locations (comma-separated)",
|
|
276
|
-
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)]"
|
|
277
|
-
})] }),
|
|
278
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
279
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
280
|
-
children: "Interests"
|
|
281
|
-
}), /* @__PURE__ */ f("div", {
|
|
282
|
-
className: "flex flex-wrap gap-2",
|
|
283
|
-
children: y.map((e) => /* @__PURE__ */ f("button", {
|
|
284
|
-
onClick: () => ce(e),
|
|
285
|
-
className: r("rounded-full border px-3 py-1.5 text-sm transition-colors", U.has(e) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
286
|
-
children: e
|
|
287
|
-
}, e))
|
|
288
|
-
})] })
|
|
289
|
-
]
|
|
290
|
-
}),
|
|
291
|
-
O === "budget" && /* @__PURE__ */ p(m, {
|
|
292
|
-
className: "p-6 space-y-5 max-w-2xl",
|
|
293
|
-
children: [
|
|
294
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
295
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
296
|
-
children: "Budget Type"
|
|
297
|
-
}), /* @__PURE__ */ p("div", {
|
|
298
|
-
className: "flex gap-2",
|
|
299
|
-
children: [/* @__PURE__ */ f("button", {
|
|
300
|
-
onClick: () => K("daily"),
|
|
301
|
-
className: r("rounded-md border px-4 py-2 text-sm", G === "daily" ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
302
|
-
children: "Daily Budget"
|
|
303
|
-
}), /* @__PURE__ */ f("button", {
|
|
304
|
-
onClick: () => K("total"),
|
|
305
|
-
className: r("rounded-md border px-4 py-2 text-sm", G === "total" ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
306
|
-
children: "Total Budget"
|
|
307
|
-
})]
|
|
308
|
-
})] }),
|
|
309
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
310
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
311
|
-
children: [G === "daily" ? "Daily" : "Total", " Budget (USD)"]
|
|
312
|
-
}), /* @__PURE__ */ f("input", {
|
|
313
|
-
type: "number",
|
|
314
|
-
value: q,
|
|
315
|
-
onChange: (e) => J(e.target.value),
|
|
316
|
-
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)]"
|
|
317
|
-
})] }),
|
|
318
|
-
/* @__PURE__ */ p("div", {
|
|
319
|
-
className: "grid grid-cols-2 gap-4",
|
|
320
|
-
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
321
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
322
|
-
children: "Start Date"
|
|
323
|
-
}), /* @__PURE__ */ f("input", {
|
|
324
|
-
type: "date",
|
|
325
|
-
value: Y,
|
|
326
|
-
onChange: (e) => ie(e.target.value),
|
|
327
|
-
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)]"
|
|
328
|
-
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
329
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
330
|
-
children: "End Date"
|
|
331
|
-
}), /* @__PURE__ */ f("input", {
|
|
332
|
-
type: "date",
|
|
333
|
-
value: X,
|
|
334
|
-
onChange: (e) => ae(e.target.value),
|
|
335
|
-
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)]"
|
|
336
|
-
})] })]
|
|
337
|
-
}),
|
|
338
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
339
|
-
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
340
|
-
children: "Bid Strategy"
|
|
341
|
-
}), /* @__PURE__ */ p("select", {
|
|
342
|
-
value: Z,
|
|
343
|
-
onChange: (e) => oe(e.target.value),
|
|
344
|
-
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)]",
|
|
345
|
-
children: [
|
|
346
|
-
/* @__PURE__ */ f("option", { children: "Maximize Conversions" }),
|
|
347
|
-
/* @__PURE__ */ f("option", { children: "Target CPA" }),
|
|
348
|
-
/* @__PURE__ */ f("option", { children: "Target ROAS" }),
|
|
349
|
-
/* @__PURE__ */ f("option", { children: "Lowest Cost" }),
|
|
350
|
-
/* @__PURE__ */ f("option", { children: "Manual CPC" })
|
|
351
|
-
]
|
|
352
|
-
})] })
|
|
353
|
-
]
|
|
354
|
-
}),
|
|
355
|
-
O === "review" && /* @__PURE__ */ p(m, {
|
|
356
|
-
className: "p-6 space-y-5 max-w-2xl",
|
|
357
|
-
children: [/* @__PURE__ */ f("h3", {
|
|
358
|
-
className: "text-sm font-semibold text-text-primary",
|
|
359
|
-
children: "Campaign Summary"
|
|
360
|
-
}), /* @__PURE__ */ p("div", {
|
|
361
|
-
className: "space-y-3",
|
|
186
|
+
/* @__PURE__ */ h("div", {
|
|
187
|
+
className: "grid gap-6 lg:grid-cols-[minmax(0,1fr)_320px]",
|
|
188
|
+
children: [/* @__PURE__ */ h("div", {
|
|
189
|
+
className: "min-w-0 space-y-6",
|
|
362
190
|
children: [
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
className: "
|
|
365
|
-
children: [
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
191
|
+
D === "info" && /* @__PURE__ */ h(g, {
|
|
192
|
+
className: "space-y-5 p-6",
|
|
193
|
+
children: [
|
|
194
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
195
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
196
|
+
children: "Campaign Name"
|
|
197
|
+
}), /* @__PURE__ */ m("input", {
|
|
198
|
+
type: "text",
|
|
199
|
+
value: N,
|
|
200
|
+
onChange: (e) => Se(e.target.value),
|
|
201
|
+
placeholder: "e.g., Spring Headshot Promo",
|
|
202
|
+
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)]"
|
|
203
|
+
})] }),
|
|
204
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
205
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
206
|
+
children: "Platform"
|
|
207
|
+
}), /* @__PURE__ */ m(c, {
|
|
208
|
+
value: P,
|
|
209
|
+
onChange: Ce
|
|
210
|
+
})] }),
|
|
211
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
212
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
213
|
+
children: "Objective"
|
|
214
|
+
}), /* @__PURE__ */ m("div", {
|
|
215
|
+
className: "grid grid-cols-2 gap-2 sm:grid-cols-3",
|
|
216
|
+
children: v.map((e) => /* @__PURE__ */ m("button", {
|
|
217
|
+
onClick: () => we(e),
|
|
218
|
+
className: i("min-h-11 rounded-md border px-3 py-2 text-sm transition-colors", F === e ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
219
|
+
children: e
|
|
220
|
+
}, e))
|
|
221
|
+
})] }),
|
|
222
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
223
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
224
|
+
children: "Description"
|
|
225
|
+
}), /* @__PURE__ */ m("textarea", {
|
|
226
|
+
value: I,
|
|
227
|
+
onChange: (e) => Te(e.target.value),
|
|
228
|
+
rows: 3,
|
|
229
|
+
placeholder: "Describe your campaign goals...",
|
|
230
|
+
className: "w-full resize-none 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)]"
|
|
231
|
+
})] })
|
|
232
|
+
]
|
|
372
233
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
className: "
|
|
375
|
-
children: [
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
234
|
+
D === "targeting" && /* @__PURE__ */ h(g, {
|
|
235
|
+
className: "space-y-5 p-6",
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ h("div", { children: [
|
|
238
|
+
/* @__PURE__ */ h("label", {
|
|
239
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
240
|
+
children: [
|
|
241
|
+
"Saved audience",
|
|
242
|
+
" ",
|
|
243
|
+
/* @__PURE__ */ m("span", {
|
|
244
|
+
className: "font-normal text-text-secondary",
|
|
245
|
+
children: "(optional)"
|
|
246
|
+
})
|
|
247
|
+
]
|
|
248
|
+
}),
|
|
249
|
+
/* @__PURE__ */ h("select", {
|
|
250
|
+
value: L,
|
|
251
|
+
onChange: (e) => Ee(e.target.value),
|
|
252
|
+
disabled: j,
|
|
253
|
+
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)] disabled:opacity-60",
|
|
254
|
+
children: [/* @__PURE__ */ m("option", {
|
|
255
|
+
value: "",
|
|
256
|
+
children: j ? "Loading audiences…" : "No saved audience — target manually below"
|
|
257
|
+
}), M.map((e) => /* @__PURE__ */ h("option", {
|
|
258
|
+
value: e.id,
|
|
259
|
+
children: [e.name, e.estimatedSize == null ? "" : ` — ${o(e.estimatedSize)} people`]
|
|
260
|
+
}, e.id))]
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ m("p", {
|
|
263
|
+
className: "mt-1.5 text-xs text-text-secondary",
|
|
264
|
+
children: "Attach an audience you saved earlier, or set demographics manually below."
|
|
265
|
+
})
|
|
266
|
+
] }),
|
|
267
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
268
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
269
|
+
children: "Age Range"
|
|
270
|
+
}), /* @__PURE__ */ m("div", {
|
|
271
|
+
className: "flex flex-wrap gap-2",
|
|
272
|
+
children: me.map((e) => /* @__PURE__ */ m("button", {
|
|
273
|
+
onClick: () => Fe(e),
|
|
274
|
+
className: i("min-h-9 rounded-full border px-3 py-1.5 text-sm transition-colors", R.has(e) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
275
|
+
children: e
|
|
276
|
+
}, e))
|
|
277
|
+
})] }),
|
|
278
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
279
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
280
|
+
children: "Gender"
|
|
281
|
+
}), /* @__PURE__ */ m("div", {
|
|
282
|
+
className: "flex gap-2",
|
|
283
|
+
children: he.map((e) => /* @__PURE__ */ m("button", {
|
|
284
|
+
onClick: () => Oe(e),
|
|
285
|
+
className: i("min-h-9 rounded-full border px-4 py-1.5 text-sm transition-colors", z === e ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
286
|
+
children: e
|
|
287
|
+
}, e))
|
|
288
|
+
})] }),
|
|
289
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
290
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
291
|
+
children: "Locations"
|
|
292
|
+
}), /* @__PURE__ */ m("input", {
|
|
293
|
+
type: "text",
|
|
294
|
+
value: B,
|
|
295
|
+
onChange: (e) => ke(e.target.value),
|
|
296
|
+
placeholder: "Enter locations (comma-separated)",
|
|
297
|
+
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)]"
|
|
298
|
+
})] }),
|
|
299
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
300
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
301
|
+
children: "Interests"
|
|
302
|
+
}), /* @__PURE__ */ m("div", {
|
|
303
|
+
className: "flex flex-wrap gap-2",
|
|
304
|
+
children: ge.map((e) => /* @__PURE__ */ m("button", {
|
|
305
|
+
onClick: () => Ie(e),
|
|
306
|
+
className: i("min-h-9 rounded-full border px-3 py-1.5 text-sm transition-colors", V.has(e) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
307
|
+
children: e
|
|
308
|
+
}, e))
|
|
309
|
+
})] })
|
|
310
|
+
]
|
|
382
311
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
384
|
-
className: "
|
|
385
|
-
children: [
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
312
|
+
D === "budget" && /* @__PURE__ */ h(g, {
|
|
313
|
+
className: "space-y-5 p-6",
|
|
314
|
+
children: [
|
|
315
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
316
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
317
|
+
children: "Budget Type"
|
|
318
|
+
}), /* @__PURE__ */ h("div", {
|
|
319
|
+
className: "flex gap-2",
|
|
320
|
+
children: [/* @__PURE__ */ m("button", {
|
|
321
|
+
onClick: () => U("daily"),
|
|
322
|
+
className: i("min-h-11 rounded-md border px-4 py-2 text-sm", H === "daily" ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
323
|
+
children: "Daily Budget"
|
|
324
|
+
}), /* @__PURE__ */ m("button", {
|
|
325
|
+
onClick: () => U("total"),
|
|
326
|
+
className: i("min-h-11 rounded-md border px-4 py-2 text-sm", H === "total" ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-primary hover:bg-bg-sunken"),
|
|
327
|
+
children: "Total Budget"
|
|
328
|
+
})]
|
|
329
|
+
})] }),
|
|
330
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
|
|
331
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
332
|
+
children: [H === "daily" ? "Daily" : "Total", " Budget (USD)"]
|
|
333
|
+
}), /* @__PURE__ */ m("input", {
|
|
334
|
+
type: "number",
|
|
335
|
+
value: W,
|
|
336
|
+
onChange: (e) => je(e.target.value),
|
|
337
|
+
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)]"
|
|
338
|
+
})] }),
|
|
339
|
+
/* @__PURE__ */ h("div", {
|
|
340
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
341
|
+
children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
342
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
343
|
+
children: "Start Date"
|
|
344
|
+
}), /* @__PURE__ */ m("input", {
|
|
345
|
+
type: "date",
|
|
346
|
+
value: G,
|
|
347
|
+
onChange: (e) => Me(e.target.value),
|
|
348
|
+
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)]"
|
|
349
|
+
})] }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
350
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
351
|
+
children: "End Date"
|
|
352
|
+
}), /* @__PURE__ */ m("input", {
|
|
353
|
+
type: "date",
|
|
354
|
+
value: K,
|
|
355
|
+
onChange: (e) => Ne(e.target.value),
|
|
356
|
+
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)]"
|
|
357
|
+
})] })]
|
|
358
|
+
}),
|
|
359
|
+
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
360
|
+
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
361
|
+
children: "Bid Strategy"
|
|
362
|
+
}), /* @__PURE__ */ h("select", {
|
|
363
|
+
value: q,
|
|
364
|
+
onChange: (e) => Pe(e.target.value),
|
|
365
|
+
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)]",
|
|
366
|
+
children: [
|
|
367
|
+
/* @__PURE__ */ m("option", { children: "Maximize Conversions" }),
|
|
368
|
+
/* @__PURE__ */ m("option", { children: "Target CPA" }),
|
|
369
|
+
/* @__PURE__ */ m("option", { children: "Target ROAS" }),
|
|
370
|
+
/* @__PURE__ */ m("option", { children: "Lowest Cost" }),
|
|
371
|
+
/* @__PURE__ */ m("option", { children: "Manual CPC" })
|
|
372
|
+
]
|
|
373
|
+
})] })
|
|
374
|
+
]
|
|
392
375
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
-
className: "
|
|
395
|
-
children: [/* @__PURE__ */
|
|
396
|
-
className: "text-sm text-text-
|
|
397
|
-
children: "
|
|
398
|
-
}), /* @__PURE__ */
|
|
399
|
-
className: "
|
|
400
|
-
children: Array.from(L).join(", ") || "(Not set)"
|
|
401
|
-
})]
|
|
402
|
-
}),
|
|
403
|
-
/* @__PURE__ */ p("div", {
|
|
404
|
-
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
405
|
-
children: [/* @__PURE__ */ f("span", {
|
|
406
|
-
className: "text-sm text-text-secondary",
|
|
407
|
-
children: "Gender"
|
|
408
|
-
}), /* @__PURE__ */ f("span", {
|
|
409
|
-
className: "text-sm font-medium text-text-primary",
|
|
410
|
-
children: z
|
|
411
|
-
})]
|
|
412
|
-
}),
|
|
413
|
-
/* @__PURE__ */ p("div", {
|
|
414
|
-
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
415
|
-
children: [/* @__PURE__ */ f("span", {
|
|
416
|
-
className: "text-sm text-text-secondary",
|
|
417
|
-
children: "Locations"
|
|
418
|
-
}), /* @__PURE__ */ f("span", {
|
|
419
|
-
className: "text-sm font-medium text-text-primary",
|
|
420
|
-
children: V || "(Not set)"
|
|
421
|
-
})]
|
|
422
|
-
}),
|
|
423
|
-
/* @__PURE__ */ p("div", {
|
|
424
|
-
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
425
|
-
children: [/* @__PURE__ */ f("span", {
|
|
426
|
-
className: "text-sm text-text-secondary",
|
|
427
|
-
children: "Interests"
|
|
428
|
-
}), /* @__PURE__ */ f("span", {
|
|
429
|
-
className: "text-sm font-medium text-text-primary",
|
|
430
|
-
children: Array.from(U).join(", ") || "(Not set)"
|
|
431
|
-
})]
|
|
432
|
-
}),
|
|
433
|
-
/* @__PURE__ */ p("div", {
|
|
434
|
-
className: "flex justify-between border-b border-border-subtle pb-2",
|
|
435
|
-
children: [/* @__PURE__ */ f("span", {
|
|
436
|
-
className: "text-sm text-text-secondary",
|
|
437
|
-
children: "Budget"
|
|
438
|
-
}), /* @__PURE__ */ p("span", {
|
|
439
|
-
className: "text-sm font-medium text-text-primary",
|
|
376
|
+
D === "review" && /* @__PURE__ */ h(g, {
|
|
377
|
+
className: "space-y-5 p-6",
|
|
378
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
379
|
+
className: "text-sm font-semibold text-text-primary",
|
|
380
|
+
children: "Campaign Summary"
|
|
381
|
+
}), /* @__PURE__ */ h("div", {
|
|
382
|
+
className: "space-y-3",
|
|
440
383
|
children: [
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
384
|
+
/* @__PURE__ */ m(b, {
|
|
385
|
+
label: "Name",
|
|
386
|
+
value: N || "(Not set)"
|
|
387
|
+
}),
|
|
388
|
+
/* @__PURE__ */ m(b, {
|
|
389
|
+
label: "Platform",
|
|
390
|
+
value: l(P)
|
|
391
|
+
}),
|
|
392
|
+
/* @__PURE__ */ m(b, {
|
|
393
|
+
label: "Objective",
|
|
394
|
+
value: F || "(Not set)"
|
|
395
|
+
}),
|
|
396
|
+
/* @__PURE__ */ m(b, {
|
|
397
|
+
label: "Audience",
|
|
398
|
+
value: J?.name ?? "Manual targeting"
|
|
399
|
+
}),
|
|
400
|
+
/* @__PURE__ */ m(b, {
|
|
401
|
+
label: "Target Ages",
|
|
402
|
+
value: Array.from(R).join(", ") || "(Not set)"
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ m(b, {
|
|
405
|
+
label: "Gender",
|
|
406
|
+
value: z
|
|
407
|
+
}),
|
|
408
|
+
/* @__PURE__ */ m(b, {
|
|
409
|
+
label: "Locations",
|
|
410
|
+
value: B || "(Not set)"
|
|
411
|
+
}),
|
|
412
|
+
/* @__PURE__ */ m(b, {
|
|
413
|
+
label: "Interests",
|
|
414
|
+
value: Array.from(V).join(", ") || "(Not set)"
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ m(b, {
|
|
417
|
+
label: "Budget",
|
|
418
|
+
value: `$${W} (${H})`
|
|
419
|
+
}),
|
|
420
|
+
/* @__PURE__ */ m(b, {
|
|
421
|
+
label: "Schedule",
|
|
422
|
+
value: G && K ? `${G} to ${K}` : "(Not set)"
|
|
423
|
+
}),
|
|
424
|
+
/* @__PURE__ */ m(b, {
|
|
425
|
+
label: "Bid Strategy",
|
|
426
|
+
value: q,
|
|
427
|
+
last: !0
|
|
428
|
+
})
|
|
446
429
|
]
|
|
447
430
|
})]
|
|
448
431
|
}),
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
-
className: "
|
|
451
|
-
children:
|
|
452
|
-
className: "text-sm text-text-secondary",
|
|
453
|
-
children: "Schedule"
|
|
454
|
-
}), /* @__PURE__ */ f("span", {
|
|
455
|
-
className: "text-sm font-medium text-text-primary",
|
|
456
|
-
children: Y && X ? `${Y} to ${X}` : "(Not set)"
|
|
457
|
-
})]
|
|
432
|
+
$ && /* @__PURE__ */ m("div", {
|
|
433
|
+
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
434
|
+
children: $
|
|
458
435
|
}),
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
className: "flex justify-between",
|
|
461
|
-
children: [/* @__PURE__ */
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
className: "
|
|
466
|
-
|
|
436
|
+
/* @__PURE__ */ h("div", {
|
|
437
|
+
className: "flex items-center justify-between gap-3",
|
|
438
|
+
children: [/* @__PURE__ */ h("button", {
|
|
439
|
+
onClick: Re,
|
|
440
|
+
disabled: Y === 0,
|
|
441
|
+
className: i("inline-flex min-h-11 items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium", Y === 0 ? "cursor-not-allowed text-text-secondary opacity-50" : "text-text-primary hover:bg-bg-sunken"),
|
|
442
|
+
children: [/* @__PURE__ */ m(d, { className: "h-4 w-4" }), "Previous"]
|
|
443
|
+
}), Y < _.length - 1 ? /* @__PURE__ */ h("button", {
|
|
444
|
+
onClick: Le,
|
|
445
|
+
className: "inline-flex min-h-11 items-center gap-2 rounded-md bg-foreground px-5 py-2 text-sm font-medium text-background hover:bg-foreground/90",
|
|
446
|
+
children: ["Next", /* @__PURE__ */ m(re, { className: "h-4 w-4" })]
|
|
447
|
+
}) : /* @__PURE__ */ h("div", {
|
|
448
|
+
className: "flex items-center gap-2",
|
|
449
|
+
children: [/* @__PURE__ */ h("button", {
|
|
450
|
+
onClick: () => Q("draft"),
|
|
451
|
+
disabled: T,
|
|
452
|
+
className: "inline-flex min-h-11 items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
453
|
+
children: [/* @__PURE__ */ m(oe, { className: "h-4 w-4" }), k === "draft" ? "Saving…" : "Save Draft"]
|
|
454
|
+
}), /* @__PURE__ */ h("button", {
|
|
455
|
+
onClick: () => Q("launch"),
|
|
456
|
+
disabled: T,
|
|
457
|
+
className: "inline-flex min-h-11 items-center gap-2 rounded-md bg-action-primary-bg px-5 py-2 text-sm font-semibold text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
458
|
+
children: [/* @__PURE__ */ m(ae, { className: "h-4 w-4" }), k === "launch" ? "Launching…" : "Launch Campaign"]
|
|
459
|
+
})]
|
|
467
460
|
})]
|
|
468
461
|
})
|
|
469
462
|
]
|
|
470
|
-
})
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
463
|
+
}), /* @__PURE__ */ m("aside", {
|
|
464
|
+
className: "h-fit lg:sticky lg:top-6",
|
|
465
|
+
children: /* @__PURE__ */ h(fe, {
|
|
466
|
+
treatment: "insight",
|
|
467
|
+
className: "space-y-4 p-5",
|
|
468
|
+
children: [
|
|
469
|
+
/* @__PURE__ */ h("div", {
|
|
470
|
+
className: "flex items-center gap-2",
|
|
471
|
+
children: [/* @__PURE__ */ m(se, { className: "h-4 w-4 text-action-primary-bg" }), /* @__PURE__ */ m("h3", {
|
|
472
|
+
className: "text-sm font-semibold text-text-primary",
|
|
473
|
+
children: "Campaign summary"
|
|
474
|
+
})]
|
|
475
|
+
}),
|
|
476
|
+
/* @__PURE__ */ h("div", {
|
|
477
|
+
className: "rounded-lg border border-border-seam bg-accent-wash p-4",
|
|
478
|
+
children: [/* @__PURE__ */ m("p", {
|
|
479
|
+
className: "text-xs text-text-secondary",
|
|
480
|
+
children: "Estimated audience size"
|
|
481
|
+
}), J && J.estimatedSize != null ? /* @__PURE__ */ h(de, { children: [/* @__PURE__ */ h("div", {
|
|
482
|
+
className: "mt-1 flex items-baseline gap-2",
|
|
483
|
+
children: [
|
|
484
|
+
/* @__PURE__ */ m(p, { className: "h-5 w-5 shrink-0 text-action-primary-bg" }),
|
|
485
|
+
/* @__PURE__ */ m("span", {
|
|
486
|
+
className: "text-2xl font-bold text-text-primary",
|
|
487
|
+
children: o(J.estimatedSize)
|
|
488
|
+
}),
|
|
489
|
+
/* @__PURE__ */ m("span", {
|
|
490
|
+
className: "text-xs text-text-secondary",
|
|
491
|
+
children: "people"
|
|
492
|
+
})
|
|
493
|
+
]
|
|
494
|
+
}), /* @__PURE__ */ h("p", {
|
|
495
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
496
|
+
children: [
|
|
497
|
+
"from “",
|
|
498
|
+
J.name,
|
|
499
|
+
"”"
|
|
500
|
+
]
|
|
501
|
+
})] }) : /* @__PURE__ */ m("p", {
|
|
502
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
503
|
+
children: "Attach a saved audience in the Targeting step to see its estimated size."
|
|
504
|
+
})]
|
|
505
|
+
}),
|
|
506
|
+
/* @__PURE__ */ h("dl", {
|
|
507
|
+
className: "space-y-3 text-sm",
|
|
508
|
+
children: [
|
|
509
|
+
/* @__PURE__ */ m(x, {
|
|
510
|
+
icon: ne(P, "h-4 w-4 shrink-0"),
|
|
511
|
+
label: "Platform",
|
|
512
|
+
value: l(P)
|
|
513
|
+
}),
|
|
514
|
+
/* @__PURE__ */ m(x, {
|
|
515
|
+
icon: /* @__PURE__ */ m(ce, { className: "h-4 w-4 shrink-0" }),
|
|
516
|
+
label: "Objective",
|
|
517
|
+
value: F || "Not set",
|
|
518
|
+
muted: !F
|
|
519
|
+
}),
|
|
520
|
+
/* @__PURE__ */ m(x, {
|
|
521
|
+
icon: /* @__PURE__ */ m(le, { className: "h-4 w-4 shrink-0" }),
|
|
522
|
+
label: "Budget",
|
|
523
|
+
value: Number.isFinite(X) && X > 0 ? `${a(X)} ${H === "daily" ? "/ day" : "total"}` : "Not set",
|
|
524
|
+
muted: !(Number.isFinite(X) && X > 0)
|
|
525
|
+
}),
|
|
526
|
+
/* @__PURE__ */ m(x, {
|
|
527
|
+
icon: /* @__PURE__ */ m(ie, { className: "h-4 w-4 shrink-0" }),
|
|
528
|
+
label: "Schedule",
|
|
529
|
+
value: Z ? `${Z} day${Z === 1 ? "" : "s"}` : "Not set",
|
|
530
|
+
muted: !Z
|
|
531
|
+
})
|
|
532
|
+
]
|
|
533
|
+
})
|
|
534
|
+
]
|
|
535
|
+
})
|
|
492
536
|
})]
|
|
493
537
|
})
|
|
494
538
|
]
|
|
495
539
|
});
|
|
496
|
-
}
|
|
540
|
+
}, b = ({ label: e, value: t, last: n }) => /* @__PURE__ */ h("div", {
|
|
541
|
+
className: i("flex justify-between gap-4", !n && "border-b border-border-subtle pb-2"),
|
|
542
|
+
children: [/* @__PURE__ */ m("span", {
|
|
543
|
+
className: "text-sm text-text-secondary",
|
|
544
|
+
children: e
|
|
545
|
+
}), /* @__PURE__ */ m("span", {
|
|
546
|
+
className: "text-right text-sm font-medium text-text-primary",
|
|
547
|
+
children: t
|
|
548
|
+
})]
|
|
549
|
+
}), x = ({ icon: e, label: t, value: n, muted: r }) => /* @__PURE__ */ h("div", {
|
|
550
|
+
className: "flex items-center justify-between gap-3",
|
|
551
|
+
children: [/* @__PURE__ */ h("dt", {
|
|
552
|
+
className: "flex items-center gap-2 text-text-secondary",
|
|
553
|
+
children: [e, /* @__PURE__ */ m("span", { children: t })]
|
|
554
|
+
}), /* @__PURE__ */ m("dd", {
|
|
555
|
+
className: i("truncate text-right font-medium", r ? "text-text-secondary" : "text-text-primary"),
|
|
556
|
+
children: n
|
|
557
|
+
})]
|
|
558
|
+
});
|
|
497
559
|
//#endregion
|
|
498
|
-
export {
|
|
560
|
+
export { y as CreateAdCampaignPage };
|
|
499
561
|
|
|
500
562
|
//# sourceMappingURL=CreateAdCampaignPage.js.map
|