@burdenoff/microfe-headshotmarketing 2026.924.1 → 2026.924.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 +139 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +171 -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/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,97 +1,279 @@
|
|
|
1
|
-
import { useCreateHeadshotmarketingInfluencerCampaignMutation as e,
|
|
2
|
-
import { cn as
|
|
3
|
-
import { HeadshotmarketingInfluencerCampaignStatus as
|
|
4
|
-
import { Modal as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { useCreateHeadshotmarketingInfluencerCampaignMutation as e, useCreateHeadshotmarketingInfluencerMutation as t, useCreateHeadshotmarketingInfluencerRelationshipMutation as n, useUpdateHeadshotmarketingInfluencerRelationshipMutation as r } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { cn as i, formatNumber as a, formatPercentage as o } from "../utils/helpers.js";
|
|
3
|
+
import { HeadshotmarketingInfluencerCampaignStatus as s, HeadshotmarketingInfluencerRelationshipStatus as c } from "../../generated/wspace-types.js";
|
|
4
|
+
import { Modal as l } from "./Modal.js";
|
|
5
|
+
import { EMPTY_INFLUENCER_FORM as u, INFLUENCER_PLATFORM_OPTIONS as d, INFLUENCER_TIER_OPTIONS as f, buildInfluencerInput as p } from "../pages/influencers/createInfluencerForm.js";
|
|
6
|
+
import { useEffect as m, useMemo as h, useState as g } from "react";
|
|
7
|
+
import { Loader2 as _, Save as v, Star as y } from "lucide-react";
|
|
8
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
8
9
|
//#region src/headshotmarketing/components/InfluencerModals.tsx
|
|
9
|
-
var
|
|
10
|
+
var C = "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", w = "block text-sm font-medium text-text-primary mb-1", T = [
|
|
10
11
|
{
|
|
11
|
-
value:
|
|
12
|
+
value: c.Prospect,
|
|
12
13
|
label: "Prospect"
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
|
-
value:
|
|
16
|
+
value: c.Outreach,
|
|
16
17
|
label: "Outreach"
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
|
-
value:
|
|
20
|
+
value: c.Negotiating,
|
|
20
21
|
label: "Negotiating"
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
|
-
value:
|
|
24
|
+
value: c.Active,
|
|
24
25
|
label: "Active"
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
|
-
value:
|
|
28
|
+
value: c.Paused,
|
|
28
29
|
label: "Paused"
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
|
-
value:
|
|
32
|
+
value: c.Ended,
|
|
32
33
|
label: "Ended"
|
|
33
34
|
}
|
|
34
|
-
],
|
|
35
|
+
], E = [
|
|
35
36
|
{
|
|
36
|
-
value:
|
|
37
|
+
value: s.Proposed,
|
|
37
38
|
label: "Proposed"
|
|
38
39
|
},
|
|
39
40
|
{
|
|
40
|
-
value:
|
|
41
|
+
value: s.Negotiating,
|
|
41
42
|
label: "Negotiating"
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
|
-
value:
|
|
45
|
+
value: s.InProgress,
|
|
45
46
|
label: "In Progress"
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
|
-
value:
|
|
49
|
+
value: s.Completed,
|
|
49
50
|
label: "Completed"
|
|
50
51
|
},
|
|
51
52
|
{
|
|
52
|
-
value:
|
|
53
|
+
value: s.Cancelled,
|
|
53
54
|
label: "Cancelled"
|
|
54
55
|
}
|
|
55
56
|
];
|
|
56
|
-
function
|
|
57
|
+
function D(e) {
|
|
57
58
|
if (!e) return null;
|
|
58
59
|
let t = new Date(e);
|
|
59
60
|
return Number.isNaN(t.getTime()) ? null : t.toISOString();
|
|
60
61
|
}
|
|
61
|
-
var
|
|
62
|
+
var O = ({ onCancel: e, onSubmit: t, submitLabel: n, loading: r, disabled: i }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
|
|
62
63
|
type: "button",
|
|
63
64
|
onClick: e,
|
|
64
65
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
65
66
|
children: "Cancel"
|
|
66
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ S("button", {
|
|
67
68
|
type: "button",
|
|
68
69
|
onClick: t,
|
|
69
70
|
disabled: r || i,
|
|
70
71
|
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 disabled:opacity-60",
|
|
71
|
-
children: [r ? /* @__PURE__ */
|
|
72
|
+
children: [r ? /* @__PURE__ */ x(_, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ x(v, { className: "h-4 w-4" }), n]
|
|
72
73
|
})] });
|
|
73
|
-
function
|
|
74
|
-
return e ? /* @__PURE__ */
|
|
74
|
+
function k({ message: e }) {
|
|
75
|
+
return e ? /* @__PURE__ */ x("div", {
|
|
75
76
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
76
77
|
children: e
|
|
77
78
|
}) : null;
|
|
78
79
|
}
|
|
79
|
-
var
|
|
80
|
-
let [
|
|
80
|
+
var A = ({ open: e, onClose: n, onCompleted: r }) => {
|
|
81
|
+
let [a, { loading: o }] = t(), [s, c] = g(null), [h, _] = g(u);
|
|
82
|
+
m(() => {
|
|
83
|
+
e && (c(null), _(u));
|
|
84
|
+
}, [e]);
|
|
85
|
+
let v = (e, t) => {
|
|
86
|
+
_((n) => ({
|
|
87
|
+
...n,
|
|
88
|
+
[e]: t
|
|
89
|
+
}));
|
|
90
|
+
}, y = async () => {
|
|
91
|
+
let e = p(h);
|
|
92
|
+
if (!e.ok) {
|
|
93
|
+
c(e.error);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
c(null);
|
|
97
|
+
try {
|
|
98
|
+
await a({ variables: { input: e.input } }), await r?.(), n();
|
|
99
|
+
} catch (e) {
|
|
100
|
+
c(e instanceof Error ? e.message : "Failed to add influencer.");
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
return /* @__PURE__ */ x(l, {
|
|
104
|
+
open: e,
|
|
105
|
+
onClose: n,
|
|
106
|
+
title: "Add Influencer",
|
|
107
|
+
description: "Add a creator to your directory so it's ready for relationships and campaigns.",
|
|
108
|
+
size: "lg",
|
|
109
|
+
footer: /* @__PURE__ */ x(O, {
|
|
110
|
+
onCancel: n,
|
|
111
|
+
onSubmit: () => void y(),
|
|
112
|
+
submitLabel: o ? "Adding..." : "Add Influencer",
|
|
113
|
+
loading: o
|
|
114
|
+
}),
|
|
115
|
+
children: /* @__PURE__ */ S("div", {
|
|
116
|
+
className: "space-y-4",
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
119
|
+
className: w,
|
|
120
|
+
children: "Name"
|
|
121
|
+
}), /* @__PURE__ */ x("input", {
|
|
122
|
+
type: "text",
|
|
123
|
+
value: h.name,
|
|
124
|
+
onChange: (e) => v("name", e.target.value),
|
|
125
|
+
placeholder: "e.g. Ava Rivera",
|
|
126
|
+
className: C
|
|
127
|
+
})] }),
|
|
128
|
+
/* @__PURE__ */ S("div", {
|
|
129
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
130
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
131
|
+
className: w,
|
|
132
|
+
children: "Tier"
|
|
133
|
+
}), /* @__PURE__ */ x("select", {
|
|
134
|
+
value: h.tier,
|
|
135
|
+
onChange: (e) => v("tier", e.target.value),
|
|
136
|
+
className: C,
|
|
137
|
+
children: f.map((e) => /* @__PURE__ */ x("option", {
|
|
138
|
+
value: e.value,
|
|
139
|
+
children: e.label
|
|
140
|
+
}, e.value))
|
|
141
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
142
|
+
className: w,
|
|
143
|
+
children: "Location"
|
|
144
|
+
}), /* @__PURE__ */ x("input", {
|
|
145
|
+
type: "text",
|
|
146
|
+
value: h.location,
|
|
147
|
+
onChange: (e) => v("location", e.target.value),
|
|
148
|
+
placeholder: "e.g. Los Angeles",
|
|
149
|
+
className: C
|
|
150
|
+
})] })]
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ S("div", {
|
|
153
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
154
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
155
|
+
className: w,
|
|
156
|
+
children: "Platform"
|
|
157
|
+
}), /* @__PURE__ */ S("select", {
|
|
158
|
+
value: h.platform,
|
|
159
|
+
onChange: (e) => v("platform", e.target.value),
|
|
160
|
+
className: C,
|
|
161
|
+
children: [/* @__PURE__ */ x("option", {
|
|
162
|
+
value: "",
|
|
163
|
+
children: "No platform"
|
|
164
|
+
}), d.map((e) => /* @__PURE__ */ x("option", {
|
|
165
|
+
value: e.key,
|
|
166
|
+
children: e.label
|
|
167
|
+
}, e.key))]
|
|
168
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
169
|
+
className: w,
|
|
170
|
+
children: "Handle"
|
|
171
|
+
}), /* @__PURE__ */ x("input", {
|
|
172
|
+
type: "text",
|
|
173
|
+
value: h.handle,
|
|
174
|
+
onChange: (e) => v("handle", e.target.value),
|
|
175
|
+
placeholder: "@handle",
|
|
176
|
+
className: C
|
|
177
|
+
})] })]
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ S("div", {
|
|
180
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
181
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
182
|
+
className: w,
|
|
183
|
+
children: "Total Followers"
|
|
184
|
+
}), /* @__PURE__ */ x("input", {
|
|
185
|
+
type: "number",
|
|
186
|
+
min: 0,
|
|
187
|
+
step: 1e3,
|
|
188
|
+
inputMode: "numeric",
|
|
189
|
+
value: h.totalFollowers,
|
|
190
|
+
onChange: (e) => v("totalFollowers", e.target.value),
|
|
191
|
+
placeholder: "250000",
|
|
192
|
+
className: C
|
|
193
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
194
|
+
className: w,
|
|
195
|
+
children: "Engagement Rate (%)"
|
|
196
|
+
}), /* @__PURE__ */ x("input", {
|
|
197
|
+
type: "number",
|
|
198
|
+
min: 0,
|
|
199
|
+
max: 100,
|
|
200
|
+
step: .1,
|
|
201
|
+
inputMode: "decimal",
|
|
202
|
+
value: h.engagementRate,
|
|
203
|
+
onChange: (e) => v("engagementRate", e.target.value),
|
|
204
|
+
placeholder: "4.2",
|
|
205
|
+
className: C
|
|
206
|
+
})] })]
|
|
207
|
+
}),
|
|
208
|
+
/* @__PURE__ */ S("div", { children: [
|
|
209
|
+
/* @__PURE__ */ x("label", {
|
|
210
|
+
className: w,
|
|
211
|
+
children: "Niches"
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ x("input", {
|
|
214
|
+
type: "text",
|
|
215
|
+
value: h.niches,
|
|
216
|
+
onChange: (e) => v("niches", e.target.value),
|
|
217
|
+
placeholder: "Fashion, Beauty, Lifestyle",
|
|
218
|
+
className: C
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ x("p", {
|
|
221
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
222
|
+
children: "Separate multiple niches with commas."
|
|
223
|
+
})
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ S("div", {
|
|
226
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
227
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
228
|
+
className: w,
|
|
229
|
+
children: "Email"
|
|
230
|
+
}), /* @__PURE__ */ x("input", {
|
|
231
|
+
type: "email",
|
|
232
|
+
value: h.email,
|
|
233
|
+
onChange: (e) => v("email", e.target.value),
|
|
234
|
+
placeholder: "creator@example.com",
|
|
235
|
+
className: C
|
|
236
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
237
|
+
className: w,
|
|
238
|
+
children: "Phone"
|
|
239
|
+
}), /* @__PURE__ */ x("input", {
|
|
240
|
+
type: "tel",
|
|
241
|
+
value: h.phone,
|
|
242
|
+
onChange: (e) => v("phone", e.target.value),
|
|
243
|
+
placeholder: "+1 555 123 4567",
|
|
244
|
+
className: C
|
|
245
|
+
})] })]
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
248
|
+
className: w,
|
|
249
|
+
children: "Bio"
|
|
250
|
+
}), /* @__PURE__ */ x("textarea", {
|
|
251
|
+
value: h.bio,
|
|
252
|
+
onChange: (e) => v("bio", e.target.value),
|
|
253
|
+
rows: 3,
|
|
254
|
+
placeholder: "Short description of the creator…",
|
|
255
|
+
className: i(C, "resize-none")
|
|
256
|
+
})] }),
|
|
257
|
+
/* @__PURE__ */ x(k, { message: s })
|
|
258
|
+
]
|
|
259
|
+
})
|
|
260
|
+
});
|
|
261
|
+
}, j = ({ open: t, onClose: n, influencers: r, defaultInfluencerId: a, onCompleted: o }) => {
|
|
262
|
+
let [c, { loading: u }] = e(), [d, f] = g(null), [p, h] = g({
|
|
81
263
|
influencerId: "",
|
|
82
264
|
name: "",
|
|
83
265
|
description: "",
|
|
84
|
-
status:
|
|
266
|
+
status: s.Proposed,
|
|
85
267
|
compensation: "",
|
|
86
268
|
startDate: "",
|
|
87
269
|
endDate: ""
|
|
88
270
|
});
|
|
89
|
-
|
|
90
|
-
t && (
|
|
91
|
-
influencerId: a ??
|
|
271
|
+
m(() => {
|
|
272
|
+
t && (f(null), h({
|
|
273
|
+
influencerId: a ?? r[0]?.id ?? "",
|
|
92
274
|
name: "",
|
|
93
275
|
description: "",
|
|
94
|
-
status:
|
|
276
|
+
status: s.Proposed,
|
|
95
277
|
compensation: "",
|
|
96
278
|
startDate: "",
|
|
97
279
|
endDate: ""
|
|
@@ -99,258 +281,258 @@ var T = ({ open: t, onClose: n, influencers: i, defaultInfluencerId: a, onComple
|
|
|
99
281
|
}, [
|
|
100
282
|
t,
|
|
101
283
|
a,
|
|
102
|
-
|
|
284
|
+
r
|
|
103
285
|
]);
|
|
104
|
-
let
|
|
105
|
-
if (!
|
|
106
|
-
|
|
286
|
+
let _ = async () => {
|
|
287
|
+
if (!p.influencerId) {
|
|
288
|
+
f("Select an influencer for this campaign.");
|
|
107
289
|
return;
|
|
108
290
|
}
|
|
109
|
-
if (!
|
|
110
|
-
|
|
291
|
+
if (!p.name.trim()) {
|
|
292
|
+
f("Campaign name is required.");
|
|
111
293
|
return;
|
|
112
294
|
}
|
|
113
|
-
|
|
295
|
+
f(null);
|
|
114
296
|
try {
|
|
115
|
-
await
|
|
116
|
-
influencerId:
|
|
117
|
-
name:
|
|
118
|
-
description:
|
|
119
|
-
status:
|
|
120
|
-
compensation:
|
|
121
|
-
compensationType:
|
|
122
|
-
startDate:
|
|
123
|
-
endDate:
|
|
124
|
-
} } }), await
|
|
297
|
+
await c({ variables: { input: {
|
|
298
|
+
influencerId: p.influencerId,
|
|
299
|
+
name: p.name.trim(),
|
|
300
|
+
description: p.description.trim() || null,
|
|
301
|
+
status: p.status,
|
|
302
|
+
compensation: p.compensation ? Number(p.compensation) : null,
|
|
303
|
+
compensationType: p.compensation ? "flat" : null,
|
|
304
|
+
startDate: D(p.startDate),
|
|
305
|
+
endDate: D(p.endDate)
|
|
306
|
+
} } }), await o?.(), n();
|
|
125
307
|
} catch (e) {
|
|
126
|
-
|
|
308
|
+
f(e instanceof Error ? e.message : "Failed to create campaign.");
|
|
127
309
|
}
|
|
128
310
|
};
|
|
129
|
-
return /* @__PURE__ */
|
|
311
|
+
return /* @__PURE__ */ x(l, {
|
|
130
312
|
open: t,
|
|
131
313
|
onClose: n,
|
|
132
314
|
title: "Create Influencer Campaign",
|
|
133
315
|
description: "Brief a creator and start tracking deliverables.",
|
|
134
316
|
size: "lg",
|
|
135
|
-
footer: /* @__PURE__ */
|
|
317
|
+
footer: /* @__PURE__ */ x(O, {
|
|
136
318
|
onCancel: n,
|
|
137
|
-
onSubmit: () => void
|
|
138
|
-
submitLabel:
|
|
139
|
-
loading:
|
|
319
|
+
onSubmit: () => void _(),
|
|
320
|
+
submitLabel: u ? "Creating..." : "Create Campaign",
|
|
321
|
+
loading: u
|
|
140
322
|
}),
|
|
141
|
-
children: /* @__PURE__ */
|
|
323
|
+
children: /* @__PURE__ */ S("div", {
|
|
142
324
|
className: "space-y-4",
|
|
143
325
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
className:
|
|
326
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
327
|
+
className: w,
|
|
146
328
|
children: "Influencer"
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
value:
|
|
149
|
-
onChange: (e) =>
|
|
329
|
+
}), /* @__PURE__ */ S("select", {
|
|
330
|
+
value: p.influencerId,
|
|
331
|
+
onChange: (e) => h((t) => ({
|
|
150
332
|
...t,
|
|
151
333
|
influencerId: e.target.value
|
|
152
334
|
})),
|
|
153
|
-
className:
|
|
154
|
-
children: [/* @__PURE__ */
|
|
335
|
+
className: C,
|
|
336
|
+
children: [/* @__PURE__ */ x("option", {
|
|
155
337
|
value: "",
|
|
156
338
|
children: "Select an influencer…"
|
|
157
|
-
}),
|
|
339
|
+
}), r.map((e) => /* @__PURE__ */ x("option", {
|
|
158
340
|
value: e.id,
|
|
159
341
|
children: e.name
|
|
160
342
|
}, e.id))]
|
|
161
343
|
})] }),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
className:
|
|
344
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
345
|
+
className: w,
|
|
164
346
|
children: "Campaign Name"
|
|
165
|
-
}), /* @__PURE__ */
|
|
347
|
+
}), /* @__PURE__ */ x("input", {
|
|
166
348
|
type: "text",
|
|
167
|
-
value:
|
|
168
|
-
onChange: (e) =>
|
|
349
|
+
value: p.name,
|
|
350
|
+
onChange: (e) => h((t) => ({
|
|
169
351
|
...t,
|
|
170
352
|
name: e.target.value
|
|
171
353
|
})),
|
|
172
354
|
placeholder: "Spring product launch",
|
|
173
|
-
className:
|
|
355
|
+
className: C
|
|
174
356
|
})] }),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
className:
|
|
357
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
358
|
+
className: w,
|
|
177
359
|
children: "Brief / Guidelines"
|
|
178
|
-
}), /* @__PURE__ */
|
|
179
|
-
value:
|
|
180
|
-
onChange: (e) =>
|
|
360
|
+
}), /* @__PURE__ */ x("textarea", {
|
|
361
|
+
value: p.description,
|
|
362
|
+
onChange: (e) => h((t) => ({
|
|
181
363
|
...t,
|
|
182
364
|
description: e.target.value
|
|
183
365
|
})),
|
|
184
366
|
rows: 3,
|
|
185
367
|
placeholder: "What should the creator produce?",
|
|
186
|
-
className:
|
|
368
|
+
className: i(C, "resize-none")
|
|
187
369
|
})] }),
|
|
188
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ S("div", {
|
|
189
371
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
190
|
-
children: [/* @__PURE__ */
|
|
191
|
-
className:
|
|
372
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
373
|
+
className: w,
|
|
192
374
|
children: "Compensation ($)"
|
|
193
|
-
}), /* @__PURE__ */
|
|
375
|
+
}), /* @__PURE__ */ x("input", {
|
|
194
376
|
type: "number",
|
|
195
377
|
min: 0,
|
|
196
|
-
value:
|
|
197
|
-
onChange: (e) =>
|
|
378
|
+
value: p.compensation,
|
|
379
|
+
onChange: (e) => h((t) => ({
|
|
198
380
|
...t,
|
|
199
381
|
compensation: e.target.value
|
|
200
382
|
})),
|
|
201
383
|
placeholder: "2500",
|
|
202
|
-
className:
|
|
203
|
-
})] }), /* @__PURE__ */
|
|
204
|
-
className:
|
|
384
|
+
className: C
|
|
385
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
386
|
+
className: w,
|
|
205
387
|
children: "Status"
|
|
206
|
-
}), /* @__PURE__ */
|
|
207
|
-
value:
|
|
208
|
-
onChange: (e) =>
|
|
388
|
+
}), /* @__PURE__ */ x("select", {
|
|
389
|
+
value: p.status,
|
|
390
|
+
onChange: (e) => h((t) => ({
|
|
209
391
|
...t,
|
|
210
392
|
status: e.target.value
|
|
211
393
|
})),
|
|
212
|
-
className:
|
|
213
|
-
children:
|
|
394
|
+
className: C,
|
|
395
|
+
children: E.map((e) => /* @__PURE__ */ x("option", {
|
|
214
396
|
value: e.value,
|
|
215
397
|
children: e.label
|
|
216
398
|
}, e.value))
|
|
217
399
|
})] })]
|
|
218
400
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ S("div", {
|
|
220
402
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
222
|
-
className:
|
|
403
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
404
|
+
className: w,
|
|
223
405
|
children: "Start Date"
|
|
224
|
-
}), /* @__PURE__ */
|
|
406
|
+
}), /* @__PURE__ */ x("input", {
|
|
225
407
|
type: "date",
|
|
226
|
-
value:
|
|
227
|
-
onChange: (e) =>
|
|
408
|
+
value: p.startDate,
|
|
409
|
+
onChange: (e) => h((t) => ({
|
|
228
410
|
...t,
|
|
229
411
|
startDate: e.target.value
|
|
230
412
|
})),
|
|
231
|
-
className:
|
|
232
|
-
})] }), /* @__PURE__ */
|
|
233
|
-
className:
|
|
413
|
+
className: C
|
|
414
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
415
|
+
className: w,
|
|
234
416
|
children: "End Date"
|
|
235
|
-
}), /* @__PURE__ */
|
|
417
|
+
}), /* @__PURE__ */ x("input", {
|
|
236
418
|
type: "date",
|
|
237
|
-
value:
|
|
238
|
-
onChange: (e) =>
|
|
419
|
+
value: p.endDate,
|
|
420
|
+
onChange: (e) => h((t) => ({
|
|
239
421
|
...t,
|
|
240
422
|
endDate: e.target.value
|
|
241
423
|
})),
|
|
242
|
-
className:
|
|
424
|
+
className: C
|
|
243
425
|
})] })]
|
|
244
426
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ x(k, { message: d })
|
|
246
428
|
]
|
|
247
429
|
})
|
|
248
430
|
});
|
|
249
|
-
},
|
|
250
|
-
let [
|
|
431
|
+
}, M = ({ open: e, onClose: t, influencers: r, existingInfluencerIds: a, defaultInfluencerId: o, defaultStatus: s = c.Outreach, onCompleted: u }) => {
|
|
432
|
+
let [d, { loading: f }] = n(), [p, _] = g(null), [v, y] = g({
|
|
251
433
|
influencerId: "",
|
|
252
|
-
status:
|
|
434
|
+
status: s,
|
|
253
435
|
rating: "",
|
|
254
436
|
notes: ""
|
|
255
|
-
}),
|
|
256
|
-
|
|
257
|
-
|
|
437
|
+
}), E = h(() => new Set(a), [a]), D = h(() => r.filter((e) => e.id === o || !E.has(e.id)), [
|
|
438
|
+
r,
|
|
439
|
+
E,
|
|
258
440
|
o
|
|
259
441
|
]);
|
|
260
|
-
|
|
261
|
-
e && (
|
|
262
|
-
influencerId: o ??
|
|
263
|
-
status:
|
|
442
|
+
m(() => {
|
|
443
|
+
e && (_(null), y({
|
|
444
|
+
influencerId: o ?? D[0]?.id ?? "",
|
|
445
|
+
status: s,
|
|
264
446
|
rating: "",
|
|
265
447
|
notes: ""
|
|
266
448
|
}));
|
|
267
449
|
}, [
|
|
268
450
|
e,
|
|
269
451
|
o,
|
|
270
|
-
|
|
271
|
-
|
|
452
|
+
s,
|
|
453
|
+
D
|
|
272
454
|
]);
|
|
273
455
|
let A = async () => {
|
|
274
|
-
if (!
|
|
275
|
-
|
|
456
|
+
if (!v.influencerId) {
|
|
457
|
+
_("Select an influencer to add.");
|
|
276
458
|
return;
|
|
277
459
|
}
|
|
278
|
-
|
|
460
|
+
_(null);
|
|
279
461
|
try {
|
|
280
|
-
await
|
|
281
|
-
influencerId:
|
|
282
|
-
status:
|
|
283
|
-
notes:
|
|
284
|
-
rating:
|
|
462
|
+
await d({ variables: { input: {
|
|
463
|
+
influencerId: v.influencerId,
|
|
464
|
+
status: v.status,
|
|
465
|
+
notes: v.notes.trim() || null,
|
|
466
|
+
rating: v.rating ? Number(v.rating) : null,
|
|
285
467
|
firstContactDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
286
|
-
} } }), await
|
|
468
|
+
} } }), await u?.(), t();
|
|
287
469
|
} catch (e) {
|
|
288
|
-
|
|
470
|
+
_(e instanceof Error ? e.message : "Failed to add relationship.");
|
|
289
471
|
}
|
|
290
472
|
};
|
|
291
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ x(l, {
|
|
292
474
|
open: e,
|
|
293
|
-
onClose:
|
|
475
|
+
onClose: t,
|
|
294
476
|
title: "Add Influencer Relationship",
|
|
295
477
|
description: "Track a creator partnership in your roster.",
|
|
296
478
|
size: "md",
|
|
297
|
-
footer: /* @__PURE__ */
|
|
298
|
-
onCancel:
|
|
479
|
+
footer: /* @__PURE__ */ x(O, {
|
|
480
|
+
onCancel: t,
|
|
299
481
|
onSubmit: () => void A(),
|
|
300
|
-
submitLabel:
|
|
301
|
-
loading:
|
|
302
|
-
disabled:
|
|
482
|
+
submitLabel: f ? "Adding..." : "Add Relationship",
|
|
483
|
+
loading: f,
|
|
484
|
+
disabled: D.length === 0
|
|
303
485
|
}),
|
|
304
|
-
children: /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ S("div", {
|
|
305
487
|
className: "space-y-4",
|
|
306
|
-
children: [
|
|
488
|
+
children: [D.length === 0 ? /* @__PURE__ */ x("p", {
|
|
307
489
|
className: "text-sm text-text-secondary",
|
|
308
490
|
children: "Every influencer already has a relationship. Add influencers from Discovery first."
|
|
309
|
-
}) : /* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
className:
|
|
491
|
+
}) : /* @__PURE__ */ S(b, { children: [
|
|
492
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
493
|
+
className: w,
|
|
312
494
|
children: "Influencer"
|
|
313
|
-
}), /* @__PURE__ */
|
|
314
|
-
value:
|
|
315
|
-
onChange: (e) =>
|
|
495
|
+
}), /* @__PURE__ */ S("select", {
|
|
496
|
+
value: v.influencerId,
|
|
497
|
+
onChange: (e) => y((t) => ({
|
|
316
498
|
...t,
|
|
317
499
|
influencerId: e.target.value
|
|
318
500
|
})),
|
|
319
|
-
className:
|
|
320
|
-
children: [/* @__PURE__ */
|
|
501
|
+
className: C,
|
|
502
|
+
children: [/* @__PURE__ */ x("option", {
|
|
321
503
|
value: "",
|
|
322
504
|
children: "Select an influencer…"
|
|
323
|
-
}),
|
|
505
|
+
}), D.map((e) => /* @__PURE__ */ x("option", {
|
|
324
506
|
value: e.id,
|
|
325
507
|
children: e.name
|
|
326
508
|
}, e.id))]
|
|
327
509
|
})] }),
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
className:
|
|
510
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
511
|
+
className: w,
|
|
330
512
|
children: "Status"
|
|
331
|
-
}), /* @__PURE__ */
|
|
332
|
-
value:
|
|
333
|
-
onChange: (e) =>
|
|
513
|
+
}), /* @__PURE__ */ x("select", {
|
|
514
|
+
value: v.status,
|
|
515
|
+
onChange: (e) => y((t) => ({
|
|
334
516
|
...t,
|
|
335
517
|
status: e.target.value
|
|
336
518
|
})),
|
|
337
|
-
className:
|
|
338
|
-
children:
|
|
519
|
+
className: C,
|
|
520
|
+
children: T.map((e) => /* @__PURE__ */ x("option", {
|
|
339
521
|
value: e.value,
|
|
340
522
|
children: e.label
|
|
341
523
|
}, e.value))
|
|
342
524
|
})] }),
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
className:
|
|
525
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
526
|
+
className: w,
|
|
345
527
|
children: "Rating (1-5)"
|
|
346
|
-
}), /* @__PURE__ */
|
|
347
|
-
value:
|
|
348
|
-
onChange: (e) =>
|
|
528
|
+
}), /* @__PURE__ */ S("select", {
|
|
529
|
+
value: v.rating,
|
|
530
|
+
onChange: (e) => y((t) => ({
|
|
349
531
|
...t,
|
|
350
532
|
rating: e.target.value
|
|
351
533
|
})),
|
|
352
|
-
className:
|
|
353
|
-
children: [/* @__PURE__ */
|
|
534
|
+
className: C,
|
|
535
|
+
children: [/* @__PURE__ */ x("option", {
|
|
354
536
|
value: "",
|
|
355
537
|
children: "Not rated"
|
|
356
538
|
}), [
|
|
@@ -359,104 +541,104 @@ var T = ({ open: t, onClose: n, influencers: i, defaultInfluencerId: a, onComple
|
|
|
359
541
|
3,
|
|
360
542
|
4,
|
|
361
543
|
5
|
|
362
|
-
].map((e) => /* @__PURE__ */
|
|
544
|
+
].map((e) => /* @__PURE__ */ x("option", {
|
|
363
545
|
value: e,
|
|
364
546
|
children: e
|
|
365
547
|
}, e))]
|
|
366
548
|
})] }),
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
className:
|
|
549
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
550
|
+
className: w,
|
|
369
551
|
children: "Notes"
|
|
370
|
-
}), /* @__PURE__ */
|
|
371
|
-
value:
|
|
372
|
-
onChange: (e) =>
|
|
552
|
+
}), /* @__PURE__ */ x("textarea", {
|
|
553
|
+
value: v.notes,
|
|
554
|
+
onChange: (e) => y((t) => ({
|
|
373
555
|
...t,
|
|
374
556
|
notes: e.target.value
|
|
375
557
|
})),
|
|
376
558
|
rows: 3,
|
|
377
559
|
placeholder: "Context on this partnership…",
|
|
378
|
-
className:
|
|
560
|
+
className: i(C, "resize-none")
|
|
379
561
|
})] })
|
|
380
|
-
] }), /* @__PURE__ */
|
|
562
|
+
] }), /* @__PURE__ */ x(k, { message: p })]
|
|
381
563
|
})
|
|
382
564
|
});
|
|
383
|
-
},
|
|
384
|
-
active:
|
|
385
|
-
pending:
|
|
386
|
-
inactive:
|
|
387
|
-
blocked:
|
|
388
|
-
},
|
|
389
|
-
let [o, { loading:
|
|
390
|
-
status:
|
|
565
|
+
}, N = {
|
|
566
|
+
active: c.Active,
|
|
567
|
+
pending: c.Outreach,
|
|
568
|
+
inactive: c.Paused,
|
|
569
|
+
blocked: c.Ended
|
|
570
|
+
}, P = ({ open: e, onClose: t, relationship: n, onCompleted: a }) => {
|
|
571
|
+
let [o, { loading: s }] = r(), [u, d] = g(null), [f, p] = g({
|
|
572
|
+
status: c.Active,
|
|
391
573
|
rating: "",
|
|
392
574
|
notes: ""
|
|
393
575
|
});
|
|
394
|
-
|
|
395
|
-
!e || !
|
|
396
|
-
status:
|
|
397
|
-
rating:
|
|
398
|
-
notes:
|
|
576
|
+
m(() => {
|
|
577
|
+
!e || !n || (d(null), p({
|
|
578
|
+
status: N[n.status],
|
|
579
|
+
rating: n.averageROI ? String(n.averageROI) : "",
|
|
580
|
+
notes: n.notes ?? ""
|
|
399
581
|
}));
|
|
400
|
-
}, [e,
|
|
401
|
-
let
|
|
402
|
-
if (
|
|
403
|
-
|
|
582
|
+
}, [e, n]);
|
|
583
|
+
let h = async () => {
|
|
584
|
+
if (n) {
|
|
585
|
+
d(null);
|
|
404
586
|
try {
|
|
405
587
|
await o({ variables: {
|
|
406
|
-
id:
|
|
588
|
+
id: n.id,
|
|
407
589
|
input: {
|
|
408
|
-
status:
|
|
409
|
-
notes:
|
|
410
|
-
rating:
|
|
590
|
+
status: f.status,
|
|
591
|
+
notes: f.notes.trim() || null,
|
|
592
|
+
rating: f.rating ? Number(f.rating) : null,
|
|
411
593
|
lastInteractionDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
412
594
|
}
|
|
413
595
|
} }), await a?.(), t();
|
|
414
596
|
} catch (e) {
|
|
415
|
-
|
|
597
|
+
d(e instanceof Error ? e.message : "Failed to update relationship.");
|
|
416
598
|
}
|
|
417
599
|
}
|
|
418
600
|
};
|
|
419
|
-
return /* @__PURE__ */
|
|
601
|
+
return /* @__PURE__ */ x(l, {
|
|
420
602
|
open: e,
|
|
421
603
|
onClose: t,
|
|
422
604
|
title: "Edit Relationship",
|
|
423
|
-
description:
|
|
605
|
+
description: n?.influencerName,
|
|
424
606
|
size: "md",
|
|
425
|
-
footer: /* @__PURE__ */
|
|
607
|
+
footer: /* @__PURE__ */ x(O, {
|
|
426
608
|
onCancel: t,
|
|
427
|
-
onSubmit: () => void
|
|
428
|
-
submitLabel:
|
|
429
|
-
loading:
|
|
609
|
+
onSubmit: () => void h(),
|
|
610
|
+
submitLabel: s ? "Saving..." : "Save Changes",
|
|
611
|
+
loading: s
|
|
430
612
|
}),
|
|
431
|
-
children: /* @__PURE__ */
|
|
613
|
+
children: /* @__PURE__ */ S("div", {
|
|
432
614
|
className: "space-y-4",
|
|
433
615
|
children: [
|
|
434
|
-
/* @__PURE__ */
|
|
435
|
-
className:
|
|
616
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
617
|
+
className: w,
|
|
436
618
|
children: "Status"
|
|
437
|
-
}), /* @__PURE__ */
|
|
438
|
-
value:
|
|
439
|
-
onChange: (e) =>
|
|
619
|
+
}), /* @__PURE__ */ x("select", {
|
|
620
|
+
value: f.status,
|
|
621
|
+
onChange: (e) => p((t) => ({
|
|
440
622
|
...t,
|
|
441
623
|
status: e.target.value
|
|
442
624
|
})),
|
|
443
|
-
className:
|
|
444
|
-
children:
|
|
625
|
+
className: C,
|
|
626
|
+
children: T.map((e) => /* @__PURE__ */ x("option", {
|
|
445
627
|
value: e.value,
|
|
446
628
|
children: e.label
|
|
447
629
|
}, e.value))
|
|
448
630
|
})] }),
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
-
className:
|
|
631
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
632
|
+
className: w,
|
|
451
633
|
children: "Rating (1-5)"
|
|
452
|
-
}), /* @__PURE__ */
|
|
453
|
-
value:
|
|
454
|
-
onChange: (e) =>
|
|
634
|
+
}), /* @__PURE__ */ S("select", {
|
|
635
|
+
value: f.rating,
|
|
636
|
+
onChange: (e) => p((t) => ({
|
|
455
637
|
...t,
|
|
456
638
|
rating: e.target.value
|
|
457
639
|
})),
|
|
458
|
-
className:
|
|
459
|
-
children: [/* @__PURE__ */
|
|
640
|
+
className: C,
|
|
641
|
+
children: [/* @__PURE__ */ x("option", {
|
|
460
642
|
value: "",
|
|
461
643
|
children: "Not rated"
|
|
462
644
|
}), [
|
|
@@ -465,119 +647,119 @@ var T = ({ open: t, onClose: n, influencers: i, defaultInfluencerId: a, onComple
|
|
|
465
647
|
3,
|
|
466
648
|
4,
|
|
467
649
|
5
|
|
468
|
-
].map((e) => /* @__PURE__ */
|
|
650
|
+
].map((e) => /* @__PURE__ */ x("option", {
|
|
469
651
|
value: e,
|
|
470
652
|
children: e
|
|
471
653
|
}, e))]
|
|
472
654
|
})] }),
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
className:
|
|
655
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
656
|
+
className: w,
|
|
475
657
|
children: "Notes"
|
|
476
|
-
}), /* @__PURE__ */
|
|
477
|
-
value:
|
|
478
|
-
onChange: (e) =>
|
|
658
|
+
}), /* @__PURE__ */ x("textarea", {
|
|
659
|
+
value: f.notes,
|
|
660
|
+
onChange: (e) => p((t) => ({
|
|
479
661
|
...t,
|
|
480
662
|
notes: e.target.value
|
|
481
663
|
})),
|
|
482
664
|
rows: 4,
|
|
483
665
|
placeholder: "Relationship notes…",
|
|
484
|
-
className:
|
|
666
|
+
className: i(C, "resize-none")
|
|
485
667
|
})] }),
|
|
486
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ x(k, { message: u })
|
|
487
669
|
]
|
|
488
670
|
})
|
|
489
671
|
});
|
|
490
|
-
},
|
|
672
|
+
}, F = ({ open: e, onClose: t, influencer: n }) => n ? /* @__PURE__ */ x(l, {
|
|
491
673
|
open: e,
|
|
492
674
|
onClose: t,
|
|
493
675
|
title: n.name,
|
|
494
676
|
description: n.handle,
|
|
495
677
|
size: "md",
|
|
496
|
-
children: /* @__PURE__ */
|
|
678
|
+
children: /* @__PURE__ */ S("div", {
|
|
497
679
|
className: "space-y-4",
|
|
498
680
|
children: [
|
|
499
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ S("div", {
|
|
500
682
|
className: "flex flex-wrap items-center gap-2",
|
|
501
683
|
children: [
|
|
502
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ x("span", {
|
|
503
685
|
className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium capitalize text-text-primary",
|
|
504
686
|
children: n.tier
|
|
505
687
|
}),
|
|
506
|
-
n.platforms.map((e) => /* @__PURE__ */
|
|
688
|
+
n.platforms.map((e) => /* @__PURE__ */ x("span", {
|
|
507
689
|
className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium capitalize text-text-primary",
|
|
508
690
|
children: e
|
|
509
691
|
}, e)),
|
|
510
|
-
n.rating > 0 && /* @__PURE__ */
|
|
692
|
+
n.rating > 0 && /* @__PURE__ */ S("span", {
|
|
511
693
|
className: "inline-flex items-center gap-1 text-xs font-medium text-text-primary",
|
|
512
|
-
children: [/* @__PURE__ */
|
|
694
|
+
children: [/* @__PURE__ */ x(y, { className: "h-3 w-3 text-status-warning-text fill-[var(--color-status-warning)]" }), n.rating.toFixed(1)]
|
|
513
695
|
})
|
|
514
696
|
]
|
|
515
697
|
}),
|
|
516
|
-
n.bio && /* @__PURE__ */
|
|
698
|
+
n.bio && /* @__PURE__ */ x("p", {
|
|
517
699
|
className: "text-sm text-text-secondary",
|
|
518
700
|
children: n.bio
|
|
519
701
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ S("div", {
|
|
521
703
|
className: "grid grid-cols-2 gap-3 text-center",
|
|
522
|
-
children: [/* @__PURE__ */
|
|
704
|
+
children: [/* @__PURE__ */ S("div", {
|
|
523
705
|
className: "rounded-md bg-bg-sunken/50 py-3",
|
|
524
|
-
children: [/* @__PURE__ */
|
|
706
|
+
children: [/* @__PURE__ */ x("p", {
|
|
525
707
|
className: "text-sm font-bold text-text-primary",
|
|
526
|
-
children:
|
|
527
|
-
}), /* @__PURE__ */
|
|
708
|
+
children: a(n.followers)
|
|
709
|
+
}), /* @__PURE__ */ x("p", {
|
|
528
710
|
className: "text-[10px] text-text-secondary",
|
|
529
711
|
children: "Followers"
|
|
530
712
|
})]
|
|
531
|
-
}), /* @__PURE__ */
|
|
713
|
+
}), /* @__PURE__ */ S("div", {
|
|
532
714
|
className: "rounded-md bg-bg-sunken/50 py-3",
|
|
533
|
-
children: [/* @__PURE__ */
|
|
715
|
+
children: [/* @__PURE__ */ x("p", {
|
|
534
716
|
className: "text-sm font-bold text-text-primary",
|
|
535
|
-
children:
|
|
536
|
-
}), /* @__PURE__ */
|
|
717
|
+
children: o(n.engagementRate)
|
|
718
|
+
}), /* @__PURE__ */ x("p", {
|
|
537
719
|
className: "text-[10px] text-text-secondary",
|
|
538
720
|
children: "Engagement rate"
|
|
539
721
|
})]
|
|
540
722
|
})]
|
|
541
723
|
}),
|
|
542
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ S("dl", {
|
|
543
725
|
className: "space-y-2 text-sm",
|
|
544
726
|
children: [
|
|
545
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ S("div", {
|
|
546
728
|
className: "flex justify-between gap-4",
|
|
547
|
-
children: [/* @__PURE__ */
|
|
729
|
+
children: [/* @__PURE__ */ x("dt", {
|
|
548
730
|
className: "text-text-secondary",
|
|
549
731
|
children: "Location"
|
|
550
|
-
}), /* @__PURE__ */
|
|
732
|
+
}), /* @__PURE__ */ x("dd", {
|
|
551
733
|
className: "text-text-primary",
|
|
552
734
|
children: n.location
|
|
553
735
|
})]
|
|
554
736
|
}),
|
|
555
|
-
n.email && /* @__PURE__ */
|
|
737
|
+
n.email && /* @__PURE__ */ S("div", {
|
|
556
738
|
className: "flex justify-between gap-4",
|
|
557
|
-
children: [/* @__PURE__ */
|
|
739
|
+
children: [/* @__PURE__ */ x("dt", {
|
|
558
740
|
className: "text-text-secondary",
|
|
559
741
|
children: "Email"
|
|
560
|
-
}), /* @__PURE__ */
|
|
742
|
+
}), /* @__PURE__ */ x("dd", {
|
|
561
743
|
className: "truncate text-text-primary",
|
|
562
744
|
children: n.email
|
|
563
745
|
})]
|
|
564
746
|
}),
|
|
565
|
-
n.phone && /* @__PURE__ */
|
|
747
|
+
n.phone && /* @__PURE__ */ S("div", {
|
|
566
748
|
className: "flex justify-between gap-4",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
749
|
+
children: [/* @__PURE__ */ x("dt", {
|
|
568
750
|
className: "text-text-secondary",
|
|
569
751
|
children: "Phone"
|
|
570
|
-
}), /* @__PURE__ */
|
|
752
|
+
}), /* @__PURE__ */ x("dd", {
|
|
571
753
|
className: "truncate text-text-primary",
|
|
572
754
|
children: n.phone
|
|
573
755
|
})]
|
|
574
756
|
}),
|
|
575
|
-
n.niche.length > 0 && /* @__PURE__ */
|
|
757
|
+
n.niche.length > 0 && /* @__PURE__ */ S("div", {
|
|
576
758
|
className: "flex justify-between gap-4",
|
|
577
|
-
children: [/* @__PURE__ */
|
|
759
|
+
children: [/* @__PURE__ */ x("dt", {
|
|
578
760
|
className: "text-text-secondary",
|
|
579
761
|
children: "Niches"
|
|
580
|
-
}), /* @__PURE__ */
|
|
762
|
+
}), /* @__PURE__ */ x("dd", {
|
|
581
763
|
className: "text-right text-text-primary",
|
|
582
764
|
children: n.niche.join(", ")
|
|
583
765
|
})]
|
|
@@ -588,6 +770,6 @@ var T = ({ open: t, onClose: n, influencers: i, defaultInfluencerId: a, onComple
|
|
|
588
770
|
})
|
|
589
771
|
}) : null;
|
|
590
772
|
//#endregion
|
|
591
|
-
export {
|
|
773
|
+
export { M as AddInfluencerRelationshipModal, j as CreateInfluencerCampaignModal, A as CreateInfluencerModal, P as EditInfluencerRelationshipModal, F as InfluencerDetailsModal };
|
|
592
774
|
|
|
593
775
|
//# sourceMappingURL=InfluencerModals.js.map
|