@burdenoff/microfe-headshotmarketing 2026.1205.1 → 2026.1206.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 (144) hide show
  1. package/dist/generated/global-types.d.ts +3589 -380
  2. package/dist/generated/wspace-operations.d.ts +101 -3
  3. package/dist/generated/wspace-operations.js.map +1 -1
  4. package/dist/generated/wspace-types.d.ts +61782 -2332
  5. package/dist/generated/wspace-types.js.map +1 -1
  6. package/dist/headshotmarketing/components/EntityTagPicker.js +29 -28
  7. package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -1
  8. package/dist/headshotmarketing/components/InfluencerModals.js +264 -263
  9. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  10. package/dist/headshotmarketing/components/QueryStateBoundary.js +31 -22
  11. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -1
  12. package/dist/headshotmarketing/components/StatusBadge.js +1 -1
  13. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  14. package/dist/headshotmarketing/components/Toast.js +3 -3
  15. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  16. package/dist/headshotmarketing/components/TrackedLinksPanel.js +97 -96
  17. package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -1
  18. package/dist/headshotmarketing/hooks/useAssetUpload.js +41 -40
  19. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
  20. package/dist/headshotmarketing/pages/HomePage.js +6 -6
  21. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  22. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js +47 -46
  23. package/dist/headshotmarketing/pages/ads/AdBudgetAiPanel.js.map +1 -1
  24. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +66 -65
  25. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  26. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +273 -272
  27. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  28. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +3 -3
  29. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  30. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +125 -124
  31. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +33 -32
  33. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  34. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +108 -107
  35. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  36. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +65 -60
  37. package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -1
  38. package/dist/headshotmarketing/pages/ads/AdsPage.js +4 -4
  39. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  40. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +287 -286
  41. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  42. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +59 -54
  43. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  44. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +96 -95
  45. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  46. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js +5 -5
  47. package/dist/headshotmarketing/pages/ai/AiDecisionCard.js.map +1 -1
  48. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +179 -178
  49. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +156 -151
  51. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +222 -217
  53. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +59 -58
  55. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +152 -151
  57. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js +34 -33
  59. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js +6 -6
  61. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  62. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
  64. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +235 -234
  65. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +24 -23
  67. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  70. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +4 -4
  71. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -1
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +339 -338
  73. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  74. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js +95 -94
  75. package/dist/headshotmarketing/pages/campaigns/CampaignAiPanel.js.map +1 -1
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +82 -81
  77. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +107 -106
  79. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +104 -103
  81. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +262 -261
  83. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +68 -67
  85. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  86. package/dist/headshotmarketing/pages/content/AIToolsPage.js +204 -203
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  88. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +177 -176
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  90. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +373 -372
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  92. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  94. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +4 -4
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  96. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +51 -50
  97. package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -1
  98. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +100 -99
  99. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  100. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +134 -133
  101. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  102. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +66 -65
  103. package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -1
  104. package/dist/headshotmarketing/pages/crm/CrmActions.js +229 -228
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  106. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js +62 -61
  107. package/dist/headshotmarketing/pages/crm/DealNextActionPanel.js.map +1 -1
  108. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js +126 -125
  109. package/dist/headshotmarketing/pages/crm/LeadAiDecisionPanel.js.map +1 -1
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +93 -92
  111. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  112. package/dist/headshotmarketing/pages/crm/PipelinePage.js +5 -5
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  114. package/dist/headshotmarketing/pages/events/CreateEventPage.js +127 -126
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  116. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +76 -75
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  118. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +8 -8
  119. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  120. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +4 -4
  121. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  122. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +4 -4
  123. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  124. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  125. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  126. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +104 -103
  127. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  128. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +102 -101
  129. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  130. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +59 -58
  131. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  132. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +1 -1
  133. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  134. package/dist/headshotmarketing/pages/social-media/PostsPage.js +103 -102
  135. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  136. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +123 -122
  137. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  138. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +4 -4
  139. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  140. package/dist/headshotmarketing/utils/index.d.ts +1 -0
  141. package/dist/headshotmarketing/utils/readableError.d.ts +16 -0
  142. package/dist/headshotmarketing/utils/readableError.js +12 -0
  143. package/dist/headshotmarketing/utils/readableError.js.map +1 -0
  144. package/package.json +5 -3
@@ -6,28 +6,29 @@ import { StatCard as i } from "../../components/StatCard.js";
6
6
  import { EmptyState as a } from "../../components/EmptyState.js";
7
7
  import { DataTable as te } from "../../components/DataTable.js";
8
8
  import { Modal as ne } from "../../components/Modal.js";
9
- import { QueryStateBoundary as re } from "../../components/QueryStateBoundary.js";
10
- import { cn as o, formatNumber as s } from "../../utils/helpers.js";
11
- import { useHeadshotmarketingBootstrap as ie } from "../../hooks/useHeadshotmarketingBootstrap.js";
12
- import { toKeywordModel as ae, toSeoAuditModel as oe } from "../../utils/seoMapper.js";
9
+ import { cn as o, formatNumber as re } from "../../utils/helpers.js";
10
+ import { QueryStateBoundary as ie } from "../../components/QueryStateBoundary.js";
11
+ import { toKeywordModel as ae, toSeoAuditModel as s } from "../../utils/seoMapper.js";
12
+ import { useHeadshotmarketingBootstrap as oe } from "../../hooks/useHeadshotmarketingBootstrap.js";
13
13
  import { dataStatusLabel as se, formatCpc as ce, formatDifficulty as c, formatVolume as le, hasKeywordData as ue, normalizeSiteUrl as de } from "../../utils/seoKeywordData.js";
14
14
  import { SeoKeywordDetailModal as fe } from "./SeoKeywordDetailModal.js";
15
15
  import "../../hooks/index.js";
16
16
  import { SeoScoreGauge as pe } from "./SeoScoreGauge.js";
17
17
  import { SeoScorePanel as me } from "./SeoScorePanel.js";
18
- import { useMemo as l, useState as u } from "react";
19
- import { AlertTriangle as he, ArrowUpRight as ge, BarChart3 as _e, CheckCircle2 as ve, ExternalLink as ye, Gauge as be, Globe as xe, Hash as Se, Info as d, Minus as Ce, Play as f, Search as p, TrendingDown as we, TrendingUp as m, XCircle as h } from "lucide-react";
18
+ import { readableError as l } from "../../utils/readableError.js";
19
+ import { useMemo as he, useState as u } from "react";
20
+ import { AlertTriangle as ge, ArrowUpRight as _e, BarChart3 as ve, CheckCircle2 as ye, ExternalLink as be, Gauge as xe, Globe as Se, Hash as Ce, Info as d, Minus as we, Play as f, Search as p, TrendingDown as Te, TrendingUp as m, XCircle as h } from "lucide-react";
20
21
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
21
- import { EmphasisPanel as y, NextSteps as Te, PagePurpose as Ee, ThemedSelect as De } from "@burdenoff/fe-libs/ui";
22
+ import { EmphasisPanel as y, NextSteps as Ee, PagePurpose as De, ThemedSelect as b } from "@burdenoff/fe-libs/ui";
22
23
  // src/headshotmarketing/pages/seo/SeoToolsPage.tsx
23
24
  var Oe = {
24
25
  [r.Tracking]: {
25
26
  label: "Tracking",
26
- className: "bg-status-success-bg text-status-success-text border-status-success-border"
27
+ className: "bg-status-success-bg-subtle text-status-success-text border-status-success-border"
27
28
  },
28
29
  [r.Paused]: {
29
30
  label: "Paused",
30
- className: "bg-status-warning-bg text-status-warning-text border-status-warning-border"
31
+ className: "bg-status-warning-bg-subtle text-status-warning-text border-status-warning-border"
31
32
  },
32
33
  [r.Archived]: {
33
34
  label: "Archived",
@@ -52,13 +53,13 @@ var Oe = {
52
53
  }
53
54
  ], Ae = {
54
55
  error: h,
55
- warning: he,
56
+ warning: ge,
56
57
  info: d
57
58
  }, je = {
58
59
  error: "text-status-error-text",
59
60
  warning: "text-status-warning-text",
60
61
  info: "text-status-info-text"
61
- }, b = "https://headshotmarketing.com", Me = [
62
+ }, x = "https://headshotmarketing.com", Me = [
62
63
  {
63
64
  value: 1,
64
65
  label: "This page only"
@@ -77,7 +78,7 @@ var Oe = {
77
78
  }
78
79
  ];
79
80
  function Ne(e) {
80
- return oe({
81
+ return s({
81
82
  id: e.id,
82
83
  url: e.url,
83
84
  overallScore: e.overallScore,
@@ -100,7 +101,7 @@ function Ne(e) {
100
101
  });
101
102
  }
102
103
  var Pe = () => {
103
- let { data: r, loading: Pe, error: Fe, refetch: x } = ie(), [S, C] = u("keywords"), [w, T] = u(""), [E, D] = u("all"), [O, Ie] = u(""), [Le, { loading: k }] = t(), [Re, { loading: A }] = e(), j = n({ fetchPolicy: "cache-and-network" }), M = j.data?.headshotmarketingSEOProviderStatus ?? null, ze = M?.keywordDataAvailable ?? !1, [N, Be] = u(""), [Ve, P] = u(null), [He, F] = u(!1), [I, L] = u(b), [R, Ue] = u(1), [z, We] = u(null), [B, Ge] = u(null), [V, H] = u(null), [U, W] = u(null), [G, K] = u(null), Ke = [
104
+ let { data: r, loading: Pe, error: Fe, refetch: S } = oe(), [C, w] = u("keywords"), [T, Ie] = u(""), [E, Le] = u("all"), [D, Re] = u(""), [ze, { loading: O }] = t(), [Be, { loading: k }] = e(), A = n({ fetchPolicy: "cache-and-network" }), j = A.data?.headshotmarketingSEOProviderStatus ?? null, M = j?.keywordDataAvailable ?? !1, [N, Ve] = u(""), [He, P] = u(null), [Ue, F] = u(!1), [I, L] = u(x), [R, We] = u(1), [z, Ge] = u(null), [B, Ke] = u(null), [V, H] = u(null), [U, W] = u(null), [G, K] = u(null), qe = [
104
105
  {
105
106
  key: "keywords",
106
107
  label: "Keyword Research"
@@ -113,11 +114,11 @@ var Pe = () => {
113
114
  key: "optimization",
114
115
  label: "Content Optimization"
115
116
  }
116
- ], qe = {
117
+ ], Je = {
117
118
  up: m,
118
- down: we,
119
- stable: Ce
120
- }, q = l(() => (r?.headshotmarketingSEOKeywords.items ?? []).map((e) => ({
119
+ down: Te,
120
+ stable: we
121
+ }, q = he(() => (r?.headshotmarketingSEOKeywords.items ?? []).map((e) => ({
121
122
  ...ae(e),
122
123
  bestRank: e.bestRank ?? null,
123
124
  status: e.status,
@@ -126,9 +127,9 @@ var Pe = () => {
126
127
  dataError: e.dataError ?? null,
127
128
  lastCheckedAt: e.lastCheckedAt ?? null
128
129
  })), [r?.headshotmarketingSEOKeywords.items]), J = q.filter((e) => {
129
- let t = !w || e.keyword.toLowerCase().includes(w.toLowerCase()), n = E === "all" || e.status === E;
130
+ let t = !T || e.keyword.toLowerCase().includes(T.toLowerCase()), n = E === "all" || e.status === E;
130
131
  return t && n;
131
- }), Je = q.some((e) => e.keyword.toLowerCase() === w.trim().toLowerCase()), Y = r?.headshotmarketingSEOOverview, Ye = Y?.avgRank, Xe = Y?.avgSEOScore, Ze = Ye == null ? "—" : Ye.toFixed(1), Qe = Xe == null ? "—" : String(Math.round(Xe)), X = q.length > 0, $e = !!w.trim() || E !== "all", et = [
132
+ }), Ye = q.some((e) => e.keyword.toLowerCase() === T.trim().toLowerCase()), Y = r?.headshotmarketingSEOOverview, Xe = Y?.avgRank, Ze = Y?.avgSEOScore, Qe = Xe == null ? "—" : Xe.toFixed(1), $e = Ze == null ? "—" : String(Math.round(Ze)), X = q.length > 0, et = !!T.trim() || E !== "all", tt = [
132
133
  {
133
134
  key: "keyword",
134
135
  header: "Keyword",
@@ -153,7 +154,7 @@ var Pe = () => {
153
154
  header: "Current Rank",
154
155
  sortable: !0,
155
156
  render: (e) => {
156
- let t = qe[e.trend];
157
+ let t = Je[e.trend];
157
158
  return /* @__PURE__ */ v("div", {
158
159
  className: "flex items-center gap-1.5",
159
160
  children: [/* @__PURE__ */ _("span", {
@@ -230,7 +231,7 @@ var Pe = () => {
230
231
  children: [/* @__PURE__ */ _("span", {
231
232
  className: "truncate",
232
233
  children: e.url
233
- }), /* @__PURE__ */ _(ye, { className: "h-3 w-3 flex-shrink-0" })]
234
+ }), /* @__PURE__ */ _(be, { className: "h-3 w-3 flex-shrink-0" })]
234
235
  }) : /* @__PURE__ */ _("span", {
235
236
  className: "text-xs text-text-secondary",
236
237
  children: "-"
@@ -261,7 +262,7 @@ var Pe = () => {
261
262
  children: "Details"
262
263
  })
263
264
  }
264
- ], Z = q.find((e) => e.id === Ve) ?? null, tt = Z ? {
265
+ ], Z = q.find((e) => e.id === He) ?? null, nt = Z ? {
265
266
  id: Z.id,
266
267
  keyword: Z.keyword,
267
268
  url: Z.url,
@@ -275,9 +276,9 @@ var Pe = () => {
275
276
  dataSource: Z.dataSource,
276
277
  dataError: Z.dataError,
277
278
  lastCheckedAt: Z.lastCheckedAt
278
- } : null, nt = l(() => oe((r?.headshotmarketingSEOAudits.items ?? [])[0] ?? {
279
+ } : null, rt = he(() => s((r?.headshotmarketingSEOAudits.items ?? [])[0] ?? {
279
280
  id: "audit-default",
280
- url: b,
281
+ url: x,
281
282
  overallScore: 0,
282
283
  performanceScore: 0,
283
284
  accessibilityScore: 0,
@@ -287,53 +288,53 @@ var Pe = () => {
287
288
  completedAt: null,
288
289
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
289
290
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
290
- }), [r?.headshotmarketingSEOAudits.items]), Q = z ?? nt, rt = !!(z || (r?.headshotmarketingSEOAudits.items ?? []).length > 0), $ = (e) => e >= 80 ? "text-status-success-text" : e >= 60 ? "text-status-warning-text" : "text-status-error-text", it = async (e, t) => {
291
+ }), [r?.headshotmarketingSEOAudits.items]), Q = z ?? rt, it = !!(z || (r?.headshotmarketingSEOAudits.items ?? []).length > 0), $ = (e) => e >= 80 ? "text-status-success-text" : e >= 60 ? "text-status-warning-text" : "text-status-error-text", at = async (e, t) => {
291
292
  H(null);
292
293
  try {
293
- let n = (await Le({ variables: {
294
+ let n = (await ze({ variables: {
294
295
  url: e,
295
296
  ...t && t > 1 ? { maxPages: t } : {}
296
297
  } })).data?.headshotmarketingRunSEOAudit;
297
298
  if (!n) return H("Audit did not return a result."), null;
298
299
  let r = Ne(n);
299
- return x(), r;
300
+ return S(), r;
300
301
  } catch (e) {
301
- return H(e instanceof Error ? e.message : "Failed to run SEO audit."), null;
302
+ return H(l(e, "Failed to run SEO audit.")), null;
302
303
  }
303
- }, at = async () => {
304
+ }, ot = async () => {
304
305
  if (!I.trim()) {
305
306
  H("Enter a URL to audit.");
306
307
  return;
307
308
  }
308
- let e = await it(I.trim(), R);
309
- e && (We(e), F(!1), C("audit"));
310
- }, ot = async () => {
311
- if (!O.trim()) {
309
+ let e = await at(I.trim(), R);
310
+ e && (Ge(e), F(!1), w("audit"));
311
+ }, st = async () => {
312
+ if (!D.trim()) {
312
313
  H("Enter a URL to analyze.");
313
314
  return;
314
315
  }
315
- let e = await it(O.trim());
316
- e && Ge(e);
317
- }, st = async () => {
318
- let e = w.trim();
316
+ let e = await at(D.trim());
317
+ e && Ke(e);
318
+ }, ct = async () => {
319
+ let e = T.trim();
319
320
  if (W(null), K(null), !e) {
320
321
  W("Enter a keyword to research.");
321
322
  return;
322
323
  }
323
- if (Je) {
324
+ if (Ye) {
324
325
  K("That keyword is already being tracked.");
325
326
  return;
326
327
  }
327
328
  let t = null;
328
329
  if (N.trim() && (t = de(N), !t)) W("Enter your site's address, for example example.com, or leave it empty.");
329
330
  else try {
330
- let n = (await Re({ variables: { input: {
331
+ let n = (await Be({ variables: { input: {
331
332
  keyword: e,
332
333
  ...t ? { url: t } : {}
333
334
  } } })).data?.headshotmarketingCreateSEOKeyword;
334
- await Promise.all([x(), j.refetch()]), n && !ue(n.dataStatus) ? K(`Now tracking "${e}". ${n.dataError ?? "Keyword data is unavailable."}`) : K(`Now tracking "${e}".`);
335
+ await Promise.all([S(), A.refetch()]), n && !ue(n.dataStatus) ? K(`Now tracking "${e}". ${n.dataError ?? "Keyword data is unavailable."}`) : K(`Now tracking "${e}".`);
335
336
  } catch (e) {
336
- W(e instanceof Error ? e.message : "Failed to add keyword.");
337
+ W(l(e, "Failed to add keyword."));
337
338
  }
338
339
  };
339
340
  return /* @__PURE__ */ v(ee, {
@@ -342,14 +343,14 @@ var Pe = () => {
342
343
  actions: /* @__PURE__ */ v("button", {
343
344
  type: "button",
344
345
  onClick: () => {
345
- H(null), L(O.trim() || b), F(!0);
346
+ H(null), L(D.trim() || x), F(!0);
346
347
  },
347
348
  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",
348
349
  children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), "Run Audit"]
349
350
  }),
350
351
  children: [
351
- /* @__PURE__ */ _(Ee, { 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." }),
352
- /* @__PURE__ */ _(Te, {
352
+ /* @__PURE__ */ _(De, { 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." }),
353
+ /* @__PURE__ */ _(Ee, {
353
354
  storageKey: "headshotmarketing-seo-tools",
354
355
  steps: [
355
356
  {
@@ -357,21 +358,21 @@ var Pe = () => {
357
358
  label: "Research keywords",
358
359
  description: "Find search terms worth ranking for.",
359
360
  icon: /* @__PURE__ */ _(p, { className: "h-4 w-4" }),
360
- onClick: () => C("keywords")
361
+ onClick: () => w("keywords")
361
362
  },
362
363
  {
363
364
  id: "audit",
364
365
  label: "Run a site audit",
365
366
  description: "Surface technical issues holding pages back.",
366
- icon: /* @__PURE__ */ _(ve, { className: "h-4 w-4" }),
367
- onClick: () => C("audit")
367
+ icon: /* @__PURE__ */ _(ye, { className: "h-4 w-4" }),
368
+ onClick: () => w("audit")
368
369
  },
369
370
  {
370
371
  id: "optimization",
371
372
  label: "Optimize content",
372
373
  description: "Apply concrete on-page improvement suggestions.",
373
374
  icon: /* @__PURE__ */ _(m, { className: "h-4 w-4" }),
374
- onClick: () => C("optimization")
375
+ onClick: () => w("optimization")
375
376
  }
376
377
  ]
377
378
  }),
@@ -379,17 +380,17 @@ var Pe = () => {
379
380
  className: "border-b border-border-subtle",
380
381
  children: /* @__PURE__ */ _("div", {
381
382
  className: "flex flex-nowrap gap-6 overflow-x-auto",
382
- children: Ke.map((e) => /* @__PURE__ */ _("button", {
383
- onClick: () => C(e.key),
384
- className: o("whitespace-nowrap pb-3 text-sm font-medium transition-colors border-b-2", S === e.key ? "border-primary text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
383
+ children: qe.map((e) => /* @__PURE__ */ _("button", {
384
+ onClick: () => w(e.key),
385
+ className: o("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"),
385
386
  children: e.label
386
387
  }, e.key))
387
388
  })
388
389
  }),
389
- /* @__PURE__ */ _(re, {
390
+ /* @__PURE__ */ _(ie, {
390
391
  loading: Pe,
391
392
  error: Fe,
392
- onRetry: x,
393
+ onRetry: S,
393
394
  hasData: !!r,
394
395
  children: /* @__PURE__ */ v("div", {
395
396
  className: "space-y-6",
@@ -399,28 +400,28 @@ var Pe = () => {
399
400
  children: [
400
401
  /* @__PURE__ */ _(i, {
401
402
  title: "Tracked Keywords",
402
- value: s(Y?.totalKeywords ?? 0),
403
- icon: /* @__PURE__ */ _(Se, { className: "h-5 w-5" }),
403
+ value: re(Y?.totalKeywords ?? 0),
404
+ icon: /* @__PURE__ */ _(Ce, { className: "h-5 w-5" }),
404
405
  featured: !0
405
406
  }),
406
407
  /* @__PURE__ */ _(i, {
407
408
  title: "Avg Rank",
408
- value: Ze,
409
- icon: /* @__PURE__ */ _(_e, { className: "h-5 w-5" })
409
+ value: Qe,
410
+ icon: /* @__PURE__ */ _(ve, { className: "h-5 w-5" })
410
411
  }),
411
412
  /* @__PURE__ */ _(i, {
412
413
  title: "Keywords Improved",
413
- value: s(Y?.keywordsImproved ?? 0),
414
- icon: /* @__PURE__ */ _(ge, { className: "h-5 w-5" })
414
+ value: re(Y?.keywordsImproved ?? 0),
415
+ icon: /* @__PURE__ */ _(_e, { className: "h-5 w-5" })
415
416
  }),
416
417
  /* @__PURE__ */ _(i, {
417
418
  title: "Avg SEO Score",
418
- value: Qe,
419
- icon: /* @__PURE__ */ _(be, { className: "h-5 w-5" })
419
+ value: $e,
420
+ icon: /* @__PURE__ */ _(xe, { className: "h-5 w-5" })
420
421
  })
421
422
  ]
422
423
  }) }),
423
- S === "keywords" && /* @__PURE__ */ v("div", {
424
+ C === "keywords" && /* @__PURE__ */ v("div", {
424
425
  className: "space-y-4",
425
426
  children: [
426
427
  /* @__PURE__ */ v("div", {
@@ -430,15 +431,15 @@ var Pe = () => {
430
431
  className: "relative flex-1 min-w-[14rem]",
431
432
  children: [/* @__PURE__ */ _(p, { className: "absolute start-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
432
433
  type: "text",
433
- value: w,
434
- onChange: (e) => T(e.target.value),
434
+ value: T,
435
+ onChange: (e) => Ie(e.target.value),
435
436
  placeholder: "Search keywords or enter a new keyword to research...",
436
437
  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)]"
437
438
  })]
438
439
  }),
439
- /* @__PURE__ */ _(De, {
440
+ /* @__PURE__ */ _(b, {
440
441
  value: E,
441
- onChange: (e) => D(e.target.value),
442
+ onChange: (e) => Le(e.target.value),
442
443
  "aria-label": "Filter keywords by status",
443
444
  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)]",
444
445
  children: ke.map((e) => /* @__PURE__ */ _("option", {
@@ -449,17 +450,17 @@ var Pe = () => {
449
450
  /* @__PURE__ */ _("input", {
450
451
  type: "url",
451
452
  value: N,
452
- onChange: (e) => Be(e.target.value),
453
+ onChange: (e) => Ve(e.target.value),
453
454
  placeholder: "Your site (optional), e.g. example.com",
454
455
  "aria-label": "Your site URL for rank tracking",
455
456
  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)] sm:w-56"
456
457
  }),
457
458
  /* @__PURE__ */ _("button", {
458
459
  type: "button",
459
- onClick: () => void st(),
460
- disabled: A || !w.trim(),
460
+ onClick: () => void ct(),
461
+ disabled: k || !T.trim(),
461
462
  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",
462
- children: A ? "Researching…" : "Research"
463
+ children: k ? "Researching…" : "Research"
463
464
  })
464
465
  ]
465
466
  }),
@@ -471,10 +472,10 @@ var Pe = () => {
471
472
  className: "rounded-md border border-status-success-border/30 bg-status-success-bg/10 px-3 py-2 text-sm text-status-success-text",
472
473
  children: G
473
474
  }),
474
- M && /* @__PURE__ */ _("div", {
475
+ j && /* @__PURE__ */ _("div", {
475
476
  "data-testid": "seo-provider-status",
476
- className: o("rounded-md border px-3 py-2 text-sm", ze ? "border-border-subtle bg-bg-sunken text-text-secondary" : "border-status-warning-border/30 bg-status-warning-bg/10 text-status-warning-text"),
477
- children: ze ? `Keyword data from ${M.provider ?? "the configured provider"}. Ranks are checked every ${M.rankCheckIntervalHours} hours for keywords with a site URL. ${M.callsThisMonth} of ${M.monthlyCallCap} lookups used this month.` : `${M.unavailableReason ?? "Keyword data is unavailable."} Volume, difficulty and CPC show "—" (no data) until data is available.`
477
+ className: o("rounded-md border px-3 py-2 text-sm", M ? "border-border-subtle bg-bg-sunken text-text-secondary" : "border-status-warning-border/30 bg-status-warning-bg/10 text-status-warning-text"),
478
+ children: M ? `Keyword data from ${j.provider ?? "the configured provider"}. Ranks are checked every ${j.rankCheckIntervalHours} hours for keywords with a site URL. ${j.callsThisMonth} of ${j.monthlyCallCap} lookups used this month.` : `${j.unavailableReason ?? "Keyword data is unavailable."} Volume, difficulty and CPC show "—" (no data) until data is available.`
478
479
  }),
479
480
  /* @__PURE__ */ v("div", {
480
481
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
@@ -493,17 +494,17 @@ var Pe = () => {
493
494
  illustration: X ? "empty-search" : "empty-generic",
494
495
  title: X ? "No keywords match your filters" : "No keywords yet",
495
496
  description: X ? "Try a different search term or status filter." : "Research a keyword above to start tracking its search volume, difficulty and ranking opportunities.",
496
- action: X && $e ? /* @__PURE__ */ _("button", {
497
+ action: X && et ? /* @__PURE__ */ _("button", {
497
498
  type: "button",
498
499
  onClick: () => {
499
- T(""), D("all");
500
+ Ie(""), Le("all");
500
501
  },
501
502
  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",
502
503
  children: "Clear filters"
503
504
  }) : void 0
504
505
  }) : /* @__PURE__ */ _(te, {
505
506
  data: J,
506
- columns: et,
507
+ columns: tt,
507
508
  pageSize: 10,
508
509
  onRowClick: (e) => P(e.id)
509
510
  })]
@@ -511,19 +512,19 @@ var Pe = () => {
511
512
  className: "lg:col-span-1",
512
513
  children: /* @__PURE__ */ _(me, {
513
514
  audit: Q,
514
- hasAudit: rt,
515
- onViewIssues: () => C("audit"),
515
+ hasAudit: it,
516
+ onViewIssues: () => w("audit"),
516
517
  onRunAudit: () => {
517
- H(null), L(b), F(!0);
518
+ H(null), L(x), F(!0);
518
519
  }
519
520
  })
520
521
  })]
521
522
  })
522
523
  ]
523
524
  }),
524
- S === "audit" && /* @__PURE__ */ _("div", {
525
+ C === "audit" && /* @__PURE__ */ _("div", {
525
526
  className: "space-y-6",
526
- children: rt ? /* @__PURE__ */ v(g, { children: [
527
+ children: it ? /* @__PURE__ */ v(g, { children: [
527
528
  /* @__PURE__ */ _("div", {
528
529
  className: "flex items-center justify-between gap-2",
529
530
  children: /* @__PURE__ */ v("p", {
@@ -660,7 +661,7 @@ var Pe = () => {
660
661
  }), /* @__PURE__ */ _("div", {
661
662
  className: "flex items-center gap-2",
662
663
  children: /* @__PURE__ */ _("span", {
663
- className: o("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"),
664
+ className: o("rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", e.impact === "high" ? "bg-status-error-bg-subtle text-status-error-text" : e.impact === "medium" ? "bg-status-warning-bg-subtle text-status-warning-text" : "bg-status-info-bg-subtle text-status-info-text"),
664
665
  children: e.impact
665
666
  })
666
667
  })]
@@ -692,33 +693,33 @@ var Pe = () => {
692
693
  action: /* @__PURE__ */ v("button", {
693
694
  type: "button",
694
695
  onClick: () => {
695
- H(null), L(b), F(!0);
696
+ H(null), L(x), F(!0);
696
697
  },
697
698
  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",
698
699
  children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), "Run Audit"]
699
700
  })
700
701
  })
701
702
  }),
702
- S === "optimization" && /* @__PURE__ */ v("div", {
703
+ C === "optimization" && /* @__PURE__ */ v("div", {
703
704
  className: "space-y-6",
704
705
  children: [
705
706
  /* @__PURE__ */ v("div", {
706
707
  className: "flex flex-wrap gap-2",
707
708
  children: [/* @__PURE__ */ v("div", {
708
709
  className: "relative flex-1 min-w-[16rem]",
709
- children: [/* @__PURE__ */ _(xe, { className: "absolute start-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
710
+ children: [/* @__PURE__ */ _(Se, { className: "absolute start-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
710
711
  type: "url",
711
- value: O,
712
- onChange: (e) => Ie(e.target.value),
712
+ value: D,
713
+ onChange: (e) => Re(e.target.value),
713
714
  placeholder: "Enter URL to analyze (e.g. https://headshotmarketing.com/blog/tips)",
714
715
  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)]"
715
716
  })]
716
717
  }), /* @__PURE__ */ _("button", {
717
718
  type: "button",
718
- onClick: () => void ot(),
719
- disabled: k || !O.trim(),
719
+ onClick: () => void st(),
720
+ disabled: O || !D.trim(),
720
721
  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",
721
- children: k ? "Analyzing…" : "Analyze"
722
+ children: O ? "Analyzing…" : "Analyze"
722
723
  })]
723
724
  }),
724
725
  V && /* @__PURE__ */ _("div", {
@@ -789,7 +790,7 @@ var Pe = () => {
789
790
  className: "flex items-start justify-between gap-3",
790
791
  children: [/* @__PURE__ */ v("div", {
791
792
  className: "flex items-start gap-3",
792
- children: [e.impact === "high" ? /* @__PURE__ */ _(h, { className: "h-5 w-5 text-status-error-text flex-shrink-0" }) : e.impact === "medium" ? /* @__PURE__ */ _(he, { 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", {
793
+ children: [e.impact === "high" ? /* @__PURE__ */ _(h, { className: "h-5 w-5 text-status-error-text flex-shrink-0" }) : e.impact === "medium" ? /* @__PURE__ */ _(ge, { 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", {
793
794
  className: "text-sm font-medium text-text-primary",
794
795
  children: e.description
795
796
  }), e.recommendation && /* @__PURE__ */ _("p", {
@@ -815,7 +816,7 @@ var Pe = () => {
815
816
  })
816
817
  }),
817
818
  /* @__PURE__ */ _(ne, {
818
- open: He,
819
+ open: Ue,
819
820
  onClose: () => F(!1),
820
821
  title: "Run SEO audit",
821
822
  description: "Analyze a URL for performance, accessibility and SEO issues.",
@@ -827,10 +828,10 @@ var Pe = () => {
827
828
  children: "Cancel"
828
829
  }), /* @__PURE__ */ v("button", {
829
830
  type: "button",
830
- onClick: () => void at(),
831
- disabled: k,
831
+ onClick: () => void ot(),
832
+ disabled: O,
832
833
  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",
833
- children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), k ? "Running…" : "Run Audit"]
834
+ children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), O ? "Running…" : "Run Audit"]
834
835
  })] }),
835
836
  children: /* @__PURE__ */ v("div", {
836
837
  className: "space-y-3",
@@ -855,9 +856,9 @@ var Pe = () => {
855
856
  className: "mb-1 block text-sm font-medium text-text-primary",
856
857
  children: "Pages to crawl"
857
858
  }),
858
- /* @__PURE__ */ _(De, {
859
+ /* @__PURE__ */ _(b, {
859
860
  value: R,
860
- onChange: (e) => Ue(Number(e.target.value)),
861
+ onChange: (e) => We(Number(e.target.value)),
861
862
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
862
863
  children: Me.map((e) => /* @__PURE__ */ _("option", {
863
864
  value: e.value,
@@ -878,15 +879,15 @@ var Pe = () => {
878
879
  })
879
880
  }),
880
881
  /* @__PURE__ */ _(fe, {
881
- keyword: tt,
882
- provider: M ? {
883
- available: M.keywordDataAvailable,
884
- unavailableReason: M.unavailableReason ?? null,
885
- rankCheckIntervalHours: M.rankCheckIntervalHours
882
+ keyword: nt,
883
+ provider: j ? {
884
+ available: j.keywordDataAvailable,
885
+ unavailableReason: j.unavailableReason ?? null,
886
+ rankCheckIntervalHours: j.rankCheckIntervalHours
886
887
  } : null,
887
888
  onClose: () => P(null),
888
889
  onChanged: () => {
889
- x(), j.refetch();
890
+ S(), A.refetch();
890
891
  }
891
892
  })
892
893
  ]