@burdenoff/microfe-headshotmarketing 2026.704.5 → 2026.707.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.
- package/dist/generated/wspace-operations.js +371 -250
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +2 -4
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -1
- package/dist/headshotmarketing/hooks/useAssetUpload.js +11 -19
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +293 -278
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +147 -0
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +246 -235
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +27 -30
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +149 -159
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +252 -231
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +123 -233
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js +81 -0
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +3 -2
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +107 -0
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +232 -0
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +267 -233
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/utils/adsMapper.js +2 -2
- package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/automationMapper.js +33 -7
- package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/campaignMapper.js +1 -22
- package/dist/headshotmarketing/utils/campaignMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js +2 -2
- package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,22 +4,24 @@ import { HeadshotmarketingLeadStatus as i } from "../../../generated/wspace-type
|
|
|
4
4
|
import { PageLayout as a } from "../../components/PageLayout.js";
|
|
5
5
|
import { StatCard as o } from "../../components/StatCard.js";
|
|
6
6
|
import { DataTable as s } from "../../components/DataTable.js";
|
|
7
|
-
import { StatusBadge as
|
|
8
|
-
import { EmptyState as
|
|
9
|
-
import { ChartCard as
|
|
10
|
-
import { FilterBar as
|
|
11
|
-
import { QueryStateBoundary as
|
|
7
|
+
import { StatusBadge as ee } from "../../components/StatusBadge.js";
|
|
8
|
+
import { EmptyState as c } from "../../components/EmptyState.js";
|
|
9
|
+
import { ChartCard as l } from "../../components/ChartCard.js";
|
|
10
|
+
import { FilterBar as u } from "../../components/FilterBar.js";
|
|
11
|
+
import { QueryStateBoundary as d } from "../../components/QueryStateBoundary.js";
|
|
12
12
|
import "../../components/index.js";
|
|
13
|
-
import { useHeadshotmarketingBootstrap as
|
|
14
|
-
import { toContactModel as
|
|
15
|
-
import { LeadActionsMenu as
|
|
13
|
+
import { useHeadshotmarketingBootstrap as f } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
14
|
+
import { toContactModel as p, toLeadModel as te } from "../../utils/crmMapper.js";
|
|
15
|
+
import { LeadActionsMenu as m } from "./CrmActions.js";
|
|
16
|
+
import { LeadCreateModal as h } from "./LeadCreateModal.js";
|
|
17
|
+
import { ConvertLeadButton as g } from "./ConvertLeadButton.js";
|
|
16
18
|
import { LeadAvatar as _, LeadScoreHistogram as v, LeadSourceCell as y, bucketScores as b } from "./LeadsWidgets.js";
|
|
17
19
|
import { useMemo as x, useState as S } from "react";
|
|
18
|
-
import { Flame as C, Gauge as w,
|
|
19
|
-
import { jsx as
|
|
20
|
-
import { EmphasisPanel as
|
|
20
|
+
import { Flame as C, Gauge as w, Plus as T, TrendingUp as E, Users as D } from "lucide-react";
|
|
21
|
+
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
22
|
+
import { EmphasisPanel as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
|
|
21
23
|
//#region src/headshotmarketing/pages/crm/LeadsPage.tsx
|
|
22
|
-
var
|
|
24
|
+
var M = [
|
|
23
25
|
{
|
|
24
26
|
value: "all",
|
|
25
27
|
label: "All Sources"
|
|
@@ -56,255 +58,287 @@ var j = [
|
|
|
56
58
|
value: "other",
|
|
57
59
|
label: "Other"
|
|
58
60
|
}
|
|
59
|
-
],
|
|
60
|
-
let { data:
|
|
61
|
-
let e =
|
|
61
|
+
], N = "min-h-[44px] rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", P = () => {
|
|
62
|
+
let { data: P, loading: F, error: I, refetch: L } = f(), { currentUser: R } = e(), [z, B] = S(""), [V, H] = S("all"), [U, W] = S("all"), [G, K] = S(!1), q = x(() => {
|
|
63
|
+
let e = P?.headshotmarketingPipelines.items ?? [];
|
|
64
|
+
if (e.length === 0) return null;
|
|
65
|
+
let t = e.find((e) => e.isDefault) ?? e[0], n = [...t.stages].sort((e, t) => e.order - t.order)[0];
|
|
66
|
+
return n ? {
|
|
67
|
+
pipelineId: t.id,
|
|
68
|
+
pipelineName: t.name,
|
|
69
|
+
stageId: n.id,
|
|
70
|
+
stageName: n.name
|
|
71
|
+
} : null;
|
|
72
|
+
}, [P?.headshotmarketingPipelines.items]), J = x(() => {
|
|
73
|
+
let e = (P?.headshotmarketingContacts.items ?? []).map((e) => p(e));
|
|
62
74
|
return Object.fromEntries(e.map((e) => [e.id, e]));
|
|
63
|
-
}, [
|
|
64
|
-
let e = new Map(
|
|
65
|
-
return
|
|
66
|
-
let n = e.get(t.id), r = n?.contactId ?
|
|
75
|
+
}, [P?.headshotmarketingContacts.items]), Y = x(() => P?.headshotmarketingLeads.items ?? [], [P?.headshotmarketingLeads.items]), X = x(() => {
|
|
76
|
+
let e = new Map(Y.map((e) => [e.id, e]));
|
|
77
|
+
return Y.map((e) => te(e, J)).map((t) => {
|
|
78
|
+
let n = e.get(t.id), r = n?.contactId ? J[n.contactId] : void 0;
|
|
67
79
|
return {
|
|
68
80
|
...t,
|
|
69
81
|
estimatedValue: n?.estimatedValue ?? null,
|
|
70
82
|
contactAvatar: r?.avatar ?? ""
|
|
71
83
|
};
|
|
72
84
|
});
|
|
73
|
-
}, [
|
|
74
|
-
if (
|
|
75
|
-
let e =
|
|
76
|
-
return Math.round(e /
|
|
77
|
-
}, [
|
|
78
|
-
if (
|
|
79
|
-
let e =
|
|
80
|
-
return Math.round(e /
|
|
81
|
-
}, [
|
|
82
|
-
let t = !
|
|
85
|
+
}, [Y, J]), Z = Y.length, Q = x(() => {
|
|
86
|
+
if (Z === 0) return 0;
|
|
87
|
+
let e = Y.reduce((e, t) => e + (t.score ?? 0), 0);
|
|
88
|
+
return Math.round(e / Z);
|
|
89
|
+
}, [Y, Z]), ne = x(() => Y.filter((e) => (e.score ?? 0) >= 80).length, [Y]), re = x(() => {
|
|
90
|
+
if (Z === 0) return 0;
|
|
91
|
+
let e = Y.filter((e) => e.status === i.Converted || e.status === i.Qualified).length;
|
|
92
|
+
return Math.round(e / Z * 100);
|
|
93
|
+
}, [Y, Z]), ie = x(() => b(Y.map((e) => e.score ?? 0)), [Y]), $ = X.filter((e) => {
|
|
94
|
+
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.source === U;
|
|
83
95
|
return t && n && r;
|
|
84
|
-
}),
|
|
96
|
+
}), ae = (e) => !e || e === "Unassigned" ? /* @__PURE__ */ O("span", {
|
|
85
97
|
className: "text-sm text-text-secondary",
|
|
86
98
|
children: "Unassigned"
|
|
87
|
-
}) :
|
|
99
|
+
}) : R && e === R.id ? /* @__PURE__ */ k("div", {
|
|
88
100
|
className: "flex items-center gap-2",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
90
|
-
name:
|
|
91
|
-
src:
|
|
101
|
+
children: [/* @__PURE__ */ O(_, {
|
|
102
|
+
name: R.name || [R.firstName, R.lastName].filter(Boolean).join(" ") || R.email,
|
|
103
|
+
src: R.avatar,
|
|
92
104
|
size: 28
|
|
93
|
-
}), /* @__PURE__ */
|
|
105
|
+
}), /* @__PURE__ */ O("span", {
|
|
94
106
|
className: "text-sm font-medium text-text-primary",
|
|
95
107
|
children: "You"
|
|
96
108
|
})]
|
|
97
|
-
}) : /* @__PURE__ */
|
|
109
|
+
}) : /* @__PURE__ */ k("div", {
|
|
98
110
|
className: "flex items-center gap-2",
|
|
99
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ O(_, { size: 28 }), /* @__PURE__ */ O("span", {
|
|
100
112
|
className: "text-sm text-text-secondary",
|
|
101
113
|
children: "Assigned"
|
|
102
114
|
})]
|
|
103
115
|
});
|
|
104
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ k(a, {
|
|
105
117
|
title: "Leads",
|
|
106
118
|
description: "Track and manage your leads pipeline",
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
children:
|
|
162
|
-
/* @__PURE__ */ D("option", {
|
|
163
|
-
value: "all",
|
|
164
|
-
children: "All Statuses"
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ D("option", {
|
|
167
|
-
value: "new",
|
|
168
|
-
children: "New"
|
|
169
|
-
}),
|
|
170
|
-
/* @__PURE__ */ D("option", {
|
|
171
|
-
value: "contacted",
|
|
172
|
-
children: "Contacted"
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ D("option", {
|
|
175
|
-
value: "qualified",
|
|
176
|
-
children: "Qualified"
|
|
177
|
-
}),
|
|
178
|
-
/* @__PURE__ */ D("option", {
|
|
179
|
-
value: "disqualified",
|
|
180
|
-
children: "Disqualified"
|
|
181
|
-
})
|
|
182
|
-
]
|
|
183
|
-
}), /* @__PURE__ */ D("select", {
|
|
184
|
-
value: H,
|
|
185
|
-
onChange: (e) => U(e.target.value),
|
|
186
|
-
className: M,
|
|
187
|
-
"aria-label": "Filter by source",
|
|
188
|
-
children: j.map((e) => /* @__PURE__ */ D("option", {
|
|
189
|
-
value: e.value,
|
|
190
|
-
children: e.label
|
|
191
|
-
}, e.value))
|
|
119
|
+
actions: /* @__PURE__ */ k("button", {
|
|
120
|
+
type: "button",
|
|
121
|
+
onClick: () => K(!0),
|
|
122
|
+
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 shadow-pop hover:bg-action-primary-bg/90",
|
|
123
|
+
children: [/* @__PURE__ */ O(T, { className: "h-4 w-4" }), "New Lead"]
|
|
124
|
+
}),
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ O(h, {
|
|
127
|
+
open: G,
|
|
128
|
+
onClose: () => K(!1),
|
|
129
|
+
contacts: Object.values(J),
|
|
130
|
+
onCreated: L
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ O(j, { children: "Track every prospect from first touch to qualified. See where each lead sits — new, contacted, qualified or disqualified — sort by lead score, and focus your follow-ups on the people most likely to convert." }),
|
|
133
|
+
/* @__PURE__ */ k(d, {
|
|
134
|
+
loading: F,
|
|
135
|
+
error: I,
|
|
136
|
+
onRetry: L,
|
|
137
|
+
hasData: !!P,
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ k("div", {
|
|
140
|
+
className: "grid grid-cols-1 gap-4 xl:grid-cols-3",
|
|
141
|
+
children: [/* @__PURE__ */ O("div", {
|
|
142
|
+
className: "xl:col-span-2",
|
|
143
|
+
children: /* @__PURE__ */ O(A, { children: /* @__PURE__ */ k("div", {
|
|
144
|
+
className: "grid grid-cols-2 gap-4",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ O(o, {
|
|
147
|
+
title: "Total Leads",
|
|
148
|
+
value: Z,
|
|
149
|
+
icon: /* @__PURE__ */ O(D, { className: "h-5 w-5" }),
|
|
150
|
+
featured: !0
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ O(o, {
|
|
153
|
+
title: "Avg Lead Score",
|
|
154
|
+
value: Q,
|
|
155
|
+
icon: /* @__PURE__ */ O(w, { className: "h-5 w-5" })
|
|
156
|
+
}),
|
|
157
|
+
/* @__PURE__ */ O(o, {
|
|
158
|
+
title: "Conversion Rate",
|
|
159
|
+
value: `${re}%`,
|
|
160
|
+
icon: /* @__PURE__ */ O(E, { className: "h-5 w-5" })
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ O(o, {
|
|
163
|
+
title: "Hot Leads",
|
|
164
|
+
value: ne,
|
|
165
|
+
icon: /* @__PURE__ */ O(C, { className: "h-5 w-5" })
|
|
166
|
+
})
|
|
167
|
+
]
|
|
168
|
+
}) })
|
|
169
|
+
}), /* @__PURE__ */ O(l, {
|
|
170
|
+
title: "Score distribution",
|
|
171
|
+
subtitle: "Leads by score tier",
|
|
172
|
+
className: "xl:col-span-1",
|
|
173
|
+
children: /* @__PURE__ */ O(v, { data: ie })
|
|
192
174
|
})]
|
|
193
|
-
})
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ O(u, {
|
|
177
|
+
searchValue: z,
|
|
178
|
+
onSearchChange: B,
|
|
179
|
+
searchPlaceholder: "Search leads...",
|
|
180
|
+
filters: /* @__PURE__ */ k("div", {
|
|
181
|
+
className: "flex flex-nowrap items-center gap-2 overflow-x-auto",
|
|
182
|
+
children: [/* @__PURE__ */ k("select", {
|
|
183
|
+
value: V,
|
|
184
|
+
onChange: (e) => H(e.target.value),
|
|
185
|
+
className: N,
|
|
186
|
+
"aria-label": "Filter by status",
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ O("option", {
|
|
189
|
+
value: "all",
|
|
190
|
+
children: "All Statuses"
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ O("option", {
|
|
193
|
+
value: "new",
|
|
194
|
+
children: "New"
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ O("option", {
|
|
197
|
+
value: "contacted",
|
|
198
|
+
children: "Contacted"
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ O("option", {
|
|
201
|
+
value: "qualified",
|
|
202
|
+
children: "Qualified"
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ O("option", {
|
|
205
|
+
value: "disqualified",
|
|
206
|
+
children: "Disqualified"
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
}), /* @__PURE__ */ O("select", {
|
|
210
|
+
value: U,
|
|
211
|
+
onChange: (e) => W(e.target.value),
|
|
212
|
+
className: N,
|
|
213
|
+
"aria-label": "Filter by source",
|
|
214
|
+
children: M.map((e) => /* @__PURE__ */ O("option", {
|
|
215
|
+
value: e.value,
|
|
216
|
+
children: e.label
|
|
217
|
+
}, e.value))
|
|
218
|
+
})]
|
|
219
|
+
})
|
|
220
|
+
}),
|
|
221
|
+
$.length === 0 ? /* @__PURE__ */ O(c, {
|
|
222
|
+
illustration: X.length === 0 ? "empty-people" : "empty-search",
|
|
223
|
+
title: X.length === 0 ? "No leads yet" : "No leads match your filters",
|
|
224
|
+
description: X.length === 0 ? "Leads will appear here as they come in from your campaigns and forms." : "Try a different search term, status or source."
|
|
225
|
+
}) : /* @__PURE__ */ O(s, {
|
|
226
|
+
data: $,
|
|
227
|
+
columns: [
|
|
228
|
+
{
|
|
229
|
+
key: "name",
|
|
230
|
+
header: "Lead",
|
|
231
|
+
sortable: !0,
|
|
232
|
+
render: (e) => {
|
|
233
|
+
let t = `${e.firstName} ${e.lastName}`.trim() || e.title;
|
|
234
|
+
return /* @__PURE__ */ k("div", {
|
|
235
|
+
className: "flex min-w-[180px] items-center gap-3",
|
|
236
|
+
children: [/* @__PURE__ */ O(_, {
|
|
237
|
+
name: t,
|
|
238
|
+
src: e.contactAvatar || void 0
|
|
239
|
+
}), /* @__PURE__ */ k("div", {
|
|
240
|
+
className: "min-w-0",
|
|
241
|
+
children: [/* @__PURE__ */ O("p", {
|
|
242
|
+
className: "truncate font-medium text-text-primary",
|
|
243
|
+
children: t
|
|
244
|
+
}), /* @__PURE__ */ O("p", {
|
|
245
|
+
className: "truncate text-xs text-text-secondary",
|
|
246
|
+
children: e.email || e.title
|
|
247
|
+
})]
|
|
221
248
|
})]
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
key: "company",
|
|
254
|
+
header: "Company",
|
|
255
|
+
sortable: !0,
|
|
256
|
+
render: (e) => /* @__PURE__ */ O("span", {
|
|
257
|
+
className: "text-sm text-text-primary",
|
|
258
|
+
children: e.company || "—"
|
|
259
|
+
})
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
key: "source",
|
|
263
|
+
header: "Source",
|
|
264
|
+
sortable: !0,
|
|
265
|
+
render: (e) => /* @__PURE__ */ O(y, { source: e.source })
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
key: "score",
|
|
269
|
+
header: "Lead Score",
|
|
270
|
+
sortable: !0,
|
|
271
|
+
render: (e) => /* @__PURE__ */ k("div", {
|
|
272
|
+
className: "flex items-center gap-2",
|
|
273
|
+
children: [/* @__PURE__ */ O("div", {
|
|
274
|
+
className: "h-2 w-16 overflow-hidden rounded-full bg-bg-sunken",
|
|
275
|
+
children: /* @__PURE__ */ O("div", {
|
|
276
|
+
className: t("h-full rounded-full transition-all", e.score >= 80 ? "bg-status-success-text" : e.score >= 50 ? "bg-status-warning-text" : "bg-status-error-text"),
|
|
277
|
+
style: { width: `${Math.max(0, Math.min(100, e.score))}%` }
|
|
278
|
+
})
|
|
279
|
+
}), /* @__PURE__ */ O("span", {
|
|
280
|
+
className: "text-xs font-medium tabular-nums text-text-primary",
|
|
281
|
+
children: e.score
|
|
222
282
|
})]
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
key: "company",
|
|
228
|
-
header: "Company",
|
|
229
|
-
sortable: !0,
|
|
230
|
-
render: (e) => /* @__PURE__ */ D("span", {
|
|
231
|
-
className: "text-sm text-text-primary",
|
|
232
|
-
children: e.company || "—"
|
|
233
|
-
})
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
key: "source",
|
|
237
|
-
header: "Source",
|
|
238
|
-
sortable: !0,
|
|
239
|
-
render: (e) => /* @__PURE__ */ D(y, { source: e.source })
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
key: "score",
|
|
243
|
-
header: "Lead Score",
|
|
244
|
-
sortable: !0,
|
|
245
|
-
render: (e) => /* @__PURE__ */ O("div", {
|
|
246
|
-
className: "flex items-center gap-2",
|
|
247
|
-
children: [/* @__PURE__ */ D("div", {
|
|
248
|
-
className: "h-2 w-16 overflow-hidden rounded-full bg-bg-sunken",
|
|
249
|
-
children: /* @__PURE__ */ D("div", {
|
|
250
|
-
className: t("h-full rounded-full transition-all", e.score >= 80 ? "bg-status-success-text" : e.score >= 50 ? "bg-status-warning-text" : "bg-status-error-text"),
|
|
251
|
-
style: { width: `${Math.max(0, Math.min(100, e.score))}%` }
|
|
252
|
-
})
|
|
253
|
-
}), /* @__PURE__ */ D("span", {
|
|
254
|
-
className: "text-xs font-medium tabular-nums text-text-primary",
|
|
255
|
-
children: e.score
|
|
256
|
-
})]
|
|
257
|
-
})
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
key: "status",
|
|
261
|
-
header: "Status",
|
|
262
|
-
render: (e) => /* @__PURE__ */ D(c, { status: e.status })
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
key: "estimatedValue",
|
|
266
|
-
header: "Est. Value",
|
|
267
|
-
sortable: !0,
|
|
268
|
-
className: "text-right",
|
|
269
|
-
render: (e) => /* @__PURE__ */ D("span", {
|
|
270
|
-
className: "text-sm font-medium tabular-nums text-text-primary",
|
|
271
|
-
children: e.estimatedValue && e.estimatedValue > 0 ? n(e.estimatedValue) : "—"
|
|
272
|
-
})
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
key: "assignedTo",
|
|
276
|
-
header: "Owner",
|
|
277
|
-
render: (e) => $(e.assignedTo)
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
key: "createdAt",
|
|
281
|
-
header: "Created",
|
|
282
|
-
sortable: !0,
|
|
283
|
-
render: (e) => /* @__PURE__ */ D("span", {
|
|
284
|
-
className: "whitespace-nowrap text-sm text-text-secondary",
|
|
285
|
-
children: r(e.createdAt)
|
|
286
|
-
})
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
key: "actions",
|
|
290
|
-
header: "",
|
|
291
|
-
className: "w-10 text-right",
|
|
292
|
-
render: (e) => /* @__PURE__ */ D("div", {
|
|
293
|
-
className: "flex justify-end",
|
|
294
|
-
children: /* @__PURE__ */ D(g, {
|
|
295
|
-
lead: e,
|
|
296
|
-
onChanged: I
|
|
297
283
|
})
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
key: "status",
|
|
287
|
+
header: "Status",
|
|
288
|
+
render: (e) => /* @__PURE__ */ O(ee, { status: e.status })
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
key: "estimatedValue",
|
|
292
|
+
header: "Est. Value",
|
|
293
|
+
sortable: !0,
|
|
294
|
+
className: "text-right",
|
|
295
|
+
render: (e) => /* @__PURE__ */ O("span", {
|
|
296
|
+
className: "text-sm font-medium tabular-nums text-text-primary",
|
|
297
|
+
children: e.estimatedValue && e.estimatedValue > 0 ? n(e.estimatedValue) : "—"
|
|
298
|
+
})
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
key: "assignedTo",
|
|
302
|
+
header: "Owner",
|
|
303
|
+
render: (e) => ae(e.assignedTo)
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
key: "createdAt",
|
|
307
|
+
header: "Created",
|
|
308
|
+
sortable: !0,
|
|
309
|
+
render: (e) => /* @__PURE__ */ O("span", {
|
|
310
|
+
className: "whitespace-nowrap text-sm text-text-secondary",
|
|
311
|
+
children: r(e.createdAt)
|
|
312
|
+
})
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
key: "actions",
|
|
316
|
+
header: "",
|
|
317
|
+
className: "w-24 text-right",
|
|
318
|
+
render: (e) => /* @__PURE__ */ k("div", {
|
|
319
|
+
className: "flex items-center justify-end gap-1",
|
|
320
|
+
children: [/* @__PURE__ */ O(g, {
|
|
321
|
+
lead: {
|
|
322
|
+
id: e.id,
|
|
323
|
+
title: e.title
|
|
324
|
+
},
|
|
325
|
+
target: q,
|
|
326
|
+
onConverted: L
|
|
327
|
+
}), /* @__PURE__ */ O(m, {
|
|
328
|
+
lead: e,
|
|
329
|
+
onChanged: L
|
|
330
|
+
})]
|
|
331
|
+
})
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
pageSize: 10
|
|
335
|
+
})
|
|
336
|
+
]
|
|
337
|
+
})
|
|
338
|
+
]
|
|
305
339
|
});
|
|
306
340
|
};
|
|
307
341
|
//#endregion
|
|
308
|
-
export {
|
|
342
|
+
export { P as LeadsPage };
|
|
309
343
|
|
|
310
344
|
//# sourceMappingURL=LeadsPage.js.map
|