@burdenoff/microfe-headshotmarketing 2026.925.1 → 2026.928.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.d.ts +269 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +330 -205
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +83988 -38349
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +6 -4
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.d.ts +11 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.js +44 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.js.map +1 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +6 -5
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.d.ts +2 -0
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js +48 -41
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.d.ts +13 -0
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.js +44 -0
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.js.map +1 -0
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +94 -83
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +201 -167
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +189 -179
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/socialConnect.d.ts +73 -0
- package/dist/headshotmarketing/pages/social-media/socialConnect.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/social-media/socialConnect.js +67 -0
- package/dist/headshotmarketing/pages/social-media/socialConnect.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/useSocialConnect.d.ts +22 -0
- package/dist/headshotmarketing/pages/social-media/useSocialConnect.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/social-media/useSocialConnect.js +90 -0
- package/dist/headshotmarketing/pages/social-media/useSocialConnect.js.map +1 -0
- package/dist/headshotmarketing/types/index.d.ts +4 -0
- package/dist/headshotmarketing/types/index.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/deleteFeedback.d.ts +11 -0
- package/dist/headshotmarketing/utils/deleteFeedback.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/deleteFeedback.js +8 -1
- package/dist/headshotmarketing/utils/deleteFeedback.js.map +1 -1
- package/dist/headshotmarketing/utils/oauthPopup.d.ts +58 -0
- package/dist/headshotmarketing/utils/oauthPopup.d.ts.map +1 -0
- package/dist/headshotmarketing/utils/oauthPopup.js +68 -0
- package/dist/headshotmarketing/utils/oauthPopup.js.map +1 -0
- package/dist/headshotmarketing/utils/socialMapper.d.ts +2 -0
- package/dist/headshotmarketing/utils/socialMapper.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/socialMapper.js +3 -1
- package/dist/headshotmarketing/utils/socialMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,55 +4,56 @@ import { Tooltip as n } from "../../../node_modules/recharts/es6/component/Toolt
|
|
|
4
4
|
import { ResponsiveContainer as r } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
|
|
5
5
|
import { Bar as i } from "../../../node_modules/recharts/es6/cartesian/Bar.js";
|
|
6
6
|
import { CartesianGrid as a } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
|
|
7
|
-
import { XAxis as
|
|
8
|
-
import { YAxis as
|
|
9
|
-
import { BarChart as
|
|
10
|
-
import { cn as
|
|
11
|
-
import { PageLayout as
|
|
12
|
-
import { StatCard as
|
|
13
|
-
import { StatusBadge as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
7
|
+
import { XAxis as o } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
|
|
8
|
+
import { YAxis as s } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
9
|
+
import { BarChart as c } from "../../../node_modules/recharts/es6/chart/BarChart.js";
|
|
10
|
+
import { cn as l, formatNumber as u, formatPercentage as d } from "../../utils/helpers.js";
|
|
11
|
+
import { PageLayout as f } from "../../components/PageLayout.js";
|
|
12
|
+
import { StatCard as p } from "../../components/StatCard.js";
|
|
13
|
+
import { StatusBadge as ee } from "../../components/StatusBadge.js";
|
|
14
|
+
import { EmptyState as m } from "../../components/EmptyState.js";
|
|
15
|
+
import { ChartCard as h } from "../../components/ChartCard.js";
|
|
16
|
+
import { QueryStateBoundary as g } from "../../components/QueryStateBoundary.js";
|
|
16
17
|
import "../../components/index.js";
|
|
17
|
-
import { useHeadshotmarketingBootstrap as
|
|
18
|
-
import { toEngagementSeries as
|
|
18
|
+
import { useHeadshotmarketingBootstrap as _ } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
19
|
+
import { toEngagementSeries as v, toHashtagSuggestions as y, toSocialAccountModel as te, toSocialPostModel as ne } from "../../utils/socialMapper.js";
|
|
19
20
|
import "../../hooks/index.js";
|
|
20
21
|
import { useMemo as b, useState as x } from "react";
|
|
21
|
-
import { CalendarDays as S, Eye as C, Hash as w, Heart as
|
|
22
|
-
import { jsx as
|
|
23
|
-
import { EmphasisPanel as
|
|
24
|
-
import { useI18n as
|
|
22
|
+
import { CalendarDays as S, Eye as C, Hash as w, Heart as T, PenSquare as E, RefreshCw as re, TrendingUp as ie, Users as D } from "lucide-react";
|
|
23
|
+
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
24
|
+
import { EmphasisPanel as A, NextSteps as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
25
|
+
import { useI18n as N } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
25
26
|
//#region src/headshotmarketing/pages/social-media/SocialMediaPage.tsx
|
|
26
|
-
var
|
|
27
|
+
var P = [
|
|
27
28
|
"var(--color-chart-1)",
|
|
28
29
|
"var(--color-chart-2)",
|
|
29
30
|
"var(--color-chart-3)",
|
|
30
31
|
"var(--color-chart-4)",
|
|
31
32
|
"var(--color-chart-5)",
|
|
32
33
|
"var(--color-chart-6)"
|
|
33
|
-
],
|
|
34
|
+
], F = {
|
|
34
35
|
instagram: "bg-[var(--color-accent-soft)] text-action-primary-bg",
|
|
35
36
|
facebook: "bg-status-info-bg text-status-info-text",
|
|
36
37
|
twitter: "bg-status-info-bg text-status-info-text",
|
|
37
38
|
linkedin: "bg-status-info-bg text-status-info-text",
|
|
38
39
|
youtube: "bg-status-error-bg text-status-error-text",
|
|
39
40
|
tiktok: "bg-bg-sunken text-text-secondary"
|
|
40
|
-
},
|
|
41
|
-
let { navigate:
|
|
42
|
-
let n =
|
|
41
|
+
}, I = () => {
|
|
42
|
+
let { navigate: I, basePath: L } = e(), { t: R } = N(), z = (e, t) => {
|
|
43
|
+
let n = R(e);
|
|
43
44
|
return n === e ? t : n;
|
|
44
|
-
}, { data:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
]),
|
|
49
|
-
let e =
|
|
45
|
+
}, { data: B, loading: V, error: H, refetch: U } = _(), [W, G] = x("overview"), [K, q] = x("all"), J = b(() => (B?.headshotmarketingSocialAccounts.items ?? []).map((e) => te(e)), [B?.headshotmarketingSocialAccounts.items]), Y = b(() => Object.fromEntries((B?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.accountName])), [B?.headshotmarketingSocialAccounts.items]), X = b(() => Object.fromEntries(J.map((e) => [e.id, e.platform])), [J]), Z = b(() => (B?.headshotmarketingSocialPosts.items ?? []).map((e) => ne(e, Y, X)), [
|
|
46
|
+
B?.headshotmarketingSocialPosts.items,
|
|
47
|
+
Y,
|
|
48
|
+
X
|
|
49
|
+
]), Q = b(() => {
|
|
50
|
+
let e = B?.headshotmarketingSocialMetrics, t = Z.reduce((e, t) => e + t.metrics.reach, 0), n = Z.reduce((e, t) => e + t.metrics.impressions, 0), r = Z.filter((e) => e.status === "published"), i = r.length > 0 ? r.reduce((e, t) => e + t.metrics.engagementRate, 0) / r.length : 0, a = Object.values(J.reduce((e, t) => (e[t.platform] || (e[t.platform] = {
|
|
50
51
|
platform: t.platform,
|
|
51
52
|
followers: 0,
|
|
52
53
|
engagement: 0,
|
|
53
54
|
reach: 0
|
|
54
55
|
}), e[t.platform].followers += t.followers, e), {})).map((e) => {
|
|
55
|
-
let t =
|
|
56
|
+
let t = Z.filter((t) => t.platform === e.platform).reduce((e, t) => (e.engagement += t.metrics.likes + t.metrics.comments + t.metrics.shares, e.reach += t.metrics.reach, e), {
|
|
56
57
|
engagement: 0,
|
|
57
58
|
reach: 0
|
|
58
59
|
});
|
|
@@ -63,196 +64,196 @@ var F = [
|
|
|
63
64
|
};
|
|
64
65
|
});
|
|
65
66
|
return {
|
|
66
|
-
totalFollowers: e?.totalFollowers ??
|
|
67
|
-
totalEngagement: e?.totalEngagement ??
|
|
67
|
+
totalFollowers: e?.totalFollowers ?? J.reduce((e, t) => e + t.followers, 0),
|
|
68
|
+
totalEngagement: e?.totalEngagement ?? Z.reduce((e, t) => e + t.metrics.likes + t.metrics.comments + t.metrics.shares, 0),
|
|
68
69
|
totalReach: t,
|
|
69
70
|
totalImpressions: n,
|
|
70
71
|
averageEngagementRate: i,
|
|
71
72
|
platformBreakdown: a
|
|
72
73
|
};
|
|
73
74
|
}, [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
]),
|
|
75
|
+
B?.headshotmarketingSocialMetrics,
|
|
76
|
+
J,
|
|
77
|
+
Z
|
|
78
|
+
]), ae = b(() => y(Z), [Z]), oe = b(() => v(Z), [Z]), $ = b(() => K === "all" ? Z : Z.filter((e) => e.platform === K), [K, Z]), se = [
|
|
78
79
|
{
|
|
79
80
|
key: "overview",
|
|
80
|
-
label:
|
|
81
|
+
label: z("headshotmarketing.social.tabs.overview", "Overview")
|
|
81
82
|
},
|
|
82
83
|
{
|
|
83
84
|
key: "posts",
|
|
84
|
-
label:
|
|
85
|
+
label: z("headshotmarketing.social.tabs.posts", "Posts")
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
88
|
key: "analytics",
|
|
88
|
-
label:
|
|
89
|
+
label: z("headshotmarketing.social.tabs.analytics", "Analytics")
|
|
89
90
|
}
|
|
90
91
|
];
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
title:
|
|
93
|
-
description:
|
|
94
|
-
actions: /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ k(f, {
|
|
93
|
+
title: z("headshotmarketing.social.title", "Social Media"),
|
|
94
|
+
description: z("headshotmarketing.social.description", "Manage and monitor your social media presence across all platforms"),
|
|
95
|
+
actions: /* @__PURE__ */ k("div", {
|
|
95
96
|
className: "flex flex-wrap items-center gap-2",
|
|
96
97
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
onClick: () =>
|
|
99
|
-
disabled:
|
|
98
|
+
/* @__PURE__ */ k("button", {
|
|
99
|
+
onClick: () => U(),
|
|
100
|
+
disabled: V,
|
|
100
101
|
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:opacity-60",
|
|
101
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ O(re, { className: l("h-4 w-4", V && "animate-spin") }), z("headshotmarketing.common.refresh", "Refresh")]
|
|
102
103
|
}),
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
onClick: () => L
|
|
104
|
+
/* @__PURE__ */ k("button", {
|
|
105
|
+
onClick: () => I(L + "/social/compose"),
|
|
105
106
|
className: "inline-flex items-center gap-2 rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ O(E, { className: "h-4 w-4" }), z("headshotmarketing.social.actions.composePost", "Compose Post")]
|
|
107
108
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
onClick: () => L
|
|
109
|
+
/* @__PURE__ */ k("button", {
|
|
110
|
+
onClick: () => I(L + "/social/calendar"),
|
|
110
111
|
className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ O(S, { className: "h-4 w-4" }), z("headshotmarketing.social.actions.calendar", "Calendar")]
|
|
112
113
|
})
|
|
113
114
|
]
|
|
114
115
|
}),
|
|
115
116
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ O(M, { children: z("headshotmarketing.social.purpose", "Run all your social channels from one place. See followers, engagement and reach across every connected account, schedule and publish posts, and spot which content and platforms are working best.") }),
|
|
118
|
+
/* @__PURE__ */ O(j, {
|
|
118
119
|
storageKey: "headshotmarketing-social-overview",
|
|
119
120
|
steps: [
|
|
120
121
|
{
|
|
121
122
|
id: "compose",
|
|
122
|
-
label:
|
|
123
|
-
description:
|
|
124
|
-
icon: /* @__PURE__ */
|
|
125
|
-
onClick: () => L
|
|
123
|
+
label: z("headshotmarketing.social.actions.composePost", "Compose Post"),
|
|
124
|
+
description: z("headshotmarketing.social.next.composeDesc", "Write and publish to one or more channels at once."),
|
|
125
|
+
icon: /* @__PURE__ */ O(E, { className: "h-4 w-4" }),
|
|
126
|
+
onClick: () => I(L + "/social/compose")
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
id: "calendar",
|
|
129
|
-
label:
|
|
130
|
-
description:
|
|
131
|
-
icon: /* @__PURE__ */
|
|
132
|
-
onClick: () => L
|
|
130
|
+
label: z("headshotmarketing.social.actions.calendar", "Calendar"),
|
|
131
|
+
description: z("headshotmarketing.social.next.calendarDesc", "Plan and schedule your posting cadence."),
|
|
132
|
+
icon: /* @__PURE__ */ O(S, { className: "h-4 w-4" }),
|
|
133
|
+
onClick: () => I(L + "/social/calendar")
|
|
133
134
|
},
|
|
134
135
|
{
|
|
135
136
|
id: "accounts",
|
|
136
|
-
label:
|
|
137
|
-
description:
|
|
138
|
-
icon: /* @__PURE__ */
|
|
139
|
-
onClick: () => L
|
|
137
|
+
label: z("headshotmarketing.social.next.accounts", "Connect accounts"),
|
|
138
|
+
description: z("headshotmarketing.social.next.accountsDesc", "Link the social platforms you want to manage."),
|
|
139
|
+
icon: /* @__PURE__ */ O(D, { className: "h-4 w-4" }),
|
|
140
|
+
onClick: () => I(L + "/social/accounts")
|
|
140
141
|
}
|
|
141
142
|
]
|
|
142
143
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
loading:
|
|
145
|
-
error:
|
|
146
|
-
onRetry:
|
|
147
|
-
hasData: !!
|
|
144
|
+
/* @__PURE__ */ k(g, {
|
|
145
|
+
loading: V,
|
|
146
|
+
error: H,
|
|
147
|
+
onRetry: U,
|
|
148
|
+
hasData: !!B,
|
|
148
149
|
children: [
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ O("div", {
|
|
150
151
|
className: "flex items-center gap-3 overflow-x-auto pb-2",
|
|
151
|
-
children:
|
|
152
|
+
children: J.filter((e) => e.connected).map((e) => /* @__PURE__ */ k("div", {
|
|
152
153
|
className: "flex items-center gap-2 rounded-full border border-border-seam bg-gloss-card shadow-pop px-4 py-2 text-sm whitespace-nowrap",
|
|
153
154
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
className:
|
|
155
|
+
/* @__PURE__ */ O("span", {
|
|
156
|
+
className: l("inline-block rounded-full px-2 py-0.5 text-xs font-medium capitalize", F[e.platform]),
|
|
156
157
|
children: e.platform
|
|
157
158
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ O("span", {
|
|
159
160
|
className: "text-text-primary font-medium",
|
|
160
161
|
children: e.handle
|
|
161
162
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ O("span", {
|
|
163
164
|
className: "text-text-secondary",
|
|
164
|
-
children:
|
|
165
|
+
children: u(e.followers)
|
|
165
166
|
})
|
|
166
167
|
]
|
|
167
168
|
}, e.id))
|
|
168
169
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ O("div", {
|
|
170
171
|
className: "border-b border-border-subtle",
|
|
171
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ O("div", {
|
|
172
173
|
className: "flex flex-nowrap gap-4 overflow-x-auto",
|
|
173
|
-
children:
|
|
174
|
-
onClick: () =>
|
|
175
|
-
className:
|
|
174
|
+
children: se.map((e) => /* @__PURE__ */ O("button", {
|
|
175
|
+
onClick: () => G(e.key),
|
|
176
|
+
className: l("px-1 py-3 text-sm font-medium border-b-2 transition-colors", W === e.key ? "border-foreground text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
176
177
|
children: e.label
|
|
177
178
|
}, e.key))
|
|
178
179
|
})
|
|
179
180
|
}),
|
|
180
|
-
|
|
181
|
+
W === "overview" && /* @__PURE__ */ k("div", {
|
|
181
182
|
className: "space-y-6",
|
|
182
183
|
children: [
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ O(A, { children: /* @__PURE__ */ k("div", {
|
|
184
185
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
185
186
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
title:
|
|
188
|
-
value:
|
|
187
|
+
/* @__PURE__ */ O(p, {
|
|
188
|
+
title: z("headshotmarketing.social.stats.totalFollowers", "Total Followers"),
|
|
189
|
+
value: u(Q.totalFollowers),
|
|
189
190
|
change: 8.4,
|
|
190
|
-
changeLabel:
|
|
191
|
-
icon: /* @__PURE__ */
|
|
191
|
+
changeLabel: z("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
192
|
+
icon: /* @__PURE__ */ O(D, { className: "h-4 w-4" })
|
|
192
193
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
title:
|
|
195
|
-
value:
|
|
194
|
+
/* @__PURE__ */ O(p, {
|
|
195
|
+
title: z("headshotmarketing.social.stats.totalEngagement", "Total Engagement"),
|
|
196
|
+
value: u(Q.totalEngagement),
|
|
196
197
|
change: 12.3,
|
|
197
|
-
changeLabel:
|
|
198
|
-
icon: /* @__PURE__ */
|
|
198
|
+
changeLabel: z("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
199
|
+
icon: /* @__PURE__ */ O(T, { className: "h-4 w-4" })
|
|
199
200
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
title:
|
|
202
|
-
value:
|
|
201
|
+
/* @__PURE__ */ O(p, {
|
|
202
|
+
title: z("headshotmarketing.social.stats.totalReach", "Total Reach"),
|
|
203
|
+
value: u(Q.totalReach),
|
|
203
204
|
change: 5.7,
|
|
204
|
-
changeLabel:
|
|
205
|
-
icon: /* @__PURE__ */
|
|
205
|
+
changeLabel: z("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
206
|
+
icon: /* @__PURE__ */ O(C, { className: "h-4 w-4" })
|
|
206
207
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
title:
|
|
209
|
-
value:
|
|
208
|
+
/* @__PURE__ */ O(p, {
|
|
209
|
+
title: z("headshotmarketing.social.stats.avgEngagementRate", "Avg Engagement Rate"),
|
|
210
|
+
value: d(Q.averageEngagementRate),
|
|
210
211
|
change: .8,
|
|
211
|
-
changeLabel:
|
|
212
|
-
icon: /* @__PURE__ */
|
|
212
|
+
changeLabel: z("headshotmarketing.common.vsLastMonth", "vs last month"),
|
|
213
|
+
icon: /* @__PURE__ */ O(ie, { className: "h-4 w-4" })
|
|
213
214
|
})
|
|
214
215
|
]
|
|
215
216
|
}) }),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ k("div", {
|
|
217
218
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ O("h3", {
|
|
219
220
|
className: "text-sm font-semibold text-text-primary mb-4",
|
|
220
|
-
children:
|
|
221
|
-
}), /* @__PURE__ */
|
|
221
|
+
children: z("headshotmarketing.social.sections.platformPerformance", "Platform Performance")
|
|
222
|
+
}), /* @__PURE__ */ O("div", {
|
|
222
223
|
className: "space-y-3",
|
|
223
|
-
children:
|
|
224
|
+
children: Q.platformBreakdown.map((e) => /* @__PURE__ */ k("div", {
|
|
224
225
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
226
|
+
children: [/* @__PURE__ */ O("div", {
|
|
226
227
|
className: "flex items-center gap-3",
|
|
227
|
-
children: /* @__PURE__ */
|
|
228
|
-
className:
|
|
228
|
+
children: /* @__PURE__ */ O("span", {
|
|
229
|
+
className: l("inline-block rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", F[e.platform]),
|
|
229
230
|
children: e.platform
|
|
230
231
|
})
|
|
231
|
-
}), /* @__PURE__ */
|
|
232
|
+
}), /* @__PURE__ */ k("div", {
|
|
232
233
|
className: "flex flex-wrap items-center gap-x-6 gap-y-1 text-sm",
|
|
233
234
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ k("span", {
|
|
235
236
|
className: "text-text-secondary",
|
|
236
237
|
children: [
|
|
237
|
-
|
|
238
|
+
u(e.followers),
|
|
238
239
|
" ",
|
|
239
|
-
|
|
240
|
+
z("headshotmarketing.social.metrics.followers", "followers")
|
|
240
241
|
]
|
|
241
242
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ k("span", {
|
|
243
244
|
className: "text-text-secondary",
|
|
244
245
|
children: [
|
|
245
|
-
|
|
246
|
+
u(e.engagement),
|
|
246
247
|
" ",
|
|
247
|
-
|
|
248
|
+
z("headshotmarketing.social.metrics.engagement", "engagement")
|
|
248
249
|
]
|
|
249
250
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ k("span", {
|
|
251
252
|
className: "text-text-secondary",
|
|
252
253
|
children: [
|
|
253
|
-
|
|
254
|
+
u(e.reach),
|
|
254
255
|
" ",
|
|
255
|
-
|
|
256
|
+
z("headshotmarketing.social.metrics.reach", "reach")
|
|
256
257
|
]
|
|
257
258
|
})
|
|
258
259
|
]
|
|
@@ -260,96 +261,105 @@ var F = [
|
|
|
260
261
|
}, e.platform))
|
|
261
262
|
})]
|
|
262
263
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ k("div", {
|
|
264
265
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
266
267
|
className: "text-sm font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
268
|
-
}), /* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ O(w, { className: "h-4 w-4" }), z("headshotmarketing.social.sections.trendingHashtags", "Trending Hashtags")]
|
|
269
|
+
}), /* @__PURE__ */ O("div", {
|
|
269
270
|
className: "flex flex-wrap gap-2",
|
|
270
|
-
children:
|
|
271
|
+
children: ae.map((e) => /* @__PURE__ */ k("span", {
|
|
271
272
|
className: "inline-flex items-center gap-1 rounded-full border border-border-subtle px-3 py-1.5 text-sm text-text-primary",
|
|
272
|
-
children: [e.tag, /* @__PURE__ */
|
|
273
|
+
children: [e.tag, /* @__PURE__ */ O("span", {
|
|
273
274
|
className: "text-xs text-text-secondary",
|
|
274
|
-
children:
|
|
275
|
+
children: u(e.engagement)
|
|
275
276
|
})]
|
|
276
277
|
}, e.tag))
|
|
277
278
|
})]
|
|
278
279
|
})
|
|
279
280
|
]
|
|
280
281
|
}),
|
|
281
|
-
|
|
282
|
+
W === "posts" && /* @__PURE__ */ k("div", {
|
|
282
283
|
className: "space-y-4",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ O("div", {
|
|
284
285
|
className: "flex items-center gap-2",
|
|
285
|
-
children: /* @__PURE__ */
|
|
286
|
-
value:
|
|
287
|
-
onChange: (e) =>
|
|
286
|
+
children: /* @__PURE__ */ k("select", {
|
|
287
|
+
value: K,
|
|
288
|
+
onChange: (e) => q(e.target.value),
|
|
288
289
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
289
290
|
children: [
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ O("option", {
|
|
291
292
|
value: "all",
|
|
292
|
-
children:
|
|
293
|
+
children: z("headshotmarketing.social.filters.allPlatforms", "All Platforms")
|
|
293
294
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ O("option", {
|
|
295
296
|
value: "instagram",
|
|
296
297
|
children: "Instagram"
|
|
297
298
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ O("option", {
|
|
299
300
|
value: "facebook",
|
|
300
301
|
children: "Facebook"
|
|
301
302
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ O("option", {
|
|
303
304
|
value: "twitter",
|
|
304
305
|
children: "Twitter"
|
|
305
306
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ O("option", {
|
|
307
308
|
value: "linkedin",
|
|
308
309
|
children: "LinkedIn"
|
|
309
310
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ O("option", {
|
|
311
312
|
value: "youtube",
|
|
312
313
|
children: "YouTube"
|
|
313
314
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ O("option", {
|
|
315
316
|
value: "tiktok",
|
|
316
317
|
children: "TikTok"
|
|
317
318
|
})
|
|
318
319
|
]
|
|
319
320
|
})
|
|
320
|
-
}), /* @__PURE__ */
|
|
321
|
+
}), $.length === 0 ? /* @__PURE__ */ O(m, {
|
|
322
|
+
illustration: Z.length === 0 ? "empty-generic" : "empty-search",
|
|
323
|
+
title: Z.length === 0 ? z("headshotmarketing.social.posts.empty.title", "No posts yet") : z("headshotmarketing.social.posts.emptyFiltered.title", "No posts on this platform"),
|
|
324
|
+
description: Z.length === 0 ? z("headshotmarketing.social.posts.empty.description", "Compose your first post to start publishing across your connected channels.") : z("headshotmarketing.social.posts.emptyFiltered.description", "Try a different platform filter, or compose a new post."),
|
|
325
|
+
action: Z.length === 0 ? /* @__PURE__ */ k("button", {
|
|
326
|
+
onClick: () => I(L + "/social/compose"),
|
|
327
|
+
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",
|
|
328
|
+
children: [/* @__PURE__ */ O(E, { className: "h-4 w-4" }), z("headshotmarketing.social.actions.composePost", "Compose Post")]
|
|
329
|
+
}) : void 0
|
|
330
|
+
}) : /* @__PURE__ */ O("div", {
|
|
321
331
|
className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
|
|
322
|
-
children:
|
|
332
|
+
children: $.map((e) => /* @__PURE__ */ k("div", {
|
|
323
333
|
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 space-y-3",
|
|
324
334
|
children: [
|
|
325
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ k("div", {
|
|
326
336
|
className: "flex items-center justify-between",
|
|
327
|
-
children: [/* @__PURE__ */
|
|
328
|
-
className:
|
|
337
|
+
children: [/* @__PURE__ */ O("span", {
|
|
338
|
+
className: l("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", F[e.platform]),
|
|
329
339
|
children: e.platform
|
|
330
|
-
}), /* @__PURE__ */
|
|
340
|
+
}), /* @__PURE__ */ O(ee, { status: e.status })]
|
|
331
341
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ O("p", {
|
|
333
343
|
className: "text-sm text-text-primary line-clamp-3",
|
|
334
344
|
children: e.content
|
|
335
345
|
}),
|
|
336
|
-
e.status === "published" && /* @__PURE__ */
|
|
346
|
+
e.status === "published" && /* @__PURE__ */ k("div", {
|
|
337
347
|
className: "flex items-center gap-4 text-xs text-text-secondary",
|
|
338
348
|
children: [
|
|
339
|
-
/* @__PURE__ */
|
|
340
|
-
|
|
349
|
+
/* @__PURE__ */ k("span", { children: [
|
|
350
|
+
u(e.metrics.likes),
|
|
341
351
|
" ",
|
|
342
|
-
|
|
352
|
+
z("headshotmarketing.social.metrics.likes", "likes")
|
|
343
353
|
] }),
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
-
|
|
354
|
+
/* @__PURE__ */ k("span", { children: [
|
|
355
|
+
u(e.metrics.comments),
|
|
346
356
|
" ",
|
|
347
|
-
|
|
357
|
+
z("headshotmarketing.social.metrics.comments", "comments")
|
|
348
358
|
] }),
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
|
|
359
|
+
/* @__PURE__ */ k("span", { children: [
|
|
360
|
+
u(e.metrics.shares),
|
|
351
361
|
" ",
|
|
352
|
-
|
|
362
|
+
z("headshotmarketing.social.metrics.shares", "shares")
|
|
353
363
|
] })
|
|
354
364
|
]
|
|
355
365
|
})
|
|
@@ -357,37 +367,37 @@ var F = [
|
|
|
357
367
|
}, e.id))
|
|
358
368
|
})]
|
|
359
369
|
}),
|
|
360
|
-
|
|
361
|
-
title:
|
|
362
|
-
subtitle:
|
|
363
|
-
children: /* @__PURE__ */
|
|
370
|
+
W === "analytics" && /* @__PURE__ */ O(h, {
|
|
371
|
+
title: z("headshotmarketing.social.charts.engagementByDay", "Engagement by Day"),
|
|
372
|
+
subtitle: z("headshotmarketing.social.charts.engagementByDaySubtitle", "Weekly engagement breakdown across all platforms"),
|
|
373
|
+
children: /* @__PURE__ */ O(r, {
|
|
364
374
|
width: "100%",
|
|
365
375
|
height: 320,
|
|
366
|
-
children: /* @__PURE__ */
|
|
367
|
-
data:
|
|
376
|
+
children: /* @__PURE__ */ k(c, {
|
|
377
|
+
data: oe,
|
|
368
378
|
children: [
|
|
369
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ O(a, {
|
|
370
380
|
strokeDasharray: "3 3",
|
|
371
381
|
className: "stroke-border"
|
|
372
382
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ O(o, {
|
|
374
384
|
dataKey: "date",
|
|
375
385
|
className: "text-xs",
|
|
376
386
|
tick: { fill: "currentColor" }
|
|
377
387
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ O(s, {
|
|
379
389
|
className: "text-xs",
|
|
380
390
|
tick: { fill: "currentColor" }
|
|
381
391
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ O(n, { contentStyle: {
|
|
383
393
|
backgroundColor: "var(--color-card)",
|
|
384
394
|
border: "1px solid var(--color-border)"
|
|
385
395
|
} }),
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ O(t, {}),
|
|
397
|
+
/* @__PURE__ */ O(i, {
|
|
388
398
|
dataKey: "likes",
|
|
389
|
-
fill:
|
|
390
|
-
name:
|
|
399
|
+
fill: P[0],
|
|
400
|
+
name: z("headshotmarketing.social.charts.likes", "Likes"),
|
|
391
401
|
radius: [
|
|
392
402
|
2,
|
|
393
403
|
2,
|
|
@@ -395,10 +405,10 @@ var F = [
|
|
|
395
405
|
0
|
|
396
406
|
]
|
|
397
407
|
}),
|
|
398
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ O(i, {
|
|
399
409
|
dataKey: "comments",
|
|
400
|
-
fill:
|
|
401
|
-
name:
|
|
410
|
+
fill: P[1],
|
|
411
|
+
name: z("headshotmarketing.social.charts.comments", "Comments"),
|
|
402
412
|
radius: [
|
|
403
413
|
2,
|
|
404
414
|
2,
|
|
@@ -406,10 +416,10 @@ var F = [
|
|
|
406
416
|
0
|
|
407
417
|
]
|
|
408
418
|
}),
|
|
409
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ O(i, {
|
|
410
420
|
dataKey: "shares",
|
|
411
|
-
fill:
|
|
412
|
-
name:
|
|
421
|
+
fill: P[2],
|
|
422
|
+
name: z("headshotmarketing.social.charts.shares", "Shares"),
|
|
413
423
|
radius: [
|
|
414
424
|
2,
|
|
415
425
|
2,
|
|
@@ -427,6 +437,6 @@ var F = [
|
|
|
427
437
|
});
|
|
428
438
|
};
|
|
429
439
|
//#endregion
|
|
430
|
-
export {
|
|
440
|
+
export { I as SocialMediaPage };
|
|
431
441
|
|
|
432
442
|
//# sourceMappingURL=SocialMediaPage.js.map
|