@burdenoff/microfe-headshotmarketing 2026.1201.1 → 2026.1202.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/headshotmarketing/components/ActionMenu.js +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +33 -33
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
- package/dist/headshotmarketing/components/EmptyState.js +35 -15
- package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
- package/dist/headshotmarketing/components/FilterBar.js +2 -2
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +38 -37
- package/dist/headshotmarketing/components/Pagination.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +1 -1
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +10 -10
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -6,13 +6,13 @@ import { useHeadshotMarketing as te } from "../../context/HeadshotMarketingConte
|
|
|
6
6
|
import { PageLayout as o } from "../../components/PageLayout.js";
|
|
7
7
|
import { HeadshotmarketingCampaignStatus as s, HeadshotmarketingCampaignType as c } from "../../../generated/wspace-types.js";
|
|
8
8
|
import { useEffect as ne, useState as l } from "react";
|
|
9
|
-
import { ArrowLeft as u, FileText as d, Image as re, Rocket as
|
|
10
|
-
import { useParams as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { EmphasisPanel as
|
|
13
|
-
import { useSaveToFiles as
|
|
9
|
+
import { ArrowLeft as u, FileText as d, Image as re, Rocket as f, Save as p, Upload as ie, Video as ae, X as m } from "lucide-react";
|
|
10
|
+
import { useParams as oe } from "react-router";
|
|
11
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
|
+
import { EmphasisPanel as se, PagePurpose as ce, ThemedSelect as _ } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { useSaveToFiles as le } from "@burdenoff/fe-libs/storage";
|
|
14
14
|
// src/headshotmarketing/pages/campaigns/CreateCampaignPage.tsx
|
|
15
|
-
var
|
|
15
|
+
var ue = /\.(jpe?g|png|gif|webp|svg|avif|bmp)$/i, de = /\.(mp4|webm|mov|avi|mkv)$/i, fe = /\.(pdf|docx?|xlsx?|pptx?|txt|csv|rtf|odt|ods)$/i, pe = [
|
|
16
16
|
"Brand Awareness",
|
|
17
17
|
"Lead Generation",
|
|
18
18
|
"Sales Conversion",
|
|
@@ -21,7 +21,7 @@ var le = /\.(jpe?g|png|gif|webp|svg|avif|bmp)$/i, ue = /\.(mp4|webm|mov|avi|mkv)
|
|
|
21
21
|
"Engagement",
|
|
22
22
|
"Product Launch",
|
|
23
23
|
"Market Research"
|
|
24
|
-
],
|
|
24
|
+
], me = [
|
|
25
25
|
"Google Ads",
|
|
26
26
|
"Facebook",
|
|
27
27
|
"Instagram",
|
|
@@ -32,7 +32,7 @@ var le = /\.(jpe?g|png|gif|webp|svg|avif|bmp)$/i, ue = /\.(mp4|webm|mov|avi|mkv)
|
|
|
32
32
|
"Email",
|
|
33
33
|
"Blog",
|
|
34
34
|
"Display Network"
|
|
35
|
-
],
|
|
35
|
+
], he = [
|
|
36
36
|
"Impressions",
|
|
37
37
|
"Clicks",
|
|
38
38
|
"CTR",
|
|
@@ -43,7 +43,7 @@ var le = /\.(jpe?g|png|gif|webp|svg|avif|bmp)$/i, ue = /\.(mp4|webm|mov|avi|mkv)
|
|
|
43
43
|
"Revenue",
|
|
44
44
|
"Engagement Rate",
|
|
45
45
|
"Reach"
|
|
46
|
-
],
|
|
46
|
+
], ge = [
|
|
47
47
|
{
|
|
48
48
|
value: "email",
|
|
49
49
|
label: "Email"
|
|
@@ -78,14 +78,14 @@ var le = /\.(jpe?g|png|gif|webp|svg|avif|bmp)$/i, ue = /\.(mp4|webm|mov|avi|mkv)
|
|
|
78
78
|
"GBP",
|
|
79
79
|
"CAD",
|
|
80
80
|
"AUD"
|
|
81
|
-
],
|
|
81
|
+
], _e = [
|
|
82
82
|
"Urban Professionals",
|
|
83
83
|
"College Students",
|
|
84
84
|
"Parents",
|
|
85
85
|
"Retirees",
|
|
86
86
|
"Tech Enthusiasts",
|
|
87
87
|
"Small Business Owners"
|
|
88
|
-
],
|
|
88
|
+
], ve = [
|
|
89
89
|
{
|
|
90
90
|
key: "basics",
|
|
91
91
|
label: "Basics"
|
|
@@ -138,10 +138,10 @@ function S(e, t) {
|
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
var C = () => {
|
|
141
|
-
let { navigate: b, basePath: x } = te(), { campaignId: C } =
|
|
141
|
+
let { navigate: b, basePath: x } = te(), { campaignId: C } = oe(), { data: ye, loading: w, error: be } = r({
|
|
142
142
|
skip: !C,
|
|
143
143
|
variables: C ? { id: C } : void 0
|
|
144
|
-
}), T =
|
|
144
|
+
}), T = ye?.headshotmarketingCampaign, E = T ? ee(T) : null, D = y(T?.goals), O = !!C, [k, { loading: A, error: j }] = n(), [M, { loading: N, error: P }] = i(), [F, xe] = l("basics"), [I, L] = l(""), [R, z] = l(""), [Se, B] = l(null), [V, H] = l(() => S(E, D));
|
|
145
145
|
ne(() => {
|
|
146
146
|
E && H(S(E, D));
|
|
147
147
|
}, [T?.id, T?.updatedAt]);
|
|
@@ -158,21 +158,21 @@ var C = () => {
|
|
|
158
158
|
}, G = () => {
|
|
159
159
|
let e = I.trim();
|
|
160
160
|
e && !V.tags.includes(e) && U("tags", [...V.tags, e]), L("");
|
|
161
|
-
},
|
|
161
|
+
}, Ce = (e) => {
|
|
162
162
|
U("tags", V.tags.filter((t) => t !== e));
|
|
163
163
|
}, K = (e) => {
|
|
164
164
|
let t = (e || R).trim();
|
|
165
165
|
t && !V.demographics.includes(t) && U("demographics", [...V.demographics, t]), z("");
|
|
166
|
-
},
|
|
166
|
+
}, we = (e) => {
|
|
167
167
|
U("demographics", V.demographics.filter((t) => t !== e));
|
|
168
|
-
}, { save:
|
|
168
|
+
}, { save: Te, isPending: q } = le(), [J, Y] = l(null), Ee = async (e) => {
|
|
169
169
|
if (!e || e.length === 0) return;
|
|
170
170
|
Y(null);
|
|
171
171
|
let t = V.name.trim() || "Untitled Campaign";
|
|
172
172
|
try {
|
|
173
173
|
let n = [];
|
|
174
174
|
for (let r of Array.from(e)) {
|
|
175
|
-
let e = r.type || "application/octet-stream", i = await
|
|
175
|
+
let e = r.type || "application/octet-stream", i = await Te({
|
|
176
176
|
source: {
|
|
177
177
|
kind: "blob",
|
|
178
178
|
getBlob: async () => ({
|
|
@@ -194,9 +194,9 @@ var C = () => {
|
|
|
194
194
|
} catch (e) {
|
|
195
195
|
Y(e instanceof Error ? e.message : "Failed to upload file(s).");
|
|
196
196
|
}
|
|
197
|
-
}, Ee = (e) => {
|
|
198
|
-
U("assets", V.assets.filter((t) => t !== e));
|
|
199
197
|
}, De = (e) => {
|
|
198
|
+
U("assets", V.assets.filter((t) => t !== e));
|
|
199
|
+
}, Oe = (e) => {
|
|
200
200
|
switch (e) {
|
|
201
201
|
case "email": return c.Email;
|
|
202
202
|
case "social": return c.Social;
|
|
@@ -206,14 +206,14 @@ var C = () => {
|
|
|
206
206
|
case "influencer": return c.Influencer;
|
|
207
207
|
default: return c.Content;
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, ke = (e) => {
|
|
210
210
|
if (e === "draft") return s.Draft;
|
|
211
211
|
if (V.startDate) {
|
|
212
212
|
let e = new Date(V.startDate).getTime();
|
|
213
213
|
if (Number.isFinite(e) && e > Date.now()) return s.Scheduled;
|
|
214
214
|
}
|
|
215
215
|
return s.Active;
|
|
216
|
-
},
|
|
216
|
+
}, Ae = () => {
|
|
217
217
|
if (!V.name.trim()) return "Campaign name is required.";
|
|
218
218
|
if (!V.type) return "Campaign type is required.";
|
|
219
219
|
if (V.budget) {
|
|
@@ -228,12 +228,12 @@ var C = () => {
|
|
|
228
228
|
}
|
|
229
229
|
return null;
|
|
230
230
|
}, X = (e) => {
|
|
231
|
-
let t = V.type ?
|
|
231
|
+
let t = V.type ? Oe(V.type) : c.Content;
|
|
232
232
|
return {
|
|
233
233
|
name: V.name,
|
|
234
234
|
description: V.description || null,
|
|
235
235
|
type: t,
|
|
236
|
-
status:
|
|
236
|
+
status: ke(e),
|
|
237
237
|
budget: V.budget ? Number(V.budget) : null,
|
|
238
238
|
startDate: V.startDate || null,
|
|
239
239
|
endDate: V.endDate || null,
|
|
@@ -253,7 +253,7 @@ var C = () => {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
}, Z = async (n) => {
|
|
256
|
-
let r =
|
|
256
|
+
let r = Ae();
|
|
257
257
|
if (r) B(r);
|
|
258
258
|
else {
|
|
259
259
|
B(null);
|
|
@@ -289,100 +289,100 @@ var C = () => {
|
|
|
289
289
|
B(e instanceof Error ? e.message : "Failed to save campaign.");
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
}, Q = A || N, $ =
|
|
293
|
-
return O && w && !E ? /* @__PURE__ */
|
|
292
|
+
}, Q = A || N, $ = Se ?? j?.message ?? P?.message ?? null;
|
|
293
|
+
return O && w && !E ? /* @__PURE__ */ h(o, {
|
|
294
294
|
title: "Edit Campaign",
|
|
295
|
-
children: /* @__PURE__ */
|
|
295
|
+
children: /* @__PURE__ */ h("div", {
|
|
296
296
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-sm text-text-secondary",
|
|
297
297
|
children: "Loading campaign details..."
|
|
298
298
|
})
|
|
299
|
-
}) : O && !w && !E ? /* @__PURE__ */
|
|
299
|
+
}) : O && !w && !E ? /* @__PURE__ */ h(o, {
|
|
300
300
|
title: "Edit Campaign",
|
|
301
|
-
children: /* @__PURE__ */
|
|
301
|
+
children: /* @__PURE__ */ g("div", {
|
|
302
302
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
303
303
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ h("p", {
|
|
305
305
|
className: "text-sm font-medium text-text-primary",
|
|
306
306
|
children: "Campaign not found."
|
|
307
307
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ h("p", {
|
|
309
309
|
className: "text-xs text-text-secondary mt-1",
|
|
310
|
-
children:
|
|
310
|
+
children: be?.message ?? "The requested campaign could not be loaded."
|
|
311
311
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ g("button", {
|
|
313
313
|
onClick: () => b(x + "/campaigns"),
|
|
314
314
|
className: "mt-4 inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ h(u, { className: "h-4 w-4" }), "Back to Campaigns"]
|
|
316
316
|
})
|
|
317
317
|
]
|
|
318
318
|
})
|
|
319
|
-
}) : /* @__PURE__ */
|
|
319
|
+
}) : /* @__PURE__ */ g(o, {
|
|
320
320
|
title: O ? "Edit Campaign" : "Create Campaign",
|
|
321
|
-
actions: /* @__PURE__ */
|
|
321
|
+
actions: /* @__PURE__ */ g("button", {
|
|
322
322
|
onClick: () => b(x + "/campaigns"),
|
|
323
323
|
className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ h(u, { className: "h-4 w-4" }), "Back to Campaigns"]
|
|
325
325
|
}),
|
|
326
326
|
children: [
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ h(ce, { children: O ? "Refine this campaign's setup — its goals, audience targeting, creative, budget and the KPIs you'll track. Changes apply the next time the campaign runs." : "Set up a new campaign step by step: name it and pick a type, define who you're targeting, attach creative, set a budget and timeline, then choose the KPIs you want to measure. Save as a draft anytime or launch when ready." }),
|
|
328
|
+
/* @__PURE__ */ h("div", {
|
|
329
329
|
className: "flex flex-nowrap items-center gap-1 overflow-x-auto border-b border-border-subtle",
|
|
330
|
-
children:
|
|
331
|
-
onClick: () =>
|
|
330
|
+
children: ve.map((e, t) => /* @__PURE__ */ g("button", {
|
|
331
|
+
onClick: () => xe(e.key),
|
|
332
332
|
className: a("px-4 py-2 text-sm font-medium border-b-2 transition-colors -mb-px", F === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
333
|
-
children: [/* @__PURE__ */
|
|
334
|
-
className: "
|
|
333
|
+
children: [/* @__PURE__ */ g("span", {
|
|
334
|
+
className: "me-1.5 text-xs text-text-secondary",
|
|
335
335
|
children: [t + 1, "."]
|
|
336
336
|
}), e.label]
|
|
337
337
|
}, e.key))
|
|
338
338
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ g(se, {
|
|
340
340
|
className: "p-6",
|
|
341
341
|
children: [
|
|
342
|
-
F === "basics" && /* @__PURE__ */
|
|
342
|
+
F === "basics" && /* @__PURE__ */ g("div", {
|
|
343
343
|
className: "space-y-6 max-w-2xl",
|
|
344
344
|
children: [
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
346
346
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
347
347
|
children: "Campaign Name"
|
|
348
|
-
}), /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ h("input", {
|
|
349
349
|
type: "text",
|
|
350
350
|
value: V.name,
|
|
351
351
|
onChange: (e) => U("name", e.target.value),
|
|
352
352
|
placeholder: "Enter campaign name...",
|
|
353
353
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
354
354
|
})] }),
|
|
355
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
356
356
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
357
357
|
children: "Campaign Type"
|
|
358
|
-
}), /* @__PURE__ */ _
|
|
358
|
+
}), /* @__PURE__ */ g(_, {
|
|
359
359
|
value: V.type,
|
|
360
360
|
onChange: (e) => U("type", e.target.value),
|
|
361
361
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
362
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ h("option", {
|
|
363
363
|
value: "",
|
|
364
364
|
children: "Select type..."
|
|
365
|
-
}),
|
|
365
|
+
}), ge.map((e) => /* @__PURE__ */ h("option", {
|
|
366
366
|
value: e.value,
|
|
367
367
|
children: e.label
|
|
368
368
|
}, e.value))]
|
|
369
369
|
})] }),
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
371
371
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
372
372
|
children: "Description"
|
|
373
|
-
}), /* @__PURE__ */
|
|
373
|
+
}), /* @__PURE__ */ h("textarea", {
|
|
374
374
|
value: V.description,
|
|
375
375
|
onChange: (e) => U("description", e.target.value),
|
|
376
376
|
placeholder: "Describe the campaign goals and strategy...",
|
|
377
377
|
rows: 4,
|
|
378
378
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none"
|
|
379
379
|
})] }),
|
|
380
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
381
381
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
382
382
|
children: "Objectives"
|
|
383
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ h("div", {
|
|
384
384
|
className: "flex flex-wrap gap-2",
|
|
385
|
-
children:
|
|
385
|
+
children: pe.map((e) => /* @__PURE__ */ h("button", {
|
|
386
386
|
onClick: () => W("objectives", e),
|
|
387
387
|
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", V.objectives.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
388
388
|
children: e
|
|
@@ -390,16 +390,16 @@ var C = () => {
|
|
|
390
390
|
})] })
|
|
391
391
|
]
|
|
392
392
|
}),
|
|
393
|
-
F === "targeting" && /* @__PURE__ */
|
|
393
|
+
F === "targeting" && /* @__PURE__ */ g("div", {
|
|
394
394
|
className: "space-y-6 max-w-2xl",
|
|
395
395
|
children: [
|
|
396
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
397
397
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
398
398
|
children: "Age Range"
|
|
399
|
-
}), /* @__PURE__ */
|
|
399
|
+
}), /* @__PURE__ */ g("div", {
|
|
400
400
|
className: "flex items-center gap-3",
|
|
401
401
|
children: [
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ h("input", {
|
|
403
403
|
type: "number",
|
|
404
404
|
value: V.ageMin,
|
|
405
405
|
onChange: (e) => U("ageMin", e.target.value),
|
|
@@ -407,11 +407,11 @@ var C = () => {
|
|
|
407
407
|
max: 100,
|
|
408
408
|
className: "w-24 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
409
409
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ h("span", {
|
|
411
411
|
className: "text-sm text-text-secondary",
|
|
412
412
|
children: "to"
|
|
413
413
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ h("input", {
|
|
415
415
|
type: "number",
|
|
416
416
|
value: V.ageMax,
|
|
417
417
|
onChange: (e) => U("ageMax", e.target.value),
|
|
@@ -421,52 +421,52 @@ var C = () => {
|
|
|
421
421
|
})
|
|
422
422
|
]
|
|
423
423
|
})] }),
|
|
424
|
-
/* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ g("div", { children: [
|
|
425
|
+
/* @__PURE__ */ h("label", {
|
|
426
426
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
427
427
|
children: "Demographics"
|
|
428
428
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ h("div", {
|
|
430
430
|
className: "flex flex-wrap gap-2 mb-2",
|
|
431
|
-
children: V.demographics.map((e) => /* @__PURE__ */
|
|
431
|
+
children: V.demographics.map((e) => /* @__PURE__ */ g("span", {
|
|
432
432
|
className: "inline-flex items-center gap-1 rounded-full border border-border-subtle bg-bg-sunken px-2.5 py-1 text-xs font-medium text-text-primary",
|
|
433
|
-
children: [e, /* @__PURE__ */
|
|
434
|
-
onClick: () =>
|
|
433
|
+
children: [e, /* @__PURE__ */ h("button", {
|
|
434
|
+
onClick: () => we(e),
|
|
435
435
|
className: "text-text-secondary hover:text-text-primary",
|
|
436
|
-
children: /* @__PURE__ */
|
|
436
|
+
children: /* @__PURE__ */ h(m, { className: "h-3 w-3" })
|
|
437
437
|
})]
|
|
438
438
|
}, e))
|
|
439
439
|
}),
|
|
440
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ g("div", {
|
|
441
441
|
className: "flex items-center gap-2 mb-2",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ h("input", {
|
|
443
443
|
type: "text",
|
|
444
444
|
value: R,
|
|
445
445
|
onChange: (e) => z(e.target.value),
|
|
446
446
|
onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), K()),
|
|
447
447
|
placeholder: "Add demographic...",
|
|
448
448
|
className: "flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
449
|
-
}), /* @__PURE__ */
|
|
449
|
+
}), /* @__PURE__ */ h("button", {
|
|
450
450
|
onClick: () => K(),
|
|
451
451
|
className: "rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
452
452
|
children: "Add"
|
|
453
453
|
})]
|
|
454
454
|
}),
|
|
455
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ h("div", {
|
|
456
456
|
className: "flex flex-wrap gap-1.5",
|
|
457
|
-
children:
|
|
457
|
+
children: _e.filter((e) => !V.demographics.includes(e)).map((e) => /* @__PURE__ */ g("button", {
|
|
458
458
|
onClick: () => K(e),
|
|
459
459
|
className: "rounded-full border border-dashed border-border-subtle px-2.5 py-1 text-xs text-text-secondary hover:text-text-primary hover:border-foreground transition-colors",
|
|
460
460
|
children: ["+ ", e]
|
|
461
461
|
}, e))
|
|
462
462
|
})
|
|
463
463
|
] }),
|
|
464
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
465
465
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
466
466
|
children: "Channels"
|
|
467
|
-
}), /* @__PURE__ */
|
|
467
|
+
}), /* @__PURE__ */ h("div", {
|
|
468
468
|
className: "flex flex-wrap gap-2",
|
|
469
|
-
children:
|
|
469
|
+
children: me.map((e) => /* @__PURE__ */ h("button", {
|
|
470
470
|
onClick: () => W("channels", e),
|
|
471
471
|
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", V.channels.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
472
472
|
children: e
|
|
@@ -474,55 +474,55 @@ var C = () => {
|
|
|
474
474
|
})] })
|
|
475
475
|
]
|
|
476
476
|
}),
|
|
477
|
-
F === "content" && /* @__PURE__ */
|
|
477
|
+
F === "content" && /* @__PURE__ */ g("div", {
|
|
478
478
|
className: "space-y-6",
|
|
479
479
|
children: [
|
|
480
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ h("p", {
|
|
481
481
|
className: "text-sm text-text-secondary",
|
|
482
482
|
children: "Upload creative assets for your campaign. Files are stored in your workspace Files and attached to this campaign."
|
|
483
483
|
}),
|
|
484
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ h("div", {
|
|
485
485
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
486
486
|
children: [
|
|
487
487
|
{
|
|
488
488
|
label: "Images",
|
|
489
489
|
icon: re,
|
|
490
490
|
accept: "image/*",
|
|
491
|
-
match:
|
|
491
|
+
match: ue
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
494
|
label: "Videos",
|
|
495
|
-
icon:
|
|
495
|
+
icon: ae,
|
|
496
496
|
accept: "video/*",
|
|
497
|
-
match:
|
|
497
|
+
match: de
|
|
498
498
|
},
|
|
499
499
|
{
|
|
500
500
|
label: "Documents",
|
|
501
501
|
icon: d,
|
|
502
502
|
accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv",
|
|
503
|
-
match:
|
|
503
|
+
match: fe
|
|
504
504
|
}
|
|
505
505
|
].map((e) => {
|
|
506
506
|
let t = V.assets.filter((t) => e.match.test(t)).length;
|
|
507
|
-
return /* @__PURE__ */
|
|
507
|
+
return /* @__PURE__ */ g("label", {
|
|
508
508
|
className: a("flex flex-col items-center justify-center rounded-lg border-2 border-dashed border-border-subtle bg-bg-sunken/30 p-8 text-center transition-colors", q ? "cursor-progress opacity-70" : "cursor-pointer hover:border-primary/50 hover:bg-bg-sunken/50"),
|
|
509
509
|
children: [
|
|
510
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ h("input", {
|
|
511
511
|
type: "file",
|
|
512
512
|
accept: e.accept,
|
|
513
513
|
multiple: !0,
|
|
514
514
|
disabled: q,
|
|
515
515
|
className: "sr-only",
|
|
516
516
|
onChange: (e) => {
|
|
517
|
-
|
|
517
|
+
Ee(e.currentTarget.files), e.currentTarget.value = "";
|
|
518
518
|
}
|
|
519
519
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ h(e.icon, { className: "h-10 w-10 text-text-secondary mb-3" }),
|
|
521
|
+
/* @__PURE__ */ h("p", {
|
|
522
522
|
className: "text-sm font-medium text-text-primary",
|
|
523
523
|
children: e.label
|
|
524
524
|
}),
|
|
525
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ g("p", {
|
|
526
526
|
className: "text-xs text-text-secondary mt-1",
|
|
527
527
|
children: [
|
|
528
528
|
t,
|
|
@@ -531,86 +531,86 @@ var C = () => {
|
|
|
531
531
|
" uploaded"
|
|
532
532
|
]
|
|
533
533
|
}),
|
|
534
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ g("span", {
|
|
535
535
|
className: "mt-3 inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary",
|
|
536
|
-
children: [/* @__PURE__ */
|
|
536
|
+
children: [/* @__PURE__ */ h(ie, { className: "h-3 w-3" }), q ? "Uploading..." : "Upload"]
|
|
537
537
|
})
|
|
538
538
|
]
|
|
539
539
|
}, e.label);
|
|
540
540
|
})
|
|
541
541
|
}),
|
|
542
|
-
J && /* @__PURE__ */
|
|
542
|
+
J && /* @__PURE__ */ h("div", {
|
|
543
543
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
544
544
|
children: J
|
|
545
545
|
}),
|
|
546
|
-
V.assets.length > 0 && /* @__PURE__ */
|
|
546
|
+
V.assets.length > 0 && /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ g("label", {
|
|
547
547
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
548
548
|
children: [
|
|
549
549
|
"Attached Assets (",
|
|
550
550
|
V.assets.length,
|
|
551
551
|
")"
|
|
552
552
|
]
|
|
553
|
-
}), /* @__PURE__ */
|
|
553
|
+
}), /* @__PURE__ */ h("div", {
|
|
554
554
|
className: "space-y-2",
|
|
555
|
-
children: V.assets.map((e) => /* @__PURE__ */
|
|
555
|
+
children: V.assets.map((e) => /* @__PURE__ */ g("div", {
|
|
556
556
|
className: "flex items-center justify-between gap-3 rounded-md border border-border-subtle bg-bg-surface px-3 py-2",
|
|
557
|
-
children: [/* @__PURE__ */
|
|
557
|
+
children: [/* @__PURE__ */ g("div", {
|
|
558
558
|
className: "flex min-w-0 items-center gap-2",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
559
|
+
children: [/* @__PURE__ */ h(d, { className: "h-4 w-4 flex-shrink-0 text-text-secondary" }), /* @__PURE__ */ h("span", {
|
|
560
560
|
className: "truncate text-sm text-text-primary",
|
|
561
561
|
children: e.split("/").pop() ?? e
|
|
562
562
|
})]
|
|
563
|
-
}), /* @__PURE__ */
|
|
563
|
+
}), /* @__PURE__ */ h("button", {
|
|
564
564
|
type: "button",
|
|
565
|
-
onClick: () =>
|
|
565
|
+
onClick: () => De(e),
|
|
566
566
|
className: "flex-shrink-0 rounded-md p-1 text-text-secondary hover:bg-bg-sunken hover:text-text-primary",
|
|
567
567
|
"aria-label": `Remove ${e}`,
|
|
568
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ h(m, { className: "h-4 w-4" })
|
|
569
569
|
})]
|
|
570
570
|
}, e))
|
|
571
571
|
})] })
|
|
572
572
|
]
|
|
573
573
|
}),
|
|
574
|
-
F === "budget" && /* @__PURE__ */
|
|
574
|
+
F === "budget" && /* @__PURE__ */ g("div", {
|
|
575
575
|
className: "space-y-6 max-w-2xl",
|
|
576
|
-
children: [/* @__PURE__ */
|
|
576
|
+
children: [/* @__PURE__ */ g("div", {
|
|
577
577
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
578
|
-
children: [/* @__PURE__ */
|
|
578
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
579
579
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
580
580
|
children: "Budget"
|
|
581
|
-
}), /* @__PURE__ */
|
|
581
|
+
}), /* @__PURE__ */ h("input", {
|
|
582
582
|
type: "number",
|
|
583
583
|
value: V.budget,
|
|
584
584
|
onChange: (e) => U("budget", e.target.value),
|
|
585
585
|
placeholder: "0",
|
|
586
586
|
min: 0,
|
|
587
587
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
588
|
-
})] }), /* @__PURE__ */
|
|
588
|
+
})] }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
589
589
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
590
590
|
children: "Currency"
|
|
591
|
-
}), /* @__PURE__ */
|
|
591
|
+
}), /* @__PURE__ */ h(_, {
|
|
592
592
|
value: V.currency,
|
|
593
593
|
onChange: (e) => U("currency", e.target.value),
|
|
594
594
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
595
|
-
children: v.map((e) => /* @__PURE__ */
|
|
595
|
+
children: v.map((e) => /* @__PURE__ */ h("option", {
|
|
596
596
|
value: e,
|
|
597
597
|
children: e
|
|
598
598
|
}, e))
|
|
599
599
|
})] })]
|
|
600
|
-
}), /* @__PURE__ */
|
|
600
|
+
}), /* @__PURE__ */ g("div", {
|
|
601
601
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
602
|
-
children: [/* @__PURE__ */
|
|
602
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
603
603
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
604
604
|
children: "Start Date"
|
|
605
|
-
}), /* @__PURE__ */
|
|
605
|
+
}), /* @__PURE__ */ h("input", {
|
|
606
606
|
type: "date",
|
|
607
607
|
value: V.startDate,
|
|
608
608
|
onChange: (e) => U("startDate", e.target.value),
|
|
609
609
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
610
|
-
})] }), /* @__PURE__ */
|
|
610
|
+
})] }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
611
611
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
612
612
|
children: "End Date"
|
|
613
|
-
}), /* @__PURE__ */
|
|
613
|
+
}), /* @__PURE__ */ h("input", {
|
|
614
614
|
type: "date",
|
|
615
615
|
value: V.endDate,
|
|
616
616
|
onChange: (e) => U("endDate", e.target.value),
|
|
@@ -618,44 +618,44 @@ var C = () => {
|
|
|
618
618
|
})] })]
|
|
619
619
|
})]
|
|
620
620
|
}),
|
|
621
|
-
F === "tracking" && /* @__PURE__ */
|
|
621
|
+
F === "tracking" && /* @__PURE__ */ g("div", {
|
|
622
622
|
className: "space-y-6 max-w-2xl",
|
|
623
|
-
children: [/* @__PURE__ */
|
|
623
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
624
624
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
625
625
|
children: "Key Performance Indicators"
|
|
626
|
-
}), /* @__PURE__ */
|
|
626
|
+
}), /* @__PURE__ */ h("div", {
|
|
627
627
|
className: "flex flex-wrap gap-2",
|
|
628
|
-
children:
|
|
628
|
+
children: he.map((e) => /* @__PURE__ */ h("button", {
|
|
629
629
|
onClick: () => W("kpis", e),
|
|
630
630
|
className: a("rounded-full px-3 py-1.5 text-xs font-medium border transition-colors", V.kpis.includes(e) ? "border-primary bg-action-primary-bg text-action-primary-text" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
631
631
|
children: e
|
|
632
632
|
}, e))
|
|
633
|
-
})] }), /* @__PURE__ */
|
|
634
|
-
/* @__PURE__ */
|
|
633
|
+
})] }), /* @__PURE__ */ g("div", { children: [
|
|
634
|
+
/* @__PURE__ */ h("label", {
|
|
635
635
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
636
636
|
children: "Tags"
|
|
637
637
|
}),
|
|
638
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ h("div", {
|
|
639
639
|
className: "flex flex-wrap gap-2 mb-2",
|
|
640
|
-
children: V.tags.map((e) => /* @__PURE__ */
|
|
640
|
+
children: V.tags.map((e) => /* @__PURE__ */ g("span", {
|
|
641
641
|
className: "inline-flex items-center gap-1 rounded-full border border-border-subtle bg-bg-sunken px-2.5 py-1 text-xs font-medium text-text-primary",
|
|
642
|
-
children: [e, /* @__PURE__ */
|
|
643
|
-
onClick: () =>
|
|
642
|
+
children: [e, /* @__PURE__ */ h("button", {
|
|
643
|
+
onClick: () => Ce(e),
|
|
644
644
|
className: "text-text-secondary hover:text-text-primary",
|
|
645
|
-
children: /* @__PURE__ */
|
|
645
|
+
children: /* @__PURE__ */ h(m, { className: "h-3 w-3" })
|
|
646
646
|
})]
|
|
647
647
|
}, e))
|
|
648
648
|
}),
|
|
649
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ g("div", {
|
|
650
650
|
className: "flex items-center gap-2",
|
|
651
|
-
children: [/* @__PURE__ */
|
|
651
|
+
children: [/* @__PURE__ */ h("input", {
|
|
652
652
|
type: "text",
|
|
653
653
|
value: I,
|
|
654
654
|
onChange: (e) => L(e.target.value),
|
|
655
655
|
onKeyDown: (e) => e.key === "Enter" && (e.preventDefault(), G()),
|
|
656
656
|
placeholder: "Add a tag...",
|
|
657
657
|
className: "flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
658
|
-
}), /* @__PURE__ */
|
|
658
|
+
}), /* @__PURE__ */ h("button", {
|
|
659
659
|
onClick: G,
|
|
660
660
|
className: "rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
661
661
|
children: "Add"
|
|
@@ -665,29 +665,29 @@ var C = () => {
|
|
|
665
665
|
})
|
|
666
666
|
]
|
|
667
667
|
}),
|
|
668
|
-
$ && /* @__PURE__ */
|
|
668
|
+
$ && /* @__PURE__ */ h("div", {
|
|
669
669
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
670
670
|
children: $
|
|
671
671
|
}),
|
|
672
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ g("div", {
|
|
673
673
|
className: "flex flex-wrap items-center justify-end gap-3 rounded-lg border border-border-seam bg-gloss-card p-4 shadow-pop",
|
|
674
674
|
children: [
|
|
675
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ h("button", {
|
|
676
676
|
onClick: () => b(x + "/campaigns"),
|
|
677
677
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
678
678
|
children: "Cancel"
|
|
679
679
|
}),
|
|
680
|
-
/* @__PURE__ */
|
|
680
|
+
/* @__PURE__ */ g("button", {
|
|
681
681
|
onClick: () => Z("draft"),
|
|
682
682
|
disabled: Q,
|
|
683
683
|
className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
|
|
684
|
-
children: [/* @__PURE__ */
|
|
684
|
+
children: [/* @__PURE__ */ h(p, { className: "h-4 w-4" }), "Save Draft"]
|
|
685
685
|
}),
|
|
686
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ g("button", {
|
|
687
687
|
onClick: () => Z("launch"),
|
|
688
688
|
disabled: Q,
|
|
689
689
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
690
|
-
children: [/* @__PURE__ */
|
|
690
|
+
children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), O ? "Update Campaign" : "Create Campaign"]
|
|
691
691
|
})
|
|
692
692
|
]
|
|
693
693
|
})
|