@burdenoff/microfe-headshotmarketing 2026.801.3 → 2026.827.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 (60) hide show
  1. package/dist/generated/wspace-operations.d.ts +44 -0
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +30 -4
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/headshotmarketing/components/InfluencerModals.d.ts.map +1 -1
  6. package/dist/headshotmarketing/components/InfluencerModals.js +201 -214
  7. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  8. package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
  9. package/dist/headshotmarketing/components/StatusBadge.js +2 -0
  10. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  11. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +59 -29
  12. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  13. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.d.ts.map +1 -1
  14. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +389 -215
  15. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  16. package/dist/headshotmarketing/pages/content/AIExecutionLedger.d.ts +26 -0
  17. package/dist/headshotmarketing/pages/content/AIExecutionLedger.d.ts.map +1 -0
  18. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +215 -0
  19. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -0
  20. package/dist/headshotmarketing/pages/content/AIToolsPage.d.ts.map +1 -1
  21. package/dist/headshotmarketing/pages/content/AIToolsPage.js +396 -379
  22. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/content/AssetLibraryPage.d.ts.map +1 -1
  24. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +436 -343
  25. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  26. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.d.ts.map +1 -1
  27. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +233 -223
  28. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/content/ContentPage.js +4 -4
  30. package/dist/headshotmarketing/pages/crm/ContactsPage.d.ts.map +1 -1
  31. package/dist/headshotmarketing/pages/crm/ContactsPage.js +339 -278
  32. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  33. package/dist/headshotmarketing/pages/crm/CrmPage.d.ts.map +1 -1
  34. package/dist/headshotmarketing/pages/crm/CrmPage.js +118 -112
  35. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  36. package/dist/headshotmarketing/pages/crm/CrmSubNav.d.ts +14 -0
  37. package/dist/headshotmarketing/pages/crm/CrmSubNav.d.ts.map +1 -0
  38. package/dist/headshotmarketing/pages/crm/CrmSubNav.js +51 -0
  39. package/dist/headshotmarketing/pages/crm/CrmSubNav.js.map +1 -0
  40. package/dist/headshotmarketing/pages/crm/LeadsPage.d.ts.map +1 -1
  41. package/dist/headshotmarketing/pages/crm/LeadsPage.js +122 -116
  42. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/crm/PipelinePage.d.ts.map +1 -1
  44. package/dist/headshotmarketing/pages/crm/PipelinePage.js +192 -183
  45. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  46. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.d.ts.map +1 -1
  47. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +184 -162
  48. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/influencers/InfluencersPage.d.ts.map +1 -1
  50. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +8 -14
  51. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  52. package/dist/headshotmarketing/types/index.d.ts +9 -4
  53. package/dist/headshotmarketing/types/index.d.ts.map +1 -1
  54. package/dist/headshotmarketing/utils/contentMapper.js +1 -1
  55. package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
  56. package/dist/headshotmarketing/utils/influencerMapper.d.ts +16 -2
  57. package/dist/headshotmarketing/utils/influencerMapper.d.ts.map +1 -1
  58. package/dist/headshotmarketing/utils/influencerMapper.js +56 -40
  59. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  60. package/package.json +2 -2
@@ -11,8 +11,9 @@ import "../../components/index.js";
11
11
  import { useHeadshotmarketingBootstrap as d } from "../../hooks/useHeadshotmarketingBootstrap.js";
12
12
  import { usePagination as f } from "../../hooks/usePagination.js";
13
13
  import { toContactModel as p } from "../../utils/crmMapper.js";
14
- import { ContactActionsMenu as m } from "./CrmActions.js";
15
- import { useEffect as h, useState as g } from "react";
14
+ import { CrmSubNav as m } from "./CrmSubNav.js";
15
+ import { ContactActionsMenu as h } from "./CrmActions.js";
16
+ import { useEffect as ee, useState as g } from "react";
16
17
  import { Building2 as _, Download as v, LayoutGrid as y, List as b, Mail as x, Phone as S, UserPlus as C } from "lucide-react";
17
18
  import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
18
19
  import { EmphasisPanel as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
@@ -48,24 +49,26 @@ function j(e) {
48
49
  i.href = r, i.download = `contacts-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r);
49
50
  }
50
51
  var M = 12, N = () => {
51
- let { navigate: k, basePath: A } = e(), { data: N, loading: P, error: F, refetch: I } = d(), [L, R] = g(""), [z, B] = g("all"), [V, H] = g("grid"), U = f({ initialPageSize: M }), W = (N?.headshotmarketingContacts.items ?? []).map((e) => p(e)), G = W.filter((e) => {
52
- let t = !L || `${e.firstName} ${e.lastName} ${e.email} ${e.company}`.toLowerCase().includes(L.toLowerCase()), n = z === "all" || e.status === z;
53
- return t && n;
54
- }), { setTotal: K } = U;
55
- h(() => {
56
- K(G.length);
57
- }, [G.length, K]);
58
- let q = G.slice((U.page - 1) * U.pageSize, U.page * U.pageSize), J = (e, t) => `${e[0] || ""}${t[0] || ""}`.toUpperCase(), Y = W.filter((e) => e.status === "qualified").length, X = W.filter((e) => e.status === "converted").length, Z = W.length > 0 ? Math.round(W.reduce((e, t) => e + t.score, 0) / W.length) : 0;
52
+ let { navigate: k, basePath: A } = e(), { data: N, loading: P, error: F, refetch: I } = d(), [L, R] = g(""), [z, B] = g("all"), [V, H] = g("all"), [U, W] = g("grid"), G = f({ initialPageSize: M }), K = (N?.headshotmarketingContacts.items ?? []).map((e) => p(e)), q = Array.from(new Set(K.flatMap((e) => e.tags))).sort(), J = K.filter((e) => {
53
+ let t = !L || `${e.firstName} ${e.lastName} ${e.email} ${e.company} ${e.title}`.toLowerCase().includes(L.toLowerCase()), n = z === "all" || e.status === z, r = V === "all" || e.tags.includes(V);
54
+ return t && n && r;
55
+ }), { setTotal: Y } = G;
56
+ ee(() => {
57
+ Y(J.length);
58
+ }, [J.length, Y]);
59
+ let X = J.slice((G.page - 1) * G.pageSize, G.page * G.pageSize), Z = (e, t) => `${e[0] || ""}${t[0] || ""}`.toUpperCase(), Q = K.filter((e) => e.status === "qualified").length, te = K.filter((e) => e.status === "converted").length, ne = K.length > 0 ? Math.round(K.reduce((e, t) => e + t.score, 0) / K.length) : 0, $ = /* @__PURE__ */ new Date();
60
+ $.setDate(1), $.setHours(0, 0, 0, 0);
61
+ let re = K.filter((e) => new Date(e.createdAt).getTime() >= $.getTime()).length;
59
62
  return /* @__PURE__ */ E(i, {
60
63
  title: "Contacts",
61
64
  description: "Manage your contacts database",
62
65
  actions: /* @__PURE__ */ E("div", {
63
66
  className: "flex flex-wrap items-center gap-2",
64
67
  children: [/* @__PURE__ */ E("button", {
65
- onClick: () => j(G),
66
- disabled: G.length === 0,
68
+ onClick: () => j(J),
69
+ disabled: J.length === 0,
67
70
  className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:cursor-not-allowed disabled:opacity-50",
68
- title: G.length === 0 ? "No contacts to export" : "Download the current contacts as a CSV file",
71
+ title: J.length === 0 ? "No contacts to export" : "Download the current contacts as a CSV file",
69
72
  children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Export"]
70
73
  }), /* @__PURE__ */ E("button", {
71
74
  onClick: () => k(A + "/crm/contacts/new"),
@@ -73,287 +76,345 @@ var M = 12, N = () => {
73
76
  children: [/* @__PURE__ */ T(C, { className: "h-4 w-4" }), "Add Contact"]
74
77
  })]
75
78
  }),
76
- children: [/* @__PURE__ */ T(O, { children: "Your full contacts database. Search, filter by status and switch between grid and table views to find anyone fast — then drill in to see their details, tags and where they are in your funnel." }), /* @__PURE__ */ E(l, {
77
- loading: P,
78
- error: F,
79
- onRetry: I,
80
- hasData: !!N,
81
- children: [
82
- /* @__PURE__ */ T(D, { children: /* @__PURE__ */ E("div", {
83
- className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
84
- children: [
85
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
86
- className: "text-xs text-text-secondary",
87
- children: "Total Contacts"
88
- }), /* @__PURE__ */ T("p", {
89
- className: "text-2xl font-semibold text-text-primary",
90
- children: r(W.length)
91
- })] }),
92
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
93
- className: "text-xs text-text-secondary",
94
- children: "Qualified"
95
- }), /* @__PURE__ */ T("p", {
96
- className: "text-2xl font-semibold text-text-primary",
97
- children: r(Y)
98
- })] }),
99
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
100
- className: "text-xs text-text-secondary",
101
- children: "Converted"
102
- }), /* @__PURE__ */ T("p", {
103
- className: "text-2xl font-semibold text-text-primary",
104
- children: r(X)
105
- })] }),
106
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
107
- className: "text-xs text-text-secondary",
108
- children: "Avg Score"
109
- }), /* @__PURE__ */ T("p", {
110
- className: "text-2xl font-semibold text-text-primary",
111
- children: Z
112
- })] })
113
- ]
114
- }) }),
115
- /* @__PURE__ */ T(c, {
116
- searchValue: L,
117
- onSearchChange: R,
118
- searchPlaceholder: "Search contacts...",
119
- filters: /* @__PURE__ */ E("select", {
120
- value: z,
121
- onChange: (e) => B(e.target.value),
122
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
79
+ children: [
80
+ /* @__PURE__ */ T(O, { children: "Your full contacts database. Search, filter by status and switch between grid and table views to find anyone fast — then drill in to see their details, tags and where they are in your funnel." }),
81
+ /* @__PURE__ */ T(m, {
82
+ active: "contacts",
83
+ basePath: A,
84
+ navigate: k
85
+ }),
86
+ /* @__PURE__ */ E(l, {
87
+ loading: P,
88
+ error: F,
89
+ onRetry: I,
90
+ hasData: !!N,
91
+ children: [
92
+ /* @__PURE__ */ T(D, { children: /* @__PURE__ */ E("div", {
93
+ className: "grid grid-cols-2 gap-4 sm:grid-cols-5",
123
94
  children: [
124
- /* @__PURE__ */ T("option", {
125
- value: "all",
126
- children: "All Statuses"
127
- }),
128
- /* @__PURE__ */ T("option", {
129
- value: "new",
130
- children: "New"
131
- }),
132
- /* @__PURE__ */ T("option", {
133
- value: "contacted",
134
- children: "Contacted"
135
- }),
136
- /* @__PURE__ */ T("option", {
137
- value: "qualified",
95
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
96
+ className: "text-xs text-text-secondary",
97
+ children: "Total Contacts"
98
+ }), /* @__PURE__ */ T("p", {
99
+ className: "text-2xl font-semibold text-text-primary",
100
+ children: r(K.length)
101
+ })] }),
102
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
103
+ className: "text-xs text-text-secondary",
104
+ children: "New This Month"
105
+ }), /* @__PURE__ */ T("p", {
106
+ className: "text-2xl font-semibold text-text-primary",
107
+ children: r(re)
108
+ })] }),
109
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
110
+ className: "text-xs text-text-secondary",
138
111
  children: "Qualified"
139
- }),
140
- /* @__PURE__ */ T("option", {
141
- value: "converted",
112
+ }), /* @__PURE__ */ T("p", {
113
+ className: "text-2xl font-semibold text-text-primary",
114
+ children: r(Q)
115
+ })] }),
116
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
117
+ className: "text-xs text-text-secondary",
142
118
  children: "Converted"
143
- }),
144
- /* @__PURE__ */ T("option", {
145
- value: "lost",
146
- children: "Lost"
147
- })
119
+ }), /* @__PURE__ */ T("p", {
120
+ className: "text-2xl font-semibold text-text-primary",
121
+ children: r(te)
122
+ })] }),
123
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
124
+ className: "text-xs text-text-secondary",
125
+ children: "Avg Score"
126
+ }), /* @__PURE__ */ T("p", {
127
+ className: "text-2xl font-semibold text-text-primary",
128
+ children: ne
129
+ })] })
148
130
  ]
131
+ }) }),
132
+ /* @__PURE__ */ T(c, {
133
+ searchValue: L,
134
+ onSearchChange: R,
135
+ searchPlaceholder: "Search contacts...",
136
+ filters: /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("select", {
137
+ value: z,
138
+ onChange: (e) => B(e.target.value),
139
+ "aria-label": "Filter by status",
140
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
141
+ children: [
142
+ /* @__PURE__ */ T("option", {
143
+ value: "all",
144
+ children: "All Statuses"
145
+ }),
146
+ /* @__PURE__ */ T("option", {
147
+ value: "new",
148
+ children: "New"
149
+ }),
150
+ /* @__PURE__ */ T("option", {
151
+ value: "contacted",
152
+ children: "Contacted"
153
+ }),
154
+ /* @__PURE__ */ T("option", {
155
+ value: "qualified",
156
+ children: "Qualified"
157
+ }),
158
+ /* @__PURE__ */ T("option", {
159
+ value: "converted",
160
+ children: "Converted"
161
+ }),
162
+ /* @__PURE__ */ T("option", {
163
+ value: "lost",
164
+ children: "Lost"
165
+ })
166
+ ]
167
+ }), /* @__PURE__ */ E("select", {
168
+ value: V,
169
+ onChange: (e) => H(e.target.value),
170
+ "aria-label": "Filter by tag",
171
+ disabled: q.length === 0,
172
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary disabled:cursor-not-allowed disabled:opacity-60",
173
+ children: [/* @__PURE__ */ T("option", {
174
+ value: "all",
175
+ children: q.length === 0 ? "No tags yet" : "All Tags"
176
+ }), q.map((e) => /* @__PURE__ */ T("option", {
177
+ value: e,
178
+ children: e
179
+ }, e))]
180
+ })] }),
181
+ actions: /* @__PURE__ */ E("div", {
182
+ className: "flex items-center border border-border-subtle rounded-md",
183
+ children: [/* @__PURE__ */ T("button", {
184
+ onClick: () => W("grid"),
185
+ "aria-label": "Grid view",
186
+ className: t("p-2 rounded-l-md", U === "grid" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"),
187
+ children: /* @__PURE__ */ T(y, { className: "h-4 w-4" })
188
+ }), /* @__PURE__ */ T("button", {
189
+ onClick: () => W("table"),
190
+ "aria-label": "Table view",
191
+ className: t("p-2 rounded-r-md", U === "table" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"),
192
+ children: /* @__PURE__ */ T(b, { className: "h-4 w-4" })
193
+ })]
194
+ })
149
195
  }),
150
- actions: /* @__PURE__ */ E("div", {
151
- className: "flex items-center border border-border-subtle rounded-md",
152
- children: [/* @__PURE__ */ T("button", {
153
- onClick: () => H("grid"),
154
- "aria-label": "Grid view",
155
- className: t("p-2 rounded-l-md", V === "grid" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"),
156
- children: /* @__PURE__ */ T(y, { className: "h-4 w-4" })
157
- }), /* @__PURE__ */ T("button", {
158
- onClick: () => H("table"),
159
- "aria-label": "Table view",
160
- className: t("p-2 rounded-r-md", V === "table" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"),
161
- children: /* @__PURE__ */ T(b, { className: "h-4 w-4" })
162
- })]
163
- })
164
- }),
165
- G.length === 0 ? /* @__PURE__ */ T(s, {
166
- illustration: W.length === 0 ? "empty-people" : "empty-search",
167
- title: W.length === 0 ? "No contacts yet" : "No contacts match your filters",
168
- description: W.length === 0 ? "Add your first contact to start building your database." : "Try a different search term or status.",
169
- action: W.length === 0 ? /* @__PURE__ */ E("button", {
170
- onClick: () => k(A + "/crm/contacts/new"),
171
- 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",
172
- children: [/* @__PURE__ */ T(C, { className: "h-4 w-4" }), "Add Contact"]
173
- }) : void 0
174
- }) : V === "grid" ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
175
- className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
176
- children: q.map((e) => /* @__PURE__ */ E("div", {
177
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 transition-colors hover:bg-bg-sunken/50",
178
- children: [
179
- /* @__PURE__ */ E("div", {
180
- className: "flex items-start gap-3",
181
- children: [/* @__PURE__ */ T("div", {
182
- className: "h-10 w-10 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-sm font-semibold text-primary",
183
- children: J(e.firstName, e.lastName)
184
- }), /* @__PURE__ */ E("div", {
185
- className: "flex-1 min-w-0",
186
- children: [/* @__PURE__ */ E("div", {
187
- className: "flex items-center justify-between gap-2",
188
- children: [/* @__PURE__ */ E("p", {
189
- className: "text-sm font-medium text-text-primary",
190
- children: [
191
- e.firstName,
192
- " ",
193
- e.lastName
194
- ]
195
- }), /* @__PURE__ */ E("div", {
196
- className: "flex items-center gap-1",
197
- children: [/* @__PURE__ */ T(o, { status: e.status }), /* @__PURE__ */ T(m, {
198
- contact: e,
199
- onChanged: I
196
+ J.length === 0 ? /* @__PURE__ */ T(s, {
197
+ illustration: K.length === 0 ? "empty-people" : "empty-search",
198
+ title: K.length === 0 ? "No contacts yet" : "No contacts match your filters",
199
+ description: K.length === 0 ? "Add your first contact to start building your database." : "Try a different search term, status or tag.",
200
+ action: K.length === 0 ? /* @__PURE__ */ E("button", {
201
+ onClick: () => k(A + "/crm/contacts/new"),
202
+ 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",
203
+ children: [/* @__PURE__ */ T(C, { className: "h-4 w-4" }), "Add Contact"]
204
+ }) : void 0
205
+ }) : U === "grid" ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
206
+ className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
207
+ children: X.map((e) => /* @__PURE__ */ E("div", {
208
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 transition-colors hover:bg-bg-sunken/50",
209
+ children: [
210
+ /* @__PURE__ */ E("div", {
211
+ className: "flex items-start gap-3",
212
+ children: [/* @__PURE__ */ T("div", {
213
+ className: "h-10 w-10 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-sm font-semibold text-primary",
214
+ children: Z(e.firstName, e.lastName)
215
+ }), /* @__PURE__ */ E("div", {
216
+ className: "flex-1 min-w-0",
217
+ children: [/* @__PURE__ */ E("div", {
218
+ className: "flex items-center justify-between gap-2",
219
+ children: [/* @__PURE__ */ E("p", {
220
+ className: "text-sm font-medium text-text-primary",
221
+ children: [
222
+ e.firstName,
223
+ " ",
224
+ e.lastName
225
+ ]
226
+ }), /* @__PURE__ */ E("div", {
227
+ className: "flex items-center gap-1",
228
+ children: [/* @__PURE__ */ T(o, { status: e.status }), /* @__PURE__ */ T(h, {
229
+ contact: e,
230
+ onChanged: I
231
+ })]
200
232
  })]
233
+ }), /* @__PURE__ */ T("p", {
234
+ className: "text-xs text-text-secondary mt-0.5",
235
+ children: e.title
201
236
  })]
202
- }), /* @__PURE__ */ T("p", {
203
- className: "text-xs text-text-secondary mt-0.5",
204
- children: e.title
205
237
  })]
206
- })]
207
- }),
208
- /* @__PURE__ */ E("div", {
209
- className: "mt-3 space-y-1.5",
210
- children: [
211
- /* @__PURE__ */ E("div", {
212
- className: "flex items-center gap-2 text-xs text-text-secondary",
213
- children: [/* @__PURE__ */ T(x, { className: "h-3 w-3" }), /* @__PURE__ */ T("span", {
214
- className: "truncate",
215
- children: e.email
238
+ }),
239
+ /* @__PURE__ */ E("div", {
240
+ className: "mt-3 space-y-1.5",
241
+ children: [
242
+ /* @__PURE__ */ E("div", {
243
+ className: "flex items-center gap-2 text-xs text-text-secondary",
244
+ children: [/* @__PURE__ */ T(x, { className: "h-3 w-3" }), /* @__PURE__ */ T("span", {
245
+ className: "truncate",
246
+ children: e.email
247
+ })]
248
+ }),
249
+ /* @__PURE__ */ E("div", {
250
+ className: "flex items-center gap-2 text-xs text-text-secondary",
251
+ children: [/* @__PURE__ */ T(S, { className: "h-3 w-3" }), /* @__PURE__ */ T("span", { children: e.phone })]
252
+ }),
253
+ /* @__PURE__ */ E("div", {
254
+ className: "flex items-center gap-2 text-xs text-text-secondary",
255
+ children: [/* @__PURE__ */ T(_, { className: "h-3 w-3" }), /* @__PURE__ */ T("span", { children: e.company })]
256
+ })
257
+ ]
258
+ }),
259
+ /* @__PURE__ */ E("div", {
260
+ className: "mt-3 pt-3 border-t border-border-subtle flex items-center justify-between",
261
+ children: [/* @__PURE__ */ E("div", {
262
+ className: "flex items-center gap-1",
263
+ children: [/* @__PURE__ */ T("span", {
264
+ className: "text-xs text-text-secondary",
265
+ children: "Score:"
266
+ }), /* @__PURE__ */ T("span", {
267
+ className: t("text-xs font-semibold", e.score >= 80 ? "text-status-success-text" : e.score >= 50 ? "text-status-warning-text" : "text-status-error-text"),
268
+ children: e.score
216
269
  })]
217
- }),
218
- /* @__PURE__ */ E("div", {
219
- className: "flex items-center gap-2 text-xs text-text-secondary",
220
- children: [/* @__PURE__ */ T(S, { className: "h-3 w-3" }), /* @__PURE__ */ T("span", { children: e.phone })]
221
- }),
222
- /* @__PURE__ */ E("div", {
223
- className: "flex items-center gap-2 text-xs text-text-secondary",
224
- children: [/* @__PURE__ */ T(_, { className: "h-3 w-3" }), /* @__PURE__ */ T("span", { children: e.company })]
225
- })
226
- ]
227
- }),
228
- /* @__PURE__ */ E("div", {
229
- className: "mt-3 pt-3 border-t border-border-subtle flex items-center justify-between",
230
- children: [/* @__PURE__ */ E("div", {
231
- className: "flex items-center gap-1",
232
- children: [/* @__PURE__ */ T("span", {
270
+ }), /* @__PURE__ */ T("div", {
271
+ className: "flex gap-1",
272
+ children: e.tags.slice(0, 2).map((e) => /* @__PURE__ */ T("span", {
273
+ className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
274
+ children: e
275
+ }, e))
276
+ })]
277
+ })
278
+ ]
279
+ }, e.id))
280
+ }), /* @__PURE__ */ T(u, {
281
+ page: G.page,
282
+ pageSize: G.pageSize,
283
+ total: G.total,
284
+ onPageChange: G.setPage,
285
+ onPageSizeChange: G.setPageSize,
286
+ disabled: P,
287
+ hideWhenSinglePage: !0
288
+ })] }) : /* @__PURE__ */ T(a, {
289
+ data: J,
290
+ columns: [
291
+ {
292
+ key: "name",
293
+ header: "Name",
294
+ sortable: !0,
295
+ render: (e) => /* @__PURE__ */ E("div", {
296
+ className: "flex items-center gap-3",
297
+ children: [/* @__PURE__ */ T("div", {
298
+ className: "h-8 w-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-xs font-semibold text-primary",
299
+ children: Z(e.firstName, e.lastName)
300
+ }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
301
+ className: "font-medium text-text-primary",
302
+ children: [
303
+ e.firstName,
304
+ " ",
305
+ e.lastName
306
+ ]
307
+ }), /* @__PURE__ */ T("p", {
233
308
  className: "text-xs text-text-secondary",
234
- children: "Score:"
309
+ children: e.title
310
+ })] })]
311
+ })
312
+ },
313
+ {
314
+ key: "email",
315
+ header: "Email",
316
+ sortable: !0,
317
+ render: (e) => /* @__PURE__ */ T("span", {
318
+ className: "text-sm",
319
+ children: e.email
320
+ })
321
+ },
322
+ {
323
+ key: "company",
324
+ header: "Company",
325
+ sortable: !0,
326
+ render: (e) => /* @__PURE__ */ T("span", {
327
+ className: "text-sm",
328
+ children: e.company
329
+ })
330
+ },
331
+ {
332
+ key: "title",
333
+ header: "Job Title",
334
+ sortable: !0,
335
+ render: (e) => /* @__PURE__ */ T("span", {
336
+ className: "text-sm",
337
+ children: e.title || /* @__PURE__ */ T("span", {
338
+ className: "text-text-secondary",
339
+ children: "—"
340
+ })
341
+ })
342
+ },
343
+ {
344
+ key: "status",
345
+ header: "Status",
346
+ render: (e) => /* @__PURE__ */ T(o, { status: e.status })
347
+ },
348
+ {
349
+ key: "tags",
350
+ header: "Tags",
351
+ render: (e) => e.tags.length === 0 ? /* @__PURE__ */ T("span", {
352
+ className: "text-xs text-text-secondary",
353
+ children: "—"
354
+ }) : /* @__PURE__ */ E("div", {
355
+ className: "flex flex-wrap gap-1",
356
+ children: [e.tags.slice(0, 2).map((e) => /* @__PURE__ */ T("span", {
357
+ className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
358
+ children: e
359
+ }, e)), e.tags.length > 2 && /* @__PURE__ */ E("span", {
360
+ className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
361
+ children: ["+", e.tags.length - 2]
362
+ })]
363
+ })
364
+ },
365
+ {
366
+ key: "score",
367
+ header: "Score",
368
+ sortable: !0,
369
+ render: (e) => /* @__PURE__ */ E("div", {
370
+ className: "flex items-center gap-2",
371
+ children: [/* @__PURE__ */ T("div", {
372
+ className: "w-12 h-1.5 rounded-full bg-bg-sunken overflow-hidden",
373
+ children: /* @__PURE__ */ T("div", {
374
+ className: t("h-full rounded-full", e.score >= 80 ? "bg-status-success-text" : e.score >= 50 ? "bg-status-warning-text" : "bg-status-error-text"),
375
+ style: { width: `${e.score}%` }
376
+ })
235
377
  }), /* @__PURE__ */ T("span", {
236
- className: t("text-xs font-semibold", e.score >= 80 ? "text-status-success-text" : e.score >= 50 ? "text-status-warning-text" : "text-status-error-text"),
378
+ className: "text-xs",
237
379
  children: e.score
238
380
  })]
239
- }), /* @__PURE__ */ T("div", {
240
- className: "flex gap-1",
241
- children: e.tags.slice(0, 2).map((e) => /* @__PURE__ */ T("span", {
242
- className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
243
- children: e
244
- }, e))
245
- })]
246
- })
247
- ]
248
- }, e.id))
249
- }), /* @__PURE__ */ T(u, {
250
- page: U.page,
251
- pageSize: U.pageSize,
252
- total: U.total,
253
- onPageChange: U.setPage,
254
- onPageSizeChange: U.setPageSize,
255
- disabled: P,
256
- hideWhenSinglePage: !0
257
- })] }) : /* @__PURE__ */ T(a, {
258
- data: G,
259
- columns: [
260
- {
261
- key: "name",
262
- header: "Name",
263
- sortable: !0,
264
- render: (e) => /* @__PURE__ */ E("div", {
265
- className: "flex items-center gap-3",
266
- children: [/* @__PURE__ */ T("div", {
267
- className: "h-8 w-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-xs font-semibold text-primary",
268
- children: J(e.firstName, e.lastName)
269
- }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
270
- className: "font-medium text-text-primary",
271
- children: [
272
- e.firstName,
273
- " ",
274
- e.lastName
275
- ]
276
- }), /* @__PURE__ */ T("p", {
381
+ })
382
+ },
383
+ {
384
+ key: "source",
385
+ header: "Source",
386
+ render: (e) => /* @__PURE__ */ T("span", {
277
387
  className: "text-xs text-text-secondary",
278
- children: e.title
279
- })] })]
280
- })
281
- },
282
- {
283
- key: "email",
284
- header: "Email",
285
- sortable: !0,
286
- render: (e) => /* @__PURE__ */ T("span", {
287
- className: "text-sm",
288
- children: e.email
289
- })
290
- },
291
- {
292
- key: "company",
293
- header: "Company",
294
- sortable: !0,
295
- render: (e) => /* @__PURE__ */ T("span", {
296
- className: "text-sm",
297
- children: e.company
298
- })
299
- },
300
- {
301
- key: "status",
302
- header: "Status",
303
- render: (e) => /* @__PURE__ */ T(o, { status: e.status })
304
- },
305
- {
306
- key: "score",
307
- header: "Score",
308
- sortable: !0,
309
- render: (e) => /* @__PURE__ */ E("div", {
310
- className: "flex items-center gap-2",
311
- children: [/* @__PURE__ */ T("div", {
312
- className: "w-12 h-1.5 rounded-full bg-bg-sunken overflow-hidden",
313
- children: /* @__PURE__ */ T("div", {
314
- className: t("h-full rounded-full", e.score >= 80 ? "bg-status-success-text" : e.score >= 50 ? "bg-status-warning-text" : "bg-status-error-text"),
315
- style: { width: `${e.score}%` }
388
+ children: e.source
389
+ })
390
+ },
391
+ {
392
+ key: "lastContactedAt",
393
+ header: "Last Activity",
394
+ sortable: !0,
395
+ render: (e) => /* @__PURE__ */ T("span", {
396
+ className: "text-xs text-text-secondary",
397
+ children: e.lastContactedAt ? n(e.lastContactedAt, "relative") : "—"
398
+ })
399
+ },
400
+ {
401
+ key: "actions",
402
+ header: "",
403
+ className: "w-10 text-right",
404
+ render: (e) => /* @__PURE__ */ T("div", {
405
+ className: "flex justify-end",
406
+ children: /* @__PURE__ */ T(h, {
407
+ contact: e,
408
+ onChanged: I
316
409
  })
317
- }), /* @__PURE__ */ T("span", {
318
- className: "text-xs",
319
- children: e.score
320
- })]
321
- })
322
- },
323
- {
324
- key: "source",
325
- header: "Source",
326
- render: (e) => /* @__PURE__ */ T("span", {
327
- className: "text-xs text-text-secondary",
328
- children: e.source
329
- })
330
- },
331
- {
332
- key: "lastContactedAt",
333
- header: "Last Contact",
334
- sortable: !0,
335
- render: (e) => /* @__PURE__ */ T("span", {
336
- className: "text-xs text-text-secondary",
337
- children: e.lastContactedAt ? n(e.lastContactedAt, "relative") : "Never"
338
- })
339
- },
340
- {
341
- key: "actions",
342
- header: "",
343
- className: "w-10 text-right",
344
- render: (e) => /* @__PURE__ */ T("div", {
345
- className: "flex justify-end",
346
- children: /* @__PURE__ */ T(m, {
347
- contact: e,
348
- onChanged: I
349
410
  })
350
- })
351
- }
352
- ],
353
- pageSize: 10
354
- })
355
- ]
356
- })]
411
+ }
412
+ ],
413
+ pageSize: 10
414
+ })
415
+ ]
416
+ })
417
+ ]
357
418
  });
358
419
  };
359
420
  //#endregion