@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.
- package/dist/generated/wspace-operations.d.ts +239 -0
- package/dist/generated/wspace-operations.js +360 -241
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/headshotmarketing/components/CrmRecordSelection.d.ts +4 -0
- package/dist/headshotmarketing/components/CrmRecordSelection.js +93 -0
- package/dist/headshotmarketing/components/CrmRecordSelection.js.map +1 -0
- package/dist/headshotmarketing/hooks/useRecordSelection.d.ts +6 -0
- package/dist/headshotmarketing/hooks/useRecordSelection.js +14 -0
- package/dist/headshotmarketing/hooks/useRecordSelection.js.map +1 -0
- package/dist/headshotmarketing/hooks/useRefreshCrmSelection.d.ts +8 -0
- package/dist/headshotmarketing/hooks/useRefreshCrmSelection.js +25 -0
- package/dist/headshotmarketing/hooks/useRefreshCrmSelection.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +169 -140
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +330 -236
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +165 -157
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +119 -113
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +107 -101
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/utils/crmMapper.d.ts +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
- package/dist/utils/pageContext.d.ts +1 -1
- package/dist/utils/pageContext.js +79 -39
- package/dist/utils/pageContext.js.map +1 -1
- package/dist/utils/recordSelection.d.ts +4 -0
- package/dist/utils/recordSelection.js +12 -0
- package/dist/utils/recordSelection.js.map +1 -0
- 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
|
|
8
|
-
import { QueryStateBoundary as
|
|
9
|
-
import { Pagination as
|
|
10
|
-
import { toContactModel as
|
|
11
|
-
import { useHeadshotMarketing as
|
|
12
|
-
import { CrmSubNav as
|
|
13
|
-
import { useHeadshotmarketingBootstrap as
|
|
14
|
-
import { usePagination as
|
|
15
|
-
import { ContactActionsMenu as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
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
|
|
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
|
|
35
|
+
function j(e) {
|
|
33
36
|
return /[",\n]/.test(e) ? `"${e.replace(/"/g, "\"\"")}"` : e;
|
|
34
37
|
}
|
|
35
|
-
function
|
|
36
|
-
let t = [
|
|
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) =>
|
|
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
|
|
52
|
-
let { navigate:
|
|
53
|
-
let t = !
|
|
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:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
let
|
|
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
|
|
62
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
68
|
+
actions: /* @__PURE__ */ O("div", {
|
|
66
69
|
className: "flex flex-wrap items-center gap-2",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
68
|
-
onClick: () =>
|
|
69
|
-
disabled:
|
|
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:
|
|
72
|
-
children: [/* @__PURE__ */
|
|
73
|
-
}), /* @__PURE__ */
|
|
74
|
-
onClick: () =>
|
|
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
|
|
79
|
+
children: [/* @__PURE__ */ D(T, { className: "h-4 w-4" }), "Add Contact"]
|
|
77
80
|
})]
|
|
78
81
|
}),
|
|
79
82
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
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:
|
|
84
|
-
navigate:
|
|
86
|
+
basePath: P,
|
|
87
|
+
navigate: j
|
|
85
88
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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__ */
|
|
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__ */
|
|
99
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
|
|
96
100
|
className: "text-xs text-text-secondary",
|
|
97
101
|
children: "Total Contacts"
|
|
98
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ D("p", {
|
|
99
103
|
className: "text-2xl font-semibold text-text-primary",
|
|
100
|
-
children: n(
|
|
104
|
+
children: n(J.length)
|
|
101
105
|
})] }),
|
|
102
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
|
|
103
107
|
className: "text-xs text-text-secondary",
|
|
104
108
|
children: "New This Month"
|
|
105
|
-
}), /* @__PURE__ */
|
|
109
|
+
}), /* @__PURE__ */ D("p", {
|
|
106
110
|
className: "text-2xl font-semibold text-text-primary",
|
|
107
|
-
children: n(
|
|
111
|
+
children: n(se)
|
|
108
112
|
})] }),
|
|
109
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
|
|
110
114
|
className: "text-xs text-text-secondary",
|
|
111
115
|
children: "Qualified"
|
|
112
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ D("p", {
|
|
113
117
|
className: "text-2xl font-semibold text-text-primary",
|
|
114
|
-
children: n(
|
|
118
|
+
children: n(ie)
|
|
115
119
|
})] }),
|
|
116
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
|
|
117
121
|
className: "text-xs text-text-secondary",
|
|
118
122
|
children: "Converted"
|
|
119
|
-
}), /* @__PURE__ */
|
|
123
|
+
}), /* @__PURE__ */ D("p", {
|
|
120
124
|
className: "text-2xl font-semibold text-text-primary",
|
|
121
|
-
children: n(
|
|
125
|
+
children: n(ae)
|
|
122
126
|
})] }),
|
|
123
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
|
|
124
128
|
className: "text-xs text-text-secondary",
|
|
125
129
|
children: "Avg Score"
|
|
126
|
-
}), /* @__PURE__ */
|
|
130
|
+
}), /* @__PURE__ */ D("p", {
|
|
127
131
|
className: "text-2xl font-semibold text-text-primary",
|
|
128
|
-
children:
|
|
132
|
+
children: oe
|
|
129
133
|
})] })
|
|
130
134
|
]
|
|
131
135
|
}) }),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
searchValue:
|
|
134
|
-
onSearchChange:
|
|
136
|
+
/* @__PURE__ */ D(ee, {
|
|
137
|
+
searchValue: z,
|
|
138
|
+
onSearchChange: B,
|
|
135
139
|
searchPlaceholder: "Search contacts...",
|
|
136
|
-
filters: /* @__PURE__ */ E
|
|
137
|
-
value:
|
|
138
|
-
onChange: (e) =>
|
|
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__ */
|
|
146
|
+
/* @__PURE__ */ D("option", {
|
|
143
147
|
value: "all",
|
|
144
148
|
children: "All Statuses"
|
|
145
149
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ D("option", {
|
|
147
151
|
value: "new",
|
|
148
152
|
children: "New"
|
|
149
153
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ D("option", {
|
|
151
155
|
value: "contacted",
|
|
152
156
|
children: "Contacted"
|
|
153
157
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ D("option", {
|
|
155
159
|
value: "qualified",
|
|
156
160
|
children: "Qualified"
|
|
157
161
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ D("option", {
|
|
159
163
|
value: "converted",
|
|
160
164
|
children: "Converted"
|
|
161
165
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ D("option", {
|
|
163
167
|
value: "lost",
|
|
164
168
|
children: "Lost"
|
|
165
169
|
})
|
|
166
170
|
]
|
|
167
|
-
}), /* @__PURE__ */
|
|
168
|
-
value:
|
|
169
|
-
onChange: (e) =>
|
|
171
|
+
}), /* @__PURE__ */ O("select", {
|
|
172
|
+
value: U,
|
|
173
|
+
onChange: (e) => W(e.target.value),
|
|
170
174
|
"aria-label": "Filter by tag",
|
|
171
|
-
disabled:
|
|
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__ */
|
|
177
|
+
children: [/* @__PURE__ */ D("option", {
|
|
174
178
|
value: "all",
|
|
175
|
-
children:
|
|
176
|
-
}),
|
|
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__ */
|
|
185
|
+
actions: /* @__PURE__ */ O("div", {
|
|
182
186
|
className: "flex items-center border border-border-subtle rounded-md",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
184
|
-
onClick: () =>
|
|
187
|
+
children: [/* @__PURE__ */ D("button", {
|
|
188
|
+
onClick: () => K("grid"),
|
|
185
189
|
"aria-label": "Grid view",
|
|
186
|
-
className: e("p-2 rounded-l-md",
|
|
187
|
-
children: /* @__PURE__ */
|
|
188
|
-
}), /* @__PURE__ */
|
|
189
|
-
onClick: () =>
|
|
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",
|
|
192
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
197
|
-
illustration:
|
|
198
|
-
title:
|
|
199
|
-
description:
|
|
200
|
-
action:
|
|
201
|
-
onClick: () =>
|
|
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
|
|
207
|
+
children: [/* @__PURE__ */ D(T, { className: "h-4 w-4" }), "Add Contact"]
|
|
204
208
|
}) : void 0
|
|
205
|
-
}) :
|
|
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:
|
|
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__ */
|
|
214
|
+
/* @__PURE__ */ O("div", {
|
|
211
215
|
className: "flex items-start gap-3",
|
|
212
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
215
|
-
}), /* @__PURE__ */
|
|
218
|
+
children: Q(t.firstName, t.lastName)
|
|
219
|
+
}), /* @__PURE__ */ O("div", {
|
|
216
220
|
className: "flex-1 min-w-0",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
221
|
+
children: [/* @__PURE__ */ O("div", {
|
|
218
222
|
className: "flex items-center justify-between gap-2",
|
|
219
|
-
children: [/* @__PURE__ */
|
|
220
|
-
|
|
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__ */
|
|
232
|
+
}), /* @__PURE__ */ O("div", {
|
|
227
233
|
className: "flex items-center gap-1",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
234
|
+
children: [/* @__PURE__ */ D(a, { status: t.status }), /* @__PURE__ */ D(m, {
|
|
229
235
|
contact: t,
|
|
230
|
-
onChanged:
|
|
236
|
+
onChanged: R
|
|
231
237
|
})]
|
|
232
238
|
})]
|
|
233
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
245
|
+
/* @__PURE__ */ O("div", {
|
|
240
246
|
className: "mt-3 space-y-1.5",
|
|
241
247
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ O("div", {
|
|
243
249
|
className: "flex items-center gap-2 text-xs text-text-secondary",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
255
|
+
/* @__PURE__ */ O("div", {
|
|
250
256
|
className: "flex items-center gap-2 text-xs text-text-secondary",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ D(w, { className: "h-3 w-3" }), /* @__PURE__ */ D("span", { children: t.phone })]
|
|
252
258
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ O("div", {
|
|
254
260
|
className: "flex items-center gap-2 text-xs text-text-secondary",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ D(te, { className: "h-3 w-3" }), /* @__PURE__ */ D("span", { children: t.company })]
|
|
256
262
|
})
|
|
257
263
|
]
|
|
258
264
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ O("div", {
|
|
260
266
|
className: "mt-3 pt-3 border-t border-border-subtle flex items-center justify-between",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ O("div", {
|
|
262
268
|
className: "flex items-center gap-1",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ D("span", {
|
|
264
270
|
className: "text-xs text-text-secondary",
|
|
265
271
|
children: "Score:"
|
|
266
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
276
|
+
}), /* @__PURE__ */ D("div", {
|
|
271
277
|
className: "flex gap-1",
|
|
272
|
-
children: t.tags.slice(0, 2).map((e) => /* @__PURE__ */
|
|
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__ */
|
|
281
|
-
page:
|
|
282
|
-
pageSize:
|
|
283
|
-
total:
|
|
284
|
-
onPageChange:
|
|
285
|
-
onPageSizeChange:
|
|
286
|
-
disabled:
|
|
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__ */
|
|
289
|
-
data:
|
|
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__ */
|
|
301
|
+
render: (e) => /* @__PURE__ */ O("div", {
|
|
296
302
|
className: "flex items-center gap-3",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
300
|
-
}), /* @__PURE__ */
|
|
301
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
343
|
+
render: (e) => /* @__PURE__ */ D("span", {
|
|
336
344
|
className: "text-sm",
|
|
337
|
-
children: e.title || /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
359
|
+
render: (e) => e.tags.length === 0 ? /* @__PURE__ */ D("span", {
|
|
352
360
|
className: "text-xs text-text-secondary",
|
|
353
361
|
children: "—"
|
|
354
|
-
}) : /* @__PURE__ */
|
|
362
|
+
}) : /* @__PURE__ */ O("div", {
|
|
355
363
|
className: "flex flex-wrap gap-1",
|
|
356
|
-
children: [e.tags.slice(0, 2).map((e) => /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
377
|
+
render: (t) => /* @__PURE__ */ O("div", {
|
|
370
378
|
className: "flex items-center gap-2",
|
|
371
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ D("div", {
|
|
372
380
|
className: "w-12 h-1.5 rounded-full bg-bg-sunken overflow-hidden",
|
|
373
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
412
|
+
render: (e) => /* @__PURE__ */ D("div", {
|
|
405
413
|
className: "flex justify-end",
|
|
406
|
-
children: /* @__PURE__ */
|
|
414
|
+
children: /* @__PURE__ */ D(m, {
|
|
407
415
|
contact: e,
|
|
408
|
-
onChanged:
|
|
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 {
|
|
428
|
+
export { P as ContactsPage };
|
|
421
429
|
|
|
422
430
|
//# sourceMappingURL=ContactsPage.js.map
|