@burdenoff/microfe-headshotmarketing 2026.703.1 → 2026.704.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/wspace-operations.js +970 -52
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +26 -10
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
- package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js +57 -0
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
- package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
- package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
- package/dist/headshotmarketing/components/Modal.js +6 -3
- package/dist/headshotmarketing/components/Modal.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +117 -0
- package/dist/headshotmarketing/components/Pagination.js.map +1 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
- package/dist/headshotmarketing/components/index.js +6 -0
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
- package/dist/headshotmarketing/hooks/index.js +4 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
- package/dist/headshotmarketing/hooks/usePagination.js +53 -0
- package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +334 -301
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +221 -211
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +290 -217
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/adsMapper.js +74 -51
- package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/helpers.js +11 -1
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/package.json +1 -1
- package/dist/headshotmarketing/utils/reportMapper.js +0 -33
- package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
|
@@ -1,343 +1,506 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { cn as n, formatDate as r, formatNumber as i, formatPercentage as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { useDeleteHeadshotmarketingSocialPostMutation as e, useHeadshotmarketingSocialPostsListQuery as t, usePublishHeadshotmarketingSocialPostMutation as ee, useUpdateHeadshotmarketingSocialPostMutation as te } from "../../../generated/wspace-operations.js";
|
|
2
|
+
import { useHeadshotMarketing as ne } from "../../context/HeadshotMarketingContext.js";
|
|
3
|
+
import { cn as n, formatDate as r, formatNumber as i, formatPercentage as re } from "../../utils/helpers.js";
|
|
4
|
+
import { HeadshotmarketingSocialPostStatus as a } from "../../../generated/wspace-types.js";
|
|
5
|
+
import { PageLayout as ie } from "../../components/PageLayout.js";
|
|
6
|
+
import { StatCard as o } from "../../components/StatCard.js";
|
|
7
|
+
import { StatusBadge as s } from "../../components/StatusBadge.js";
|
|
8
|
+
import { EmptyState as ae } from "../../components/EmptyState.js";
|
|
9
|
+
import { FilterBar as oe } from "../../components/FilterBar.js";
|
|
10
|
+
import { Modal as c } from "../../components/Modal.js";
|
|
11
|
+
import { QueryStateBoundary as se } from "../../components/QueryStateBoundary.js";
|
|
12
|
+
import { Pagination as ce } from "../../components/Pagination.js";
|
|
13
|
+
import { ActionMenu as l } from "../../components/ActionMenu.js";
|
|
10
14
|
import "../../components/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
15
|
+
import { useHeadshotmarketingBootstrap as le } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
16
|
+
import { usePagination as ue } from "../../hooks/usePagination.js";
|
|
17
|
+
import { toSocialPostModel as de } from "../../utils/socialMapper.js";
|
|
18
|
+
import "../../hooks/index.js";
|
|
19
|
+
import { useEffect as u, useMemo as d, useState as f } from "react";
|
|
20
|
+
import { Eye as fe, Grid3X3 as pe, Heart as me, List as he, MessageCircle as ge, Pencil as p, Plus as m, Send as h, Share2 as _e, Trash2 as ve } from "lucide-react";
|
|
21
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
22
|
+
import { EmphasisPanel as ye, PagePurpose as be } from "@burdenoff/fe-libs/ui";
|
|
16
23
|
//#region src/headshotmarketing/pages/social-media/PostsPage.tsx
|
|
17
|
-
var
|
|
24
|
+
var y = {
|
|
18
25
|
instagram: "bg-[var(--color-accent-soft)] text-action-primary-bg",
|
|
19
26
|
facebook: "bg-status-info-bg text-status-info-text",
|
|
20
27
|
twitter: "bg-status-info-bg text-status-info-text",
|
|
21
28
|
linkedin: "bg-status-info-bg text-status-info-text",
|
|
22
29
|
youtube: "bg-status-error-bg text-status-error-text",
|
|
23
30
|
tiktok: "bg-bg-sunken text-text-secondary"
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
}, xe = {
|
|
32
|
+
published: a.Published,
|
|
33
|
+
scheduled: a.Scheduled,
|
|
34
|
+
draft: a.Draft,
|
|
35
|
+
failed: a.Failed
|
|
36
|
+
};
|
|
37
|
+
function Se(e) {
|
|
38
|
+
return Array.from(new Set(e.match(/#\w+/g) ?? []));
|
|
39
|
+
}
|
|
40
|
+
var b = () => {
|
|
41
|
+
let { navigate: a, basePath: b } = ne(), { data: x, refetch: Ce } = le(), [S, we] = f(""), [C, Te] = f("all"), [w, Ee] = f("all"), [T, De] = f("newest"), [E, D] = f("grid"), [O, k] = f(null), [Oe, A] = f(!1), [ke, j] = f(!1), [M, Ae] = f(null), [N, P] = f(""), [F, I] = f(null), [L, R] = f(null), z = ue({ initialPageSize: 12 }), { limit: je, offset: Me, setPage: B, setTotal: V } = z, { data: H, loading: U, error: Ne, refetch: W } = t({
|
|
42
|
+
variables: {
|
|
43
|
+
limit: je,
|
|
44
|
+
offset: Me,
|
|
45
|
+
search: S.trim() || void 0,
|
|
46
|
+
status: C === "all" ? void 0 : xe[C]
|
|
47
|
+
},
|
|
48
|
+
notifyOnNetworkStatusChange: !0
|
|
49
|
+
}), [Pe] = e(), [Fe] = ee(), [Ie, { loading: G }] = te();
|
|
50
|
+
u(() => {
|
|
51
|
+
B(1);
|
|
52
|
+
}, [
|
|
53
|
+
S,
|
|
54
|
+
C,
|
|
55
|
+
B
|
|
56
|
+
]), u(() => {
|
|
57
|
+
V(H?.headshotmarketingSocialPosts.total ?? 0);
|
|
58
|
+
}, [H?.headshotmarketingSocialPosts.total, V]);
|
|
59
|
+
let K = d(() => Object.fromEntries((x?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.accountName])), [x?.headshotmarketingSocialAccounts.items]), q = d(() => Object.fromEntries((x?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.platform === "FACEBOOK" ? "facebook" : e.platform === "INSTAGRAM" ? "instagram" : e.platform === "TWITTER" ? "twitter" : e.platform === "LINKEDIN" ? "linkedin" : e.platform === "TIKTOK" ? "tiktok" : e.platform === "YOUTUBE" ? "youtube" : "instagram"])), [x?.headshotmarketingSocialAccounts.items]), J = d(() => (x?.headshotmarketingSocialPosts.items ?? []).map((e) => de(e, K, q)), [
|
|
60
|
+
x?.headshotmarketingSocialPosts.items,
|
|
61
|
+
K,
|
|
62
|
+
q
|
|
63
|
+
]), Y = d(() => {
|
|
64
|
+
let e = (H?.headshotmarketingSocialPosts.items ?? []).map((e) => de(e, K, q));
|
|
65
|
+
return w !== "all" && (e = e.filter((e) => e.platform === w)), [...e].sort((e, t) => T === "newest" ? new Date(t.createdAt).getTime() - new Date(e.createdAt).getTime() : T === "oldest" ? new Date(e.createdAt).getTime() - new Date(t.createdAt).getTime() : T === "engagement" ? t.metrics.engagementRate - e.metrics.engagementRate : 0);
|
|
66
|
+
}, [
|
|
67
|
+
H?.headshotmarketingSocialPosts.items,
|
|
68
|
+
K,
|
|
30
69
|
q,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
70
|
+
w,
|
|
71
|
+
T
|
|
72
|
+
]), Le = J.length, Re = J.filter((e) => e.status === "published").length, ze = J.filter((e) => e.status === "scheduled").length, Be = J.reduce((e, t) => e + t.metrics.likes + t.metrics.comments + t.metrics.shares, 0), X = J.filter((e) => e.status === "published"), Ve = X.length > 0 ? X.reduce((e, t) => e + t.metrics.engagementRate, 0) / X.length : 0, Z = async () => {
|
|
73
|
+
await Promise.all([W(), Ce()]);
|
|
74
|
+
}, He = async (e) => {
|
|
75
|
+
if (window.confirm("Delete this post? This cannot be undone.")) {
|
|
76
|
+
R(null);
|
|
77
|
+
try {
|
|
78
|
+
await Pe({ variables: { id: e.id } }), O?.id === e.id && A(!1), await Z();
|
|
79
|
+
} catch (e) {
|
|
80
|
+
R(e instanceof Error ? e.message : "Failed to delete post.");
|
|
81
|
+
}
|
|
37
82
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
83
|
+
}, Ue = async (e) => {
|
|
84
|
+
R(null);
|
|
85
|
+
try {
|
|
86
|
+
await Fe({ variables: { id: e.id } }), O?.id === e.id && A(!1), await Z();
|
|
87
|
+
} catch (e) {
|
|
88
|
+
R(e instanceof Error ? e.message : "Failed to publish post.");
|
|
89
|
+
}
|
|
90
|
+
}, We = (e) => {
|
|
91
|
+
Ae(e), P(e.content), I(null), A(!1), j(!0);
|
|
92
|
+
}, Ge = async () => {
|
|
93
|
+
if (!M) return;
|
|
94
|
+
let e = N.trim();
|
|
95
|
+
if (!e) {
|
|
96
|
+
I("Post content is required.");
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
I(null);
|
|
100
|
+
try {
|
|
101
|
+
await Ie({ variables: {
|
|
102
|
+
id: M.id,
|
|
103
|
+
input: {
|
|
104
|
+
content: e,
|
|
105
|
+
tags: Se(e)
|
|
106
|
+
}
|
|
107
|
+
} }), j(!1), await Z();
|
|
108
|
+
} catch (e) {
|
|
109
|
+
I(e instanceof Error ? e.message : "Failed to save post.");
|
|
110
|
+
}
|
|
111
|
+
}, Q = (e) => [
|
|
112
|
+
{
|
|
113
|
+
key: "edit",
|
|
114
|
+
label: "Edit",
|
|
115
|
+
icon: /* @__PURE__ */ _(p, { className: "h-4 w-4" }),
|
|
116
|
+
onClick: () => We(e)
|
|
117
|
+
},
|
|
118
|
+
...e.status === "draft" || e.status === "scheduled" ? [{
|
|
119
|
+
key: "publish",
|
|
120
|
+
label: "Publish now",
|
|
121
|
+
icon: /* @__PURE__ */ _(h, { className: "h-4 w-4" }),
|
|
122
|
+
onClick: () => void Ue(e)
|
|
123
|
+
}] : [],
|
|
124
|
+
{
|
|
125
|
+
key: "delete",
|
|
126
|
+
label: "Delete",
|
|
127
|
+
icon: /* @__PURE__ */ _(ve, { className: "h-4 w-4" }),
|
|
128
|
+
danger: !0,
|
|
129
|
+
onClick: () => void He(e)
|
|
130
|
+
}
|
|
131
|
+
], $ = Le > 0;
|
|
132
|
+
return /* @__PURE__ */ v(ie, {
|
|
49
133
|
title: "Posts",
|
|
50
134
|
description: "Manage all your social media posts",
|
|
51
|
-
actions: /* @__PURE__ */
|
|
52
|
-
onClick: () =>
|
|
135
|
+
actions: /* @__PURE__ */ v("button", {
|
|
136
|
+
onClick: () => a(b + "/social/compose"),
|
|
53
137
|
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",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
138
|
+
children: [/* @__PURE__ */ _(m, { className: "h-4 w-4" }), "Create Post"]
|
|
55
139
|
}),
|
|
56
140
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ _(be, { children: "Every social post you've drafted, scheduled or published, in one feed. Filter by status or platform, switch between grid and list views, and open any post to see how it performed — so you can learn what resonates and post more of it." }),
|
|
142
|
+
/* @__PURE__ */ _(ye, { children: /* @__PURE__ */ v("div", {
|
|
59
143
|
className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",
|
|
60
144
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ _(o, {
|
|
62
146
|
title: "Total Posts",
|
|
63
|
-
value:
|
|
64
|
-
icon: /* @__PURE__ */
|
|
147
|
+
value: Le,
|
|
148
|
+
icon: /* @__PURE__ */ _(ge, { className: "h-4 w-4" })
|
|
65
149
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ _(o, {
|
|
67
151
|
title: "Published",
|
|
68
|
-
value:
|
|
69
|
-
icon: /* @__PURE__ */
|
|
152
|
+
value: Re,
|
|
153
|
+
icon: /* @__PURE__ */ _(fe, { className: "h-4 w-4" })
|
|
70
154
|
}),
|
|
71
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ _(o, {
|
|
72
156
|
title: "Scheduled",
|
|
73
|
-
value:
|
|
157
|
+
value: ze,
|
|
74
158
|
change: 12
|
|
75
159
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ _(o, {
|
|
77
161
|
title: "Total Engagement",
|
|
78
|
-
value: i(
|
|
162
|
+
value: i(Be),
|
|
79
163
|
change: 8.4
|
|
80
164
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ _(o, {
|
|
82
166
|
title: "Avg Engagement",
|
|
83
|
-
value:
|
|
167
|
+
value: re(Ve),
|
|
84
168
|
change: 1.2
|
|
85
169
|
})
|
|
86
170
|
]
|
|
87
171
|
}) }),
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
90
|
-
|
|
172
|
+
L && /* @__PURE__ */ _("div", {
|
|
173
|
+
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
174
|
+
children: L
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ _(oe, {
|
|
177
|
+
searchValue: S,
|
|
178
|
+
onSearchChange: we,
|
|
91
179
|
searchPlaceholder: "Search posts...",
|
|
92
|
-
filters: /* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
value:
|
|
95
|
-
onChange: (e) =>
|
|
180
|
+
filters: /* @__PURE__ */ v(g, { children: [
|
|
181
|
+
/* @__PURE__ */ v("select", {
|
|
182
|
+
value: C,
|
|
183
|
+
onChange: (e) => Te(e.target.value),
|
|
96
184
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
97
185
|
children: [
|
|
98
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ _("option", {
|
|
99
187
|
value: "all",
|
|
100
188
|
children: "All Status"
|
|
101
189
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ _("option", {
|
|
103
191
|
value: "published",
|
|
104
192
|
children: "Published"
|
|
105
193
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ _("option", {
|
|
107
195
|
value: "scheduled",
|
|
108
196
|
children: "Scheduled"
|
|
109
197
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ _("option", {
|
|
111
199
|
value: "draft",
|
|
112
200
|
children: "Draft"
|
|
113
201
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ _("option", {
|
|
115
203
|
value: "failed",
|
|
116
204
|
children: "Failed"
|
|
117
205
|
})
|
|
118
206
|
]
|
|
119
207
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
value:
|
|
122
|
-
onChange: (e) =>
|
|
208
|
+
/* @__PURE__ */ v("select", {
|
|
209
|
+
value: w,
|
|
210
|
+
onChange: (e) => Ee(e.target.value),
|
|
123
211
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
124
212
|
children: [
|
|
125
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ _("option", {
|
|
126
214
|
value: "all",
|
|
127
215
|
children: "All Platforms"
|
|
128
216
|
}),
|
|
129
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ _("option", {
|
|
130
218
|
value: "instagram",
|
|
131
219
|
children: "Instagram"
|
|
132
220
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ _("option", {
|
|
134
222
|
value: "facebook",
|
|
135
223
|
children: "Facebook"
|
|
136
224
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ _("option", {
|
|
138
226
|
value: "twitter",
|
|
139
227
|
children: "Twitter"
|
|
140
228
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ _("option", {
|
|
142
230
|
value: "linkedin",
|
|
143
231
|
children: "LinkedIn"
|
|
144
232
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ _("option", {
|
|
146
234
|
value: "tiktok",
|
|
147
235
|
children: "TikTok"
|
|
148
236
|
})
|
|
149
237
|
]
|
|
150
238
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
value:
|
|
153
|
-
onChange: (e) =>
|
|
239
|
+
/* @__PURE__ */ v("select", {
|
|
240
|
+
value: T,
|
|
241
|
+
onChange: (e) => De(e.target.value),
|
|
154
242
|
className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
|
|
155
243
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ _("option", {
|
|
157
245
|
value: "newest",
|
|
158
246
|
children: "Newest"
|
|
159
247
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ _("option", {
|
|
161
249
|
value: "oldest",
|
|
162
250
|
children: "Oldest"
|
|
163
251
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ _("option", {
|
|
165
253
|
value: "engagement",
|
|
166
254
|
children: "Engagement"
|
|
167
255
|
})
|
|
168
256
|
]
|
|
169
257
|
})
|
|
170
258
|
] }),
|
|
171
|
-
actions: /* @__PURE__ */
|
|
259
|
+
actions: /* @__PURE__ */ v("div", {
|
|
172
260
|
className: "flex rounded-md border border-border-subtle",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
174
|
-
onClick: () =>
|
|
175
|
-
className: n("p-2",
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
261
|
+
children: [/* @__PURE__ */ _("button", {
|
|
262
|
+
onClick: () => D("grid"),
|
|
263
|
+
className: n("p-2", E === "grid" ? "bg-foreground text-background" : "text-text-secondary"),
|
|
264
|
+
"aria-label": "Grid view",
|
|
265
|
+
children: /* @__PURE__ */ _(pe, { className: "h-4 w-4" })
|
|
266
|
+
}), /* @__PURE__ */ _("button", {
|
|
267
|
+
onClick: () => D("list"),
|
|
268
|
+
className: n("p-2", E === "list" ? "bg-foreground text-background" : "text-text-secondary"),
|
|
269
|
+
"aria-label": "List view",
|
|
270
|
+
children: /* @__PURE__ */ _(he, { className: "h-4 w-4" })
|
|
181
271
|
})]
|
|
182
272
|
})
|
|
183
273
|
}),
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
className: "
|
|
200
|
-
children:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
274
|
+
/* @__PURE__ */ v(se, {
|
|
275
|
+
loading: U,
|
|
276
|
+
error: Ne,
|
|
277
|
+
onRetry: W,
|
|
278
|
+
hasData: !!H,
|
|
279
|
+
children: [Y.length === 0 ? /* @__PURE__ */ _(ae, {
|
|
280
|
+
illustration: $ ? "empty-search" : "empty-notifications",
|
|
281
|
+
title: $ ? "No posts match your filters" : "No posts yet",
|
|
282
|
+
description: $ ? "Try a different search term, status or platform." : "Compose your first social post to start building your feed.",
|
|
283
|
+
action: $ ? void 0 : /* @__PURE__ */ v("button", {
|
|
284
|
+
onClick: () => a(b + "/social/compose"),
|
|
285
|
+
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",
|
|
286
|
+
children: [/* @__PURE__ */ _(m, { className: "h-4 w-4" }), "Create Post"]
|
|
287
|
+
})
|
|
288
|
+
}) : E === "grid" ? /* @__PURE__ */ _("div", {
|
|
289
|
+
className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
|
|
290
|
+
children: Y.map((e) => /* @__PURE__ */ v("div", {
|
|
291
|
+
onClick: () => {
|
|
292
|
+
k(e), A(!0);
|
|
293
|
+
},
|
|
294
|
+
className: "cursor-pointer rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 space-y-3 hover:border-foreground/30 transition-colors",
|
|
295
|
+
children: [
|
|
296
|
+
/* @__PURE__ */ v("div", {
|
|
297
|
+
className: "flex items-center justify-between",
|
|
298
|
+
children: [/* @__PURE__ */ _("span", {
|
|
299
|
+
className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", y[e.platform]),
|
|
300
|
+
children: e.platform
|
|
301
|
+
}), /* @__PURE__ */ v("div", {
|
|
302
|
+
className: "flex items-center gap-1",
|
|
303
|
+
children: [/* @__PURE__ */ _(s, { status: e.status }), /* @__PURE__ */ _(l, {
|
|
304
|
+
id: `hm-post-grid-${e.id}`,
|
|
305
|
+
items: Q(e),
|
|
306
|
+
buttonLabel: "Post actions"
|
|
307
|
+
})]
|
|
308
|
+
})]
|
|
309
|
+
}),
|
|
310
|
+
/* @__PURE__ */ _("p", {
|
|
311
|
+
className: "text-sm text-text-primary line-clamp-3",
|
|
312
|
+
children: e.content
|
|
313
|
+
}),
|
|
314
|
+
/* @__PURE__ */ v("div", {
|
|
315
|
+
className: "flex items-center justify-between text-xs text-text-secondary",
|
|
316
|
+
children: [/* @__PURE__ */ _("span", { children: r(e.createdAt) }), e.status === "published" && /* @__PURE__ */ v("div", {
|
|
317
|
+
className: "flex items-center gap-3",
|
|
318
|
+
children: [
|
|
319
|
+
/* @__PURE__ */ v("span", {
|
|
320
|
+
className: "flex items-center gap-1",
|
|
321
|
+
children: [/* @__PURE__ */ _(me, { className: "h-3 w-3" }), i(e.metrics.likes)]
|
|
322
|
+
}),
|
|
323
|
+
/* @__PURE__ */ v("span", {
|
|
324
|
+
className: "flex items-center gap-1",
|
|
325
|
+
children: [/* @__PURE__ */ _(ge, { className: "h-3 w-3" }), i(e.metrics.comments)]
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ v("span", {
|
|
328
|
+
className: "flex items-center gap-1",
|
|
329
|
+
children: [/* @__PURE__ */ _(_e, { className: "h-3 w-3" }), i(e.metrics.shares)]
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
})]
|
|
333
|
+
})
|
|
334
|
+
]
|
|
335
|
+
}, e.id))
|
|
336
|
+
}) : /* @__PURE__ */ _("div", {
|
|
337
|
+
className: "space-y-2",
|
|
338
|
+
children: Y.map((e) => /* @__PURE__ */ v("div", {
|
|
339
|
+
onClick: () => {
|
|
340
|
+
k(e), A(!0);
|
|
341
|
+
},
|
|
342
|
+
className: "cursor-pointer flex flex-wrap items-center gap-4 rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 hover:border-foreground/30 transition-colors",
|
|
343
|
+
children: [
|
|
344
|
+
/* @__PURE__ */ _("span", {
|
|
345
|
+
className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize whitespace-nowrap", y[e.platform]),
|
|
205
346
|
children: e.platform
|
|
206
|
-
}),
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
className: "space-y-2",
|
|
236
|
-
children: X.map((e) => /* @__PURE__ */ E("div", {
|
|
237
|
-
onClick: () => {
|
|
238
|
-
U(e), G(!0);
|
|
239
|
-
},
|
|
240
|
-
className: "cursor-pointer flex items-center gap-4 rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4 hover:border-foreground/30 transition-colors",
|
|
241
|
-
children: [
|
|
242
|
-
/* @__PURE__ */ T("span", {
|
|
243
|
-
className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize whitespace-nowrap", k[e.platform]),
|
|
244
|
-
children: e.platform
|
|
245
|
-
}),
|
|
246
|
-
/* @__PURE__ */ T("p", {
|
|
247
|
-
className: "text-sm text-text-primary flex-1 truncate",
|
|
248
|
-
children: e.content
|
|
249
|
-
}),
|
|
250
|
-
/* @__PURE__ */ T(c, { status: e.status }),
|
|
251
|
-
e.status === "published" && /* @__PURE__ */ E("div", {
|
|
252
|
-
className: "flex items-center gap-3 text-xs text-text-secondary",
|
|
253
|
-
children: [/* @__PURE__ */ E("span", { children: [i(e.metrics.likes), " likes"] }), /* @__PURE__ */ E("span", { children: [i(e.metrics.reach), " reach"] })]
|
|
254
|
-
}),
|
|
255
|
-
/* @__PURE__ */ T("span", {
|
|
256
|
-
className: "text-xs text-text-secondary whitespace-nowrap",
|
|
257
|
-
children: r(e.createdAt)
|
|
258
|
-
}),
|
|
259
|
-
/* @__PURE__ */ T("button", {
|
|
260
|
-
className: "text-text-secondary hover:text-text-primary",
|
|
261
|
-
children: /* @__PURE__ */ T(x, { className: "h-4 w-4" })
|
|
262
|
-
})
|
|
263
|
-
]
|
|
264
|
-
}, e.id))
|
|
347
|
+
}),
|
|
348
|
+
/* @__PURE__ */ _("p", {
|
|
349
|
+
className: "text-sm text-text-primary flex-1 min-w-[8rem] truncate",
|
|
350
|
+
children: e.content
|
|
351
|
+
}),
|
|
352
|
+
/* @__PURE__ */ _(s, { status: e.status }),
|
|
353
|
+
e.status === "published" && /* @__PURE__ */ v("div", {
|
|
354
|
+
className: "flex items-center gap-3 text-xs text-text-secondary",
|
|
355
|
+
children: [/* @__PURE__ */ v("span", { children: [i(e.metrics.likes), " likes"] }), /* @__PURE__ */ v("span", { children: [i(e.metrics.reach), " reach"] })]
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ _("span", {
|
|
358
|
+
className: "text-xs text-text-secondary whitespace-nowrap",
|
|
359
|
+
children: r(e.createdAt)
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ _(l, {
|
|
362
|
+
id: `hm-post-list-${e.id}`,
|
|
363
|
+
items: Q(e),
|
|
364
|
+
buttonLabel: "Post actions"
|
|
365
|
+
})
|
|
366
|
+
]
|
|
367
|
+
}, e.id))
|
|
368
|
+
}), $ && /* @__PURE__ */ _(ce, {
|
|
369
|
+
page: z.page,
|
|
370
|
+
pageSize: z.pageSize,
|
|
371
|
+
total: z.total,
|
|
372
|
+
onPageChange: z.setPage,
|
|
373
|
+
onPageSizeChange: z.setPageSize,
|
|
374
|
+
disabled: U
|
|
375
|
+
})]
|
|
265
376
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
open:
|
|
268
|
-
onClose: () =>
|
|
377
|
+
/* @__PURE__ */ _(c, {
|
|
378
|
+
open: Oe,
|
|
379
|
+
onClose: () => A(!1),
|
|
269
380
|
title: "Post Details",
|
|
270
381
|
size: "lg",
|
|
271
|
-
|
|
382
|
+
footer: O ? /* @__PURE__ */ v(g, { children: [
|
|
383
|
+
/* @__PURE__ */ v("button", {
|
|
384
|
+
type: "button",
|
|
385
|
+
onClick: () => We(O),
|
|
386
|
+
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",
|
|
387
|
+
children: [/* @__PURE__ */ _(p, { className: "h-4 w-4" }), "Edit"]
|
|
388
|
+
}),
|
|
389
|
+
(O.status === "draft" || O.status === "scheduled") && /* @__PURE__ */ v("button", {
|
|
390
|
+
type: "button",
|
|
391
|
+
onClick: () => void Ue(O),
|
|
392
|
+
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",
|
|
393
|
+
children: [/* @__PURE__ */ _(h, { className: "h-4 w-4" }), "Publish"]
|
|
394
|
+
}),
|
|
395
|
+
/* @__PURE__ */ v("button", {
|
|
396
|
+
type: "button",
|
|
397
|
+
onClick: () => void He(O),
|
|
398
|
+
className: "inline-flex items-center gap-2 rounded-md border border-status-error-border px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/40",
|
|
399
|
+
children: [/* @__PURE__ */ _(ve, { className: "h-4 w-4" }), "Delete"]
|
|
400
|
+
})
|
|
401
|
+
] }) : void 0,
|
|
402
|
+
children: O && /* @__PURE__ */ v("div", {
|
|
272
403
|
className: "space-y-4",
|
|
273
404
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
-
className: "flex items-center gap-3",
|
|
405
|
+
/* @__PURE__ */ v("div", {
|
|
406
|
+
className: "flex flex-wrap items-center gap-3",
|
|
276
407
|
children: [
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize",
|
|
279
|
-
children:
|
|
408
|
+
/* @__PURE__ */ _("span", {
|
|
409
|
+
className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", y[O.platform]),
|
|
410
|
+
children: O.platform
|
|
280
411
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ _(s, { status: O.status }),
|
|
413
|
+
/* @__PURE__ */ v("span", {
|
|
283
414
|
className: "text-xs text-text-secondary",
|
|
284
|
-
children: ["by ",
|
|
415
|
+
children: ["by ", O.author]
|
|
285
416
|
})
|
|
286
417
|
]
|
|
287
418
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ _("p", {
|
|
289
420
|
className: "text-sm text-text-primary whitespace-pre-wrap",
|
|
290
|
-
children:
|
|
421
|
+
children: O.content
|
|
291
422
|
}),
|
|
292
|
-
|
|
423
|
+
O.status === "published" && /* @__PURE__ */ v("div", {
|
|
293
424
|
className: "grid grid-cols-3 gap-4",
|
|
294
425
|
children: [
|
|
295
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ v("div", {
|
|
296
427
|
className: "text-center p-3 rounded-md bg-bg-sunken/50",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
428
|
+
children: [/* @__PURE__ */ _("p", {
|
|
298
429
|
className: "text-lg font-bold text-text-primary",
|
|
299
|
-
children: i(
|
|
300
|
-
}), /* @__PURE__ */
|
|
430
|
+
children: i(O.metrics.likes)
|
|
431
|
+
}), /* @__PURE__ */ _("p", {
|
|
301
432
|
className: "text-xs text-text-secondary",
|
|
302
433
|
children: "Likes"
|
|
303
434
|
})]
|
|
304
435
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ v("div", {
|
|
306
437
|
className: "text-center p-3 rounded-md bg-bg-sunken/50",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ _("p", {
|
|
308
439
|
className: "text-lg font-bold text-text-primary",
|
|
309
|
-
children: i(
|
|
310
|
-
}), /* @__PURE__ */
|
|
440
|
+
children: i(O.metrics.comments)
|
|
441
|
+
}), /* @__PURE__ */ _("p", {
|
|
311
442
|
className: "text-xs text-text-secondary",
|
|
312
443
|
children: "Comments"
|
|
313
444
|
})]
|
|
314
445
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ v("div", {
|
|
316
447
|
className: "text-center p-3 rounded-md bg-bg-sunken/50",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ _("p", {
|
|
318
449
|
className: "text-lg font-bold text-text-primary",
|
|
319
|
-
children: i(
|
|
320
|
-
}), /* @__PURE__ */
|
|
450
|
+
children: i(O.metrics.reach)
|
|
451
|
+
}), /* @__PURE__ */ _("p", {
|
|
321
452
|
className: "text-xs text-text-secondary",
|
|
322
453
|
children: "Reach"
|
|
323
454
|
})]
|
|
324
455
|
})
|
|
325
456
|
]
|
|
326
457
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ _("div", {
|
|
328
459
|
className: "flex flex-wrap gap-1",
|
|
329
|
-
children:
|
|
460
|
+
children: O.tags.map((e) => /* @__PURE__ */ _("span", {
|
|
330
461
|
className: "rounded-full border border-border-subtle px-2.5 py-0.5 text-xs text-text-secondary",
|
|
331
|
-
children:
|
|
462
|
+
children: e.startsWith("#") ? e : `#${e}`
|
|
332
463
|
}, e))
|
|
333
464
|
})
|
|
334
465
|
]
|
|
335
466
|
})
|
|
467
|
+
}),
|
|
468
|
+
/* @__PURE__ */ _(c, {
|
|
469
|
+
open: ke,
|
|
470
|
+
onClose: () => j(!1),
|
|
471
|
+
title: "Edit Post",
|
|
472
|
+
description: "Update the caption. Hashtags are re-detected automatically.",
|
|
473
|
+
size: "lg",
|
|
474
|
+
footer: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("button", {
|
|
475
|
+
type: "button",
|
|
476
|
+
onClick: () => j(!1),
|
|
477
|
+
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
478
|
+
children: "Cancel"
|
|
479
|
+
}), /* @__PURE__ */ _("button", {
|
|
480
|
+
type: "button",
|
|
481
|
+
onClick: Ge,
|
|
482
|
+
disabled: G,
|
|
483
|
+
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 disabled:opacity-60",
|
|
484
|
+
children: G ? "Saving..." : "Save changes"
|
|
485
|
+
})] }),
|
|
486
|
+
children: /* @__PURE__ */ v("div", {
|
|
487
|
+
className: "space-y-3",
|
|
488
|
+
children: [F && /* @__PURE__ */ _("div", {
|
|
489
|
+
className: "rounded-md border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
490
|
+
children: F
|
|
491
|
+
}), /* @__PURE__ */ _("textarea", {
|
|
492
|
+
value: N,
|
|
493
|
+
onChange: (e) => P(e.target.value),
|
|
494
|
+
rows: 6,
|
|
495
|
+
className: "w-full resize-none rounded-md border border-border-subtle bg-bg-surface px-4 py-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
496
|
+
placeholder: "Write your post content..."
|
|
497
|
+
})]
|
|
498
|
+
})
|
|
336
499
|
})
|
|
337
500
|
]
|
|
338
501
|
});
|
|
339
502
|
};
|
|
340
503
|
//#endregion
|
|
341
|
-
export {
|
|
504
|
+
export { b as PostsPage };
|
|
342
505
|
|
|
343
506
|
//# sourceMappingURL=PostsPage.js.map
|