@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
|
@@ -9,46 +9,46 @@ import { metadataWithoutLayout as re, planSectionSync as ie, sectionFromRow as a
|
|
|
9
9
|
import { useHeadshotmarketingBootstrap as ce } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
10
10
|
import { useHeadshotMarketing as d } from "../../context/HeadshotMarketingContext.js";
|
|
11
11
|
import "../../hooks/index.js";
|
|
12
|
-
import { SECTION_CATALOG as le, SectionThumbnail as ue, defaultConfig as f, sectionLabelFor as
|
|
13
|
-
import { SectionCanvasBlock as
|
|
14
|
-
import { SectionInspector as
|
|
15
|
-
import { SectionContent as
|
|
16
|
-
import { starterContent as
|
|
17
|
-
import { useRecordSelection as
|
|
18
|
-
import { useEffect as
|
|
19
|
-
import { ArrowLeft as
|
|
20
|
-
import { useBeforeUnload as
|
|
21
|
-
import { Fragment as
|
|
22
|
-
import { PagePurpose as Ne } from "@burdenoff/fe-libs/ui";
|
|
12
|
+
import { SECTION_CATALOG as le, SectionThumbnail as ue, defaultConfig as f, sectionLabelFor as p } from "./builderCatalog.js";
|
|
13
|
+
import { SectionCanvasBlock as de } from "./SectionCanvasBlock.js";
|
|
14
|
+
import { SectionInspector as fe } from "./SectionInspector.js";
|
|
15
|
+
import { SectionContent as pe } from "./SectionContent.js";
|
|
16
|
+
import { starterContent as me } from "./sectionSchema.js";
|
|
17
|
+
import { useRecordSelection as m } from "../../hooks/useRecordSelection.js";
|
|
18
|
+
import { useEffect as he, useLayoutEffect as ge, useMemo as _e, useRef as h, useState as g } from "react";
|
|
19
|
+
import { ArrowLeft as ve, Edit3 as ye, ExternalLink as _, Eye as be, Globe as xe, Layers as Se, LayoutTemplate as Ce, Monitor as we, MousePointerClick as Te, Plus as Ee, Save as De, Smartphone as Oe, Tablet as ke } from "lucide-react";
|
|
20
|
+
import { useBeforeUnload as Ae } from "react-router";
|
|
21
|
+
import { Fragment as je, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
22
|
+
import { PagePurpose as Me, ThemedSelect as Ne } from "@burdenoff/fe-libs/ui";
|
|
23
23
|
// src/headshotmarketing/pages/builder/LandingPageBuilderPage.tsx
|
|
24
|
-
var
|
|
24
|
+
var b = "application/x-hm-palette", x = "application/x-hm-reorder", Pe = [
|
|
25
25
|
"header",
|
|
26
26
|
"hero",
|
|
27
27
|
"features",
|
|
28
28
|
"testimonials",
|
|
29
29
|
"cta",
|
|
30
30
|
"footer"
|
|
31
|
-
],
|
|
32
|
-
function
|
|
33
|
-
return
|
|
31
|
+
], S = 0;
|
|
32
|
+
function C() {
|
|
33
|
+
return S += 1, `sec-${Date.now().toString(36)}-${S}`;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function w(e) {
|
|
36
36
|
return {
|
|
37
|
-
id:
|
|
37
|
+
id: C(),
|
|
38
38
|
type: e,
|
|
39
|
-
label:
|
|
39
|
+
label: p(e),
|
|
40
40
|
config: {
|
|
41
41
|
...f(),
|
|
42
|
-
...
|
|
42
|
+
...me(e)
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function T(e) {
|
|
47
47
|
return Object.values(c).find((t) => t === e) ?? c.Custom;
|
|
48
48
|
}
|
|
49
49
|
function Fe(e) {
|
|
50
50
|
return {
|
|
51
|
-
type:
|
|
51
|
+
type: T(e.type),
|
|
52
52
|
title: e.title,
|
|
53
53
|
subtitle: e.subtitle,
|
|
54
54
|
content: e.content,
|
|
@@ -69,43 +69,43 @@ function Ie(e) {
|
|
|
69
69
|
function Le(e) {
|
|
70
70
|
return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "landing-page";
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
let { selectedId: e, invalidSelection: t, selectRecord: n } =
|
|
72
|
+
var Re = () => {
|
|
73
|
+
let { selectedId: e, invalidSelection: t, selectRecord: n } = m(), { workspaceId: r } = d(), i = ce().data?.headshotmarketingLandingPages.items ?? [], o = a({
|
|
74
74
|
variables: { id: e ?? "" },
|
|
75
75
|
skip: !e,
|
|
76
76
|
fetchPolicy: "network-only"
|
|
77
|
-
}), s =
|
|
78
|
-
return /* @__PURE__ */
|
|
77
|
+
}), s = h(/* @__PURE__ */ new Map()), c = `${r}:${e ?? "new"}`, l = o.data?.headshotmarketingLandingPage;
|
|
78
|
+
return /* @__PURE__ */ y(je, { children: [/* @__PURE__ */ y("label", {
|
|
79
79
|
className: "block p-4 text-sm text-text-primary",
|
|
80
|
-
children: ["Landing page", /* @__PURE__ */
|
|
80
|
+
children: ["Landing page", /* @__PURE__ */ y(Ne, {
|
|
81
81
|
"aria-label": "Select landing page",
|
|
82
82
|
value: e ?? "",
|
|
83
83
|
onChange: (e) => n(e.target.value || null),
|
|
84
|
-
className: "
|
|
84
|
+
className: "ms-3 rounded-md border border-border-subtle bg-bg-surface p-2",
|
|
85
85
|
children: [
|
|
86
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ v("option", {
|
|
87
87
|
value: "",
|
|
88
88
|
children: "New landing page"
|
|
89
89
|
}),
|
|
90
|
-
e && !i.some((t) => t.id === e) && /* @__PURE__ */
|
|
90
|
+
e && !i.some((t) => t.id === e) && /* @__PURE__ */ v("option", {
|
|
91
91
|
value: e,
|
|
92
92
|
children: l?.title ?? "Selected landing page"
|
|
93
93
|
}),
|
|
94
|
-
i.map((e) => /* @__PURE__ */
|
|
94
|
+
i.map((e) => /* @__PURE__ */ v("option", {
|
|
95
95
|
value: e.id,
|
|
96
96
|
children: e.title
|
|
97
97
|
}, e.id))
|
|
98
98
|
]
|
|
99
99
|
})]
|
|
100
|
-
}), t || e && !o.loading && (o.error || !l || l.id !== e) ? /* @__PURE__ */
|
|
100
|
+
}), t || e && !o.loading && (o.error || !l || l.id !== e) ? /* @__PURE__ */ v("p", {
|
|
101
101
|
role: "alert",
|
|
102
102
|
className: "p-4",
|
|
103
103
|
children: "This landing page is unavailable or you do not have access. Choose another page or start a new one."
|
|
104
|
-
}) : e && o.loading ? /* @__PURE__ */
|
|
104
|
+
}) : e && o.loading ? /* @__PURE__ */ v("p", {
|
|
105
105
|
role: "status",
|
|
106
106
|
className: "p-4",
|
|
107
107
|
children: "Loading landing page…"
|
|
108
|
-
}) : /* @__PURE__ */
|
|
108
|
+
}) : /* @__PURE__ */ v(ze, {
|
|
109
109
|
landingPage: e ? l : void 0,
|
|
110
110
|
initialDraft: s.current.get(c),
|
|
111
111
|
rememberDraft: (e) => {
|
|
@@ -115,13 +115,13 @@ var T = () => {
|
|
|
115
115
|
s.current.delete(c), n(e);
|
|
116
116
|
}
|
|
117
117
|
}, c)] });
|
|
118
|
-
},
|
|
119
|
-
let { navigate:
|
|
118
|
+
}, ze = ({ landingPage: a, initialDraft: c, rememberDraft: u, onCreated: f }) => {
|
|
119
|
+
let { navigate: p, basePath: me } = d(), { data: m, loading: Ne, error: S, refetch: T } = ce(), [Re, { loading: ze }] = t(), [Be, { loading: Ve }] = o(), [He, { loading: Ue }] = n(), [We] = e(), [Ge] = s(), [Ke] = r(), [qe] = i(), [Je, E] = g(!1), [D, Ye] = g(c?.landingPageId ?? a?.id ?? null), [O, k] = g(a?.status ?? "DRAFT"), [Xe, A] = g(a?.publishedUrl ?? null), [j, M] = g(c?.pageName ?? a?.title ?? "Landing Page"), [N, Ze] = g(c?.pageSlug ?? a?.slug ?? ""), [P, Qe] = g(c?.templateId ?? a?.templateId ?? null), [$e, et] = g("desktop"), [F, I] = g(null), [tt, L] = g(!1), [R, z] = g(null), [nt, B] = g(null), [rt, V] = g(null), [it, H] = g(null), [U, at] = g(null), ot = rt !== null || it !== null, [st, ct] = g(() => Ie(a).saved), lt = _e(() => {
|
|
120
120
|
let { saved: e } = Ie(a);
|
|
121
121
|
if (e.length > 0) return e;
|
|
122
122
|
let t = oe(a?.metadata);
|
|
123
|
-
return t.length > 0 ? t : a ? [] : [
|
|
124
|
-
}, [a]), [W, G] =
|
|
123
|
+
return t.length > 0 ? t : a ? [] : [w("hero")];
|
|
124
|
+
}, [a]), [W, G] = g(c?.sections ?? lt), [ut, dt] = g(() => ({
|
|
125
125
|
landingPageId: a?.id ?? null,
|
|
126
126
|
pageName: a?.title ?? "Landing Page",
|
|
127
127
|
pageSlug: a?.slug ?? "",
|
|
@@ -133,8 +133,8 @@ var T = () => {
|
|
|
133
133
|
pageSlug: N,
|
|
134
134
|
templateId: P,
|
|
135
135
|
sections: W
|
|
136
|
-
}, K = JSON.stringify(ft) !== JSON.stringify(ut), pt =
|
|
137
|
-
|
|
136
|
+
}, K = JSON.stringify(ft) !== JSON.stringify(ut), pt = h(K ? ft : null), q = h(!1), mt = h(u);
|
|
137
|
+
ge(() => {
|
|
138
138
|
pt.current = K ? {
|
|
139
139
|
landingPageId: D,
|
|
140
140
|
pageName: j,
|
|
@@ -150,16 +150,16 @@ var T = () => {
|
|
|
150
150
|
W,
|
|
151
151
|
u,
|
|
152
152
|
K
|
|
153
|
-
]),
|
|
153
|
+
]), he(() => () => {
|
|
154
154
|
q.current || mt.current(pt.current);
|
|
155
|
-
}, []),
|
|
155
|
+
}, []), Ae((e) => {
|
|
156
156
|
K && (e.preventDefault(), e.returnValue = "");
|
|
157
157
|
});
|
|
158
|
-
let ht = (
|
|
158
|
+
let ht = (m?.headshotmarketingCampaignTemplates.items ?? []).map((e) => se(e)), gt = {
|
|
159
159
|
desktop: "w-full",
|
|
160
160
|
tablet: "max-w-[768px]",
|
|
161
161
|
mobile: "max-w-[390px]"
|
|
162
|
-
}, J =
|
|
162
|
+
}, J = _e(() => W.find((e) => e.id === F) ?? null, [W, F]), _t = (e, t) => {
|
|
163
163
|
G((n) => {
|
|
164
164
|
let r = n.findIndex((t) => t.id === e);
|
|
165
165
|
if (r === -1) return n;
|
|
@@ -176,17 +176,17 @@ var T = () => {
|
|
|
176
176
|
if (n === -1) return t;
|
|
177
177
|
let r = {
|
|
178
178
|
...t[n],
|
|
179
|
-
id:
|
|
179
|
+
id: C(),
|
|
180
180
|
label: `${t[n].label} copy`,
|
|
181
181
|
config: { ...t[n].config }
|
|
182
182
|
}, i = [...t];
|
|
183
183
|
return i.splice(n + 1, 0, r), I(r.id), i;
|
|
184
184
|
});
|
|
185
185
|
}, bt = (e) => {
|
|
186
|
-
let t =
|
|
186
|
+
let t = w(e);
|
|
187
187
|
G((e) => [...e, t]), I(t.id);
|
|
188
188
|
}, xt = (e, t) => {
|
|
189
|
-
let n =
|
|
189
|
+
let n = w(e);
|
|
190
190
|
G((e) => {
|
|
191
191
|
let r = [...e];
|
|
192
192
|
return r.splice(Math.min(Math.max(t, 0), r.length), 0, n), r;
|
|
@@ -212,20 +212,20 @@ var T = () => {
|
|
|
212
212
|
label: t
|
|
213
213
|
} : n));
|
|
214
214
|
}, Tt = (e) => (t) => {
|
|
215
|
-
t.dataTransfer.effectAllowed = "copy", t.dataTransfer.setData(
|
|
215
|
+
t.dataTransfer.effectAllowed = "copy", t.dataTransfer.setData(b, e), H(e), V(null);
|
|
216
216
|
}, Et = (e) => (t) => {
|
|
217
|
-
t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData(
|
|
217
|
+
t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData(x, e), V(e), H(null);
|
|
218
218
|
}, Y = () => {
|
|
219
219
|
V(null), H(null), at(null);
|
|
220
220
|
}, X = (e) => (t) => {
|
|
221
|
-
let n = t.dataTransfer.types, r = n.includes(
|
|
221
|
+
let n = t.dataTransfer.types, r = n.includes(x), i = n.includes(b);
|
|
222
222
|
(r || i) && (t.preventDefault(), t.dataTransfer.dropEffect = r ? "move" : "copy", at(e));
|
|
223
223
|
}, Z = (e) => (t) => {
|
|
224
224
|
t.preventDefault();
|
|
225
|
-
let n = t.dataTransfer.getData(
|
|
225
|
+
let n = t.dataTransfer.getData(b), r = t.dataTransfer.getData(x);
|
|
226
226
|
n ? xt(n, e) : r && St(r, e), Y();
|
|
227
227
|
}, Dt = (e) => {
|
|
228
|
-
M(e.name), Qe(e.id), G(Pe.map((e) =>
|
|
228
|
+
M(e.name), Qe(e.id), G(Pe.map((e) => w(e))), I(null), B(`Applied "${e.name}" template — Save to keep it.`);
|
|
229
229
|
}, Ot = async (e) => {
|
|
230
230
|
let t = ie(st, W), n = /* @__PURE__ */ new Map();
|
|
231
231
|
for (let e of t.removeIds) await Ke({ variables: { id: e } });
|
|
@@ -309,66 +309,66 @@ var T = () => {
|
|
|
309
309
|
z(e instanceof Error ? e.message : "Failed to publish landing page.");
|
|
310
310
|
}
|
|
311
311
|
}, Q = ze || Ve || Je, $ = Xe && O === "PUBLISHED" ? Xe : null, Mt = $ ?? `/lp/${N || Le(j)}`;
|
|
312
|
-
return /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ y(ee, {
|
|
313
313
|
title: "Landing Page Builder",
|
|
314
|
-
actions: /* @__PURE__ */
|
|
314
|
+
actions: /* @__PURE__ */ y("div", {
|
|
315
315
|
className: "flex flex-wrap items-center gap-2",
|
|
316
316
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
onClick: () =>
|
|
317
|
+
/* @__PURE__ */ y("button", {
|
|
318
|
+
onClick: () => p(me),
|
|
319
319
|
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",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
320
|
+
children: [/* @__PURE__ */ v(ve, { className: "h-4 w-4" }), "Back"]
|
|
321
321
|
}),
|
|
322
|
-
$ && /* @__PURE__ */
|
|
322
|
+
$ && /* @__PURE__ */ y("a", {
|
|
323
323
|
href: $,
|
|
324
324
|
target: "_blank",
|
|
325
325
|
rel: "noreferrer",
|
|
326
326
|
"data-testid": "builder-open-live",
|
|
327
327
|
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",
|
|
328
|
-
children: [/* @__PURE__ */ _
|
|
328
|
+
children: [/* @__PURE__ */ v(_, { className: "h-4 w-4" }), "View live"]
|
|
329
329
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ y("button", {
|
|
331
331
|
onClick: () => L(!0),
|
|
332
332
|
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",
|
|
333
|
-
children: [/* @__PURE__ */
|
|
333
|
+
children: [/* @__PURE__ */ v(be, { className: "h-4 w-4" }), "Preview"]
|
|
334
334
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ y("button", {
|
|
336
336
|
onClick: () => void At(),
|
|
337
337
|
disabled: Q,
|
|
338
338
|
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 disabled:opacity-60",
|
|
339
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ v(De, { className: "h-4 w-4" }), Q ? "Saving…" : "Save"]
|
|
340
340
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ y("button", {
|
|
342
342
|
onClick: () => void jt(),
|
|
343
343
|
disabled: Q || Ue,
|
|
344
344
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
|
|
345
|
-
children: [/* @__PURE__ */
|
|
345
|
+
children: [/* @__PURE__ */ v(xe, { className: "h-4 w-4" }), Ue ? "Publishing…" : "Publish"]
|
|
346
346
|
})
|
|
347
347
|
]
|
|
348
348
|
}),
|
|
349
349
|
children: [
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
R && /* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ v(Me, { children: "Build a campaign landing page without code. Start from a template, drag in sections (hero, features, testimonials, forms), edit the copy and style live, preview how it looks on desktop and mobile, then publish it to capture leads for the campaign you're promoting." }),
|
|
351
|
+
R && /* @__PURE__ */ v("div", {
|
|
352
352
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
353
353
|
children: R
|
|
354
354
|
}),
|
|
355
|
-
nt && !R && /* @__PURE__ */
|
|
355
|
+
nt && !R && /* @__PURE__ */ y("div", {
|
|
356
356
|
className: "flex items-center justify-between gap-3 rounded-lg border border-status-success-border/30 bg-status-success-bg/10 px-4 py-3 text-sm text-status-success-text",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
357
|
+
children: [/* @__PURE__ */ v("span", { children: nt }), $ && /* @__PURE__ */ y("a", {
|
|
358
358
|
href: $,
|
|
359
359
|
target: "_blank",
|
|
360
360
|
rel: "noreferrer",
|
|
361
361
|
className: "inline-flex items-center gap-1 font-medium underline",
|
|
362
|
-
children: ["View live ", /* @__PURE__ */ _
|
|
362
|
+
children: ["View live ", /* @__PURE__ */ v(_, { className: "h-3 w-3" })]
|
|
363
363
|
})]
|
|
364
364
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ v("div", {
|
|
366
366
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
|
|
367
|
-
children: /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ y("div", {
|
|
368
368
|
className: "flex flex-wrap items-center gap-3",
|
|
369
369
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ v(ye, { className: "h-4 w-4 text-text-secondary" }),
|
|
371
|
+
/* @__PURE__ */ v("input", {
|
|
372
372
|
type: "text",
|
|
373
373
|
"aria-label": "Page name",
|
|
374
374
|
value: j,
|
|
@@ -376,61 +376,61 @@ var T = () => {
|
|
|
376
376
|
className: "text-lg font-semibold text-text-primary bg-transparent border-none outline-none flex-1 min-w-[12rem] placeholder:text-text-secondary",
|
|
377
377
|
placeholder: "Page name"
|
|
378
378
|
}),
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ y("span", {
|
|
380
380
|
className: "hidden items-center gap-1.5 text-xs text-text-secondary sm:inline-flex",
|
|
381
381
|
children: [
|
|
382
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ v(Se, { className: "h-3.5 w-3.5" }),
|
|
383
383
|
W.length,
|
|
384
384
|
" ",
|
|
385
385
|
W.length === 1 ? "section" : "sections"
|
|
386
386
|
]
|
|
387
387
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ v("span", {
|
|
389
389
|
className: l("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium capitalize", O === "PUBLISHED" ? "border-status-success-border bg-status-success-bg text-status-success-text" : "border-border-subtle bg-bg-sunken text-text-secondary"),
|
|
390
390
|
children: O.toLowerCase()
|
|
391
391
|
})
|
|
392
392
|
]
|
|
393
393
|
})
|
|
394
394
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
loading:
|
|
397
|
-
error:
|
|
395
|
+
/* @__PURE__ */ v(ne, {
|
|
396
|
+
loading: Ne,
|
|
397
|
+
error: S,
|
|
398
398
|
onRetry: T,
|
|
399
|
-
hasData: !!
|
|
400
|
-
children: /* @__PURE__ */
|
|
399
|
+
hasData: !!m,
|
|
400
|
+
children: /* @__PURE__ */ y("div", {
|
|
401
401
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-12",
|
|
402
402
|
children: [
|
|
403
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ y("aside", {
|
|
404
404
|
className: "space-y-4 lg:col-span-3 lg:sticky lg:top-4 lg:self-start",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
405
|
+
children: [/* @__PURE__ */ y("div", {
|
|
406
406
|
className: "rounded-card border border-border-seam bg-gloss-card shadow-pop p-4",
|
|
407
407
|
children: [
|
|
408
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ y("h4", {
|
|
409
409
|
className: "mb-1 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
410
|
-
children: [/* @__PURE__ */
|
|
410
|
+
children: [/* @__PURE__ */ v(Se, { className: "h-4 w-4 text-text-secondary" }), "Section blocks"]
|
|
411
411
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ v("p", {
|
|
413
413
|
className: "mb-3 text-[11px] text-text-secondary",
|
|
414
414
|
children: "Click to append, or drag onto the canvas."
|
|
415
415
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ v("div", {
|
|
417
417
|
className: "grid grid-cols-2 gap-2",
|
|
418
418
|
children: le.map((e) => {
|
|
419
419
|
let t = e.icon;
|
|
420
|
-
return /* @__PURE__ */
|
|
420
|
+
return /* @__PURE__ */ y("button", {
|
|
421
421
|
type: "button",
|
|
422
422
|
draggable: !0,
|
|
423
423
|
onDragStart: Tt(e.type),
|
|
424
424
|
onDragEnd: Y,
|
|
425
425
|
onClick: () => bt(e.type),
|
|
426
426
|
title: e.description,
|
|
427
|
-
className: "group flex cursor-grab flex-col gap-2 rounded-lg border border-border-subtle bg-bg-surface p-2 text-
|
|
428
|
-
children: [/* @__PURE__ */
|
|
427
|
+
className: "group flex cursor-grab flex-col gap-2 rounded-lg border border-border-subtle bg-bg-surface p-2 text-start transition-all hover:border-border-strong hover:shadow-pop active:cursor-grabbing",
|
|
428
|
+
children: [/* @__PURE__ */ v("div", {
|
|
429
429
|
className: "h-12 overflow-hidden rounded-md border border-border-subtle/60 bg-bg-sunken/50 p-1.5",
|
|
430
|
-
children: /* @__PURE__ */
|
|
431
|
-
}), /* @__PURE__ */
|
|
430
|
+
children: /* @__PURE__ */ v(ue, { type: e.type })
|
|
431
|
+
}), /* @__PURE__ */ y("div", {
|
|
432
432
|
className: "flex items-center gap-1.5",
|
|
433
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ v(t, { className: "h-3.5 w-3.5 text-text-secondary group-hover:text-primary" }), /* @__PURE__ */ v("span", {
|
|
434
434
|
className: "text-xs font-medium text-text-primary",
|
|
435
435
|
children: e.label
|
|
436
436
|
})]
|
|
@@ -439,30 +439,30 @@ var T = () => {
|
|
|
439
439
|
})
|
|
440
440
|
})
|
|
441
441
|
]
|
|
442
|
-
}), /* @__PURE__ */
|
|
442
|
+
}), /* @__PURE__ */ y("div", {
|
|
443
443
|
className: "rounded-card border border-border-seam bg-gloss-card shadow-pop p-4",
|
|
444
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ y("h4", {
|
|
445
445
|
className: "mb-3 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
446
|
-
children: [/* @__PURE__ */
|
|
447
|
-
}), /* @__PURE__ */
|
|
446
|
+
children: [/* @__PURE__ */ v(Ce, { className: "h-4 w-4 text-text-secondary" }), "Templates"]
|
|
447
|
+
}), /* @__PURE__ */ y("div", {
|
|
448
448
|
className: "space-y-2",
|
|
449
|
-
children: [ht.length === 0 && /* @__PURE__ */
|
|
449
|
+
children: [ht.length === 0 && /* @__PURE__ */ v("p", {
|
|
450
450
|
className: "text-xs text-text-secondary",
|
|
451
451
|
children: "No templates yet. Create a campaign template to reuse it here."
|
|
452
|
-
}), ht.map((e) => /* @__PURE__ */
|
|
452
|
+
}), ht.map((e) => /* @__PURE__ */ y("button", {
|
|
453
453
|
type: "button",
|
|
454
454
|
onClick: () => Dt(e),
|
|
455
|
-
className: l("flex w-full flex-col items-start rounded-md border px-3 py-2.5 text-
|
|
455
|
+
className: l("flex w-full flex-col items-start rounded-md border px-3 py-2.5 text-start transition-colors", P === e.id ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:bg-bg-sunken"),
|
|
456
456
|
children: [
|
|
457
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ v("span", {
|
|
458
458
|
className: "text-sm font-medium text-text-primary",
|
|
459
459
|
children: e.name
|
|
460
460
|
}),
|
|
461
|
-
e.description && /* @__PURE__ */
|
|
461
|
+
e.description && /* @__PURE__ */ v("span", {
|
|
462
462
|
className: "mt-0.5 text-[10px] text-text-secondary",
|
|
463
463
|
children: e.description
|
|
464
464
|
}),
|
|
465
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ v("span", {
|
|
466
466
|
className: "mt-1 rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] capitalize text-text-secondary",
|
|
467
467
|
children: e.category
|
|
468
468
|
})
|
|
@@ -471,77 +471,77 @@ var T = () => {
|
|
|
471
471
|
})]
|
|
472
472
|
})]
|
|
473
473
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ y("div", {
|
|
475
475
|
className: "min-w-0 lg:col-span-6",
|
|
476
|
-
children: [/* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ v("div", {
|
|
477
477
|
className: "mb-4 flex justify-center",
|
|
478
|
-
children: /* @__PURE__ */
|
|
478
|
+
children: /* @__PURE__ */ v("div", {
|
|
479
479
|
className: "inline-flex items-center gap-0.5 rounded-lg border border-border-subtle bg-bg-surface p-0.5",
|
|
480
480
|
children: [
|
|
481
481
|
{
|
|
482
482
|
key: "desktop",
|
|
483
|
-
icon:
|
|
483
|
+
icon: we,
|
|
484
484
|
label: "Desktop"
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
487
|
key: "tablet",
|
|
488
|
-
icon:
|
|
488
|
+
icon: ke,
|
|
489
489
|
label: "Tablet"
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
key: "mobile",
|
|
493
|
-
icon:
|
|
493
|
+
icon: Oe,
|
|
494
494
|
label: "Mobile"
|
|
495
495
|
}
|
|
496
496
|
].map((e) => {
|
|
497
497
|
let t = e.icon, n = $e === e.key;
|
|
498
|
-
return /* @__PURE__ */
|
|
498
|
+
return /* @__PURE__ */ y("button", {
|
|
499
499
|
onClick: () => et(e.key),
|
|
500
500
|
title: e.label,
|
|
501
501
|
"aria-label": e.label,
|
|
502
502
|
"aria-pressed": n,
|
|
503
503
|
className: l("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium transition-colors", n ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
|
|
504
|
-
children: [/* @__PURE__ */
|
|
504
|
+
children: [/* @__PURE__ */ v(t, { className: "h-4 w-4" }), /* @__PURE__ */ v("span", {
|
|
505
505
|
className: "hidden sm:inline",
|
|
506
506
|
children: e.label
|
|
507
507
|
})]
|
|
508
508
|
}, e.key);
|
|
509
509
|
})
|
|
510
510
|
})
|
|
511
|
-
}), /* @__PURE__ */
|
|
511
|
+
}), /* @__PURE__ */ y("div", {
|
|
512
512
|
className: l("mx-auto overflow-hidden rounded-card border border-border-seam bg-bg-canvas shadow-pop transition-all", gt[$e]),
|
|
513
|
-
children: [/* @__PURE__ */
|
|
513
|
+
children: [/* @__PURE__ */ y("div", {
|
|
514
514
|
className: "flex items-center gap-2 border-b border-border-subtle bg-bg-sunken/60 px-4 py-2.5",
|
|
515
|
-
children: [/* @__PURE__ */
|
|
515
|
+
children: [/* @__PURE__ */ y("div", {
|
|
516
516
|
className: "flex gap-1.5",
|
|
517
517
|
children: [
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ v("span", { className: "h-2.5 w-2.5 rounded-full bg-status-error-bg" }),
|
|
519
|
+
/* @__PURE__ */ v("span", { className: "h-2.5 w-2.5 rounded-full bg-status-warning-bg" }),
|
|
520
|
+
/* @__PURE__ */ v("span", { className: "h-2.5 w-2.5 rounded-full bg-status-success-bg" })
|
|
521
521
|
]
|
|
522
|
-
}), /* @__PURE__ */
|
|
522
|
+
}), /* @__PURE__ */ y("div", {
|
|
523
523
|
className: "mx-auto flex max-w-[70%] items-center gap-1.5 truncate rounded-md bg-bg-surface px-3 py-1 text-[11px] text-text-secondary",
|
|
524
|
-
children: [/* @__PURE__ */
|
|
524
|
+
children: [/* @__PURE__ */ v(xe, { className: "h-3 w-3 shrink-0" }), /* @__PURE__ */ v("span", {
|
|
525
525
|
className: "truncate",
|
|
526
526
|
children: Mt
|
|
527
527
|
})]
|
|
528
528
|
})]
|
|
529
|
-
}), W.length === 0 ? /* @__PURE__ */
|
|
529
|
+
}), W.length === 0 ? /* @__PURE__ */ y("div", {
|
|
530
530
|
onDragOver: X(0),
|
|
531
531
|
onDrop: Z(0),
|
|
532
532
|
className: l("m-4 flex flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed p-12 text-center transition-colors", ot ? "border-primary bg-action-primary-bg/5" : "border-border-subtle"),
|
|
533
533
|
children: [
|
|
534
|
-
/* @__PURE__ */
|
|
535
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ v(Ee, { className: "h-6 w-6 text-text-secondary" }),
|
|
535
|
+
/* @__PURE__ */ v("p", {
|
|
536
536
|
className: "text-sm font-medium text-text-primary",
|
|
537
537
|
children: "Start building your page"
|
|
538
538
|
}),
|
|
539
|
-
/* @__PURE__ */
|
|
539
|
+
/* @__PURE__ */ v("p", {
|
|
540
540
|
className: "max-w-xs text-xs text-text-secondary",
|
|
541
541
|
children: "Drag a block from the left, or click one to add it here."
|
|
542
542
|
})
|
|
543
543
|
]
|
|
544
|
-
}) : /* @__PURE__ */
|
|
544
|
+
}) : /* @__PURE__ */ y("div", { children: [W.map((e, t) => /* @__PURE__ */ v(de, {
|
|
545
545
|
section: e,
|
|
546
546
|
index: t,
|
|
547
547
|
total: W.length,
|
|
@@ -556,24 +556,24 @@ var T = () => {
|
|
|
556
556
|
onDragEnd: Y,
|
|
557
557
|
onBlockDragOver: X(t),
|
|
558
558
|
onBlockDrop: Z(t)
|
|
559
|
-
}, e.id)), /* @__PURE__ */
|
|
559
|
+
}, e.id)), /* @__PURE__ */ y("div", {
|
|
560
560
|
onDragOver: X(W.length),
|
|
561
561
|
onDrop: Z(W.length),
|
|
562
562
|
className: l("relative border-t border-dashed transition-colors", U === W.length ? "border-primary bg-action-primary-bg/5" : "border-border-subtle"),
|
|
563
|
-
children: [U === W.length && /* @__PURE__ */
|
|
563
|
+
children: [U === W.length && /* @__PURE__ */ v("div", { className: "pointer-events-none absolute inset-x-0 -top-px h-0.5 bg-action-primary-bg" }), /* @__PURE__ */ y("button", {
|
|
564
564
|
type: "button",
|
|
565
565
|
onClick: () => bt("features"),
|
|
566
566
|
className: "flex w-full items-center justify-center gap-2 p-4 text-sm text-text-secondary transition-colors hover:bg-action-primary-bg/5 hover:text-primary",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
567
|
+
children: [/* @__PURE__ */ v(Ee, { className: "h-4 w-4" }), "Add section"]
|
|
568
568
|
})]
|
|
569
569
|
})] })]
|
|
570
570
|
})]
|
|
571
571
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ v("aside", {
|
|
573
573
|
className: "lg:col-span-3 lg:sticky lg:top-4 lg:self-start",
|
|
574
|
-
children: J ? /* @__PURE__ */
|
|
574
|
+
children: J ? /* @__PURE__ */ v("div", {
|
|
575
575
|
className: "lg:max-h-[calc(100vh-2rem)]",
|
|
576
|
-
children: /* @__PURE__ */
|
|
576
|
+
children: /* @__PURE__ */ v(fe, {
|
|
577
577
|
section: J,
|
|
578
578
|
onChangeConfig: (e) => Ct(J.id, e),
|
|
579
579
|
onChangeLabel: (e) => wt(J.id, e),
|
|
@@ -581,18 +581,18 @@ var T = () => {
|
|
|
581
581
|
onDuplicate: () => yt(J.id),
|
|
582
582
|
onRemove: () => vt(J.id)
|
|
583
583
|
})
|
|
584
|
-
}) : /* @__PURE__ */
|
|
584
|
+
}) : /* @__PURE__ */ y("div", {
|
|
585
585
|
className: "flex flex-col items-center justify-center gap-3 rounded-card border border-dashed border-border-subtle bg-bg-surface p-6 text-center",
|
|
586
586
|
children: [
|
|
587
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ v("span", {
|
|
588
588
|
className: "flex h-11 w-11 items-center justify-center rounded-full bg-action-primary-bg/10 text-primary",
|
|
589
|
-
children: /* @__PURE__ */
|
|
589
|
+
children: /* @__PURE__ */ v(Te, { className: "h-5 w-5" })
|
|
590
590
|
}),
|
|
591
|
-
/* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ v("p", {
|
|
592
592
|
className: "text-sm font-semibold text-text-primary",
|
|
593
593
|
children: "No block selected"
|
|
594
594
|
}),
|
|
595
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ v("p", {
|
|
596
596
|
className: "text-xs text-text-secondary",
|
|
597
597
|
children: "Select a block on the canvas to edit its text, colors, spacing and alignment."
|
|
598
598
|
})
|
|
@@ -602,35 +602,35 @@ var T = () => {
|
|
|
602
602
|
]
|
|
603
603
|
})
|
|
604
604
|
}),
|
|
605
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ v(te, {
|
|
606
606
|
open: tt,
|
|
607
607
|
onClose: () => L(!1),
|
|
608
608
|
title: j || "Landing Page",
|
|
609
609
|
description: $ ? `Preview of your landing page. Published at ${$} — save and publish again to update it.` : "Preview of your landing page. Publish it to make it public.",
|
|
610
610
|
size: "xl",
|
|
611
|
-
footer: /* @__PURE__ */
|
|
611
|
+
footer: /* @__PURE__ */ y(je, { children: [$ && /* @__PURE__ */ y("a", {
|
|
612
612
|
href: $,
|
|
613
613
|
target: "_blank",
|
|
614
614
|
rel: "noreferrer",
|
|
615
615
|
className: "inline-flex 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",
|
|
616
|
-
children: [/* @__PURE__ */ _
|
|
617
|
-
}), /* @__PURE__ */
|
|
616
|
+
children: [/* @__PURE__ */ v(_, { className: "h-4 w-4" }), "Open live page"]
|
|
617
|
+
}), /* @__PURE__ */ v("button", {
|
|
618
618
|
type: "button",
|
|
619
619
|
onClick: () => L(!1),
|
|
620
620
|
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",
|
|
621
621
|
children: "Close"
|
|
622
622
|
})] }),
|
|
623
|
-
children: /* @__PURE__ */
|
|
623
|
+
children: /* @__PURE__ */ v("div", {
|
|
624
624
|
className: "overflow-hidden rounded-lg border border-border-subtle bg-bg-canvas",
|
|
625
|
-
children: W.length === 0 ? /* @__PURE__ */
|
|
625
|
+
children: W.length === 0 ? /* @__PURE__ */ v("p", {
|
|
626
626
|
className: "p-8 text-center text-sm text-text-secondary",
|
|
627
627
|
children: "This page has no sections yet."
|
|
628
|
-
}) : W.map((e) => /* @__PURE__ */
|
|
628
|
+
}) : W.map((e) => /* @__PURE__ */ v(pe, { section: e }, e.id))
|
|
629
629
|
})
|
|
630
630
|
})
|
|
631
631
|
]
|
|
632
632
|
});
|
|
633
633
|
};
|
|
634
|
-
export {
|
|
634
|
+
export { Re as LandingPageBuilderPage };
|
|
635
635
|
|
|
636
636
|
//# sourceMappingURL=LandingPageBuilderPage.js.map
|