@burdenoff/microfe-headshotmarketing 2026.1109.2 → 2026.1114.2

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