@burdenoff/microfe-headshotmarketing 2026.626.2 → 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 (140) 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 +291 -322
  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 +227 -210
  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 +303 -342
  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/analyticsMapper.js +11 -11
  132. package/dist/headshotmarketing/utils/analyticsMapper.js.map +1 -1
  133. package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
  134. package/dist/headshotmarketing/utils/helpers.js +11 -1
  135. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  136. package/dist/headshotmarketing/utils/influencerMapper.js +5 -4
  137. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  138. package/package.json +1 -1
  139. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  140. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -1,29 +1,51 @@
1
- import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { useHeadshotmarketingBootstrapDataQuery as t } from "../../../generated/wspace-operations.js";
1
+ import { useHeadshotmarketingCreateSeoKeywordMutation as e, useHeadshotmarketingRunSeoAuditMutation as t } from "../../../generated/wspace-operations.js";
3
2
  import { cn as n, formatNumber as r } from "../../utils/helpers.js";
4
3
  import { PageLayout as i } from "../../components/PageLayout.js";
5
4
  import { DataTable as a } from "../../components/DataTable.js";
6
5
  import { EmptyState as o } from "../../components/EmptyState.js";
6
+ import { Modal as s } from "../../components/Modal.js";
7
+ import { QueryStateBoundary as ee } from "../../components/QueryStateBoundary.js";
7
8
  import "../../components/index.js";
8
- import { toKeywordModel as s, toSeoAuditModel as c } from "../../utils/seoMapper.js";
9
- import { useState as l } from "react";
10
- import { AlertTriangle as u, CheckCircle2 as d, ExternalLink as f, Globe as p, Info as m, Minus as h, Play as g, Search as _, TrendingDown as v, TrendingUp as y, XCircle as b } from "lucide-react";
11
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
12
- import { EmphasisPanel as C, NextSteps as w, PagePurpose as T } from "@burdenoff/fe-libs/ui";
9
+ import { useHeadshotmarketingBootstrap as te } from "../../hooks/useHeadshotmarketingBootstrap.js";
10
+ import "../../hooks/index.js";
11
+ import { toKeywordModel as ne, toSeoAuditModel as c } from "../../utils/seoMapper.js";
12
+ import { useMemo as l, useState as u } from "react";
13
+ import { AlertTriangle as d, CheckCircle2 as f, ExternalLink as re, Globe as ie, Info as p, Minus as ae, Play as m, Search as h, TrendingDown as g, TrendingUp as _, XCircle as v } from "lucide-react";
14
+ import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
15
+ import { EmphasisPanel as S, NextSteps as oe, PagePurpose as se } from "@burdenoff/fe-libs/ui";
13
16
  //#region src/headshotmarketing/pages/seo/SeoToolsPage.tsx
14
- var E = {
15
- error: b,
16
- warning: u,
17
- info: m
18
- }, D = {
17
+ var ce = {
18
+ error: v,
19
+ warning: d,
20
+ info: p
21
+ }, le = {
19
22
  error: "text-status-error-text",
20
23
  warning: "text-status-warning-text",
21
24
  info: "text-status-info-text"
22
- }, O = () => {
23
- let { navigate: O } = e(), { data: k } = t({ variables: {
24
- limit: 200,
25
- offset: 0
26
- } }), [A, j] = l("keywords"), [M, N] = l(""), [P, F] = l(""), [I, L] = l(!1), R = [
25
+ }, C = "https://headshotmarketing.com";
26
+ function ue(e) {
27
+ return c({
28
+ id: e.id,
29
+ url: e.url,
30
+ overallScore: e.overallScore,
31
+ performanceScore: e.performanceScore,
32
+ accessibilityScore: e.accessibilityScore,
33
+ seoScore: e.seoScore,
34
+ bestPracticesScore: e.bestPracticesScore,
35
+ findings: (e.findings ?? []).map((e) => ({
36
+ rule: e.rule,
37
+ severity: String(e.severity),
38
+ message: e.message,
39
+ recommendation: e.recommendation ?? "",
40
+ element: e.element ?? null
41
+ })),
42
+ completedAt: e.completedAt ?? null,
43
+ createdAt: e.createdAt,
44
+ updatedAt: e.updatedAt
45
+ });
46
+ }
47
+ var w = () => {
48
+ let { data: w, loading: de, error: fe, refetch: T } = te(), [E, D] = u("keywords"), [O, pe] = u(""), [k, A] = u(""), [j, { loading: M }] = t(), [N, { loading: P }] = e(), [F, I] = u(!1), [L, R] = u(C), [z, B] = u(null), [V, me] = u(null), [H, U] = u(null), [W, G] = u(null), [K, q] = u(null), he = [
27
49
  {
28
50
  key: "keywords",
29
51
  label: "Keyword Research"
@@ -36,16 +58,16 @@ var E = {
36
58
  key: "optimization",
37
59
  label: "Content Optimization"
38
60
  }
39
- ], z = {
40
- up: y,
41
- down: v,
42
- stable: h
43
- }, B = (k?.headshotmarketingSEOKeywords.items ?? []).map((e) => s(e)).filter((e) => M ? e.keyword.toLowerCase().includes(M.toLowerCase()) : !0), V = [
61
+ ], ge = {
62
+ up: _,
63
+ down: g,
64
+ stable: ae
65
+ }, J = l(() => (w?.headshotmarketingSEOKeywords.items ?? []).map((e) => ne(e)), [w?.headshotmarketingSEOKeywords.items]), Y = J.filter((e) => O ? e.keyword.toLowerCase().includes(O.toLowerCase()) : !0), X = J.some((e) => e.keyword.toLowerCase() === O.trim().toLowerCase()), _e = [
44
66
  {
45
67
  key: "keyword",
46
68
  header: "Keyword",
47
69
  sortable: !0,
48
- render: (e) => /* @__PURE__ */ x("span", {
70
+ render: (e) => /* @__PURE__ */ b("span", {
49
71
  className: "font-medium text-text-primary",
50
72
  children: e.keyword
51
73
  })
@@ -60,15 +82,15 @@ var E = {
60
82
  key: "difficulty",
61
83
  header: "Difficulty",
62
84
  sortable: !0,
63
- render: (e) => /* @__PURE__ */ S("div", {
85
+ render: (e) => /* @__PURE__ */ x("div", {
64
86
  className: "flex items-center gap-2",
65
- children: [/* @__PURE__ */ x("div", {
87
+ children: [/* @__PURE__ */ b("div", {
66
88
  className: "w-12 h-2 rounded-full bg-bg-sunken overflow-hidden",
67
- children: /* @__PURE__ */ x("div", {
89
+ children: /* @__PURE__ */ b("div", {
68
90
  className: n("h-full rounded-full", e.difficulty >= 70 ? "bg-status-error-text" : e.difficulty >= 40 ? "bg-status-warning-text" : "bg-status-success-text"),
69
91
  style: { width: `${e.difficulty}%` }
70
92
  })
71
- }), /* @__PURE__ */ x("span", {
93
+ }), /* @__PURE__ */ b("span", {
72
94
  className: "text-xs",
73
95
  children: e.difficulty
74
96
  })]
@@ -84,7 +106,7 @@ var E = {
84
106
  key: "currentRank",
85
107
  header: "Rank",
86
108
  sortable: !0,
87
- render: (e) => /* @__PURE__ */ x("span", {
109
+ render: (e) => /* @__PURE__ */ b("span", {
88
110
  className: n("font-medium", e.currentRank && e.currentRank <= 10 ? "text-status-success-text" : "text-text-primary"),
89
111
  children: e.currentRank || "-"
90
112
  })
@@ -94,10 +116,10 @@ var E = {
94
116
  header: "Change",
95
117
  sortable: !0,
96
118
  render: (e) => {
97
- let t = z[e.trend];
98
- return /* @__PURE__ */ S("div", {
119
+ let t = ge[e.trend];
120
+ return /* @__PURE__ */ x("div", {
99
121
  className: "flex items-center gap-1",
100
- children: [/* @__PURE__ */ x(t, { className: n("h-3.5 w-3.5", e.trend === "up" ? "text-status-success-text" : e.trend === "down" ? "text-status-error-text" : "text-text-secondary") }), /* @__PURE__ */ x("span", {
122
+ children: [/* @__PURE__ */ b(t, { className: n("h-3.5 w-3.5", e.trend === "up" ? "text-status-success-text" : e.trend === "down" ? "text-status-error-text" : "text-text-secondary") }), /* @__PURE__ */ b("span", {
101
123
  className: n("text-xs font-medium", e.rankChange > 0 ? "text-status-success-text" : e.rankChange < 0 ? "text-status-error-text" : "text-text-secondary"),
102
124
  children: e.rankChange > 0 ? `+${e.rankChange}` : e.rankChange === 0 ? "0" : e.rankChange
103
125
  })]
@@ -107,7 +129,7 @@ var E = {
107
129
  {
108
130
  key: "intent",
109
131
  header: "Intent",
110
- render: (e) => /* @__PURE__ */ x("span", {
132
+ render: (e) => /* @__PURE__ */ b("span", {
111
133
  className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary capitalize",
112
134
  children: e.intent
113
135
  })
@@ -115,17 +137,17 @@ var E = {
115
137
  {
116
138
  key: "url",
117
139
  header: "URL",
118
- render: (e) => e.url ? /* @__PURE__ */ S("span", {
140
+ render: (e) => e.url ? /* @__PURE__ */ x("span", {
119
141
  className: "text-xs text-primary flex items-center gap-1",
120
- children: [e.url, /* @__PURE__ */ x(f, { className: "h-3 w-3" })]
121
- }) : /* @__PURE__ */ x("span", {
142
+ children: [e.url, /* @__PURE__ */ b(re, { className: "h-3 w-3" })]
143
+ }) : /* @__PURE__ */ b("span", {
122
144
  className: "text-xs text-text-secondary",
123
145
  children: "-"
124
146
  })
125
147
  }
126
- ], H = c((k?.headshotmarketingSEOAudits.items ?? [])[0] ?? {
148
+ ], ve = l(() => c((w?.headshotmarketingSEOAudits.items ?? [])[0] ?? {
127
149
  id: "audit-default",
128
- url: P || "https://headshotmarketing.com",
150
+ url: C,
129
151
  overallScore: 0,
130
152
  performanceScore: 0,
131
153
  accessibilityScore: 0,
@@ -135,326 +157,454 @@ var E = {
135
157
  completedAt: null,
136
158
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
137
159
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
138
- }), U = (e) => e >= 80 ? "text-status-success-text" : e >= 60 ? "text-status-warning-text" : "text-status-error-text";
139
- return /* @__PURE__ */ S(i, {
160
+ }), [w?.headshotmarketingSEOAudits.items]), Z = z ?? ve, ye = !!(z || (w?.headshotmarketingSEOAudits.items ?? []).length > 0), Q = (e) => e >= 80 ? "text-status-success-text" : e >= 60 ? "text-status-warning-text" : "text-status-error-text", $ = async (e) => {
161
+ U(null);
162
+ try {
163
+ let t = (await j({ variables: { url: e } })).data?.headshotmarketingRunSEOAudit;
164
+ if (!t) return U("Audit did not return a result."), null;
165
+ let n = ue(t);
166
+ return T(), n;
167
+ } catch (e) {
168
+ return U(e instanceof Error ? e.message : "Failed to run SEO audit."), null;
169
+ }
170
+ }, be = async () => {
171
+ if (!L.trim()) {
172
+ U("Enter a URL to audit.");
173
+ return;
174
+ }
175
+ let e = await $(L.trim());
176
+ e && (B(e), I(!1), D("audit"));
177
+ }, xe = async () => {
178
+ if (!k.trim()) {
179
+ U("Enter a URL to analyze.");
180
+ return;
181
+ }
182
+ let e = await $(k.trim());
183
+ e && me(e);
184
+ }, Se = async () => {
185
+ let e = O.trim();
186
+ if (G(null), q(null), !e) {
187
+ G("Enter a keyword to research.");
188
+ return;
189
+ }
190
+ if (X) {
191
+ q("That keyword is already being tracked.");
192
+ return;
193
+ }
194
+ try {
195
+ await N({ variables: { input: { keyword: e } } }), await T(), q(`Now tracking "${e}".`);
196
+ } catch (e) {
197
+ G(e instanceof Error ? e.message : "Failed to add keyword.");
198
+ }
199
+ };
200
+ return /* @__PURE__ */ x(i, {
140
201
  title: "SEO Tools",
141
202
  description: "Keyword research, site audits, and content optimization",
142
- actions: /* @__PURE__ */ S("button", {
203
+ actions: /* @__PURE__ */ x("button", {
204
+ type: "button",
205
+ onClick: () => {
206
+ U(null), R(k.trim() || C), I(!0);
207
+ },
143
208
  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",
144
- children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Run Audit"]
209
+ children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), "Run Audit"]
145
210
  }),
146
211
  children: [
147
- /* @__PURE__ */ x(T, { children: "Improve where you rank in search. Research keywords worth targeting, run a site audit to find what's holding your pages back, and get concrete optimization suggestions — so the content you publish actually gets found." }),
148
- /* @__PURE__ */ x(w, {
212
+ /* @__PURE__ */ b(se, { children: "Improve where you rank in search. Research keywords worth targeting, run a site audit to find what's holding your pages back, and get concrete optimization suggestions — so the content you publish actually gets found." }),
213
+ /* @__PURE__ */ b(oe, {
149
214
  storageKey: "headshotmarketing-seo-tools",
150
215
  steps: [
151
216
  {
152
217
  id: "keywords",
153
218
  label: "Research keywords",
154
219
  description: "Find search terms worth ranking for.",
155
- icon: /* @__PURE__ */ x(_, { className: "h-4 w-4" }),
156
- onClick: () => j("keywords")
220
+ icon: /* @__PURE__ */ b(h, { className: "h-4 w-4" }),
221
+ onClick: () => D("keywords")
157
222
  },
158
223
  {
159
224
  id: "audit",
160
225
  label: "Run a site audit",
161
226
  description: "Surface technical issues holding pages back.",
162
- icon: /* @__PURE__ */ x(d, { className: "h-4 w-4" }),
163
- onClick: () => j("audit")
227
+ icon: /* @__PURE__ */ b(f, { className: "h-4 w-4" }),
228
+ onClick: () => D("audit")
164
229
  },
165
230
  {
166
231
  id: "optimization",
167
232
  label: "Optimize content",
168
233
  description: "Apply concrete on-page improvement suggestions.",
169
- icon: /* @__PURE__ */ x(y, { className: "h-4 w-4" }),
170
- onClick: () => j("optimization")
234
+ icon: /* @__PURE__ */ b(_, { className: "h-4 w-4" }),
235
+ onClick: () => D("optimization")
171
236
  }
172
237
  ]
173
238
  }),
174
- /* @__PURE__ */ x("div", {
239
+ /* @__PURE__ */ b("div", {
175
240
  className: "border-b border-border-subtle",
176
- children: /* @__PURE__ */ x("div", {
177
- className: "flex gap-6",
178
- children: R.map((e) => /* @__PURE__ */ x("button", {
179
- onClick: () => j(e.key),
180
- className: n("pb-3 text-sm font-medium transition-colors border-b-2", A === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
241
+ children: /* @__PURE__ */ b("div", {
242
+ className: "flex flex-nowrap gap-6 overflow-x-auto",
243
+ children: he.map((e) => /* @__PURE__ */ b("button", {
244
+ onClick: () => D(e.key),
245
+ className: n("whitespace-nowrap pb-3 text-sm font-medium transition-colors border-b-2", E === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
181
246
  children: e.label
182
247
  }, e.key))
183
248
  })
184
249
  }),
185
- A === "keywords" && /* @__PURE__ */ S("div", {
186
- className: "space-y-4",
187
- children: [/* @__PURE__ */ S("div", {
188
- className: "flex gap-2",
189
- children: [/* @__PURE__ */ S("div", {
190
- className: "relative flex-1",
191
- children: [/* @__PURE__ */ x(_, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ x("input", {
192
- type: "text",
193
- value: M,
194
- onChange: (e) => N(e.target.value),
195
- placeholder: "Search keywords or enter a new keyword to research...",
196
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-9 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
197
- })]
198
- }), /* @__PURE__ */ x("button", {
199
- className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
200
- children: "Research"
201
- })]
202
- }), B.length === 0 ? /* @__PURE__ */ x(o, {
203
- illustration: "empty-search",
204
- title: "No keywords yet",
205
- description: "Research a keyword above to see search volume, difficulty and ranking opportunities."
206
- }) : /* @__PURE__ */ x(a, {
207
- data: B,
208
- columns: V,
209
- pageSize: 10
210
- })]
211
- }),
212
- A === "audit" && /* @__PURE__ */ S("div", {
213
- className: "space-y-6",
250
+ /* @__PURE__ */ x(ee, {
251
+ loading: de,
252
+ error: fe,
253
+ onRetry: T,
254
+ hasData: !!w,
214
255
  children: [
215
- /* @__PURE__ */ x(C, { children: /* @__PURE__ */ x("div", {
216
- className: "grid grid-cols-2 md:grid-cols-5 gap-4",
217
- children: [
218
- {
219
- label: "Overall",
220
- score: H.score
221
- },
222
- {
223
- label: "Performance",
224
- score: H.performanceScore
225
- },
226
- {
227
- label: "Accessibility",
228
- score: H.accessibilityScore
229
- },
230
- {
231
- label: "Best Practices",
232
- score: H.bestPracticesScore
233
- },
234
- {
235
- label: "SEO",
236
- score: H.seoScore
237
- }
238
- ].map((e) => /* @__PURE__ */ S("div", {
239
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 text-center",
240
- children: [/* @__PURE__ */ x("p", {
241
- className: n("text-3xl font-bold", U(e.score)),
242
- children: e.score
243
- }), /* @__PURE__ */ x("p", {
244
- className: "text-xs text-text-secondary mt-1",
245
- children: e.label
246
- })]
247
- }, e.label))
248
- }) }),
249
- /* @__PURE__ */ x("div", {
250
- className: "grid grid-cols-3 md:grid-cols-6 gap-3",
256
+ E === "keywords" && /* @__PURE__ */ x("div", {
257
+ className: "space-y-4",
251
258
  children: [
252
- {
253
- label: "Pages Crawled",
254
- value: H.crawledPages
255
- },
256
- {
257
- label: "Indexed",
258
- value: H.indexedPages
259
- },
260
- {
261
- label: "Broken Links",
262
- value: H.brokenLinks
263
- },
264
- {
265
- label: "Missing Meta",
266
- value: H.missingMetaTags
267
- },
268
- {
269
- label: "Slow Pages",
270
- value: H.slowPages
271
- },
272
- {
273
- label: "Mobile Issues",
274
- value: H.mobileIssues
275
- }
276
- ].map((e) => /* @__PURE__ */ S("div", {
277
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
278
- children: [/* @__PURE__ */ x("p", {
279
- className: "text-lg font-semibold text-text-primary",
280
- children: e.value
281
- }), /* @__PURE__ */ x("p", {
282
- className: "text-[10px] text-text-secondary",
283
- children: e.label
284
- })]
285
- }, e.label))
259
+ /* @__PURE__ */ x("div", {
260
+ className: "flex flex-wrap gap-2",
261
+ children: [/* @__PURE__ */ x("div", {
262
+ className: "relative flex-1 min-w-[16rem]",
263
+ children: [/* @__PURE__ */ b(h, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ b("input", {
264
+ type: "text",
265
+ value: O,
266
+ onChange: (e) => pe(e.target.value),
267
+ placeholder: "Search keywords or enter a new keyword to research...",
268
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-9 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
269
+ })]
270
+ }), /* @__PURE__ */ b("button", {
271
+ type: "button",
272
+ onClick: () => void Se(),
273
+ disabled: P || !O.trim(),
274
+ className: "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-50",
275
+ children: P ? "Researching…" : "Research"
276
+ })]
277
+ }),
278
+ W && /* @__PURE__ */ b("div", {
279
+ className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
280
+ children: W
281
+ }),
282
+ K && !W && /* @__PURE__ */ b("div", {
283
+ className: "rounded-md border border-status-success-border/30 bg-status-success-bg/10 px-3 py-2 text-sm text-status-success-text",
284
+ children: K
285
+ }),
286
+ Y.length === 0 ? /* @__PURE__ */ b(o, {
287
+ illustration: "empty-search",
288
+ title: "No keywords yet",
289
+ description: "Research a keyword above to start tracking its search volume, difficulty and ranking opportunities."
290
+ }) : /* @__PURE__ */ b("div", {
291
+ className: "overflow-x-auto",
292
+ children: /* @__PURE__ */ b(a, {
293
+ data: Y,
294
+ columns: _e,
295
+ pageSize: 10
296
+ })
297
+ })
298
+ ]
299
+ }),
300
+ E === "audit" && /* @__PURE__ */ b("div", {
301
+ className: "space-y-6",
302
+ children: ye ? /* @__PURE__ */ x(y, { children: [
303
+ /* @__PURE__ */ b("div", {
304
+ className: "flex items-center justify-between gap-2",
305
+ children: /* @__PURE__ */ x("p", {
306
+ className: "text-sm text-text-secondary truncate",
307
+ children: ["Audited: ", /* @__PURE__ */ b("span", {
308
+ className: "text-text-primary",
309
+ children: Z.url
310
+ })]
311
+ })
312
+ }),
313
+ /* @__PURE__ */ b(S, { children: /* @__PURE__ */ b("div", {
314
+ className: "grid grid-cols-2 md:grid-cols-5 gap-4",
315
+ children: [
316
+ {
317
+ label: "Overall",
318
+ score: Z.score
319
+ },
320
+ {
321
+ label: "Performance",
322
+ score: Z.performanceScore
323
+ },
324
+ {
325
+ label: "Accessibility",
326
+ score: Z.accessibilityScore
327
+ },
328
+ {
329
+ label: "Best Practices",
330
+ score: Z.bestPracticesScore
331
+ },
332
+ {
333
+ label: "SEO",
334
+ score: Z.seoScore
335
+ }
336
+ ].map((e) => /* @__PURE__ */ x("div", {
337
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 text-center",
338
+ children: [/* @__PURE__ */ b("p", {
339
+ className: n("text-3xl font-bold", Q(e.score)),
340
+ children: Math.round(e.score)
341
+ }), /* @__PURE__ */ b("p", {
342
+ className: "text-xs text-text-secondary mt-1",
343
+ children: e.label
344
+ })]
345
+ }, e.label))
346
+ }) }),
347
+ /* @__PURE__ */ b("div", {
348
+ className: "grid grid-cols-3 md:grid-cols-6 gap-3",
349
+ children: [
350
+ {
351
+ label: "Pages Crawled",
352
+ value: Z.crawledPages
353
+ },
354
+ {
355
+ label: "Indexed",
356
+ value: Z.indexedPages
357
+ },
358
+ {
359
+ label: "Broken Links",
360
+ value: Z.brokenLinks
361
+ },
362
+ {
363
+ label: "Missing Meta",
364
+ value: Z.missingMetaTags
365
+ },
366
+ {
367
+ label: "Slow Pages",
368
+ value: Z.slowPages
369
+ },
370
+ {
371
+ label: "Mobile Issues",
372
+ value: Z.mobileIssues
373
+ }
374
+ ].map((e) => /* @__PURE__ */ x("div", {
375
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
376
+ children: [/* @__PURE__ */ b("p", {
377
+ className: "text-lg font-semibold text-text-primary",
378
+ children: e.value
379
+ }), /* @__PURE__ */ b("p", {
380
+ className: "text-[10px] text-text-secondary",
381
+ children: e.label
382
+ })]
383
+ }, e.label))
384
+ }),
385
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("h3", {
386
+ className: "text-sm font-semibold text-text-primary mb-3",
387
+ children: [
388
+ "Issues (",
389
+ Z.issues.length,
390
+ ")"
391
+ ]
392
+ }), Z.issues.length === 0 ? /* @__PURE__ */ b("p", {
393
+ className: "text-sm text-text-secondary",
394
+ children: "No issues found in the latest audit."
395
+ }) : /* @__PURE__ */ b("div", {
396
+ className: "space-y-2",
397
+ children: Z.issues.map((e) => {
398
+ let t = ce[e.type] || p;
399
+ return /* @__PURE__ */ b("div", {
400
+ className: n("rounded-lg border bg-bg-surface p-4", e.status === "fixed" ? "border-status-success-border bg-status-success-bg/50 opacity-60" : "border-border-subtle"),
401
+ children: /* @__PURE__ */ x("div", {
402
+ className: "flex items-start gap-3",
403
+ children: [/* @__PURE__ */ b(t, { className: n("h-5 w-5 mt-0.5 flex-shrink-0", le[e.type]) }), /* @__PURE__ */ x("div", {
404
+ className: "flex-1",
405
+ children: [
406
+ /* @__PURE__ */ x("div", {
407
+ className: "flex items-center justify-between gap-2",
408
+ children: [/* @__PURE__ */ b("p", {
409
+ className: "text-sm font-medium text-text-primary",
410
+ children: e.description
411
+ }), /* @__PURE__ */ b("div", {
412
+ className: "flex items-center gap-2",
413
+ children: /* @__PURE__ */ b("span", {
414
+ className: n("rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", e.impact === "high" ? "bg-status-error-bg text-status-error-text" : e.impact === "medium" ? "bg-status-warning-bg text-status-warning-text" : "bg-status-info-bg text-status-info-text"),
415
+ children: e.impact
416
+ })
417
+ })]
418
+ }),
419
+ /* @__PURE__ */ x("p", {
420
+ className: "text-xs text-text-secondary mt-1",
421
+ children: [
422
+ "Page: ",
423
+ e.page,
424
+ " | Category: ",
425
+ e.category
426
+ ]
427
+ }),
428
+ e.recommendation && /* @__PURE__ */ x("p", {
429
+ className: "text-xs text-text-secondary mt-1",
430
+ children: ["Recommendation: ", e.recommendation]
431
+ })
432
+ ]
433
+ })]
434
+ })
435
+ }, e.id);
436
+ })
437
+ })] })
438
+ ] }) : /* @__PURE__ */ b(o, {
439
+ illustration: "empty-generic",
440
+ title: "No audits yet",
441
+ description: "Run a site audit to surface performance, accessibility and SEO issues.",
442
+ action: /* @__PURE__ */ x("button", {
443
+ type: "button",
444
+ onClick: () => {
445
+ U(null), R(C), I(!0);
446
+ },
447
+ 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",
448
+ children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), "Run Audit"]
449
+ })
450
+ })
286
451
  }),
287
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("h3", {
288
- className: "text-sm font-semibold text-text-primary mb-3",
452
+ E === "optimization" && /* @__PURE__ */ x("div", {
453
+ className: "space-y-6",
289
454
  children: [
290
- "Issues (",
291
- H.issues.length,
292
- ")"
293
- ]
294
- }), /* @__PURE__ */ x("div", {
295
- className: "space-y-2",
296
- children: H.issues.map((e) => {
297
- let t = E[e.type] || m;
298
- return /* @__PURE__ */ x("div", {
299
- className: n("rounded-lg border bg-bg-surface p-4", e.status === "fixed" ? "border-status-success-border bg-status-success-bg/50 opacity-60" : "border-border-subtle"),
300
- children: /* @__PURE__ */ S("div", {
301
- className: "flex items-start gap-3",
302
- children: [/* @__PURE__ */ x(t, { className: n("h-5 w-5 mt-0.5 flex-shrink-0", D[e.type]) }), /* @__PURE__ */ S("div", {
303
- className: "flex-1",
455
+ /* @__PURE__ */ x("div", {
456
+ className: "flex flex-wrap gap-2",
457
+ children: [/* @__PURE__ */ x("div", {
458
+ className: "relative flex-1 min-w-[16rem]",
459
+ children: [/* @__PURE__ */ b(ie, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ b("input", {
460
+ type: "url",
461
+ value: k,
462
+ onChange: (e) => A(e.target.value),
463
+ placeholder: "Enter URL to analyze (e.g. https://headshotmarketing.com/blog/tips)",
464
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-9 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
465
+ })]
466
+ }), /* @__PURE__ */ b("button", {
467
+ type: "button",
468
+ onClick: () => void xe(),
469
+ disabled: M || !k.trim(),
470
+ className: "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-50",
471
+ children: M ? "Analyzing…" : "Analyze"
472
+ })]
473
+ }),
474
+ H && /* @__PURE__ */ b("div", {
475
+ className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
476
+ children: H
477
+ }),
478
+ V ? /* @__PURE__ */ x("div", {
479
+ className: "space-y-4",
480
+ children: [
481
+ /* @__PURE__ */ x("div", {
482
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-center",
304
483
  children: [
305
- /* @__PURE__ */ S("div", {
306
- className: "flex items-center justify-between",
307
- children: [/* @__PURE__ */ x("p", {
308
- className: "text-sm font-medium text-text-primary",
309
- children: e.description
310
- }), /* @__PURE__ */ S("div", {
311
- className: "flex items-center gap-2",
312
- children: [/* @__PURE__ */ x("span", {
313
- className: n("rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", e.impact === "high" ? "bg-status-error-bg text-status-error-text" : e.impact === "medium" ? "bg-status-warning-bg text-status-warning-text" : "bg-status-info-bg text-status-info-text"),
314
- children: e.impact
315
- }), e.status === "fixed" && /* @__PURE__ */ S("span", {
316
- className: "flex items-center gap-1 text-xs text-status-success-text",
317
- children: [/* @__PURE__ */ x(d, { className: "h-3 w-3" }), "Fixed"]
318
- })]
319
- })]
484
+ /* @__PURE__ */ b("p", {
485
+ className: n("text-4xl font-bold", Q(V.score)),
486
+ children: Math.round(V.score)
320
487
  }),
321
- /* @__PURE__ */ S("p", {
322
- className: "text-xs text-text-secondary mt-1",
323
- children: [
324
- "Page: ",
325
- e.page,
326
- " | Category: ",
327
- e.category
328
- ]
488
+ /* @__PURE__ */ b("p", {
489
+ className: "text-sm text-text-secondary mt-1",
490
+ children: "Overall Optimization Score"
329
491
  }),
330
- /* @__PURE__ */ S("p", {
331
- className: "text-xs text-text-secondary mt-1",
332
- children: ["Recommendation: ", e.recommendation]
492
+ /* @__PURE__ */ b("div", {
493
+ className: "w-full h-3 rounded-full bg-bg-sunken mt-3 overflow-hidden max-w-xs mx-auto",
494
+ children: /* @__PURE__ */ b("div", {
495
+ className: n("h-full rounded-full", V.score >= 80 ? "bg-status-success-text" : V.score >= 60 ? "bg-status-warning-text" : "bg-status-error-text"),
496
+ style: { width: `${Math.min(Math.max(V.score, 0), 100)}%` }
497
+ })
333
498
  })
334
499
  ]
335
- })]
336
- })
337
- }, e.id);
338
- })
339
- })] })
500
+ }),
501
+ /* @__PURE__ */ b("div", {
502
+ className: "grid grid-cols-2 md:grid-cols-4 gap-3",
503
+ children: [
504
+ {
505
+ label: "Performance",
506
+ score: V.performanceScore
507
+ },
508
+ {
509
+ label: "Accessibility",
510
+ score: V.accessibilityScore
511
+ },
512
+ {
513
+ label: "Best Practices",
514
+ score: V.bestPracticesScore
515
+ },
516
+ {
517
+ label: "SEO",
518
+ score: V.seoScore
519
+ }
520
+ ].map((e) => /* @__PURE__ */ x("div", {
521
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
522
+ children: [/* @__PURE__ */ b("p", {
523
+ className: n("text-lg font-semibold", Q(e.score)),
524
+ children: Math.round(e.score)
525
+ }), /* @__PURE__ */ b("p", {
526
+ className: "text-[10px] text-text-secondary",
527
+ children: e.label
528
+ })]
529
+ }, e.label))
530
+ }),
531
+ V.issues.length === 0 ? /* @__PURE__ */ b("div", {
532
+ className: "rounded-lg border border-status-success-border/30 bg-status-success-bg/10 p-4 text-sm text-status-success-text",
533
+ children: "No on-page issues found — this page is well optimized."
534
+ }) : /* @__PURE__ */ b("div", {
535
+ className: "space-y-2",
536
+ children: V.issues.map((e) => /* @__PURE__ */ b("div", {
537
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
538
+ children: /* @__PURE__ */ x("div", {
539
+ className: "flex items-start justify-between gap-3",
540
+ children: [/* @__PURE__ */ x("div", {
541
+ className: "flex items-start gap-3",
542
+ children: [e.impact === "high" ? /* @__PURE__ */ b(v, { className: "h-5 w-5 text-status-error-text flex-shrink-0" }) : e.impact === "medium" ? /* @__PURE__ */ b(d, { className: "h-5 w-5 text-status-warning-text flex-shrink-0" }) : /* @__PURE__ */ b(p, { className: "h-5 w-5 text-status-info-text flex-shrink-0" }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
543
+ className: "text-sm font-medium text-text-primary",
544
+ children: e.description
545
+ }), e.recommendation && /* @__PURE__ */ b("p", {
546
+ className: "text-xs text-text-secondary",
547
+ children: e.recommendation
548
+ })] })]
549
+ }), /* @__PURE__ */ b("span", {
550
+ className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary capitalize whitespace-nowrap",
551
+ children: e.category
552
+ })]
553
+ })
554
+ }, e.id))
555
+ })
556
+ ]
557
+ }) : /* @__PURE__ */ b(o, {
558
+ illustration: "empty-generic",
559
+ title: "Analyze a page",
560
+ description: "Enter a URL above and run an analysis to see its optimization score and concrete on-page fixes."
561
+ })
562
+ ]
563
+ })
340
564
  ]
341
565
  }),
342
- A === "optimization" && /* @__PURE__ */ S("div", {
343
- className: "space-y-6",
344
- children: [/* @__PURE__ */ S("div", {
345
- className: "flex gap-2",
346
- children: [/* @__PURE__ */ S("div", {
347
- className: "relative flex-1",
348
- children: [/* @__PURE__ */ x(p, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ x("input", {
566
+ /* @__PURE__ */ b(s, {
567
+ open: F,
568
+ onClose: () => I(!1),
569
+ title: "Run SEO audit",
570
+ description: "Analyze a URL for performance, accessibility and SEO issues.",
571
+ size: "md",
572
+ footer: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("button", {
573
+ type: "button",
574
+ onClick: () => I(!1),
575
+ className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
576
+ children: "Cancel"
577
+ }), /* @__PURE__ */ x("button", {
578
+ type: "button",
579
+ onClick: () => void be(),
580
+ disabled: M,
581
+ 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",
582
+ children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), M ? "Running…" : "Run Audit"]
583
+ })] }),
584
+ children: /* @__PURE__ */ x("div", {
585
+ className: "space-y-3",
586
+ children: [/* @__PURE__ */ x("label", {
587
+ className: "block",
588
+ children: [/* @__PURE__ */ b("span", {
589
+ className: "mb-1 block text-sm font-medium text-text-primary",
590
+ children: "URL to audit"
591
+ }), /* @__PURE__ */ b("input", {
349
592
  type: "url",
350
- value: P,
351
- onChange: (e) => F(e.target.value),
352
- placeholder: "Enter URL to analyze (e.g. https://headshotmarketing.com/blog/tips)",
353
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-9 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
593
+ value: L,
594
+ onChange: (e) => R(e.target.value),
595
+ placeholder: "https://example.com",
596
+ 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
597
  })]
355
- }), /* @__PURE__ */ x("button", {
356
- onClick: () => L(!0),
357
- className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
358
- children: "Analyze"
359
- })]
360
- }), I && /* @__PURE__ */ S("div", {
361
- className: "space-y-4",
362
- children: [/* @__PURE__ */ S("div", {
363
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-center",
364
- children: [
365
- /* @__PURE__ */ x("p", {
366
- className: "text-4xl font-bold text-status-success-text",
367
- children: "72"
368
- }),
369
- /* @__PURE__ */ x("p", {
370
- className: "text-sm text-text-secondary mt-1",
371
- children: "Overall Optimization Score"
372
- }),
373
- /* @__PURE__ */ x("div", {
374
- className: "w-full h-3 rounded-full bg-bg-sunken mt-3 overflow-hidden max-w-xs mx-auto",
375
- children: /* @__PURE__ */ x("div", {
376
- className: "h-full rounded-full bg-status-success-text",
377
- style: { width: "72%" }
378
- })
379
- })
380
- ]
381
- }), /* @__PURE__ */ x("div", {
382
- className: "space-y-2",
383
- children: [
384
- {
385
- category: "Title Tag",
386
- score: 85,
387
- status: "good",
388
- suggestion: "Title is well-optimized at 58 characters"
389
- },
390
- {
391
- category: "Meta Description",
392
- score: 0,
393
- status: "missing",
394
- suggestion: "Add a meta description (150-160 characters)"
395
- },
396
- {
397
- category: "Heading Structure",
398
- score: 70,
399
- status: "warning",
400
- suggestion: "Missing H2 tags. Add 2-3 subheadings"
401
- },
402
- {
403
- category: "Content Length",
404
- score: 90,
405
- status: "good",
406
- suggestion: "2,400 words - excellent for this keyword"
407
- },
408
- {
409
- category: "Keyword Density",
410
- score: 75,
411
- status: "warning",
412
- suggestion: "Keyword density is 1.2%, target 1.5-2%"
413
- },
414
- {
415
- category: "Internal Links",
416
- score: 40,
417
- status: "poor",
418
- suggestion: "Only 2 internal links. Add 5-8 more"
419
- },
420
- {
421
- category: "Image Alt Text",
422
- score: 60,
423
- status: "warning",
424
- suggestion: "3 of 8 images missing alt text"
425
- },
426
- {
427
- category: "Page Speed",
428
- score: 82,
429
- status: "good",
430
- suggestion: "Load time 2.1s - good performance"
431
- }
432
- ].map((e) => /* @__PURE__ */ x("div", {
433
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
434
- children: /* @__PURE__ */ S("div", {
435
- className: "flex items-center justify-between",
436
- children: [/* @__PURE__ */ S("div", {
437
- className: "flex items-center gap-3",
438
- children: [e.status === "good" ? /* @__PURE__ */ x(d, { className: "h-5 w-5 text-status-success-text" }) : e.status === "missing" || e.status === "poor" ? /* @__PURE__ */ x(b, { className: "h-5 w-5 text-status-error-text" }) : /* @__PURE__ */ x(u, { className: "h-5 w-5 text-status-warning-text" }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
439
- className: "text-sm font-medium text-text-primary",
440
- children: e.category
441
- }), /* @__PURE__ */ x("p", {
442
- className: "text-xs text-text-secondary",
443
- children: e.suggestion
444
- })] })]
445
- }), e.score > 0 && /* @__PURE__ */ S("span", {
446
- className: n("text-sm font-semibold", e.score >= 80 ? "text-status-success-text" : e.score >= 60 ? "text-status-warning-text" : "text-status-error-text"),
447
- children: [e.score, "/100"]
448
- })]
449
- })
450
- }, e.category))
598
+ }), H && /* @__PURE__ */ b("div", {
599
+ className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
600
+ children: H
451
601
  })]
452
- })]
602
+ })
453
603
  })
454
604
  ]
455
605
  });
456
606
  };
457
607
  //#endregion
458
- export { O as SeoToolsPage };
608
+ export { w as SeoToolsPage };
459
609
 
460
610
  //# sourceMappingURL=SeoToolsPage.js.map