@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.
Files changed (137) hide show
  1. package/dist/generated/wspace-operations.js +970 -52
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +26 -10
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
  6. package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
  7. package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
  8. package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
  9. package/dist/headshotmarketing/components/ActionMenu.js +57 -0
  10. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
  11. package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
  12. package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
  13. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  14. package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
  15. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
  16. package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
  17. package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
  18. package/dist/headshotmarketing/components/Modal.js +6 -3
  19. package/dist/headshotmarketing/components/Modal.js.map +1 -1
  20. package/dist/headshotmarketing/components/Pagination.js +117 -0
  21. package/dist/headshotmarketing/components/Pagination.js.map +1 -0
  22. package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
  23. package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
  24. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  25. package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
  26. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
  27. package/dist/headshotmarketing/components/index.js +6 -0
  28. package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
  29. package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
  30. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
  31. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
  32. package/dist/headshotmarketing/hooks/index.js +4 -0
  33. package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
  34. package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
  35. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
  36. package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
  37. package/dist/headshotmarketing/hooks/usePagination.js +53 -0
  38. package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
  39. package/dist/headshotmarketing/pages/HomePage.js +334 -301
  40. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
  42. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
  44. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
  46. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
  48. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
  50. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
  52. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
  54. package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
  56. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  57. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
  58. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +221 -211
  60. package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
  62. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
  64. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
  66. package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
  67. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
  68. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
  70. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
  72. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  73. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +290 -217
  74. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
  76. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
  78. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
  80. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
  82. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
  84. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
  86. package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
  88. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
  90. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
  92. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
  94. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
  96. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  97. package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
  98. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
  99. package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
  100. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
  102. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
  104. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
  106. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  107. package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
  108. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
  110. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  111. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
  112. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
  114. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
  116. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
  118. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
  120. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  121. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
  122. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
  124. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
  126. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
  128. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  129. package/dist/headshotmarketing/utils/adsMapper.js +74 -51
  130. package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
  131. package/dist/headshotmarketing/utils/helpers.js +11 -1
  132. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  133. package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
  134. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  135. package/package.json +1 -1
  136. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  137. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -1,343 +1,506 @@
1
- import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { useHeadshotmarketingBootstrapDataQuery as t } from "../../../generated/wspace-operations.js";
3
- import { cn as n, formatDate as r, formatNumber as i, formatPercentage as a } from "../../utils/helpers.js";
4
- import { PageLayout as o } from "../../components/PageLayout.js";
5
- import { StatCard as s } from "../../components/StatCard.js";
6
- import { StatusBadge as c } from "../../components/StatusBadge.js";
7
- import { EmptyState as l } from "../../components/EmptyState.js";
8
- import { FilterBar as u } from "../../components/FilterBar.js";
9
- import { Modal as d } from "../../components/Modal.js";
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 { toSocialAccountModel as f, toSocialPostModel as p } from "../../utils/socialMapper.js";
12
- import { useMemo as m, useState as h } from "react";
13
- import { Eye as g, Grid3X3 as _, Heart as v, List as y, MessageCircle as b, MoreHorizontal as x, Plus as S, Share2 as C } from "lucide-react";
14
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
15
- import { EmphasisPanel as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
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 k = {
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
- }, A = () => {
25
- let { navigate: A } = e(), { data: j } = t({ variables: {
26
- limit: 200,
27
- offset: 0
28
- } }), [M, N] = h(""), [P, F] = h("all"), [I, L] = h("all"), [R, z] = h("newest"), [B, V] = h("grid"), [H, U] = h(null), [W, G] = h(!1), K = m(() => (j?.headshotmarketingSocialAccounts.items ?? []).map((e) => f(e)), [j?.headshotmarketingSocialAccounts.items]), q = m(() => Object.fromEntries((j?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.accountName])), [j?.headshotmarketingSocialAccounts.items]), J = m(() => Object.fromEntries(K.map((e) => [e.id, e.platform])), [K]), Y = m(() => (j?.headshotmarketingSocialPosts.items ?? []).map((e) => p(e, q, J)), [
29
- j?.headshotmarketingSocialPosts.items,
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
- J
32
- ]), X = m(() => {
33
- let e = [...Y];
34
- if (M) {
35
- let t = M.toLowerCase();
36
- e = e.filter((e) => e.content.toLowerCase().includes(t) || e.tags.some((e) => e.toLowerCase().includes(t)));
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
- return P !== "all" && (e = e.filter((e) => e.status === P)), I !== "all" && (e = e.filter((e) => e.platform === I)), e.sort((e, t) => R === "newest" ? new Date(t.createdAt).getTime() - new Date(e.createdAt).getTime() : R === "oldest" ? new Date(e.createdAt).getTime() - new Date(t.createdAt).getTime() : R === "engagement" ? t.metrics.engagementRate - e.metrics.engagementRate : 0), e;
39
- }, [
40
- M,
41
- P,
42
- I,
43
- R,
44
- Y
45
- ]), Z = Y.filter((e) => e.status === "published").length, Q = Y.filter((e) => e.status === "scheduled").length;
46
- Y.filter((e) => e.status === "draft").length;
47
- let $ = Y.reduce((e, t) => e + t.metrics.likes + t.metrics.comments + t.metrics.shares, 0), ee = Y.filter((e) => e.status === "published").length > 0 ? Y.filter((e) => e.status === "published").reduce((e, t) => e + t.metrics.engagementRate, 0) / Y.filter((e) => e.status === "published").length : 0;
48
- return /* @__PURE__ */ E(o, {
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__ */ E("button", {
52
- onClick: () => A("/social-media/compose"),
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__ */ T(S, { className: "h-4 w-4" }), "Create Post"]
138
+ children: [/* @__PURE__ */ _(m, { className: "h-4 w-4" }), "Create Post"]
55
139
  }),
56
140
  children: [
57
- /* @__PURE__ */ T(O, { 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." }),
58
- /* @__PURE__ */ T(D, { children: /* @__PURE__ */ E("div", {
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__ */ T(s, {
145
+ /* @__PURE__ */ _(o, {
62
146
  title: "Total Posts",
63
- value: Y.length,
64
- icon: /* @__PURE__ */ T(b, { className: "h-4 w-4" })
147
+ value: Le,
148
+ icon: /* @__PURE__ */ _(ge, { className: "h-4 w-4" })
65
149
  }),
66
- /* @__PURE__ */ T(s, {
150
+ /* @__PURE__ */ _(o, {
67
151
  title: "Published",
68
- value: Z,
69
- icon: /* @__PURE__ */ T(g, { className: "h-4 w-4" })
152
+ value: Re,
153
+ icon: /* @__PURE__ */ _(fe, { className: "h-4 w-4" })
70
154
  }),
71
- /* @__PURE__ */ T(s, {
155
+ /* @__PURE__ */ _(o, {
72
156
  title: "Scheduled",
73
- value: Q,
157
+ value: ze,
74
158
  change: 12
75
159
  }),
76
- /* @__PURE__ */ T(s, {
160
+ /* @__PURE__ */ _(o, {
77
161
  title: "Total Engagement",
78
- value: i($),
162
+ value: i(Be),
79
163
  change: 8.4
80
164
  }),
81
- /* @__PURE__ */ T(s, {
165
+ /* @__PURE__ */ _(o, {
82
166
  title: "Avg Engagement",
83
- value: a(ee),
167
+ value: re(Ve),
84
168
  change: 1.2
85
169
  })
86
170
  ]
87
171
  }) }),
88
- /* @__PURE__ */ T(u, {
89
- searchValue: M,
90
- onSearchChange: N,
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__ */ E(w, { children: [
93
- /* @__PURE__ */ E("select", {
94
- value: P,
95
- onChange: (e) => F(e.target.value),
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__ */ T("option", {
186
+ /* @__PURE__ */ _("option", {
99
187
  value: "all",
100
188
  children: "All Status"
101
189
  }),
102
- /* @__PURE__ */ T("option", {
190
+ /* @__PURE__ */ _("option", {
103
191
  value: "published",
104
192
  children: "Published"
105
193
  }),
106
- /* @__PURE__ */ T("option", {
194
+ /* @__PURE__ */ _("option", {
107
195
  value: "scheduled",
108
196
  children: "Scheduled"
109
197
  }),
110
- /* @__PURE__ */ T("option", {
198
+ /* @__PURE__ */ _("option", {
111
199
  value: "draft",
112
200
  children: "Draft"
113
201
  }),
114
- /* @__PURE__ */ T("option", {
202
+ /* @__PURE__ */ _("option", {
115
203
  value: "failed",
116
204
  children: "Failed"
117
205
  })
118
206
  ]
119
207
  }),
120
- /* @__PURE__ */ E("select", {
121
- value: I,
122
- onChange: (e) => L(e.target.value),
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__ */ T("option", {
213
+ /* @__PURE__ */ _("option", {
126
214
  value: "all",
127
215
  children: "All Platforms"
128
216
  }),
129
- /* @__PURE__ */ T("option", {
217
+ /* @__PURE__ */ _("option", {
130
218
  value: "instagram",
131
219
  children: "Instagram"
132
220
  }),
133
- /* @__PURE__ */ T("option", {
221
+ /* @__PURE__ */ _("option", {
134
222
  value: "facebook",
135
223
  children: "Facebook"
136
224
  }),
137
- /* @__PURE__ */ T("option", {
225
+ /* @__PURE__ */ _("option", {
138
226
  value: "twitter",
139
227
  children: "Twitter"
140
228
  }),
141
- /* @__PURE__ */ T("option", {
229
+ /* @__PURE__ */ _("option", {
142
230
  value: "linkedin",
143
231
  children: "LinkedIn"
144
232
  }),
145
- /* @__PURE__ */ T("option", {
233
+ /* @__PURE__ */ _("option", {
146
234
  value: "tiktok",
147
235
  children: "TikTok"
148
236
  })
149
237
  ]
150
238
  }),
151
- /* @__PURE__ */ E("select", {
152
- value: R,
153
- onChange: (e) => z(e.target.value),
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__ */ T("option", {
244
+ /* @__PURE__ */ _("option", {
157
245
  value: "newest",
158
246
  children: "Newest"
159
247
  }),
160
- /* @__PURE__ */ T("option", {
248
+ /* @__PURE__ */ _("option", {
161
249
  value: "oldest",
162
250
  children: "Oldest"
163
251
  }),
164
- /* @__PURE__ */ T("option", {
252
+ /* @__PURE__ */ _("option", {
165
253
  value: "engagement",
166
254
  children: "Engagement"
167
255
  })
168
256
  ]
169
257
  })
170
258
  ] }),
171
- actions: /* @__PURE__ */ E("div", {
259
+ actions: /* @__PURE__ */ v("div", {
172
260
  className: "flex rounded-md border border-border-subtle",
173
- children: [/* @__PURE__ */ T("button", {
174
- onClick: () => V("grid"),
175
- className: n("p-2", B === "grid" ? "bg-foreground text-background" : "text-text-secondary"),
176
- children: /* @__PURE__ */ T(_, { className: "h-4 w-4" })
177
- }), /* @__PURE__ */ T("button", {
178
- onClick: () => V("list"),
179
- className: n("p-2", B === "list" ? "bg-foreground text-background" : "text-text-secondary"),
180
- children: /* @__PURE__ */ T(y, { className: "h-4 w-4" })
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
- X.length === 0 ? /* @__PURE__ */ T(l, {
185
- illustration: Y.length === 0 ? "empty-notifications" : "empty-search",
186
- title: Y.length === 0 ? "No posts yet" : "No posts match your filters",
187
- description: Y.length === 0 ? "Compose your first social post to start building your feed." : "Try a different search term, status or platform.",
188
- action: Y.length === 0 ? /* @__PURE__ */ E("button", {
189
- onClick: () => A("/social-media/compose"),
190
- 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",
191
- children: [/* @__PURE__ */ T(S, { className: "h-4 w-4" }), "Create Post"]
192
- }) : void 0
193
- }) : B === "grid" ? /* @__PURE__ */ T("div", {
194
- className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
195
- children: X.map((e) => /* @__PURE__ */ E("div", {
196
- onClick: () => {
197
- U(e), G(!0);
198
- },
199
- 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",
200
- children: [
201
- /* @__PURE__ */ E("div", {
202
- className: "flex items-center justify-between",
203
- children: [/* @__PURE__ */ T("span", {
204
- className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", k[e.platform]),
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
- }), /* @__PURE__ */ T(c, { status: e.status })]
207
- }),
208
- /* @__PURE__ */ T("p", {
209
- className: "text-sm text-text-primary line-clamp-3",
210
- children: e.content
211
- }),
212
- /* @__PURE__ */ E("div", {
213
- className: "flex items-center justify-between text-xs text-text-secondary",
214
- children: [/* @__PURE__ */ T("span", { children: r(e.createdAt) }), e.status === "published" && /* @__PURE__ */ E("div", {
215
- className: "flex items-center gap-3",
216
- children: [
217
- /* @__PURE__ */ E("span", {
218
- className: "flex items-center gap-1",
219
- children: [/* @__PURE__ */ T(v, { className: "h-3 w-3" }), i(e.metrics.likes)]
220
- }),
221
- /* @__PURE__ */ E("span", {
222
- className: "flex items-center gap-1",
223
- children: [/* @__PURE__ */ T(b, { className: "h-3 w-3" }), i(e.metrics.comments)]
224
- }),
225
- /* @__PURE__ */ E("span", {
226
- className: "flex items-center gap-1",
227
- children: [/* @__PURE__ */ T(C, { className: "h-3 w-3" }), i(e.metrics.shares)]
228
- })
229
- ]
230
- })]
231
- })
232
- ]
233
- }, e.id))
234
- }) : /* @__PURE__ */ T("div", {
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__ */ T(d, {
267
- open: W,
268
- onClose: () => G(!1),
377
+ /* @__PURE__ */ _(c, {
378
+ open: Oe,
379
+ onClose: () => A(!1),
269
380
  title: "Post Details",
270
381
  size: "lg",
271
- children: H && /* @__PURE__ */ E("div", {
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__ */ E("div", {
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__ */ T("span", {
278
- className: n("rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", k[H.platform]),
279
- children: H.platform
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__ */ T(c, { status: H.status }),
282
- /* @__PURE__ */ E("span", {
412
+ /* @__PURE__ */ _(s, { status: O.status }),
413
+ /* @__PURE__ */ v("span", {
283
414
  className: "text-xs text-text-secondary",
284
- children: ["by ", H.author]
415
+ children: ["by ", O.author]
285
416
  })
286
417
  ]
287
418
  }),
288
- /* @__PURE__ */ T("p", {
419
+ /* @__PURE__ */ _("p", {
289
420
  className: "text-sm text-text-primary whitespace-pre-wrap",
290
- children: H.content
421
+ children: O.content
291
422
  }),
292
- H.status === "published" && /* @__PURE__ */ E("div", {
423
+ O.status === "published" && /* @__PURE__ */ v("div", {
293
424
  className: "grid grid-cols-3 gap-4",
294
425
  children: [
295
- /* @__PURE__ */ E("div", {
426
+ /* @__PURE__ */ v("div", {
296
427
  className: "text-center p-3 rounded-md bg-bg-sunken/50",
297
- children: [/* @__PURE__ */ T("p", {
428
+ children: [/* @__PURE__ */ _("p", {
298
429
  className: "text-lg font-bold text-text-primary",
299
- children: i(H.metrics.likes)
300
- }), /* @__PURE__ */ T("p", {
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__ */ E("div", {
436
+ /* @__PURE__ */ v("div", {
306
437
  className: "text-center p-3 rounded-md bg-bg-sunken/50",
307
- children: [/* @__PURE__ */ T("p", {
438
+ children: [/* @__PURE__ */ _("p", {
308
439
  className: "text-lg font-bold text-text-primary",
309
- children: i(H.metrics.comments)
310
- }), /* @__PURE__ */ T("p", {
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__ */ E("div", {
446
+ /* @__PURE__ */ v("div", {
316
447
  className: "text-center p-3 rounded-md bg-bg-sunken/50",
317
- children: [/* @__PURE__ */ T("p", {
448
+ children: [/* @__PURE__ */ _("p", {
318
449
  className: "text-lg font-bold text-text-primary",
319
- children: i(H.metrics.reach)
320
- }), /* @__PURE__ */ T("p", {
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__ */ T("div", {
458
+ /* @__PURE__ */ _("div", {
328
459
  className: "flex flex-wrap gap-1",
329
- children: H.tags.map((e) => /* @__PURE__ */ E("span", {
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: ["#", e]
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 { A as PostsPage };
504
+ export { b as PostsPage };
342
505
 
343
506
  //# sourceMappingURL=PostsPage.js.map