@burdenoff/microfe-headshotmarketing 2026.703.1 → 2026.704.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.
Files changed (137) hide show
  1. package/dist/generated/wspace-operations.js +970 -52
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +26 -10
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
  6. package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
  7. package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
  8. package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
  9. package/dist/headshotmarketing/components/ActionMenu.js +57 -0
  10. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
  11. package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
  12. package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
  13. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  14. package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
  15. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
  16. package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
  17. package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
  18. package/dist/headshotmarketing/components/Modal.js +6 -3
  19. package/dist/headshotmarketing/components/Modal.js.map +1 -1
  20. package/dist/headshotmarketing/components/Pagination.js +117 -0
  21. package/dist/headshotmarketing/components/Pagination.js.map +1 -0
  22. package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
  23. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
  24. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  25. package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
  26. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
  27. package/dist/headshotmarketing/components/index.js +6 -0
  28. package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
  29. package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
  30. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
  31. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
  32. package/dist/headshotmarketing/hooks/index.js +4 -0
  33. package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
  34. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
  35. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
  36. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
  37. package/dist/headshotmarketing/hooks/usePagination.js +53 -0
  38. package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
  39. package/dist/headshotmarketing/pages/HomePage.js +334 -301
  40. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
  42. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
  44. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
  46. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
  48. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
  50. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
  52. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
  54. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
  56. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
  58. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +221 -211
  60. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
  62. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
  64. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
  66. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
  67. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
  68. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
  70. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +290 -217
  74. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
  76. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
  78. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
  80. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
  82. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
  84. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
  86. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
  88. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
  90. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
  92. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
  94. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
  96. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  97. package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
  98. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
  99. package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
  100. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
  102. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
  104. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
  106. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  107. package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
  108. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
  110. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  111. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
  112. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
  114. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
  116. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
  118. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
  120. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  121. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
  122. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
  124. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
  126. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
  128. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  129. package/dist/headshotmarketing/utils/adsMapper.js +74 -51
  130. package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
  131. package/dist/headshotmarketing/utils/helpers.js +11 -1
  132. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  133. package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
  134. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  135. package/package.json +1 -1
  136. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  137. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -1,43 +1,81 @@
1
- import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { useHeadshotmarketingBootstrapDataQuery as t } from "../../../generated/wspace-operations.js";
3
- import { cn as n } from "../../utils/helpers.js";
4
- import { PageLayout as r } from "../../components/PageLayout.js";
1
+ import { useHeadshotmarketingCreateLandingPageMutation as e, useHeadshotmarketingPublishLandingPageMutation as t, useHeadshotmarketingUpdateLandingPageMutation as n } from "../../../generated/wspace-operations.js";
2
+ import { useHeadshotMarketing as r } from "../../context/HeadshotMarketingContext.js";
3
+ import { cn as i } from "../../utils/helpers.js";
4
+ import { PageLayout as a } from "../../components/PageLayout.js";
5
+ import { Modal as ee } from "../../components/Modal.js";
6
+ import { QueryStateBoundary as te } from "../../components/QueryStateBoundary.js";
5
7
  import "../../components/index.js";
6
- import { toBuilderSectionsFromLandingPage as i, toBuilderTemplateModel as a } from "../../utils/builderMapper.js";
7
- import { useEffect as o, useState as s } from "react";
8
- import { ArrowLeft as c, ChevronDown as l, ChevronUp as u, Columns as d, Edit3 as f, Eye as p, Globe as m, GripVertical as h, Image as g, Layout as _, Monitor as v, MousePointerClick as y, Plus as b, Save as x, Smartphone as S, Star as C, Tablet as w, Trash2 as T } from "lucide-react";
9
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
10
- import { EmphasisPanel as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
8
+ import { useHeadshotmarketingBootstrap as o } from "../../hooks/useHeadshotmarketingBootstrap.js";
9
+ import "../../hooks/index.js";
10
+ import { toBuilderSectionsFromLandingPage as s, toBuilderTemplateModel as ne } from "../../utils/builderMapper.js";
11
+ import { useEffect as re, useMemo as ie, useState as c } from "react";
12
+ import { ArrowLeft as ae, ChevronDown as oe, ChevronUp as l, Columns as u, Edit3 as d, ExternalLink as f, Eye as se, Globe as ce, GripVertical as le, Image as p, Layout as m, Monitor as ue, MousePointerClick as h, Plus as de, Save as fe, Smartphone as pe, Star as g, Tablet as me, Trash2 as he, Type as _ } from "lucide-react";
13
+ import { Fragment as ge, jsx as v, jsxs as y } from "react/jsx-runtime";
14
+ import { EmphasisPanel as _e, PagePurpose as b } from "@burdenoff/fe-libs/ui";
11
15
  //#region src/headshotmarketing/pages/builder/LandingPageBuilderPage.tsx
12
- var A = {
13
- header: _,
14
- hero: g,
15
- features: d,
16
- testimonials: C,
17
- cta: y,
18
- footer: _
19
- }, j = () => {
20
- let { navigate: d } = e(), { data: g } = t({ variables: {
21
- limit: 200,
22
- offset: 0
23
- } }), y = (g?.headshotmarketingLandingPages.items ?? [])[0], j = i(y), [M, N] = s(y?.title ?? "Landing Page"), [P, F] = s("desktop"), [I, L] = s(j.length > 0 ? j.map((e) => ({ ...e })) : [{
24
- id: "default-hero",
25
- type: "hero",
26
- label: "Hero",
27
- config: {}
28
- }]), [R, z] = s(null), [B, V] = s(!1), H = (g?.headshotmarketingCampaignTemplates.items ?? []).map((e) => a(e));
29
- o(() => {
30
- if (!y) return;
31
- N(y.title);
32
- let e = i(y);
33
- e.length > 0 && L(e.map((e) => ({ ...e })));
34
- }, [y]);
35
- let U = {
16
+ var x = {
17
+ header: m,
18
+ hero: p,
19
+ features: u,
20
+ testimonials: g,
21
+ cta: h,
22
+ footer: m,
23
+ pricing: _,
24
+ faq: _,
25
+ gallery: p,
26
+ contact: _
27
+ }, ve = [
28
+ "header",
29
+ "hero",
30
+ "features",
31
+ "testimonials",
32
+ "cta",
33
+ "footer"
34
+ ];
35
+ function ye(e) {
36
+ return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "landing-page";
37
+ }
38
+ function S(e) {
39
+ return Array.isArray(e) && e.every((e) => typeof e == "object" && !!e && typeof e.type == "string");
40
+ }
41
+ function C(e) {
42
+ let t = e?.builderLayout;
43
+ return !S(t) || t.length === 0 ? null : t.map((e, t) => ({
44
+ id: typeof e.id == "string" ? e.id : `sec-${t}`,
45
+ type: e.type,
46
+ label: typeof e.label == "string" ? e.label : e.type.charAt(0).toUpperCase() + e.type.slice(1),
47
+ config: typeof e.config == "object" && e.config !== null ? e.config : {}
48
+ }));
49
+ }
50
+ var w = () => {
51
+ let { navigate: u, basePath: p } = r(), { data: h, loading: _, error: S, refetch: w } = o(), T = (h?.headshotmarketingLandingPages.items ?? [])[0], [be, { loading: xe }] = e(), [Se, { loading: Ce }] = n(), [we, { loading: E }] = t(), [D, O] = c(T?.id ?? null), [k, A] = c(T?.status ?? "DRAFT"), [j, M] = c(T?.publishedUrl ?? null), [N, P] = c(T?.title ?? "Landing Page"), [F, I] = c(T?.templateId ?? null), [L, Te] = c("desktop"), [R, z] = c(null), [Ee, B] = c(!1), [V, H] = c(null), [U, W] = c(null), [G, K] = c(ie(() => {
52
+ let e = C(T?.metadata);
53
+ if (e) return e;
54
+ let t = s(T);
55
+ return t.length > 0 ? t.map((e) => ({ ...e })) : [{
56
+ id: "default-hero",
57
+ type: "hero",
58
+ label: "Hero",
59
+ config: {}
60
+ }];
61
+ }, [T])), q = (h?.headshotmarketingCampaignTemplates.items ?? []).map((e) => ne(e));
62
+ re(() => {
63
+ if (!T) return;
64
+ O(T.id), A(T.status), M(T.publishedUrl ?? null), P(T.title), I(T.templateId ?? null);
65
+ let e = C(T.metadata);
66
+ if (e) {
67
+ K(e);
68
+ return;
69
+ }
70
+ let t = s(T);
71
+ t.length > 0 && K(t.map((e) => ({ ...e })));
72
+ }, [T]);
73
+ let De = {
36
74
  desktop: "w-full",
37
75
  tablet: "max-w-[768px]",
38
76
  mobile: "max-w-[375px]"
39
- }, W = (e, t) => {
40
- L((n) => {
77
+ }, J = (e, t) => {
78
+ K((n) => {
41
79
  let r = n.findIndex((t) => t.id === e);
42
80
  if (r === -1) return n;
43
81
  let i = t === "up" ? r - 1 : r + 1;
@@ -45,312 +83,412 @@ var A = {
45
83
  let a = [...n];
46
84
  return [a[r], a[i]] = [a[i], a[r]], a;
47
85
  });
48
- }, G = (e) => {
49
- L((t) => t.filter((t) => t.id !== e)), R === e && z(null);
50
- }, K = (e) => {
86
+ }, Oe = (e) => {
87
+ K((t) => t.filter((t) => t.id !== e)), R === e && z(null);
88
+ }, Y = (e) => {
51
89
  let t = {
52
90
  id: `sec-${Date.now()}`,
53
91
  type: e,
54
92
  label: e.charAt(0).toUpperCase() + e.slice(1),
55
93
  config: {}
56
94
  };
57
- L((e) => [...e, t]), z(t.id);
58
- };
59
- return /* @__PURE__ */ D(r, {
95
+ K((e) => [...e, t]), z(t.id);
96
+ }, ke = (e) => {
97
+ P(e.name), I(e.id), K(ve.map((e, t) => ({
98
+ id: `sec-${Date.now()}-${t}`,
99
+ type: e,
100
+ label: e.charAt(0).toUpperCase() + e.slice(1),
101
+ config: {}
102
+ }))), z(null), W(`Applied "${e.name}" template — Save to keep it.`);
103
+ }, Ae = [
104
+ "header",
105
+ "hero",
106
+ "features",
107
+ "testimonials",
108
+ "cta",
109
+ "footer",
110
+ "pricing",
111
+ "faq",
112
+ "gallery",
113
+ "contact"
114
+ ], X = () => ({
115
+ ...T?.metadata ?? {},
116
+ builderLayout: G
117
+ }), Z = async () => {
118
+ if (!N.trim()) return H("Page name is required."), null;
119
+ H(null);
120
+ try {
121
+ if (D) {
122
+ let e = (await Se({ variables: {
123
+ id: D,
124
+ input: {
125
+ title: N.trim(),
126
+ templateId: F ?? void 0,
127
+ metadata: X()
128
+ }
129
+ } })).data?.headshotmarketingUpdateLandingPage;
130
+ return e && (A(e.status), M(e.publishedUrl ?? null)), D;
131
+ }
132
+ let e = (await be({ variables: { input: {
133
+ title: N.trim(),
134
+ slug: `${ye(N)}-${Date.now().toString(36)}`,
135
+ templateId: F ?? void 0,
136
+ metadata: X()
137
+ } } })).data?.headshotmarketingCreateLandingPage;
138
+ return e ? (O(e.id), A(e.status), M(e.publishedUrl ?? null), e.id) : (H("Failed to create landing page."), null);
139
+ } catch (e) {
140
+ return H(e instanceof Error ? e.message : "Failed to save landing page."), null;
141
+ }
142
+ }, je = async () => {
143
+ await Z() && (W("Landing page saved."), w());
144
+ }, Me = async () => {
145
+ let e = await Z();
146
+ if (e) try {
147
+ let t = (await we({ variables: { id: e } })).data?.headshotmarketingPublishLandingPage;
148
+ t && (A(t.status), M(t.publishedUrl ?? null), W("Landing page published."), t.publishedUrl && window.open(t.publishedUrl, "_blank", "noopener,noreferrer")), w();
149
+ } catch (e) {
150
+ H(e instanceof Error ? e.message : "Failed to publish landing page.");
151
+ }
152
+ }, Q = xe || Ce, $ = (e) => e.type === "hero" ? /* @__PURE__ */ y("div", {
153
+ className: "rounded-md bg-bg-sunken/50 p-4 text-center",
154
+ children: [
155
+ /* @__PURE__ */ v("p", {
156
+ className: "text-lg font-bold text-text-primary",
157
+ children: e.config.headline || "Your Headline Here"
158
+ }),
159
+ /* @__PURE__ */ v("p", {
160
+ className: "text-xs text-text-secondary mt-1",
161
+ children: e.config.subheadline || "Subheadline text"
162
+ }),
163
+ /* @__PURE__ */ v("div", {
164
+ className: "mt-2",
165
+ children: /* @__PURE__ */ v("span", {
166
+ className: "inline-block bg-action-primary-bg text-action-primary-text text-xs px-3 py-1 rounded-md",
167
+ children: e.config.cta || "Call to Action"
168
+ })
169
+ })
170
+ ]
171
+ }) : e.type === "features" ? /* @__PURE__ */ v("div", {
172
+ className: "grid grid-cols-3 gap-2",
173
+ children: (e.config.items || [
174
+ "Feature 1",
175
+ "Feature 2",
176
+ "Feature 3"
177
+ ]).map((e, t) => /* @__PURE__ */ v("div", {
178
+ className: "rounded-md bg-bg-sunken/50 p-2 text-center text-xs text-text-secondary",
179
+ children: e
180
+ }, t))
181
+ }) : e.type === "header" ? /* @__PURE__ */ y("div", {
182
+ className: "flex items-center justify-between rounded-md bg-bg-sunken/50 p-2",
183
+ children: [
184
+ /* @__PURE__ */ v("span", {
185
+ className: "text-xs font-medium text-text-secondary",
186
+ children: "Logo"
187
+ }),
188
+ /* @__PURE__ */ y("div", {
189
+ className: "flex gap-2 text-xs text-text-secondary",
190
+ children: [
191
+ /* @__PURE__ */ v("span", { children: "Nav 1" }),
192
+ /* @__PURE__ */ v("span", { children: "Nav 2" }),
193
+ /* @__PURE__ */ v("span", { children: "Nav 3" })
194
+ ]
195
+ }),
196
+ /* @__PURE__ */ v("span", {
197
+ className: "text-xs bg-action-primary-bg/20 text-primary px-2 py-0.5 rounded-md",
198
+ children: e.config.cta || "CTA"
199
+ })
200
+ ]
201
+ }) : e.type === "testimonials" ? /* @__PURE__ */ v("div", {
202
+ className: "flex gap-2",
203
+ children: Array.from({ length: e.config.count || 3 }).map((e, t) => /* @__PURE__ */ y("div", {
204
+ className: "flex-1 rounded-md bg-bg-sunken/50 p-2 text-center",
205
+ children: [/* @__PURE__ */ v("div", {
206
+ className: "flex justify-center gap-0.5 mb-1",
207
+ children: [
208
+ 1,
209
+ 2,
210
+ 3,
211
+ 4,
212
+ 5
213
+ ].map((e) => /* @__PURE__ */ v(g, { className: "h-3 w-3 text-status-warning-text fill-[var(--color-status-warning)]" }, e))
214
+ }), /* @__PURE__ */ y("p", {
215
+ className: "text-[10px] text-text-secondary",
216
+ children: ["Testimonial ", t + 1]
217
+ })]
218
+ }, t))
219
+ }) : e.type === "cta" ? /* @__PURE__ */ y("div", {
220
+ className: "rounded-md bg-action-primary-bg/10 p-3 text-center",
221
+ children: [/* @__PURE__ */ v("p", {
222
+ className: "text-sm font-semibold text-text-primary",
223
+ children: e.config.headline || "Call to Action"
224
+ }), /* @__PURE__ */ v("span", {
225
+ className: "inline-block mt-1 bg-action-primary-bg text-action-primary-text text-xs px-3 py-1 rounded-md",
226
+ children: e.config.buttonText || "Get Started"
227
+ })]
228
+ }) : e.type === "footer" ? /* @__PURE__ */ y("div", {
229
+ className: "rounded-md bg-bg-sunken/50 p-2 text-center text-xs text-text-secondary",
230
+ children: [
231
+ "Footer with ",
232
+ e.config.columns || 4,
233
+ " columns"
234
+ ]
235
+ }) : /* @__PURE__ */ y("div", {
236
+ className: "rounded-md bg-bg-sunken/50 p-3 text-center text-xs text-text-secondary capitalize",
237
+ children: [e.type, " section"]
238
+ });
239
+ return /* @__PURE__ */ y(a, {
60
240
  title: "Landing Page Builder",
61
- actions: /* @__PURE__ */ D("div", {
62
- className: "flex items-center gap-2",
241
+ actions: /* @__PURE__ */ y("div", {
242
+ className: "flex flex-wrap items-center gap-2",
63
243
  children: [
64
- /* @__PURE__ */ D("button", {
65
- onClick: () => d("builder"),
244
+ /* @__PURE__ */ y("button", {
245
+ onClick: () => u(p),
66
246
  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",
67
- children: [/* @__PURE__ */ E(c, { className: "h-4 w-4" }), "Back"]
247
+ children: [/* @__PURE__ */ v(ae, { className: "h-4 w-4" }), "Back"]
68
248
  }),
69
- /* @__PURE__ */ D("button", {
249
+ /* @__PURE__ */ y("button", {
250
+ onClick: () => B(!0),
70
251
  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",
71
- children: [/* @__PURE__ */ E(p, { className: "h-4 w-4" }), "Preview"]
252
+ children: [/* @__PURE__ */ v(se, { className: "h-4 w-4" }), "Preview"]
72
253
  }),
73
- /* @__PURE__ */ D("button", {
74
- 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",
75
- children: [/* @__PURE__ */ E(x, { className: "h-4 w-4" }), "Save"]
254
+ /* @__PURE__ */ y("button", {
255
+ onClick: () => void je(),
256
+ disabled: Q,
257
+ 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",
258
+ children: [/* @__PURE__ */ v(fe, { className: "h-4 w-4" }), Q ? "Saving…" : "Save"]
76
259
  }),
77
- /* @__PURE__ */ D("button", {
78
- className: "inline-flex items-center gap-2 rounded-md bg-status-success-text px-3 py-2 text-sm font-medium text-white hover:bg-status-success-text",
79
- children: [/* @__PURE__ */ E(m, { className: "h-4 w-4" }), "Publish"]
260
+ /* @__PURE__ */ y("button", {
261
+ onClick: () => void Me(),
262
+ disabled: Q || E,
263
+ className: "inline-flex items-center gap-2 rounded-md bg-status-success-text px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-status-success-text/90 disabled:opacity-60",
264
+ children: [/* @__PURE__ */ v(ce, { className: "h-4 w-4" }), E ? "Publishing…" : "Publish"]
80
265
  })
81
266
  ]
82
267
  }),
83
268
  children: [
84
- /* @__PURE__ */ E(k, { children: "Build a campaign landing page without code. Start from a template, drag in sections (hero, features, testimonials, forms), preview how it looks on desktop and mobile, then publish it to capture leads for the campaign you're promoting." }),
85
- /* @__PURE__ */ E("div", {
269
+ /* @__PURE__ */ v(b, { children: "Build a campaign landing page without code. Start from a template, drag in sections (hero, features, testimonials, forms), preview how it looks on desktop and mobile, then publish it to capture leads for the campaign you're promoting." }),
270
+ V && /* @__PURE__ */ v("div", {
271
+ className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
272
+ children: V
273
+ }),
274
+ U && !V && /* @__PURE__ */ y("div", {
275
+ 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",
276
+ children: [/* @__PURE__ */ v("span", { children: U }), j && k === "PUBLISHED" && /* @__PURE__ */ y("a", {
277
+ href: j,
278
+ target: "_blank",
279
+ rel: "noreferrer",
280
+ className: "inline-flex items-center gap-1 font-medium underline",
281
+ children: ["View live ", /* @__PURE__ */ v(f, { className: "h-3 w-3" })]
282
+ })]
283
+ }),
284
+ /* @__PURE__ */ v("div", {
86
285
  className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
87
- children: /* @__PURE__ */ D("div", {
88
- className: "flex items-center gap-3",
89
- children: [/* @__PURE__ */ E(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ E("input", {
90
- type: "text",
91
- value: M,
92
- onChange: (e) => N(e.target.value),
93
- className: "text-lg font-semibold text-text-primary bg-transparent border-none outline-none flex-1 placeholder:text-text-secondary",
94
- placeholder: "Page name"
95
- })]
286
+ children: /* @__PURE__ */ y("div", {
287
+ className: "flex flex-wrap items-center gap-3",
288
+ children: [
289
+ /* @__PURE__ */ v(d, { className: "h-4 w-4 text-text-secondary" }),
290
+ /* @__PURE__ */ v("input", {
291
+ type: "text",
292
+ value: N,
293
+ onChange: (e) => P(e.target.value),
294
+ className: "text-lg font-semibold text-text-primary bg-transparent border-none outline-none flex-1 min-w-[12rem] placeholder:text-text-secondary",
295
+ placeholder: "Page name"
296
+ }),
297
+ /* @__PURE__ */ v("span", {
298
+ className: i("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium capitalize", k === "PUBLISHED" ? "border-status-success-border bg-status-success-bg text-status-success-text" : "border-border-subtle bg-bg-sunken text-text-secondary"),
299
+ children: k.toLowerCase()
300
+ })
301
+ ]
96
302
  })
97
303
  }),
98
- /* @__PURE__ */ D("div", {
99
- className: "grid grid-cols-1 lg:grid-cols-4 gap-6",
100
- children: [/* @__PURE__ */ D("div", {
101
- className: "lg:col-span-1 space-y-4",
102
- children: [/* @__PURE__ */ D("div", {
103
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
104
- children: [/* @__PURE__ */ E("h4", {
105
- className: "text-sm font-semibold text-text-primary mb-3",
106
- children: "Templates"
107
- }), /* @__PURE__ */ E("div", {
108
- className: "space-y-2",
109
- children: H.map((e) => /* @__PURE__ */ D("button", {
110
- className: "flex flex-col items-start w-full rounded-md border border-border-subtle px-3 py-2.5 text-left hover:bg-bg-sunken transition-colors",
111
- children: [
112
- /* @__PURE__ */ E("span", {
113
- className: "text-sm font-medium text-text-primary",
114
- children: e.name
115
- }),
116
- /* @__PURE__ */ E("span", {
117
- className: "text-[10px] text-text-secondary mt-0.5",
118
- children: e.description
119
- }),
120
- /* @__PURE__ */ E("span", {
121
- className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary mt-1",
122
- children: e.category
123
- })
124
- ]
125
- }, e.id))
304
+ /* @__PURE__ */ v(te, {
305
+ loading: _,
306
+ error: S,
307
+ onRetry: w,
308
+ hasData: !!h,
309
+ children: /* @__PURE__ */ y("div", {
310
+ className: "grid grid-cols-1 lg:grid-cols-4 gap-6",
311
+ children: [/* @__PURE__ */ y("div", {
312
+ className: "lg:col-span-1 space-y-4",
313
+ children: [/* @__PURE__ */ y("div", {
314
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
315
+ children: [/* @__PURE__ */ v("h4", {
316
+ className: "text-sm font-semibold text-text-primary mb-3",
317
+ children: "Templates"
318
+ }), /* @__PURE__ */ y("div", {
319
+ className: "space-y-2",
320
+ children: [q.length === 0 && /* @__PURE__ */ v("p", {
321
+ className: "text-xs text-text-secondary",
322
+ children: "No templates yet. Create a campaign template to reuse it here."
323
+ }), q.map((e) => /* @__PURE__ */ y("button", {
324
+ type: "button",
325
+ onClick: () => ke(e),
326
+ className: i("flex flex-col items-start w-full rounded-md border px-3 py-2.5 text-left transition-colors", F === e.id ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:bg-bg-sunken"),
327
+ children: [
328
+ /* @__PURE__ */ v("span", {
329
+ className: "text-sm font-medium text-text-primary",
330
+ children: e.name
331
+ }),
332
+ /* @__PURE__ */ v("span", {
333
+ className: "text-[10px] text-text-secondary mt-0.5",
334
+ children: e.description
335
+ }),
336
+ /* @__PURE__ */ v("span", {
337
+ className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary mt-1",
338
+ children: e.category
339
+ })
340
+ ]
341
+ }, e.id))]
342
+ })]
343
+ }), /* @__PURE__ */ y("div", {
344
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
345
+ children: [/* @__PURE__ */ v("h4", {
346
+ className: "text-sm font-semibold text-text-primary mb-3",
347
+ children: "Add Section"
348
+ }), /* @__PURE__ */ v("div", {
349
+ className: "grid grid-cols-2 gap-2",
350
+ children: Ae.map((e) => /* @__PURE__ */ y("button", {
351
+ onClick: () => Y(e),
352
+ className: "flex flex-col items-center gap-1 rounded-md border border-dashed border-border-subtle p-2 text-xs text-text-secondary hover:border-primary hover:text-primary transition-colors capitalize",
353
+ children: [/* @__PURE__ */ v(x[e] || m, { className: "h-4 w-4" }), e]
354
+ }, e))
355
+ })]
126
356
  })]
127
- }), /* @__PURE__ */ D("div", {
128
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
129
- children: [/* @__PURE__ */ E("h4", {
130
- className: "text-sm font-semibold text-text-primary mb-3",
131
- children: "Add Section"
132
- }), /* @__PURE__ */ E("div", {
133
- className: "grid grid-cols-2 gap-2",
357
+ }), /* @__PURE__ */ y("div", {
358
+ className: "lg:col-span-3",
359
+ children: [/* @__PURE__ */ v("div", {
360
+ className: "flex flex-nowrap items-center justify-center gap-2 mb-4 overflow-x-auto",
134
361
  children: [
135
- "header",
136
- "hero",
137
- "features",
138
- "testimonials",
139
- "cta",
140
- "footer",
141
- "pricing",
142
- "faq",
143
- "gallery",
144
- "contact"
145
- ].map((e) => /* @__PURE__ */ D("button", {
146
- onClick: () => K(e),
147
- className: "flex flex-col items-center gap-1 rounded-md border border-dashed border-border-subtle p-2 text-xs text-text-secondary hover:border-primary hover:text-primary transition-colors capitalize",
148
- children: [/* @__PURE__ */ E(A[e] || _, { className: "h-4 w-4" }), e]
149
- }, e))
150
- })]
151
- })]
152
- }), /* @__PURE__ */ D("div", {
153
- className: "lg:col-span-3",
154
- children: [/* @__PURE__ */ E("div", {
155
- className: "flex items-center justify-center gap-2 mb-4",
156
- children: [
157
- {
158
- key: "desktop",
159
- icon: v,
160
- label: "Desktop"
161
- },
162
- {
163
- key: "tablet",
164
- icon: w,
165
- label: "Tablet"
166
- },
167
- {
168
- key: "mobile",
169
- icon: S,
170
- label: "Mobile"
171
- }
172
- ].map((e) => {
173
- let t = e.icon;
174
- return /* @__PURE__ */ D("button", {
175
- onClick: () => F(e.key),
176
- className: n("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium transition-colors", P === e.key ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"),
177
- children: [/* @__PURE__ */ E(t, { className: "h-4 w-4" }), e.label]
178
- }, e.key);
179
- })
180
- }), /* @__PURE__ */ E("div", {
181
- className: n("mx-auto transition-all", U[P]),
182
- children: /* @__PURE__ */ D(O, {
183
- className: "overflow-hidden p-0",
184
- children: [/* @__PURE__ */ E("div", {
185
- className: "divide-y divide-border",
186
- children: I.map((e, t) => {
187
- let r = A[e.type] || _;
188
- return /* @__PURE__ */ D("div", {
189
- onClick: () => z(e.id),
190
- className: n("p-4 cursor-pointer transition-all group", R === e.id ? "bg-action-primary-bg/5 ring-2 ring-inset ring-primary" : "hover:bg-bg-sunken/50"),
191
- children: [/* @__PURE__ */ D("div", {
192
- className: "flex items-center justify-between",
193
- children: [/* @__PURE__ */ D("div", {
194
- className: "flex items-center gap-3",
195
- children: [
196
- /* @__PURE__ */ E(h, { className: "h-4 w-4 text-text-secondary opacity-0 group-hover:opacity-100 transition-opacity cursor-grab" }),
197
- /* @__PURE__ */ E("div", {
198
- className: "p-2 rounded-md bg-bg-sunken",
199
- children: /* @__PURE__ */ E(r, { className: "h-4 w-4 text-text-secondary" })
200
- }),
201
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
202
- className: "text-sm font-medium text-text-primary",
203
- children: e.label
204
- }), /* @__PURE__ */ D("p", {
205
- className: "text-xs text-text-secondary capitalize",
206
- children: [e.type, " section"]
207
- })] })
208
- ]
209
- }), /* @__PURE__ */ D("div", {
210
- className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",
211
- children: [
212
- /* @__PURE__ */ E("button", {
213
- onClick: (t) => {
214
- t.stopPropagation(), W(e.id, "up");
215
- },
216
- disabled: t === 0,
217
- className: n("p-1 rounded-md hover:bg-bg-sunken", t === 0 && "opacity-30 cursor-not-allowed"),
218
- children: /* @__PURE__ */ E(u, { className: "h-4 w-4 text-text-secondary" })
219
- }),
220
- /* @__PURE__ */ E("button", {
221
- onClick: (t) => {
222
- t.stopPropagation(), W(e.id, "down");
223
- },
224
- disabled: t === I.length - 1,
225
- className: n("p-1 rounded-md hover:bg-bg-sunken", t === I.length - 1 && "opacity-30 cursor-not-allowed"),
226
- children: /* @__PURE__ */ E(l, { className: "h-4 w-4 text-text-secondary" })
227
- }),
228
- /* @__PURE__ */ E("button", {
229
- onClick: (t) => {
230
- t.stopPropagation(), z(e.id);
231
- },
232
- className: "p-1 rounded-md hover:bg-bg-sunken",
233
- children: /* @__PURE__ */ E(f, { className: "h-4 w-4 text-text-secondary" })
234
- }),
235
- /* @__PURE__ */ E("button", {
236
- onClick: (t) => {
237
- t.stopPropagation(), G(e.id);
238
- },
239
- className: "p-1 rounded-md hover:bg-bg-sunken text-text-secondary hover:text-status-error-text",
240
- children: /* @__PURE__ */ E(T, { className: "h-4 w-4" })
241
- })
242
- ]
243
- })]
244
- }), /* @__PURE__ */ D("div", {
245
- className: "mt-3 ml-11",
246
- children: [
247
- e.type === "hero" && /* @__PURE__ */ D("div", {
248
- className: "rounded-md bg-bg-sunken/50 p-4 text-center",
362
+ {
363
+ key: "desktop",
364
+ icon: ue,
365
+ label: "Desktop"
366
+ },
367
+ {
368
+ key: "tablet",
369
+ icon: me,
370
+ label: "Tablet"
371
+ },
372
+ {
373
+ key: "mobile",
374
+ icon: pe,
375
+ label: "Mobile"
376
+ }
377
+ ].map((e) => {
378
+ let t = e.icon;
379
+ return /* @__PURE__ */ y("button", {
380
+ onClick: () => Te(e.key),
381
+ className: i("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium transition-colors whitespace-nowrap", L === e.key ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"),
382
+ children: [/* @__PURE__ */ v(t, { className: "h-4 w-4" }), e.label]
383
+ }, e.key);
384
+ })
385
+ }), /* @__PURE__ */ v("div", {
386
+ className: i("mx-auto transition-all", De[L]),
387
+ children: /* @__PURE__ */ y(_e, {
388
+ className: "overflow-hidden p-0",
389
+ children: [/* @__PURE__ */ v("div", {
390
+ className: "divide-y divide-border",
391
+ children: G.map((e, t) => {
392
+ let n = x[e.type] || m;
393
+ return /* @__PURE__ */ y("div", {
394
+ onClick: () => z(e.id),
395
+ className: i("p-4 cursor-pointer transition-all group", R === e.id ? "bg-action-primary-bg/5 ring-2 ring-inset ring-primary" : "hover:bg-bg-sunken/50"),
396
+ children: [/* @__PURE__ */ y("div", {
397
+ className: "flex items-center justify-between",
398
+ children: [/* @__PURE__ */ y("div", {
399
+ className: "flex items-center gap-3",
249
400
  children: [
250
- /* @__PURE__ */ E("p", {
251
- className: "text-lg font-bold text-text-primary",
252
- children: e.config.headline || "Your Headline Here"
253
- }),
254
- /* @__PURE__ */ E("p", {
255
- className: "text-xs text-text-secondary mt-1",
256
- children: e.config.subheadline || "Subheadline text"
401
+ /* @__PURE__ */ v(le, { className: "h-4 w-4 text-text-secondary opacity-0 group-hover:opacity-100 transition-opacity cursor-grab" }),
402
+ /* @__PURE__ */ v("div", {
403
+ className: "p-2 rounded-md bg-bg-sunken",
404
+ children: /* @__PURE__ */ v(n, { className: "h-4 w-4 text-text-secondary" })
257
405
  }),
258
- /* @__PURE__ */ E("div", {
259
- className: "mt-2",
260
- children: /* @__PURE__ */ E("span", {
261
- className: "inline-block bg-action-primary-bg text-action-primary-text text-xs px-3 py-1 rounded-md",
262
- children: e.config.cta || "Call to Action"
263
- })
264
- })
406
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
407
+ className: "text-sm font-medium text-text-primary",
408
+ children: e.label
409
+ }), /* @__PURE__ */ y("p", {
410
+ className: "text-xs text-text-secondary capitalize",
411
+ children: [e.type, " section"]
412
+ })] })
265
413
  ]
266
- }),
267
- e.type === "features" && /* @__PURE__ */ E("div", {
268
- className: "grid grid-cols-3 gap-2",
269
- children: (e.config.items || [
270
- "Feature 1",
271
- "Feature 2",
272
- "Feature 3"
273
- ]).map((e, t) => /* @__PURE__ */ E("div", {
274
- className: "rounded-md bg-bg-sunken/50 p-2 text-center text-xs text-text-secondary",
275
- children: e
276
- }, t))
277
- }),
278
- e.type === "header" && /* @__PURE__ */ D("div", {
279
- className: "flex items-center justify-between rounded-md bg-bg-sunken/50 p-2",
414
+ }), /* @__PURE__ */ y("div", {
415
+ className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",
280
416
  children: [
281
- /* @__PURE__ */ E("span", {
282
- className: "text-xs font-medium text-text-secondary",
283
- children: "Logo"
417
+ /* @__PURE__ */ v("button", {
418
+ onClick: (t) => {
419
+ t.stopPropagation(), J(e.id, "up");
420
+ },
421
+ disabled: t === 0,
422
+ className: i("p-1 rounded-md hover:bg-bg-sunken", t === 0 && "opacity-30 cursor-not-allowed"),
423
+ children: /* @__PURE__ */ v(l, { className: "h-4 w-4 text-text-secondary" })
424
+ }),
425
+ /* @__PURE__ */ v("button", {
426
+ onClick: (t) => {
427
+ t.stopPropagation(), J(e.id, "down");
428
+ },
429
+ disabled: t === G.length - 1,
430
+ className: i("p-1 rounded-md hover:bg-bg-sunken", t === G.length - 1 && "opacity-30 cursor-not-allowed"),
431
+ children: /* @__PURE__ */ v(oe, { className: "h-4 w-4 text-text-secondary" })
284
432
  }),
285
- /* @__PURE__ */ D("div", {
286
- className: "flex gap-2 text-xs text-text-secondary",
287
- children: [
288
- /* @__PURE__ */ E("span", { children: "Nav 1" }),
289
- /* @__PURE__ */ E("span", { children: "Nav 2" }),
290
- /* @__PURE__ */ E("span", { children: "Nav 3" })
291
- ]
433
+ /* @__PURE__ */ v("button", {
434
+ onClick: (t) => {
435
+ t.stopPropagation(), z(e.id);
436
+ },
437
+ className: "p-1 rounded-md hover:bg-bg-sunken",
438
+ children: /* @__PURE__ */ v(d, { className: "h-4 w-4 text-text-secondary" })
292
439
  }),
293
- /* @__PURE__ */ E("span", {
294
- className: "text-xs bg-action-primary-bg/20 text-primary px-2 py-0.5 rounded-md",
295
- children: e.config.cta || "CTA"
440
+ /* @__PURE__ */ v("button", {
441
+ onClick: (t) => {
442
+ t.stopPropagation(), Oe(e.id);
443
+ },
444
+ className: "p-1 rounded-md hover:bg-bg-sunken text-text-secondary hover:text-status-error-text",
445
+ children: /* @__PURE__ */ v(he, { className: "h-4 w-4" })
296
446
  })
297
447
  ]
298
- }),
299
- e.type === "testimonials" && /* @__PURE__ */ E("div", {
300
- className: "flex gap-2",
301
- children: Array.from({ length: e.config.count || 3 }).map((e, t) => /* @__PURE__ */ D("div", {
302
- className: "flex-1 rounded-md bg-bg-sunken/50 p-2 text-center",
303
- children: [/* @__PURE__ */ E("div", {
304
- className: "flex justify-center gap-0.5 mb-1",
305
- children: [
306
- 1,
307
- 2,
308
- 3,
309
- 4,
310
- 5
311
- ].map((e) => /* @__PURE__ */ E(C, { className: "h-3 w-3 text-status-warning-text fill-[var(--color-status-warning)]" }, e))
312
- }), /* @__PURE__ */ D("p", {
313
- className: "text-[10px] text-text-secondary",
314
- children: ["Testimonial ", t + 1]
315
- })]
316
- }, t))
317
- }),
318
- e.type === "cta" && /* @__PURE__ */ D("div", {
319
- className: "rounded-md bg-action-primary-bg/10 p-3 text-center",
320
- children: [/* @__PURE__ */ E("p", {
321
- className: "text-sm font-semibold text-text-primary",
322
- children: e.config.headline || "Call to Action"
323
- }), /* @__PURE__ */ E("span", {
324
- className: "inline-block mt-1 bg-action-primary-bg text-action-primary-text text-xs px-3 py-1 rounded-md",
325
- children: e.config.buttonText || "Get Started"
326
- })]
327
- }),
328
- e.type === "footer" && /* @__PURE__ */ D("div", {
329
- className: "rounded-md bg-bg-sunken/50 p-2 text-center text-xs text-text-secondary",
330
- children: [
331
- "Footer with",
332
- " ",
333
- e.config.columns || 4,
334
- " columns"
335
- ]
336
- })
337
- ]
338
- })]
339
- }, e.id);
340
- })
341
- }), /* @__PURE__ */ D("button", {
342
- onClick: () => K("features"),
343
- className: "w-full p-4 border-t border-dashed border-border-subtle text-sm text-text-secondary hover:text-primary hover:bg-action-primary-bg/5 transition-colors flex items-center justify-center gap-2",
344
- children: [/* @__PURE__ */ E(b, { className: "h-4 w-4" }), "Add Section"]
345
- })]
346
- })
448
+ })]
449
+ }), /* @__PURE__ */ v("div", {
450
+ className: "mt-3 ml-11",
451
+ children: $(e)
452
+ })]
453
+ }, e.id);
454
+ })
455
+ }), /* @__PURE__ */ y("button", {
456
+ onClick: () => Y("features"),
457
+ className: "w-full p-4 border-t border-dashed border-border-subtle text-sm text-text-secondary hover:text-primary hover:bg-action-primary-bg/5 transition-colors flex items-center justify-center gap-2",
458
+ children: [/* @__PURE__ */ v(de, { className: "h-4 w-4" }), "Add Section"]
459
+ })]
460
+ })
461
+ })]
347
462
  })]
348
- })]
463
+ })
464
+ }),
465
+ /* @__PURE__ */ v(ee, {
466
+ open: Ee,
467
+ onClose: () => B(!1),
468
+ title: N || "Landing Page",
469
+ description: "Preview of your landing page layout.",
470
+ size: "xl",
471
+ footer: /* @__PURE__ */ y(ge, { children: [j && k === "PUBLISHED" && /* @__PURE__ */ y("a", {
472
+ href: j,
473
+ target: "_blank",
474
+ rel: "noreferrer",
475
+ 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",
476
+ children: [/* @__PURE__ */ v(f, { className: "h-4 w-4" }), "Open live page"]
477
+ }), /* @__PURE__ */ v("button", {
478
+ type: "button",
479
+ onClick: () => B(!1),
480
+ 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",
481
+ children: "Close"
482
+ })] }),
483
+ children: /* @__PURE__ */ v("div", {
484
+ className: "space-y-4",
485
+ children: G.map((e) => /* @__PURE__ */ v("div", { children: $(e) }, e.id))
486
+ })
349
487
  })
350
488
  ]
351
489
  });
352
490
  };
353
491
  //#endregion
354
- export { j as LandingPageBuilderPage };
492
+ export { w as LandingPageBuilderPage };
355
493
 
356
494
  //# sourceMappingURL=LandingPageBuilderPage.js.map