@burdenoff/microfe-headshotmarketing 2026.924.1 → 2026.924.3
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 +129 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +162 -90
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +9 -7
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts +2 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.d.ts.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +52 -44
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.d.ts +6 -0
- package/dist/headshotmarketing/components/InfluencerModals.d.ts.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +431 -249
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/index.d.ts +1 -1
- package/dist/headshotmarketing/components/index.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts +4 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +500 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +171 -163
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.d.ts +4 -0
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +206 -0
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts +2 -0
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +47 -34
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +4 -2
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +233 -195
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.d.ts +10 -0
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js +157 -0
- package/dist/headshotmarketing/pages/crm/CreatePipelineModal.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/PipelinePage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +87 -76
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/createPipelineForm.d.ts +34 -0
- package/dist/headshotmarketing/pages/crm/createPipelineForm.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/crm/createPipelineForm.js +49 -0
- package/dist/headshotmarketing/pages/crm/createPipelineForm.js.map +1 -0
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +150 -135
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.d.ts +53 -0
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.js +107 -0
- package/dist/headshotmarketing/pages/influencers/createInfluencerForm.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import { cn as e, formatNumber as t, formatPercentage as n } from "../../utils/helpers.js";
|
|
2
2
|
import { HeadshotmarketingInfluencerRelationshipStatus as r } from "../../../generated/wspace-types.js";
|
|
3
3
|
import { PageLayout as i } from "../../components/PageLayout.js";
|
|
4
|
-
import { EmptyState as
|
|
5
|
-
import { FilterBar as
|
|
6
|
-
import { QueryStateBoundary as
|
|
7
|
-
import { Pagination as
|
|
8
|
-
import { AddInfluencerRelationshipModal as
|
|
4
|
+
import { EmptyState as a } from "../../components/EmptyState.js";
|
|
5
|
+
import { FilterBar as o } from "../../components/FilterBar.js";
|
|
6
|
+
import { QueryStateBoundary as s } from "../../components/QueryStateBoundary.js";
|
|
7
|
+
import { Pagination as ee } from "../../components/Pagination.js";
|
|
8
|
+
import { AddInfluencerRelationshipModal as c, CreateInfluencerModal as l, InfluencerDetailsModal as u } from "../../components/InfluencerModals.js";
|
|
9
9
|
import "../../components/index.js";
|
|
10
|
-
import { useHeadshotmarketingBootstrap as
|
|
11
|
-
import { usePagination as
|
|
12
|
-
import { toInfluencerModel as
|
|
13
|
-
import { useEffect as
|
|
14
|
-
import { Eye as
|
|
15
|
-
import { Fragment as
|
|
16
|
-
import { EmphasisPanel as
|
|
10
|
+
import { useHeadshotmarketingBootstrap as d } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
11
|
+
import { usePagination as f } from "../../hooks/usePagination.js";
|
|
12
|
+
import { toInfluencerModel as p } from "../../utils/influencerMapper.js";
|
|
13
|
+
import { useEffect as m, useMemo as h, useState as g } from "react";
|
|
14
|
+
import { Eye as te, Mail as _, MapPin as v, Plus as y, Star as b } from "lucide-react";
|
|
15
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
16
|
+
import { EmphasisPanel as ne, PagePurpose as re } from "@burdenoff/fe-libs/ui";
|
|
17
17
|
//#region src/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.tsx
|
|
18
|
-
var
|
|
18
|
+
var ie = {
|
|
19
19
|
nano: "bg-status-info-bg text-status-info-text",
|
|
20
20
|
micro: "bg-status-success-bg text-status-success-text",
|
|
21
21
|
macro: "bg-status-warning-bg text-status-warning-text",
|
|
22
22
|
mega: "bg-status-error-bg text-status-error-text"
|
|
23
|
-
},
|
|
23
|
+
}, ae = {
|
|
24
24
|
instagram: "bg-[var(--color-accent-soft)] text-action-primary-bg",
|
|
25
25
|
facebook: "bg-status-info-bg text-status-info-text",
|
|
26
26
|
twitter: "bg-status-info-bg text-status-info-text",
|
|
27
27
|
linkedin: "bg-status-info-bg text-status-info-text",
|
|
28
28
|
youtube: "bg-status-error-bg text-status-error-text",
|
|
29
29
|
tiktok: "bg-bg-sunken text-text-secondary"
|
|
30
|
-
},
|
|
31
|
-
let { data:
|
|
30
|
+
}, w = () => {
|
|
31
|
+
let { data: w, loading: T, error: E, refetch: D } = d(), [O, k] = g(""), [A, j] = g("all"), [M, N] = g("all"), [P, F] = g("all"), [I, L] = g(""), [R, z] = g(""), [B, V] = g(null), [H, U] = g(null), [W, G] = g(!1), { page: K, pageSize: q, offset: J, total: oe, setPage: se, setPageSize: ce, setTotal: Y } = f({ initialPageSize: 12 }), X = h(() => {
|
|
32
32
|
let e = {};
|
|
33
|
-
for (let t of
|
|
33
|
+
for (let t of w?.headshotmarketingInfluencerRelationships.items ?? []) e[t.influencerId] = {
|
|
34
34
|
rating: t.rating ?? 0,
|
|
35
35
|
totalCampaigns: t.totalCampaigns ?? 0
|
|
36
36
|
};
|
|
37
37
|
return e;
|
|
38
|
-
}, [
|
|
38
|
+
}, [w?.headshotmarketingInfluencerRelationships.items]), Z = h(() => (w?.headshotmarketingInfluencers.items ?? []).map((e) => p(e, X)), [w?.headshotmarketingInfluencers.items, X]), le = h(() => Object.keys(X), [X]), ue = h(() => {
|
|
39
39
|
let e = /* @__PURE__ */ new Set();
|
|
40
40
|
return Z.forEach((t) => t.niche.forEach((t) => e.add(t))), Array.from(e).sort();
|
|
41
|
-
}, [Z]), Q =
|
|
41
|
+
}, [Z]), Q = h(() => {
|
|
42
42
|
let e = [...Z];
|
|
43
|
-
if (
|
|
44
|
-
let t =
|
|
43
|
+
if (O) {
|
|
44
|
+
let t = O.toLowerCase();
|
|
45
45
|
e = e.filter((e) => e.name.toLowerCase().includes(t) || e.handle.toLowerCase().includes(t) || e.niche.some((e) => e.toLowerCase().includes(t)));
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
let t = Number(
|
|
49
|
-
|
|
50
|
-
let n = Number(
|
|
51
|
-
return
|
|
47
|
+
A !== "all" && (e = e.filter((e) => e.tier === A)), M !== "all" && (e = e.filter((e) => e.platforms.some((e) => e === M))), P !== "all" && (e = e.filter((e) => e.niche.includes(P)));
|
|
48
|
+
let t = Number(I);
|
|
49
|
+
I !== "" && Number.isFinite(t) && (e = e.filter((e) => e.followers >= t));
|
|
50
|
+
let n = Number(R);
|
|
51
|
+
return R !== "" && Number.isFinite(n) && (e = e.filter((e) => e.engagementRate >= n)), e;
|
|
52
52
|
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
O,
|
|
54
|
+
A,
|
|
55
|
+
M,
|
|
56
|
+
P,
|
|
57
|
+
I,
|
|
58
|
+
R,
|
|
59
59
|
Z
|
|
60
60
|
]);
|
|
61
|
-
|
|
61
|
+
m(() => {
|
|
62
62
|
Y(Q.length);
|
|
63
63
|
}, [Q.length, Y]);
|
|
64
|
-
let
|
|
64
|
+
let de = Q.slice(J, J + q), $ = h(() => {
|
|
65
65
|
let e = Z.reduce((e, t) => e + t.followers, 0), t = Z.length > 0 ? Z.reduce((e, t) => e + t.engagementRate, 0) / Z.length : 0, n = Z.filter((e) => X[e.id] !== void 0).length;
|
|
66
66
|
return {
|
|
67
67
|
total: Z.length,
|
|
@@ -70,281 +70,296 @@ var x = {
|
|
|
70
70
|
avgEngagement: t
|
|
71
71
|
};
|
|
72
72
|
}, [Z, X]);
|
|
73
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ C(i, {
|
|
74
74
|
title: "Influencer Discovery",
|
|
75
75
|
description: "Find and connect with influencers for your campaigns",
|
|
76
|
+
actions: /* @__PURE__ */ C("button", {
|
|
77
|
+
onClick: () => G(!0),
|
|
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",
|
|
79
|
+
children: [/* @__PURE__ */ S(y, { className: "h-4 w-4" }), "Add Influencer"]
|
|
80
|
+
}),
|
|
76
81
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
loading:
|
|
80
|
-
error:
|
|
81
|
-
onRetry:
|
|
82
|
-
hasData: !!
|
|
82
|
+
/* @__PURE__ */ S(re, { children: "Find the right creators for your brand. Search and filter by tier, platform and niche to surface influencers whose audience matches yours, then reach out to start a partnership." }),
|
|
83
|
+
/* @__PURE__ */ C(s, {
|
|
84
|
+
loading: T,
|
|
85
|
+
error: E,
|
|
86
|
+
onRetry: D,
|
|
87
|
+
hasData: !!w,
|
|
83
88
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ S(ne, { children: /* @__PURE__ */ C("div", {
|
|
85
90
|
className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
|
|
86
91
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
88
93
|
className: "text-xs text-text-secondary",
|
|
89
94
|
children: "Influencers"
|
|
90
|
-
}), /* @__PURE__ */
|
|
95
|
+
}), /* @__PURE__ */ S("p", {
|
|
91
96
|
className: "text-2xl font-semibold text-text-primary",
|
|
92
97
|
children: t($.total)
|
|
93
98
|
})] }),
|
|
94
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
95
100
|
className: "text-xs text-text-secondary",
|
|
96
101
|
children: "In Relationship"
|
|
97
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ S("p", {
|
|
98
103
|
className: "text-2xl font-semibold text-text-primary",
|
|
99
104
|
children: t($.inRelationship)
|
|
100
105
|
})] }),
|
|
101
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
102
107
|
className: "text-xs text-text-secondary",
|
|
103
108
|
children: "Combined Reach"
|
|
104
|
-
}), /* @__PURE__ */
|
|
109
|
+
}), /* @__PURE__ */ S("p", {
|
|
105
110
|
className: "text-2xl font-semibold text-text-primary",
|
|
106
111
|
children: t($.totalReach)
|
|
107
112
|
})] }),
|
|
108
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
109
114
|
className: "text-xs text-text-secondary",
|
|
110
115
|
children: "Avg Engagement"
|
|
111
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ S("p", {
|
|
112
117
|
className: "text-2xl font-semibold text-text-primary",
|
|
113
118
|
children: n($.avgEngagement)
|
|
114
119
|
})] })
|
|
115
120
|
]
|
|
116
121
|
}) }),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
searchValue:
|
|
119
|
-
onSearchChange:
|
|
122
|
+
/* @__PURE__ */ S(o, {
|
|
123
|
+
searchValue: O,
|
|
124
|
+
onSearchChange: k,
|
|
120
125
|
searchPlaceholder: "Search by name, handle, or niche...",
|
|
121
|
-
filters: /* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
value:
|
|
124
|
-
onChange: (e) =>
|
|
126
|
+
filters: /* @__PURE__ */ C(x, { children: [
|
|
127
|
+
/* @__PURE__ */ C("select", {
|
|
128
|
+
value: A,
|
|
129
|
+
onChange: (e) => j(e.target.value),
|
|
125
130
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
126
131
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ S("option", {
|
|
128
133
|
value: "all",
|
|
129
134
|
children: "All Tiers"
|
|
130
135
|
}),
|
|
131
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ S("option", {
|
|
132
137
|
value: "nano",
|
|
133
138
|
children: "Nano (1K-10K)"
|
|
134
139
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ S("option", {
|
|
136
141
|
value: "micro",
|
|
137
142
|
children: "Micro (10K-100K)"
|
|
138
143
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ S("option", {
|
|
140
145
|
value: "macro",
|
|
141
146
|
children: "Macro (100K-500K)"
|
|
142
147
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ S("option", {
|
|
144
149
|
value: "mega",
|
|
145
150
|
children: "Mega (500K+)"
|
|
146
151
|
})
|
|
147
152
|
]
|
|
148
153
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
value:
|
|
151
|
-
onChange: (e) =>
|
|
154
|
+
/* @__PURE__ */ C("select", {
|
|
155
|
+
value: M,
|
|
156
|
+
onChange: (e) => N(e.target.value),
|
|
152
157
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
153
158
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ S("option", {
|
|
155
160
|
value: "all",
|
|
156
161
|
children: "All Platforms"
|
|
157
162
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ S("option", {
|
|
159
164
|
value: "instagram",
|
|
160
165
|
children: "Instagram"
|
|
161
166
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ S("option", {
|
|
163
168
|
value: "youtube",
|
|
164
169
|
children: "YouTube"
|
|
165
170
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ S("option", {
|
|
167
172
|
value: "tiktok",
|
|
168
173
|
children: "TikTok"
|
|
169
174
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ S("option", {
|
|
171
176
|
value: "linkedin",
|
|
172
177
|
children: "LinkedIn"
|
|
173
178
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ S("option", {
|
|
175
180
|
value: "twitter",
|
|
176
181
|
children: "Twitter"
|
|
177
182
|
})
|
|
178
183
|
]
|
|
179
184
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
value:
|
|
182
|
-
onChange: (e) =>
|
|
185
|
+
/* @__PURE__ */ C("select", {
|
|
186
|
+
value: P,
|
|
187
|
+
onChange: (e) => F(e.target.value),
|
|
183
188
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ S("option", {
|
|
185
190
|
value: "all",
|
|
186
191
|
children: "All Niches"
|
|
187
|
-
}),
|
|
192
|
+
}), ue.map((e) => /* @__PURE__ */ S("option", {
|
|
188
193
|
value: e,
|
|
189
194
|
children: e
|
|
190
195
|
}, e))]
|
|
191
196
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ S("input", {
|
|
193
198
|
type: "number",
|
|
194
199
|
min: 0,
|
|
195
200
|
step: 1e3,
|
|
196
201
|
inputMode: "numeric",
|
|
197
|
-
value:
|
|
198
|
-
onChange: (e) =>
|
|
202
|
+
value: I,
|
|
203
|
+
onChange: (e) => L(e.target.value),
|
|
199
204
|
"aria-label": "Minimum followers",
|
|
200
205
|
placeholder: "Min followers",
|
|
201
206
|
className: "w-36 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary"
|
|
202
207
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ S("input", {
|
|
204
209
|
type: "number",
|
|
205
210
|
min: 0,
|
|
206
211
|
step: .1,
|
|
207
212
|
inputMode: "decimal",
|
|
208
|
-
value:
|
|
209
|
-
onChange: (e) =>
|
|
213
|
+
value: R,
|
|
214
|
+
onChange: (e) => z(e.target.value),
|
|
210
215
|
"aria-label": "Minimum engagement rate, percent",
|
|
211
216
|
placeholder: "Min engagement %",
|
|
212
217
|
className: "w-40 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary"
|
|
213
218
|
})
|
|
214
219
|
] })
|
|
215
220
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ C("p", {
|
|
217
222
|
className: "text-sm text-text-secondary",
|
|
218
223
|
children: [Q.length, " influencers found"]
|
|
219
224
|
}),
|
|
220
|
-
Q.length === 0 && /* @__PURE__ */
|
|
225
|
+
Q.length === 0 && /* @__PURE__ */ S(a, {
|
|
221
226
|
illustration: Z.length === 0 ? "empty-people" : "empty-search",
|
|
222
227
|
title: Z.length === 0 ? "No influencers yet" : "No influencers match your filters",
|
|
223
|
-
description: Z.length === 0 ? "
|
|
228
|
+
description: Z.length === 0 ? "Add your first influencer to start building your directory." : "Try a different search term, tier, platform or niche.",
|
|
229
|
+
action: Z.length === 0 ? /* @__PURE__ */ C("button", {
|
|
230
|
+
onClick: () => G(!0),
|
|
231
|
+
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",
|
|
232
|
+
children: [/* @__PURE__ */ S(y, { className: "h-4 w-4" }), "Add Influencer"]
|
|
233
|
+
}) : void 0
|
|
224
234
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ S("div", {
|
|
226
236
|
className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
|
|
227
|
-
children:
|
|
237
|
+
children: de.map((r) => /* @__PURE__ */ C("div", {
|
|
228
238
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-5 space-y-4 hover:border-foreground/30 transition-colors",
|
|
229
239
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ C("div", {
|
|
231
241
|
className: "flex items-start gap-3",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ S("div", {
|
|
233
243
|
className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-sm font-bold text-text-primary",
|
|
234
244
|
children: r.name.split(" ").map((e) => e[0]).join("")
|
|
235
|
-
}), /* @__PURE__ */
|
|
245
|
+
}), /* @__PURE__ */ C("div", {
|
|
236
246
|
className: "flex-1 min-w-0",
|
|
237
247
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ S("div", {
|
|
239
249
|
className: "flex items-center gap-1.5",
|
|
240
|
-
children: /* @__PURE__ */
|
|
250
|
+
children: /* @__PURE__ */ S("h3", {
|
|
241
251
|
className: "text-sm font-semibold text-text-primary truncate",
|
|
242
252
|
children: r.name
|
|
243
253
|
})
|
|
244
254
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ S("p", {
|
|
246
256
|
className: "text-xs text-text-secondary",
|
|
247
257
|
children: r.handle
|
|
248
258
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ C("div", {
|
|
250
260
|
className: "flex items-center gap-1 mt-0.5 text-xs text-text-secondary",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ S(v, { className: "h-3 w-3" }), r.location]
|
|
252
262
|
})
|
|
253
263
|
]
|
|
254
264
|
})]
|
|
255
265
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ C("div", {
|
|
257
267
|
className: "flex items-center gap-2 flex-wrap",
|
|
258
268
|
children: [
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
className: e("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize",
|
|
269
|
+
/* @__PURE__ */ S("span", {
|
|
270
|
+
className: e("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", ie[r.tier]),
|
|
261
271
|
children: r.tier
|
|
262
272
|
}),
|
|
263
|
-
r.platforms.map((t) => /* @__PURE__ */
|
|
264
|
-
className: e("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize",
|
|
273
|
+
r.platforms.map((t) => /* @__PURE__ */ S("span", {
|
|
274
|
+
className: e("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", ae[t]),
|
|
265
275
|
children: t
|
|
266
276
|
}, t)),
|
|
267
|
-
r.rating > 0 && /* @__PURE__ */
|
|
277
|
+
r.rating > 0 && /* @__PURE__ */ C("div", {
|
|
268
278
|
className: "flex items-center gap-0.5 ml-auto",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ S(b, { className: "h-3 w-3 text-status-warning-text fill-[var(--color-status-warning)]" }), /* @__PURE__ */ S("span", {
|
|
270
280
|
className: "text-xs font-medium text-text-primary",
|
|
271
281
|
children: r.rating.toFixed(1)
|
|
272
282
|
})]
|
|
273
283
|
})
|
|
274
284
|
]
|
|
275
285
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ C("div", {
|
|
277
287
|
className: "grid grid-cols-2 gap-2 text-center",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ C("div", {
|
|
279
289
|
className: "rounded-md bg-bg-sunken/50 py-2",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ S("p", {
|
|
281
291
|
className: "text-sm font-bold text-text-primary",
|
|
282
292
|
children: t(r.followers)
|
|
283
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ S("p", {
|
|
284
294
|
className: "text-[10px] text-text-secondary",
|
|
285
295
|
children: "Followers"
|
|
286
296
|
})]
|
|
287
|
-
}), /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ C("div", {
|
|
288
298
|
className: "rounded-md bg-bg-sunken/50 py-2",
|
|
289
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ S("p", {
|
|
290
300
|
className: "text-sm font-bold text-text-primary",
|
|
291
301
|
children: n(r.engagementRate)
|
|
292
|
-
}), /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ S("p", {
|
|
293
303
|
className: "text-[10px] text-text-secondary",
|
|
294
304
|
children: "Engagement rate"
|
|
295
305
|
})]
|
|
296
306
|
})]
|
|
297
307
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ S("div", {
|
|
299
309
|
className: "flex flex-wrap gap-1",
|
|
300
|
-
children: r.niche.map((e) => /* @__PURE__ */
|
|
310
|
+
children: r.niche.map((e) => /* @__PURE__ */ S("span", {
|
|
301
311
|
className: "rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-secondary",
|
|
302
312
|
children: e
|
|
303
313
|
}, e))
|
|
304
314
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ C("div", {
|
|
306
316
|
className: "flex items-center gap-2 pt-2 border-t border-border-subtle",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
308
|
-
onClick: () =>
|
|
317
|
+
children: [/* @__PURE__ */ C("button", {
|
|
318
|
+
onClick: () => V(r),
|
|
309
319
|
className: "flex-1 inline-flex items-center justify-center gap-1.5 rounded-md border border-border-subtle py-2 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
311
|
-
}), /* @__PURE__ */
|
|
312
|
-
onClick: () =>
|
|
320
|
+
children: [/* @__PURE__ */ S(te, { className: "h-3 w-3" }), "View"]
|
|
321
|
+
}), /* @__PURE__ */ C("button", {
|
|
322
|
+
onClick: () => U(r),
|
|
313
323
|
className: "flex-1 inline-flex items-center justify-center gap-1.5 rounded-md bg-foreground py-2 text-xs font-medium text-background hover:bg-foreground/90",
|
|
314
|
-
children: [/* @__PURE__ */ _
|
|
324
|
+
children: [/* @__PURE__ */ S(_, { className: "h-3 w-3" }), "Contact"]
|
|
315
325
|
})]
|
|
316
326
|
})
|
|
317
327
|
]
|
|
318
328
|
}, r.id))
|
|
319
329
|
}),
|
|
320
|
-
Q.length > 0 && /* @__PURE__ */
|
|
321
|
-
page:
|
|
322
|
-
pageSize:
|
|
323
|
-
total:
|
|
324
|
-
onPageChange:
|
|
325
|
-
onPageSizeChange:
|
|
330
|
+
Q.length > 0 && /* @__PURE__ */ S(ee, {
|
|
331
|
+
page: K,
|
|
332
|
+
pageSize: q,
|
|
333
|
+
total: oe,
|
|
334
|
+
onPageChange: se,
|
|
335
|
+
onPageSizeChange: ce,
|
|
326
336
|
hideWhenSinglePage: !0
|
|
327
337
|
})
|
|
328
338
|
]
|
|
329
339
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
open: !!
|
|
332
|
-
onClose: () =>
|
|
333
|
-
influencer:
|
|
340
|
+
/* @__PURE__ */ S(u, {
|
|
341
|
+
open: !!B,
|
|
342
|
+
onClose: () => V(null),
|
|
343
|
+
influencer: B
|
|
334
344
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
open: !!
|
|
337
|
-
onClose: () =>
|
|
345
|
+
/* @__PURE__ */ S(c, {
|
|
346
|
+
open: !!H,
|
|
347
|
+
onClose: () => U(null),
|
|
338
348
|
influencers: Z,
|
|
339
|
-
existingInfluencerIds:
|
|
340
|
-
defaultInfluencerId:
|
|
349
|
+
existingInfluencerIds: le,
|
|
350
|
+
defaultInfluencerId: H?.id,
|
|
341
351
|
defaultStatus: r.Outreach,
|
|
342
|
-
onCompleted:
|
|
352
|
+
onCompleted: D
|
|
353
|
+
}),
|
|
354
|
+
/* @__PURE__ */ S(l, {
|
|
355
|
+
open: W,
|
|
356
|
+
onClose: () => G(!1),
|
|
357
|
+
onCompleted: D
|
|
343
358
|
})
|
|
344
359
|
]
|
|
345
360
|
});
|
|
346
361
|
};
|
|
347
362
|
//#endregion
|
|
348
|
-
export {
|
|
363
|
+
export { w as InfluencerDiscoveryPage };
|
|
349
364
|
|
|
350
365
|
//# sourceMappingURL=InfluencerDiscoveryPage.js.map
|