@burdenoff/microfe-headshotmarketing 2026.704.3 → 2026.704.5

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 (164) hide show
  1. package/dist/generated/wspace-operations.js +118 -111
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +27 -19
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/components/Toast.js +56 -2
  6. package/dist/headshotmarketing/components/Toast.js.map +1 -0
  7. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +1 -1
  8. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -1
  9. package/dist/headshotmarketing/pages/HomeFunnel.js +54 -0
  10. package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -0
  11. package/dist/headshotmarketing/pages/HomePage.js +423 -259
  12. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  13. package/dist/headshotmarketing/pages/HomeStatCard.js +79 -0
  14. package/dist/headshotmarketing/pages/HomeStatCard.js.map +1 -0
  15. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js +93 -0
  16. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js.map +1 -0
  17. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +452 -390
  18. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +405 -115
  20. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +566 -346
  22. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +107 -0
  24. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -0
  25. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +213 -0
  26. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -0
  27. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +150 -0
  28. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -0
  29. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +380 -371
  30. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +92 -0
  32. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -0
  33. package/dist/headshotmarketing/pages/builder/SectionContent.js +346 -0
  34. package/dist/headshotmarketing/pages/builder/SectionContent.js.map +1 -0
  35. package/dist/headshotmarketing/pages/builder/SectionInspector.js +358 -0
  36. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -0
  37. package/dist/headshotmarketing/pages/builder/builderCatalog.js +274 -0
  38. package/dist/headshotmarketing/pages/builder/builderCatalog.js.map +1 -0
  39. package/dist/headshotmarketing/pages/content/AIToolsPage.js +479 -193
  40. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +492 -197
  42. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/content/AssetThumbnail.js +37 -0
  44. package/dist/headshotmarketing/pages/content/AssetThumbnail.js.map +1 -0
  45. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +672 -219
  46. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +200 -0
  48. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -0
  49. package/dist/headshotmarketing/pages/content/ContentPage.js +224 -204
  50. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/content/ContentSubNav.js +51 -0
  52. package/dist/headshotmarketing/pages/content/ContentSubNav.js.map +1 -0
  53. package/dist/headshotmarketing/pages/crm/LeadsPage.js +250 -131
  54. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js +179 -0
  56. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js.map +1 -0
  57. package/dist/headshotmarketing/pages/events/CreateEventPage.js +631 -379
  58. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/events/EventImageUpload.js +123 -0
  60. package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -0
  61. package/dist/headshotmarketing/pages/events/EventPagePreview.js +99 -0
  62. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -0
  63. package/dist/headshotmarketing/pages/events/EventsPage.js +267 -228
  64. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js +50 -0
  66. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js.map +1 -0
  67. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +147 -0
  68. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -0
  69. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +562 -419
  70. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +108 -0
  72. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -0
  73. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +100 -0
  74. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -0
  75. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +315 -250
  76. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js +60 -0
  78. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js.map +1 -0
  79. package/dist/headshotmarketing/utils/automationMapper.js +1 -1
  80. package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
  81. package/dist/headshotmarketing/utils/contentMapper.js +4 -24
  82. package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
  83. package/dist/headshotmarketing/utils/eventsMapper.js +9 -9
  84. package/dist/headshotmarketing/utils/eventsMapper.js.map +1 -1
  85. package/dist/headshotmarketing/utils/helpers.js +7 -4
  86. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  87. package/dist/headshotmarketing/utils/influencerMapper.js +1 -1
  88. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  89. package/dist/node_modules/lodash/_arrayEach.js +14 -0
  90. package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
  91. package/dist/node_modules/lodash/_assignValue.js +17 -0
  92. package/dist/node_modules/lodash/_assignValue.js.map +1 -0
  93. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  94. package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
  95. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  96. package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
  97. package/dist/node_modules/lodash/_baseClone.js +64 -0
  98. package/dist/node_modules/lodash/_baseClone.js.map +1 -0
  99. package/dist/node_modules/lodash/_baseCreate.js +21 -0
  100. package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
  101. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  102. package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
  103. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  104. package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
  105. package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
  106. package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
  107. package/dist/node_modules/lodash/_baseUnset.js +26 -0
  108. package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
  109. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  110. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  111. package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
  112. package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
  113. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  114. package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
  115. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  116. package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
  117. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  118. package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
  119. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  120. package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  121. package/dist/node_modules/lodash/_copyArray.js +15 -0
  122. package/dist/node_modules/lodash/_copyArray.js.map +1 -0
  123. package/dist/node_modules/lodash/_copyObject.js +22 -0
  124. package/dist/node_modules/lodash/_copyObject.js.map +1 -0
  125. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  126. package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
  127. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  128. package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  129. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  130. package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
  131. package/dist/node_modules/lodash/_flatRest.js +17 -0
  132. package/dist/node_modules/lodash/_flatRest.js.map +1 -0
  133. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  134. package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  135. package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
  136. package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  137. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  138. package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
  139. package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
  140. package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
  141. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  142. package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
  143. package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
  144. package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  145. package/dist/node_modules/lodash/_parent.js +16 -0
  146. package/dist/node_modules/lodash/_parent.js.map +1 -0
  147. package/dist/node_modules/lodash/flatten.js +15 -0
  148. package/dist/node_modules/lodash/flatten.js.map +1 -0
  149. package/dist/node_modules/lodash/isMap.js +14 -0
  150. package/dist/node_modules/lodash/isMap.js.map +1 -0
  151. package/dist/node_modules/lodash/isSet.js +14 -0
  152. package/dist/node_modules/lodash/isSet.js.map +1 -0
  153. package/dist/node_modules/lodash/keysIn.js +17 -0
  154. package/dist/node_modules/lodash/keysIn.js.map +1 -0
  155. package/dist/node_modules/lodash/omit.js +28 -0
  156. package/dist/node_modules/lodash/omit.js.map +1 -0
  157. package/dist/node_modules/recharts/es6/chart/FunnelChart.js +15 -0
  158. package/dist/node_modules/recharts/es6/chart/FunnelChart.js.map +1 -0
  159. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js +370 -0
  160. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js.map +1 -0
  161. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +1 -1
  162. package/dist/node_modules/recharts/es6/util/FunnelUtils.js +81 -0
  163. package/dist/node_modules/recharts/es6/util/FunnelUtils.js.map +1 -0
  164. package/package.json +1 -1
@@ -1,30 +1,64 @@
1
1
  import { useHeadshotmarketingCreateSeoKeywordMutation as e, useHeadshotmarketingRunSeoAuditMutation as t } from "../../../generated/wspace-operations.js";
2
2
  import { cn as n, formatNumber as r } from "../../utils/helpers.js";
3
- import { PageLayout as i } from "../../components/PageLayout.js";
4
- import { DataTable as a } from "../../components/DataTable.js";
3
+ import { HeadshotmarketingSeoKeywordStatus as i } from "../../../generated/wspace-types.js";
4
+ import { PageLayout as ee } from "../../components/PageLayout.js";
5
+ import { StatCard as a } from "../../components/StatCard.js";
6
+ import { DataTable as te } from "../../components/DataTable.js";
5
7
  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";
8
+ import { Modal as ne } from "../../components/Modal.js";
9
+ import { QueryStateBoundary as re } from "../../components/QueryStateBoundary.js";
8
10
  import "../../components/index.js";
9
- import { useHeadshotmarketingBootstrap as te } from "../../hooks/useHeadshotmarketingBootstrap.js";
11
+ import { useHeadshotmarketingBootstrap as ie } from "../../hooks/useHeadshotmarketingBootstrap.js";
10
12
  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
+ import { toKeywordModel as ae, toSeoAuditModel as s } from "../../utils/seoMapper.js";
14
+ import { SeoScoreGauge as oe } from "./SeoScoreGauge.js";
15
+ import { SeoScorePanel as se } from "./SeoScorePanel.js";
16
+ import { useMemo as c, useState as l } from "react";
17
+ import { AlertTriangle as u, ArrowUpRight as ce, BarChart3 as le, CheckCircle2 as ue, ExternalLink as de, Gauge as fe, Globe as pe, Hash as me, Info as d, Minus as he, Play as f, Search as p, TrendingDown as ge, TrendingUp as m, XCircle as h } from "lucide-react";
18
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
19
+ import { EmphasisPanel as y, NextSteps as _e, PagePurpose as ve } from "@burdenoff/fe-libs/ui";
16
20
  //#region src/headshotmarketing/pages/seo/SeoToolsPage.tsx
17
- var ce = {
18
- error: v,
19
- warning: d,
20
- info: p
21
- }, le = {
21
+ var ye = {
22
+ [i.Tracking]: {
23
+ label: "Tracking",
24
+ className: "bg-status-success-bg text-status-success-text border-status-success-border"
25
+ },
26
+ [i.Paused]: {
27
+ label: "Paused",
28
+ className: "bg-status-warning-bg text-status-warning-text border-status-warning-border"
29
+ },
30
+ [i.Archived]: {
31
+ label: "Archived",
32
+ className: "bg-bg-sunken text-text-secondary border-border-subtle"
33
+ }
34
+ }, be = [
35
+ {
36
+ value: "all",
37
+ label: "All statuses"
38
+ },
39
+ {
40
+ value: i.Tracking,
41
+ label: "Tracking"
42
+ },
43
+ {
44
+ value: i.Paused,
45
+ label: "Paused"
46
+ },
47
+ {
48
+ value: i.Archived,
49
+ label: "Archived"
50
+ }
51
+ ], xe = {
52
+ error: h,
53
+ warning: u,
54
+ info: d
55
+ }, Se = {
22
56
  error: "text-status-error-text",
23
57
  warning: "text-status-warning-text",
24
58
  info: "text-status-info-text"
25
- }, C = "https://headshotmarketing.com";
26
- function ue(e) {
27
- return c({
59
+ }, b = "https://headshotmarketing.com";
60
+ function Ce(e) {
61
+ return s({
28
62
  id: e.id,
29
63
  url: e.url,
30
64
  overallScore: e.overallScore,
@@ -44,8 +78,8 @@ function ue(e) {
44
78
  updatedAt: e.updatedAt
45
79
  });
46
80
  }
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 = [
81
+ var x = () => {
82
+ let { data: i, loading: x, error: we, refetch: S } = ie(), [C, w] = l("keywords"), [T, E] = l(""), [D, O] = l("all"), [k, Te] = l(""), [Ee, { loading: A }] = t(), [De, { loading: j }] = e(), [Oe, M] = l(!1), [N, P] = l(b), [F, ke] = l(null), [I, Ae] = l(null), [L, R] = l(null), [z, B] = l(null), [V, H] = l(null), je = [
49
83
  {
50
84
  key: "keywords",
51
85
  label: "Keyword Research"
@@ -58,40 +92,83 @@ var w = () => {
58
92
  key: "optimization",
59
93
  label: "Content Optimization"
60
94
  }
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 = [
95
+ ], Me = {
96
+ up: m,
97
+ down: ge,
98
+ stable: he
99
+ }, U = c(() => (i?.headshotmarketingSEOKeywords.items ?? []).map((e) => ({
100
+ ...ae(e),
101
+ bestRank: e.bestRank ?? null,
102
+ status: e.status
103
+ })), [i?.headshotmarketingSEOKeywords.items]), W = U.filter((e) => {
104
+ let t = T ? e.keyword.toLowerCase().includes(T.toLowerCase()) : !0, n = D === "all" ? !0 : e.status === D;
105
+ return t && n;
106
+ }), Ne = U.some((e) => e.keyword.toLowerCase() === T.trim().toLowerCase()), G = i?.headshotmarketingSEOOverview, K = G?.avgRank, q = G?.avgSEOScore, Pe = K == null ? "—" : K.toFixed(1), Fe = q == null ? "—" : String(Math.round(q)), J = U.length > 0, Ie = !!T.trim() || D !== "all", Y = [
66
107
  {
67
108
  key: "keyword",
68
109
  header: "Keyword",
69
110
  sortable: !0,
70
- render: (e) => /* @__PURE__ */ b("span", {
71
- className: "font-medium text-text-primary",
72
- children: e.keyword
111
+ render: (e) => /* @__PURE__ */ v("div", {
112
+ className: "flex flex-col",
113
+ children: [/* @__PURE__ */ _("span", {
114
+ className: "font-medium text-text-primary",
115
+ children: e.keyword
116
+ }), /* @__PURE__ */ _("span", {
117
+ className: "text-[10px] uppercase tracking-wide text-text-secondary",
118
+ children: e.intent
119
+ })]
120
+ })
121
+ },
122
+ {
123
+ key: "currentRank",
124
+ header: "Current Rank",
125
+ sortable: !0,
126
+ render: (e) => {
127
+ let t = Me[e.trend];
128
+ return /* @__PURE__ */ v("div", {
129
+ className: "flex items-center gap-1.5",
130
+ children: [/* @__PURE__ */ _("span", {
131
+ className: n("font-semibold tabular-nums", e.currentRank && e.currentRank <= 10 ? "text-status-success-text" : "text-text-primary"),
132
+ children: e.currentRank ?? "-"
133
+ }), e.rankChange !== 0 && /* @__PURE__ */ v("span", {
134
+ className: n("inline-flex items-center gap-0.5 text-xs font-medium tabular-nums", e.trend === "up" ? "text-status-success-text" : e.trend === "down" ? "text-status-error-text" : "text-text-secondary"),
135
+ children: [/* @__PURE__ */ _(t, { className: "h-3.5 w-3.5" }), Math.abs(e.rankChange)]
136
+ })]
137
+ });
138
+ }
139
+ },
140
+ {
141
+ key: "bestRank",
142
+ header: "Best Rank",
143
+ sortable: !0,
144
+ render: (e) => /* @__PURE__ */ _("span", {
145
+ className: "tabular-nums text-text-primary",
146
+ children: e.bestRank ?? "-"
73
147
  })
74
148
  },
75
149
  {
76
150
  key: "searchVolume",
77
151
  header: "Volume",
78
152
  sortable: !0,
79
- render: (e) => r(e.searchVolume)
153
+ render: (e) => /* @__PURE__ */ _("span", {
154
+ className: "tabular-nums",
155
+ children: r(e.searchVolume)
156
+ })
80
157
  },
81
158
  {
82
159
  key: "difficulty",
83
160
  header: "Difficulty",
84
161
  sortable: !0,
85
- render: (e) => /* @__PURE__ */ x("div", {
162
+ render: (e) => /* @__PURE__ */ v("div", {
86
163
  className: "flex items-center gap-2",
87
- children: [/* @__PURE__ */ b("div", {
164
+ children: [/* @__PURE__ */ _("div", {
88
165
  className: "w-12 h-2 rounded-full bg-bg-sunken overflow-hidden",
89
- children: /* @__PURE__ */ b("div", {
166
+ children: /* @__PURE__ */ _("div", {
90
167
  className: n("h-full rounded-full", e.difficulty >= 70 ? "bg-status-error-text" : e.difficulty >= 40 ? "bg-status-warning-text" : "bg-status-success-text"),
91
168
  style: { width: `${e.difficulty}%` }
92
169
  })
93
- }), /* @__PURE__ */ b("span", {
94
- className: "text-xs",
170
+ }), /* @__PURE__ */ _("span", {
171
+ className: "text-xs tabular-nums",
95
172
  children: e.difficulty
96
173
  })]
97
174
  })
@@ -100,54 +177,40 @@ var w = () => {
100
177
  key: "cpc",
101
178
  header: "CPC",
102
179
  sortable: !0,
103
- render: (e) => `$${e.cpc.toFixed(2)}`
180
+ render: (e) => /* @__PURE__ */ v("span", {
181
+ className: "tabular-nums",
182
+ children: ["$", e.cpc.toFixed(2)]
183
+ })
104
184
  },
105
185
  {
106
- key: "currentRank",
107
- header: "Rank",
108
- sortable: !0,
109
- render: (e) => /* @__PURE__ */ b("span", {
110
- className: n("font-medium", e.currentRank && e.currentRank <= 10 ? "text-status-success-text" : "text-text-primary"),
111
- children: e.currentRank || "-"
186
+ key: "url",
187
+ header: "URL",
188
+ render: (e) => e.url ? /* @__PURE__ */ v("span", {
189
+ className: "flex max-w-[12rem] items-center gap-1 text-xs text-primary",
190
+ children: [/* @__PURE__ */ _("span", {
191
+ className: "truncate",
192
+ children: e.url
193
+ }), /* @__PURE__ */ _(de, { className: "h-3 w-3 flex-shrink-0" })]
194
+ }) : /* @__PURE__ */ _("span", {
195
+ className: "text-xs text-text-secondary",
196
+ children: "-"
112
197
  })
113
198
  },
114
199
  {
115
- key: "rankChange",
116
- header: "Change",
200
+ key: "status",
201
+ header: "Status",
117
202
  sortable: !0,
118
203
  render: (e) => {
119
- let t = ge[e.trend];
120
- return /* @__PURE__ */ x("div", {
121
- className: "flex items-center gap-1",
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", {
123
- className: n("text-xs font-medium", e.rankChange > 0 ? "text-status-success-text" : e.rankChange < 0 ? "text-status-error-text" : "text-text-secondary"),
124
- children: e.rankChange > 0 ? `+${e.rankChange}` : e.rankChange === 0 ? "0" : e.rankChange
125
- })]
204
+ let t = ye[e.status];
205
+ return /* @__PURE__ */ _("span", {
206
+ className: n("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium", t.className),
207
+ children: t.label
126
208
  });
127
209
  }
128
- },
129
- {
130
- key: "intent",
131
- header: "Intent",
132
- render: (e) => /* @__PURE__ */ b("span", {
133
- className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary capitalize",
134
- children: e.intent
135
- })
136
- },
137
- {
138
- key: "url",
139
- header: "URL",
140
- render: (e) => e.url ? /* @__PURE__ */ x("span", {
141
- className: "text-xs text-primary flex items-center gap-1",
142
- children: [e.url, /* @__PURE__ */ b(re, { className: "h-3 w-3" })]
143
- }) : /* @__PURE__ */ b("span", {
144
- className: "text-xs text-text-secondary",
145
- children: "-"
146
- })
147
210
  }
148
- ], ve = l(() => c((w?.headshotmarketingSEOAudits.items ?? [])[0] ?? {
211
+ ], Le = c(() => s((i?.headshotmarketingSEOAudits.items ?? [])[0] ?? {
149
212
  id: "audit-default",
150
- url: C,
213
+ url: b,
151
214
  overallScore: 0,
152
215
  performanceScore: 0,
153
216
  accessibilityScore: 0,
@@ -157,452 +220,532 @@ var w = () => {
157
220
  completedAt: null,
158
221
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
159
222
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
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);
223
+ }), [i?.headshotmarketingSEOAudits.items]), X = F ?? Le, Z = !!(F || (i?.headshotmarketingSEOAudits.items ?? []).length > 0), Q = (e) => e >= 80 ? "text-status-success-text" : e >= 60 ? "text-status-warning-text" : "text-status-error-text", $ = async (e) => {
224
+ R(null);
162
225
  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;
226
+ let t = (await Ee({ variables: { url: e } })).data?.headshotmarketingRunSEOAudit;
227
+ if (!t) return R("Audit did not return a result."), null;
228
+ let n = Ce(t);
229
+ return S(), n;
167
230
  } catch (e) {
168
- return U(e instanceof Error ? e.message : "Failed to run SEO audit."), null;
231
+ return R(e instanceof Error ? e.message : "Failed to run SEO audit."), null;
169
232
  }
170
- }, be = async () => {
171
- if (!L.trim()) {
172
- U("Enter a URL to audit.");
233
+ }, Re = async () => {
234
+ if (!N.trim()) {
235
+ R("Enter a URL to audit.");
173
236
  return;
174
237
  }
175
- let e = await $(L.trim());
176
- e && (B(e), I(!1), D("audit"));
177
- }, xe = async () => {
238
+ let e = await $(N.trim());
239
+ e && (ke(e), M(!1), w("audit"));
240
+ }, ze = async () => {
178
241
  if (!k.trim()) {
179
- U("Enter a URL to analyze.");
242
+ R("Enter a URL to analyze.");
180
243
  return;
181
244
  }
182
245
  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.");
246
+ e && Ae(e);
247
+ }, Be = async () => {
248
+ let e = T.trim();
249
+ if (B(null), H(null), !e) {
250
+ B("Enter a keyword to research.");
188
251
  return;
189
252
  }
190
- if (X) {
191
- q("That keyword is already being tracked.");
253
+ if (Ne) {
254
+ H("That keyword is already being tracked.");
192
255
  return;
193
256
  }
194
257
  try {
195
- await N({ variables: { input: { keyword: e } } }), await T(), q(`Now tracking "${e}".`);
258
+ await De({ variables: { input: { keyword: e } } }), await S(), H(`Now tracking "${e}".`);
196
259
  } catch (e) {
197
- G(e instanceof Error ? e.message : "Failed to add keyword.");
260
+ B(e instanceof Error ? e.message : "Failed to add keyword.");
198
261
  }
199
262
  };
200
- return /* @__PURE__ */ x(i, {
263
+ return /* @__PURE__ */ v(ee, {
201
264
  title: "SEO Tools",
202
265
  description: "Keyword research, site audits, and content optimization",
203
- actions: /* @__PURE__ */ x("button", {
266
+ actions: /* @__PURE__ */ v("button", {
204
267
  type: "button",
205
268
  onClick: () => {
206
- U(null), R(k.trim() || C), I(!0);
269
+ R(null), P(k.trim() || b), M(!0);
207
270
  },
208
271
  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",
209
- children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), "Run Audit"]
272
+ children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), "Run Audit"]
210
273
  }),
211
274
  children: [
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, {
275
+ /* @__PURE__ */ _(ve, { 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." }),
276
+ /* @__PURE__ */ _(_e, {
214
277
  storageKey: "headshotmarketing-seo-tools",
215
278
  steps: [
216
279
  {
217
280
  id: "keywords",
218
281
  label: "Research keywords",
219
282
  description: "Find search terms worth ranking for.",
220
- icon: /* @__PURE__ */ b(h, { className: "h-4 w-4" }),
221
- onClick: () => D("keywords")
283
+ icon: /* @__PURE__ */ _(p, { className: "h-4 w-4" }),
284
+ onClick: () => w("keywords")
222
285
  },
223
286
  {
224
287
  id: "audit",
225
288
  label: "Run a site audit",
226
289
  description: "Surface technical issues holding pages back.",
227
- icon: /* @__PURE__ */ b(f, { className: "h-4 w-4" }),
228
- onClick: () => D("audit")
290
+ icon: /* @__PURE__ */ _(ue, { className: "h-4 w-4" }),
291
+ onClick: () => w("audit")
229
292
  },
230
293
  {
231
294
  id: "optimization",
232
295
  label: "Optimize content",
233
296
  description: "Apply concrete on-page improvement suggestions.",
234
- icon: /* @__PURE__ */ b(_, { className: "h-4 w-4" }),
235
- onClick: () => D("optimization")
297
+ icon: /* @__PURE__ */ _(m, { className: "h-4 w-4" }),
298
+ onClick: () => w("optimization")
236
299
  }
237
300
  ]
238
301
  }),
239
- /* @__PURE__ */ b("div", {
302
+ /* @__PURE__ */ _("div", {
240
303
  className: "border-b border-border-subtle",
241
- children: /* @__PURE__ */ b("div", {
304
+ children: /* @__PURE__ */ _("div", {
242
305
  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"),
306
+ children: je.map((e) => /* @__PURE__ */ _("button", {
307
+ onClick: () => w(e.key),
308
+ className: n("whitespace-nowrap pb-3 text-sm font-medium transition-colors border-b-2", C === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
246
309
  children: e.label
247
310
  }, e.key))
248
311
  })
249
312
  }),
250
- /* @__PURE__ */ x(ee, {
251
- loading: de,
252
- error: fe,
253
- onRetry: T,
254
- hasData: !!w,
255
- children: [
256
- E === "keywords" && /* @__PURE__ */ x("div", {
257
- className: "space-y-4",
258
- children: [
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
313
+ /* @__PURE__ */ _(re, {
314
+ loading: x,
315
+ error: we,
316
+ onRetry: S,
317
+ hasData: !!i,
318
+ children: /* @__PURE__ */ v("div", {
319
+ className: "space-y-6",
320
+ children: [
321
+ /* @__PURE__ */ _(y, { children: /* @__PURE__ */ v("div", {
322
+ className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
323
+ children: [
324
+ /* @__PURE__ */ _(a, {
325
+ title: "Tracked Keywords",
326
+ value: r(G?.totalKeywords ?? 0),
327
+ icon: /* @__PURE__ */ _(me, { className: "h-5 w-5" }),
328
+ featured: !0
329
+ }),
330
+ /* @__PURE__ */ _(a, {
331
+ title: "Avg Rank",
332
+ value: Pe,
333
+ icon: /* @__PURE__ */ _(le, { className: "h-5 w-5" })
334
+ }),
335
+ /* @__PURE__ */ _(a, {
336
+ title: "Keywords Improved",
337
+ value: r(G?.keywordsImproved ?? 0),
338
+ icon: /* @__PURE__ */ _(ce, { className: "h-5 w-5" })
339
+ }),
340
+ /* @__PURE__ */ _(a, {
341
+ title: "Avg SEO Score",
342
+ value: Fe,
343
+ icon: /* @__PURE__ */ _(fe, { className: "h-5 w-5" })
296
344
  })
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",
345
+ ]
346
+ }) }),
347
+ C === "keywords" && /* @__PURE__ */ v("div", {
348
+ className: "space-y-4",
349
+ children: [
350
+ /* @__PURE__ */ v("div", {
351
+ className: "flex flex-col gap-2 sm:flex-row sm:items-center",
307
352
  children: [
308
- "Audited:",
309
- " ",
310
- /* @__PURE__ */ b("span", {
311
- className: "text-text-primary",
312
- children: Z.url
353
+ /* @__PURE__ */ v("div", {
354
+ className: "relative flex-1 min-w-[14rem]",
355
+ children: [/* @__PURE__ */ _(p, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
356
+ type: "text",
357
+ value: T,
358
+ onChange: (e) => E(e.target.value),
359
+ placeholder: "Search keywords or enter a new keyword to research...",
360
+ 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)]"
361
+ })]
362
+ }),
363
+ /* @__PURE__ */ _("select", {
364
+ value: D,
365
+ onChange: (e) => O(e.target.value),
366
+ "aria-label": "Filter keywords by status",
367
+ className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
368
+ children: be.map((e) => /* @__PURE__ */ _("option", {
369
+ value: e.value,
370
+ children: e.label
371
+ }, e.value))
372
+ }),
373
+ /* @__PURE__ */ _("button", {
374
+ type: "button",
375
+ onClick: () => void Be(),
376
+ disabled: j || !T.trim(),
377
+ className: "inline-flex min-h-[44px] items-center justify-center 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",
378
+ children: j ? "Researching…" : "Research"
313
379
  })
314
380
  ]
315
- })
316
- }),
317
- /* @__PURE__ */ b(S, { children: /* @__PURE__ */ b("div", {
318
- className: "grid grid-cols-2 md:grid-cols-5 gap-4",
319
- children: [
320
- {
321
- label: "Overall",
322
- score: Z.score
323
- },
324
- {
325
- label: "Performance",
326
- score: Z.performanceScore
327
- },
328
- {
329
- label: "Accessibility",
330
- score: Z.accessibilityScore
331
- },
332
- {
333
- label: "Best Practices",
334
- score: Z.bestPracticesScore
335
- },
336
- {
337
- label: "SEO",
338
- score: Z.seoScore
339
- }
340
- ].map((e) => /* @__PURE__ */ x("div", {
341
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 text-center",
342
- children: [/* @__PURE__ */ b("p", {
343
- className: n("text-3xl font-bold", Q(e.score)),
344
- children: Math.round(e.score)
345
- }), /* @__PURE__ */ b("p", {
346
- className: "text-xs text-text-secondary mt-1",
347
- children: e.label
348
- })]
349
- }, e.label))
350
- }) }),
351
- /* @__PURE__ */ b("div", {
352
- className: "grid grid-cols-3 md:grid-cols-6 gap-3",
353
- children: [
354
- {
355
- label: "Pages Crawled",
356
- value: Z.crawledPages
357
- },
358
- {
359
- label: "Indexed",
360
- value: Z.indexedPages
361
- },
362
- {
363
- label: "Broken Links",
364
- value: Z.brokenLinks
365
- },
366
- {
367
- label: "Missing Meta",
368
- value: Z.missingMetaTags
369
- },
370
- {
371
- label: "Slow Pages",
372
- value: Z.slowPages
373
- },
374
- {
375
- label: "Mobile Issues",
376
- value: Z.mobileIssues
377
- }
378
- ].map((e) => /* @__PURE__ */ x("div", {
379
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
380
- children: [/* @__PURE__ */ b("p", {
381
- className: "text-lg font-semibold text-text-primary",
382
- children: e.value
383
- }), /* @__PURE__ */ b("p", {
384
- className: "text-[10px] text-text-secondary",
385
- children: e.label
386
- })]
387
- }, e.label))
388
- }),
389
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("h3", {
390
- className: "text-sm font-semibold text-text-primary mb-3",
391
- children: [
392
- "Issues (",
393
- Z.issues.length,
394
- ")"
395
- ]
396
- }), Z.issues.length === 0 ? /* @__PURE__ */ b("p", {
397
- className: "text-sm text-text-secondary",
398
- children: "No issues found in the latest audit."
399
- }) : /* @__PURE__ */ b("div", {
400
- className: "space-y-2",
401
- children: Z.issues.map((e) => {
402
- let t = ce[e.type] || p;
403
- return /* @__PURE__ */ b("div", {
404
- 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"),
405
- children: /* @__PURE__ */ x("div", {
406
- className: "flex items-start gap-3",
407
- children: [/* @__PURE__ */ b(t, { className: n("h-5 w-5 mt-0.5 flex-shrink-0", le[e.type]) }), /* @__PURE__ */ x("div", {
408
- className: "flex-1",
409
- children: [
410
- /* @__PURE__ */ x("div", {
411
- className: "flex items-center justify-between gap-2",
412
- children: [/* @__PURE__ */ b("p", {
413
- className: "text-sm font-medium text-text-primary",
414
- children: e.description
415
- }), /* @__PURE__ */ b("div", {
416
- className: "flex items-center gap-2",
417
- children: /* @__PURE__ */ b("span", {
418
- 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"),
419
- children: e.impact
420
- })
421
- })]
422
- }),
423
- /* @__PURE__ */ x("p", {
424
- className: "text-xs text-text-secondary mt-1",
425
- children: [
426
- "Page: ",
427
- e.page,
428
- " | Category:",
429
- " ",
430
- e.category
431
- ]
432
- }),
433
- e.recommendation && /* @__PURE__ */ x("p", {
434
- className: "text-xs text-text-secondary mt-1",
435
- children: ["Recommendation: ", e.recommendation]
436
- })
437
- ]
381
+ }),
382
+ z && /* @__PURE__ */ _("div", {
383
+ className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
384
+ children: z
385
+ }),
386
+ V && !z && /* @__PURE__ */ _("div", {
387
+ className: "rounded-md border border-status-success-border/30 bg-status-success-bg/10 px-3 py-2 text-sm text-status-success-text",
388
+ children: V
389
+ }),
390
+ /* @__PURE__ */ v("div", {
391
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
392
+ children: [/* @__PURE__ */ v("div", {
393
+ className: "min-w-0 space-y-3 lg:col-span-2",
394
+ children: [/* @__PURE__ */ v("div", {
395
+ className: "flex items-center justify-between gap-2",
396
+ children: [/* @__PURE__ */ _("h3", {
397
+ className: "text-sm font-semibold text-text-primary",
398
+ children: "Keyword rankings"
399
+ }), /* @__PURE__ */ v("span", {
400
+ className: "text-xs text-text-secondary tabular-nums",
401
+ children: [W.length, W.length === 1 ? " keyword" : " keywords"]
438
402
  })]
403
+ }), W.length === 0 ? /* @__PURE__ */ _(o, {
404
+ illustration: J ? "empty-search" : "empty-generic",
405
+ title: J ? "No keywords match your filters" : "No keywords yet",
406
+ description: J ? "Try a different search term or status filter." : "Research a keyword above to start tracking its search volume, difficulty and ranking opportunities.",
407
+ action: J && Ie ? /* @__PURE__ */ _("button", {
408
+ type: "button",
409
+ onClick: () => {
410
+ E(""), O("all");
411
+ },
412
+ 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",
413
+ children: "Clear filters"
414
+ }) : void 0
415
+ }) : /* @__PURE__ */ _(te, {
416
+ data: W,
417
+ columns: Y,
418
+ pageSize: 10
419
+ })]
420
+ }), /* @__PURE__ */ _("div", {
421
+ className: "lg:col-span-1",
422
+ children: /* @__PURE__ */ _(se, {
423
+ audit: X,
424
+ hasAudit: Z,
425
+ onViewIssues: () => w("audit"),
426
+ onRunAudit: () => {
427
+ R(null), P(b), M(!0);
428
+ }
439
429
  })
440
- }, e.id);
441
- })
442
- })] })
443
- ] }) : /* @__PURE__ */ b(o, {
444
- illustration: "empty-generic",
445
- title: "No audits yet",
446
- description: "Run a site audit to surface performance, accessibility and SEO issues.",
447
- action: /* @__PURE__ */ x("button", {
448
- type: "button",
449
- onClick: () => {
450
- U(null), R(C), I(!0);
451
- },
452
- 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",
453
- children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), "Run Audit"]
454
- })
455
- })
456
- }),
457
- E === "optimization" && /* @__PURE__ */ x("div", {
458
- className: "space-y-6",
459
- children: [
460
- /* @__PURE__ */ x("div", {
461
- className: "flex flex-wrap gap-2",
462
- children: [/* @__PURE__ */ x("div", {
463
- className: "relative flex-1 min-w-[16rem]",
464
- 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", {
465
- type: "url",
466
- value: k,
467
- onChange: (e) => A(e.target.value),
468
- placeholder: "Enter URL to analyze (e.g. https://headshotmarketing.com/blog/tips)",
469
- 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)]"
470
430
  })]
471
- }), /* @__PURE__ */ b("button", {
472
- type: "button",
473
- onClick: () => void xe(),
474
- disabled: M || !k.trim(),
475
- 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",
476
- children: M ? "Analyzing…" : "Analyze"
477
- })]
478
- }),
479
- H && /* @__PURE__ */ b("div", {
480
- className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
481
- children: H
482
- }),
483
- V ? /* @__PURE__ */ x("div", {
484
- className: "space-y-4",
485
- children: [
486
- /* @__PURE__ */ x("div", {
487
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-center",
431
+ })
432
+ ]
433
+ }),
434
+ C === "audit" && /* @__PURE__ */ _("div", {
435
+ className: "space-y-6",
436
+ children: Z ? /* @__PURE__ */ v(g, { children: [
437
+ /* @__PURE__ */ _("div", {
438
+ className: "flex items-center justify-between gap-2",
439
+ children: /* @__PURE__ */ v("p", {
440
+ className: "text-sm text-text-secondary truncate",
488
441
  children: [
489
- /* @__PURE__ */ b("p", {
490
- className: n("text-4xl font-bold", Q(V.score)),
491
- children: Math.round(V.score)
492
- }),
493
- /* @__PURE__ */ b("p", {
494
- className: "text-sm text-text-secondary mt-1",
495
- children: "Overall Optimization Score"
496
- }),
497
- /* @__PURE__ */ b("div", {
498
- className: "w-full h-3 rounded-full bg-bg-sunken mt-3 overflow-hidden max-w-xs mx-auto",
499
- children: /* @__PURE__ */ b("div", {
500
- className: n("h-full rounded-full", V.score >= 80 ? "bg-status-success-text" : V.score >= 60 ? "bg-status-warning-text" : "bg-status-error-text"),
501
- style: { width: `${Math.min(Math.max(V.score, 0), 100)}%` }
502
- })
442
+ "Audited:",
443
+ " ",
444
+ /* @__PURE__ */ _("span", {
445
+ className: "text-text-primary",
446
+ children: X.url
503
447
  })
504
448
  ]
505
- }),
506
- /* @__PURE__ */ b("div", {
507
- className: "grid grid-cols-2 md:grid-cols-4 gap-3",
449
+ })
450
+ }),
451
+ /* @__PURE__ */ _(y, { children: /* @__PURE__ */ v("div", {
452
+ className: "grid grid-cols-1 gap-6 md:grid-cols-[auto_1fr] md:items-center",
453
+ children: [/* @__PURE__ */ v("div", {
454
+ className: "flex flex-col items-center gap-2",
455
+ children: [/* @__PURE__ */ _(oe, {
456
+ score: X.score,
457
+ size: 140
458
+ }), /* @__PURE__ */ _("p", {
459
+ className: "text-xs font-medium text-text-secondary",
460
+ children: "Overall Score"
461
+ })]
462
+ }), /* @__PURE__ */ _("div", {
463
+ className: "grid grid-cols-2 gap-3 lg:grid-cols-4",
508
464
  children: [
509
465
  {
510
466
  label: "Performance",
511
- score: V.performanceScore
467
+ score: X.performanceScore
512
468
  },
513
469
  {
514
470
  label: "Accessibility",
515
- score: V.accessibilityScore
471
+ score: X.accessibilityScore
516
472
  },
517
473
  {
518
- label: "Best Practices",
519
- score: V.bestPracticesScore
474
+ label: "SEO",
475
+ score: X.seoScore
520
476
  },
521
477
  {
522
- label: "SEO",
523
- score: V.seoScore
478
+ label: "Best Practices",
479
+ score: X.bestPracticesScore
524
480
  }
525
- ].map((e) => /* @__PURE__ */ x("div", {
526
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
527
- children: [/* @__PURE__ */ b("p", {
528
- className: n("text-lg font-semibold", Q(e.score)),
481
+ ].map((e) => /* @__PURE__ */ v("div", {
482
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 text-center",
483
+ children: [/* @__PURE__ */ _("p", {
484
+ className: n("text-3xl font-bold tabular-nums", Q(e.score)),
529
485
  children: Math.round(e.score)
530
- }), /* @__PURE__ */ b("p", {
531
- className: "text-[10px] text-text-secondary",
486
+ }), /* @__PURE__ */ _("p", {
487
+ className: "text-xs text-text-secondary mt-1",
532
488
  children: e.label
533
489
  })]
534
490
  }, e.label))
535
- }),
536
- V.issues.length === 0 ? /* @__PURE__ */ b("div", {
537
- className: "rounded-lg border border-status-success-border/30 bg-status-success-bg/10 p-4 text-sm text-status-success-text",
538
- children: "No on-page issues found — this page is well optimized."
539
- }) : /* @__PURE__ */ b("div", {
540
- className: "space-y-2",
541
- children: V.issues.map((e) => /* @__PURE__ */ b("div", {
542
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
543
- children: /* @__PURE__ */ x("div", {
544
- className: "flex items-start justify-between gap-3",
545
- children: [/* @__PURE__ */ x("div", {
546
- className: "flex items-start gap-3",
547
- 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", {
548
- className: "text-sm font-medium text-text-primary",
549
- children: e.description
550
- }), e.recommendation && /* @__PURE__ */ b("p", {
551
- className: "text-xs text-text-secondary",
552
- children: e.recommendation
553
- })] })]
554
- }), /* @__PURE__ */ b("span", {
555
- className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary capitalize whitespace-nowrap",
556
- children: e.category
491
+ })]
492
+ }) }),
493
+ /* @__PURE__ */ _("div", {
494
+ className: "grid grid-cols-3 md:grid-cols-6 gap-3",
495
+ children: [
496
+ {
497
+ label: "Pages Crawled",
498
+ value: X.crawledPages
499
+ },
500
+ {
501
+ label: "Indexed",
502
+ value: X.indexedPages
503
+ },
504
+ {
505
+ label: "Broken Links",
506
+ value: X.brokenLinks
507
+ },
508
+ {
509
+ label: "Missing Meta",
510
+ value: X.missingMetaTags
511
+ },
512
+ {
513
+ label: "Slow Pages",
514
+ value: X.slowPages
515
+ },
516
+ {
517
+ label: "Mobile Issues",
518
+ value: X.mobileIssues
519
+ }
520
+ ].map((e) => /* @__PURE__ */ v("div", {
521
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
522
+ children: [/* @__PURE__ */ _("p", {
523
+ className: "text-lg font-semibold text-text-primary",
524
+ children: e.value
525
+ }), /* @__PURE__ */ _("p", {
526
+ className: "text-[10px] text-text-secondary",
527
+ children: e.label
528
+ })]
529
+ }, e.label))
530
+ }),
531
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("h3", {
532
+ className: "text-sm font-semibold text-text-primary mb-3",
533
+ children: [
534
+ "Issues (",
535
+ X.issues.length,
536
+ ")"
537
+ ]
538
+ }), X.issues.length === 0 ? /* @__PURE__ */ _("p", {
539
+ className: "text-sm text-text-secondary",
540
+ children: "No issues found in the latest audit."
541
+ }) : /* @__PURE__ */ _("div", {
542
+ className: "space-y-2",
543
+ children: X.issues.map((e) => {
544
+ let t = xe[e.type] || d;
545
+ return /* @__PURE__ */ _("div", {
546
+ 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"),
547
+ children: /* @__PURE__ */ v("div", {
548
+ className: "flex items-start gap-3",
549
+ children: [/* @__PURE__ */ _(t, { className: n("h-5 w-5 mt-0.5 flex-shrink-0", Se[e.type]) }), /* @__PURE__ */ v("div", {
550
+ className: "flex-1",
551
+ children: [
552
+ /* @__PURE__ */ v("div", {
553
+ className: "flex items-center justify-between gap-2",
554
+ children: [/* @__PURE__ */ _("p", {
555
+ className: "text-sm font-medium text-text-primary",
556
+ children: e.description
557
+ }), /* @__PURE__ */ _("div", {
558
+ className: "flex items-center gap-2",
559
+ children: /* @__PURE__ */ _("span", {
560
+ 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"),
561
+ children: e.impact
562
+ })
563
+ })]
564
+ }),
565
+ /* @__PURE__ */ v("p", {
566
+ className: "text-xs text-text-secondary mt-1",
567
+ children: [
568
+ "Page: ",
569
+ e.page,
570
+ " | Category:",
571
+ " ",
572
+ e.category
573
+ ]
574
+ }),
575
+ e.recommendation && /* @__PURE__ */ v("p", {
576
+ className: "text-xs text-text-secondary mt-1",
577
+ children: ["Recommendation: ", e.recommendation]
578
+ })
579
+ ]
557
580
  })]
558
581
  })
559
- }, e.id))
582
+ }, e.id);
560
583
  })
561
- ]
562
- }) : /* @__PURE__ */ b(o, {
584
+ })] })
585
+ ] }) : /* @__PURE__ */ _(o, {
563
586
  illustration: "empty-generic",
564
- title: "Analyze a page",
565
- description: "Enter a URL above and run an analysis to see its optimization score and concrete on-page fixes."
587
+ title: "No audits yet",
588
+ description: "Run a site audit to surface performance, accessibility and SEO issues.",
589
+ action: /* @__PURE__ */ v("button", {
590
+ type: "button",
591
+ onClick: () => {
592
+ R(null), P(b), M(!0);
593
+ },
594
+ 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",
595
+ children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), "Run Audit"]
596
+ })
566
597
  })
567
- ]
568
- })
569
- ]
598
+ }),
599
+ C === "optimization" && /* @__PURE__ */ v("div", {
600
+ className: "space-y-6",
601
+ children: [
602
+ /* @__PURE__ */ v("div", {
603
+ className: "flex flex-wrap gap-2",
604
+ children: [/* @__PURE__ */ v("div", {
605
+ className: "relative flex-1 min-w-[16rem]",
606
+ children: [/* @__PURE__ */ _(pe, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
607
+ type: "url",
608
+ value: k,
609
+ onChange: (e) => Te(e.target.value),
610
+ placeholder: "Enter URL to analyze (e.g. https://headshotmarketing.com/blog/tips)",
611
+ 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)]"
612
+ })]
613
+ }), /* @__PURE__ */ _("button", {
614
+ type: "button",
615
+ onClick: () => void ze(),
616
+ disabled: A || !k.trim(),
617
+ 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",
618
+ children: A ? "Analyzing…" : "Analyze"
619
+ })]
620
+ }),
621
+ L && /* @__PURE__ */ _("div", {
622
+ className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
623
+ children: L
624
+ }),
625
+ I ? /* @__PURE__ */ v("div", {
626
+ className: "space-y-4",
627
+ children: [
628
+ /* @__PURE__ */ v("div", {
629
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 text-center",
630
+ children: [
631
+ /* @__PURE__ */ _("p", {
632
+ className: n("text-4xl font-bold", Q(I.score)),
633
+ children: Math.round(I.score)
634
+ }),
635
+ /* @__PURE__ */ _("p", {
636
+ className: "text-sm text-text-secondary mt-1",
637
+ children: "Overall Optimization Score"
638
+ }),
639
+ /* @__PURE__ */ _("div", {
640
+ className: "w-full h-3 rounded-full bg-bg-sunken mt-3 overflow-hidden max-w-xs mx-auto",
641
+ children: /* @__PURE__ */ _("div", {
642
+ className: n("h-full rounded-full", I.score >= 80 ? "bg-status-success-text" : I.score >= 60 ? "bg-status-warning-text" : "bg-status-error-text"),
643
+ style: { width: `${Math.min(Math.max(I.score, 0), 100)}%` }
644
+ })
645
+ })
646
+ ]
647
+ }),
648
+ /* @__PURE__ */ _("div", {
649
+ className: "grid grid-cols-2 md:grid-cols-4 gap-3",
650
+ children: [
651
+ {
652
+ label: "Performance",
653
+ score: I.performanceScore
654
+ },
655
+ {
656
+ label: "Accessibility",
657
+ score: I.accessibilityScore
658
+ },
659
+ {
660
+ label: "Best Practices",
661
+ score: I.bestPracticesScore
662
+ },
663
+ {
664
+ label: "SEO",
665
+ score: I.seoScore
666
+ }
667
+ ].map((e) => /* @__PURE__ */ v("div", {
668
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-3 text-center",
669
+ children: [/* @__PURE__ */ _("p", {
670
+ className: n("text-lg font-semibold", Q(e.score)),
671
+ children: Math.round(e.score)
672
+ }), /* @__PURE__ */ _("p", {
673
+ className: "text-[10px] text-text-secondary",
674
+ children: e.label
675
+ })]
676
+ }, e.label))
677
+ }),
678
+ I.issues.length === 0 ? /* @__PURE__ */ _("div", {
679
+ className: "rounded-lg border border-status-success-border/30 bg-status-success-bg/10 p-4 text-sm text-status-success-text",
680
+ children: "No on-page issues found — this page is well optimized."
681
+ }) : /* @__PURE__ */ _("div", {
682
+ className: "space-y-2",
683
+ children: I.issues.map((e) => /* @__PURE__ */ _("div", {
684
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
685
+ children: /* @__PURE__ */ v("div", {
686
+ className: "flex items-start justify-between gap-3",
687
+ children: [/* @__PURE__ */ v("div", {
688
+ className: "flex items-start gap-3",
689
+ children: [e.impact === "high" ? /* @__PURE__ */ _(h, { className: "h-5 w-5 text-status-error-text flex-shrink-0" }) : e.impact === "medium" ? /* @__PURE__ */ _(u, { className: "h-5 w-5 text-status-warning-text flex-shrink-0" }) : /* @__PURE__ */ _(d, { className: "h-5 w-5 text-status-info-text flex-shrink-0" }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
690
+ className: "text-sm font-medium text-text-primary",
691
+ children: e.description
692
+ }), e.recommendation && /* @__PURE__ */ _("p", {
693
+ className: "text-xs text-text-secondary",
694
+ children: e.recommendation
695
+ })] })]
696
+ }), /* @__PURE__ */ _("span", {
697
+ className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary capitalize whitespace-nowrap",
698
+ children: e.category
699
+ })]
700
+ })
701
+ }, e.id))
702
+ })
703
+ ]
704
+ }) : /* @__PURE__ */ _(o, {
705
+ illustration: "empty-generic",
706
+ title: "Analyze a page",
707
+ description: "Enter a URL above and run an analysis to see its optimization score and concrete on-page fixes."
708
+ })
709
+ ]
710
+ })
711
+ ]
712
+ })
570
713
  }),
571
- /* @__PURE__ */ b(s, {
572
- open: F,
573
- onClose: () => I(!1),
714
+ /* @__PURE__ */ _(ne, {
715
+ open: Oe,
716
+ onClose: () => M(!1),
574
717
  title: "Run SEO audit",
575
718
  description: "Analyze a URL for performance, accessibility and SEO issues.",
576
719
  size: "md",
577
- footer: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("button", {
720
+ footer: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("button", {
578
721
  type: "button",
579
- onClick: () => I(!1),
722
+ onClick: () => M(!1),
580
723
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
581
724
  children: "Cancel"
582
- }), /* @__PURE__ */ x("button", {
725
+ }), /* @__PURE__ */ v("button", {
583
726
  type: "button",
584
- onClick: () => void be(),
585
- disabled: M,
727
+ onClick: () => void Re(),
728
+ disabled: A,
586
729
  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",
587
- children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), M ? "Running…" : "Run Audit"]
730
+ children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), A ? "Running…" : "Run Audit"]
588
731
  })] }),
589
- children: /* @__PURE__ */ x("div", {
732
+ children: /* @__PURE__ */ v("div", {
590
733
  className: "space-y-3",
591
- children: [/* @__PURE__ */ x("label", {
734
+ children: [/* @__PURE__ */ v("label", {
592
735
  className: "block",
593
- children: [/* @__PURE__ */ b("span", {
736
+ children: [/* @__PURE__ */ _("span", {
594
737
  className: "mb-1 block text-sm font-medium text-text-primary",
595
738
  children: "URL to audit"
596
- }), /* @__PURE__ */ b("input", {
739
+ }), /* @__PURE__ */ _("input", {
597
740
  type: "url",
598
- value: L,
599
- onChange: (e) => R(e.target.value),
741
+ value: N,
742
+ onChange: (e) => P(e.target.value),
600
743
  placeholder: "https://example.com",
601
744
  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)]"
602
745
  })]
603
- }), H && /* @__PURE__ */ b("div", {
746
+ }), L && /* @__PURE__ */ _("div", {
604
747
  className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
605
- children: H
748
+ children: L
606
749
  })]
607
750
  })
608
751
  })
@@ -610,6 +753,6 @@ var w = () => {
610
753
  });
611
754
  };
612
755
  //#endregion
613
- export { w as SeoToolsPage };
756
+ export { x as SeoToolsPage };
614
757
 
615
758
  //# sourceMappingURL=SeoToolsPage.js.map