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