@burdenoff/microfe-headshotmarketing 2026.626.2 → 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 (140) 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 +291 -322
  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 +227 -210
  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 +303 -342
  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/analyticsMapper.js +11 -11
  132. package/dist/headshotmarketing/utils/analyticsMapper.js.map +1 -1
  133. package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
  134. package/dist/headshotmarketing/utils/helpers.js +11 -1
  135. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  136. package/dist/headshotmarketing/utils/influencerMapper.js +5 -4
  137. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  138. package/package.json +1 -1
  139. package/dist/headshotmarketing/utils/reportMapper.js +0 -33
  140. package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
@@ -1,16 +1,37 @@
1
- import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { HeadshotmarketingBootstrapDataDocument as t, useCreateHeadshotmarketingSocialPostMutation as n, useHeadshotmarketingBootstrapDataQuery as r } from "../../../generated/wspace-operations.js";
3
- import { cn as i } from "../../utils/helpers.js";
4
- import { PageLayout as a } from "../../components/PageLayout.js";
1
+ import { useCreateHeadshotmarketingSocialPostMutation as e } from "../../../generated/wspace-operations.js";
2
+ import { useHeadshotMarketing as t } from "../../context/HeadshotMarketingContext.js";
3
+ import { cn as n } from "../../utils/helpers.js";
4
+ import { HeadshotmarketingSocialPostStatus as r } from "../../../generated/wspace-types.js";
5
+ import { PageLayout as i } from "../../components/PageLayout.js";
6
+ import { QueryStateBoundary as a } from "../../components/QueryStateBoundary.js";
7
+ import { AssetUploadButton as o } from "../../components/AssetUploadButton.js";
5
8
  import "../../components/index.js";
6
- import { HeadshotmarketingSocialPostStatus as o } from "../../../generated/wspace-types.js";
7
- import { toHashtagSuggestions as s, toSocialAccountModel as c, toSocialPostModel as l } from "../../utils/socialMapper.js";
9
+ import { useHeadshotmarketingBootstrap as s } from "../../hooks/useHeadshotmarketingBootstrap.js";
10
+ import { toHashtagSuggestions as c, toSocialAccountModel as l, toSocialPostModel as ee } from "../../utils/socialMapper.js";
11
+ import "../../hooks/index.js";
8
12
  import { useMemo as u, useState as d } from "react";
9
- import { ArrowLeft as f, Clock as ee, Hash as p, Image as m, Link2 as h, Save as g, Send as _, SmilePlus as v, Video as y } from "lucide-react";
10
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
11
- import { EmphasisPanel as S, PagePurpose as C } from "@burdenoff/fe-libs/ui";
13
+ import { ArrowLeft as te, Clock as ne, Hash as re, Link2 as ie, Save as ae, Send as f, SmilePlus as p, X as m } from "lucide-react";
14
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
15
+ import { EmphasisPanel as oe, PagePurpose as se } from "@burdenoff/fe-libs/ui";
12
16
  //#region src/headshotmarketing/pages/social-media/SocialMediaComposePage.tsx
13
- var w = [
17
+ var ce = [
18
+ "😀",
19
+ "😎",
20
+ "🔥",
21
+ "✨",
22
+ "🎉",
23
+ "❤️",
24
+ "👍",
25
+ "🙌",
26
+ "🚀",
27
+ "📸",
28
+ "🎬",
29
+ "💡",
30
+ "📈",
31
+ "🏆",
32
+ "🌟",
33
+ "💬"
34
+ ], _ = [
14
35
  {
15
36
  key: "instagram",
16
37
  label: "Instagram",
@@ -47,266 +68,333 @@ var w = [
47
68
  maxChars: 2200,
48
69
  color: "bg-bg-sunken"
49
70
  }
50
- ], T = () => {
51
- let { navigate: T } = e(), { data: E } = r({ variables: {
52
- limit: 200,
53
- offset: 0
54
- } }), [D, { loading: O, error: k }] = n(), [A, j] = d(new Set(["instagram"])), [M, N] = d(""), [P, F] = d(!1), [I, L] = d(""), [R, z] = d(""), [B, V] = d(null), H = u(() => (E?.headshotmarketingSocialAccounts.items ?? []).map((e) => c(e)), [E?.headshotmarketingSocialAccounts.items]), U = u(() => Object.fromEntries((E?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.accountName])), [E?.headshotmarketingSocialAccounts.items]), W = u(() => Object.fromEntries(H.map((e) => [e.id, e.platform])), [H]), G = u(() => (E?.headshotmarketingSocialPosts.items ?? []).map((e) => l(e, U, W)), [
55
- E?.headshotmarketingSocialPosts.items,
56
- U,
57
- W
58
- ]), K = u(() => s(G), [G]), q = (e) => {
59
- j((t) => {
71
+ ], v = () => {
72
+ let { navigate: v, basePath: y } = t(), { data: b, loading: le, error: x, refetch: S } = s(), [C, { loading: w, error: ue }] = e(), [T, de] = d(new Set(["instagram"])), [E, D] = d(""), [O, k] = d([]), [A, j] = d(!1), [M, N] = d(""), [P, F] = d(""), [I, L] = d(null), [R, z] = d(!1), [B, V] = d(""), [H, U] = d(!1), W = u(() => (b?.headshotmarketingSocialAccounts.items ?? []).map((e) => l(e)), [b?.headshotmarketingSocialAccounts.items]), G = u(() => Object.fromEntries((b?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.accountName])), [b?.headshotmarketingSocialAccounts.items]), K = u(() => Object.fromEntries(W.map((e) => [e.id, e.platform])), [W]), q = u(() => (b?.headshotmarketingSocialPosts.items ?? []).map((e) => ee(e, G, K)), [
73
+ b?.headshotmarketingSocialPosts.items,
74
+ G,
75
+ K
76
+ ]), fe = u(() => c(q), [q]), pe = (e) => {
77
+ de((t) => {
60
78
  let n = new Set(t);
61
79
  return n.has(e) ? n.size > 1 && n.delete(e) : n.add(e), n;
62
80
  });
63
- }, J = Math.min(...Array.from(A).map((e) => w.find((t) => t.key === e)?.maxChars ?? 280)), Y = Math.min(M.length / J * 100, 100), X = (e) => {
64
- M.includes(e) || N((t) => t ? `${t} ${e}` : e);
65
- }, Z = B ?? k?.message ?? null, Q = () => {
66
- if (!P) return null;
67
- let e = `${I}T${R}`, t = new Date(e);
68
- return !I || !R || Number.isNaN(t.getTime()) ? null : t.toISOString();
69
- }, te = () => {
70
- let e = M.match(/#\w+/g) ?? [];
81
+ }, J = Math.min(...Array.from(T).map((e) => _.find((t) => t.key === e)?.maxChars ?? 280)), Y = Math.min(E.length / J * 100, 100), me = (e) => {
82
+ E.includes(e) || D((t) => t ? `${t} ${e}` : e);
83
+ }, X = (e) => {
84
+ e.url && k((t) => t.includes(e.url) ? t : [...t, e.url]);
85
+ }, he = (e) => {
86
+ k((t) => t.filter((t) => t !== e));
87
+ }, Z = () => {
88
+ let e = B.trim();
89
+ e && (D((t) => t ? `${t} ${e}` : e), V(""), z(!1));
90
+ }, ge = (e) => {
91
+ D((t) => `${t}${e}`), U(!1);
92
+ }, Q = I ?? ue?.message ?? null, _e = () => {
93
+ if (!A) return null;
94
+ let e = `${M}T${P}`, t = new Date(e);
95
+ return !M || !P || Number.isNaN(t.getTime()) ? null : t.toISOString();
96
+ }, ve = () => {
97
+ let e = E.match(/#\w+/g) ?? [];
71
98
  return Array.from(new Set(e));
72
99
  }, $ = async (e) => {
73
- let n = M.trim();
74
- if (!n) {
75
- V("Post content is required.");
100
+ let t = E.trim();
101
+ if (!t) {
102
+ L("Post content is required.");
76
103
  return;
77
104
  }
78
- let r = Q();
79
- if (P && !r) {
80
- V("Provide a valid schedule date and time.");
105
+ let n = _e();
106
+ if (A && !n) {
107
+ L("Provide a valid schedule date and time.");
81
108
  return;
82
109
  }
83
- let i = Array.from(A).filter((e) => !H.some((t) => t.platform === e));
84
- if (i.length > 0) {
85
- V(`Connect a social account for: ${i.map((e) => w.find((t) => t.key === e)?.label ?? e).join(", ")}.`);
110
+ let r = Array.from(T).filter((e) => !W.some((t) => t.platform === e));
111
+ if (r.length > 0) {
112
+ L(`Connect a social account for: ${r.map((e) => _.find((t) => t.key === e)?.label ?? e).join(", ")}.`);
86
113
  return;
87
114
  }
88
- let a = te();
89
- V(null);
90
- let o = Array.from(A).map((t) => {
91
- let i = H.find((e) => e.platform === t)?.id;
92
- if (!i) throw Error(`Missing social account for ${t}.`);
115
+ let i = ve();
116
+ L(null);
117
+ let a = Array.from(T).map((r) => {
118
+ let a = W.find((e) => e.platform === r)?.id;
119
+ if (!a) throw Error(`Missing social account for ${r}.`);
93
120
  return {
94
- socialAccountId: i,
95
- content: n,
121
+ socialAccountId: a,
122
+ content: t,
96
123
  status: e,
97
- scheduledAt: P ? r : null,
98
- tags: a
124
+ scheduledAt: A ? n : null,
125
+ tags: i,
126
+ mediaUrls: O.length > 0 ? O : void 0
99
127
  };
100
128
  });
101
129
  try {
102
- for (let e = 0; e < o.length; e += 1) {
103
- let n = o[e], r = e === o.length - 1;
104
- await D({
105
- variables: { input: n },
106
- refetchQueries: r ? [{
107
- query: t,
108
- variables: {
109
- limit: 200,
110
- offset: 0
111
- }
112
- }] : void 0,
113
- awaitRefetchQueries: r
114
- });
115
- }
116
- T("/social/posts");
130
+ for (let e = 0; e < a.length; e += 1) await C({ variables: { input: a[e] } });
131
+ await S(), v(y + "/social/posts");
117
132
  } catch (e) {
118
- V(e instanceof Error ? e.message : "Failed to create social post.");
133
+ L(e instanceof Error ? e.message : "Failed to create social post.");
119
134
  }
120
135
  };
121
- return /* @__PURE__ */ x(a, {
136
+ return /* @__PURE__ */ g(i, {
122
137
  title: "Compose Post",
123
138
  description: "Create and schedule content for your social media platforms",
124
- actions: /* @__PURE__ */ x("button", {
125
- onClick: () => T("/social"),
139
+ actions: /* @__PURE__ */ g("button", {
140
+ onClick: () => v(y + "/social"),
126
141
  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",
127
- children: [/* @__PURE__ */ b(f, { className: "h-4 w-4" }), "Back"]
142
+ children: [/* @__PURE__ */ h(te, { className: "h-4 w-4" }), "Back"]
128
143
  }),
129
- children: [/* @__PURE__ */ b(C, { children: "Write once, publish everywhere. Pick the platforms to post to, craft your message (with a live preview per channel), add media and hashtags, then publish now or schedule it for later." }), /* @__PURE__ */ x("div", {
130
- className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
131
- children: [/* @__PURE__ */ x("div", {
132
- className: "lg:col-span-2 space-y-6",
133
- children: [
134
- /* @__PURE__ */ x("div", {
135
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
136
- children: [/* @__PURE__ */ b("h3", {
137
- className: "text-sm font-semibold text-text-primary mb-3",
138
- children: "Select Platforms"
139
- }), /* @__PURE__ */ b("div", {
140
- className: "flex flex-wrap gap-2",
141
- children: w.map((e) => /* @__PURE__ */ x("button", {
142
- onClick: () => q(e.key),
143
- className: i("inline-flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium border transition-colors", A.has(e.key) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-secondary hover:text-text-primary hover:border-foreground/50"),
144
- children: [/* @__PURE__ */ b("span", { className: i("h-2 w-2 rounded-full", e.color) }), e.label]
145
- }, e.key))
146
- })]
147
- }),
148
- /* @__PURE__ */ x(S, {
149
- className: "p-6",
150
- children: [
151
- /* @__PURE__ */ b("h3", {
144
+ children: [/* @__PURE__ */ h(se, { children: "Write once, publish everywhere. Pick the platforms to post to, craft your message (with a live preview per channel), add media and hashtags, then publish now or schedule it for later." }), /* @__PURE__ */ h(a, {
145
+ loading: le,
146
+ error: x,
147
+ onRetry: S,
148
+ hasData: !!b,
149
+ children: /* @__PURE__ */ g("div", {
150
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
151
+ children: [/* @__PURE__ */ g("div", {
152
+ className: "lg:col-span-2 space-y-6",
153
+ children: [
154
+ /* @__PURE__ */ g("div", {
155
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
156
+ children: [/* @__PURE__ */ h("h3", {
152
157
  className: "text-sm font-semibold text-text-primary mb-3",
153
- children: "Content"
154
- }),
155
- /* @__PURE__ */ b("textarea", {
156
- value: M,
157
- onChange: (e) => N(e.target.value),
158
- placeholder: "What's on your mind? Write your post content here...",
159
- rows: 6,
160
- className: "w-full 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)] resize-none"
161
- }),
162
- /* @__PURE__ */ x("div", {
163
- className: "mt-2 flex items-center justify-between",
164
- children: [/* @__PURE__ */ x("div", {
165
- className: "flex items-center gap-3",
166
- children: [
167
- /* @__PURE__ */ b("button", {
168
- className: "rounded-md p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
169
- title: "Add Image",
170
- children: /* @__PURE__ */ b(m, { className: "h-4 w-4" })
171
- }),
172
- /* @__PURE__ */ b("button", {
173
- className: "rounded-md p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
174
- title: "Add Video",
175
- children: /* @__PURE__ */ b(y, { className: "h-4 w-4" })
176
- }),
177
- /* @__PURE__ */ b("button", {
178
- className: "rounded-md p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
179
- title: "Add Link",
180
- children: /* @__PURE__ */ b(h, { className: "h-4 w-4" })
181
- }),
182
- /* @__PURE__ */ b("button", {
183
- className: "rounded-md p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
184
- title: "Add Emoji",
185
- children: /* @__PURE__ */ b(v, { className: "h-4 w-4" })
186
- })
187
- ]
188
- }), /* @__PURE__ */ x("div", {
189
- className: "flex items-center gap-2",
190
- children: [/* @__PURE__ */ b("div", {
191
- className: "h-2 w-24 rounded-full bg-bg-sunken overflow-hidden",
192
- children: /* @__PURE__ */ b("div", {
193
- className: i("h-full rounded-full transition-all", Y > 90 ? "bg-status-error-text" : Y > 70 ? "bg-status-warning-text" : "bg-status-success-text"),
194
- style: { width: `${Y}%` }
195
- })
196
- }), /* @__PURE__ */ x("span", {
197
- className: i("text-xs font-medium", M.length > J ? "text-status-error-text" : "text-text-secondary"),
158
+ children: "Select Platforms"
159
+ }), /* @__PURE__ */ h("div", {
160
+ className: "flex flex-wrap gap-2",
161
+ children: _.map((e) => /* @__PURE__ */ g("button", {
162
+ onClick: () => pe(e.key),
163
+ className: n("inline-flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium border transition-colors", T.has(e.key) ? "border-foreground bg-foreground text-background" : "border-border-subtle text-text-secondary hover:text-text-primary hover:border-foreground/50"),
164
+ children: [/* @__PURE__ */ h("span", { className: n("h-2 w-2 rounded-full", e.color) }), e.label]
165
+ }, e.key))
166
+ })]
167
+ }),
168
+ /* @__PURE__ */ g(oe, {
169
+ className: "p-6",
170
+ children: [
171
+ /* @__PURE__ */ h("h3", {
172
+ className: "text-sm font-semibold text-text-primary mb-3",
173
+ children: "Content"
174
+ }),
175
+ /* @__PURE__ */ h("textarea", {
176
+ value: E,
177
+ onChange: (e) => D(e.target.value),
178
+ placeholder: "What's on your mind? Write your post content here...",
179
+ rows: 6,
180
+ className: "w-full 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)] resize-none"
181
+ }),
182
+ /* @__PURE__ */ g("div", {
183
+ className: "mt-2 flex flex-wrap items-center justify-between gap-3",
184
+ children: [/* @__PURE__ */ g("div", {
185
+ className: "flex flex-wrap items-center gap-2",
198
186
  children: [
199
- M.length,
200
- "/",
201
- J
187
+ /* @__PURE__ */ h(o, {
188
+ accept: "image/*",
189
+ label: "Image",
190
+ variant: "outline",
191
+ folderPath: "/HeadshotMarketing/Social",
192
+ onUploaded: X
193
+ }),
194
+ /* @__PURE__ */ h(o, {
195
+ accept: "video/*",
196
+ label: "Video",
197
+ variant: "outline",
198
+ folderPath: "/HeadshotMarketing/Social",
199
+ onUploaded: X
200
+ }),
201
+ /* @__PURE__ */ g("button", {
202
+ type: "button",
203
+ onClick: () => {
204
+ z((e) => !e), U(!1);
205
+ },
206
+ className: n("inline-flex min-h-[40px] items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken", R && "bg-bg-sunken"),
207
+ title: "Add Link",
208
+ children: [/* @__PURE__ */ h(ie, { className: "h-4 w-4" }), "Link"]
209
+ }),
210
+ /* @__PURE__ */ g("button", {
211
+ type: "button",
212
+ onClick: () => {
213
+ U((e) => !e), z(!1);
214
+ },
215
+ className: n("inline-flex min-h-[40px] items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken", H && "bg-bg-sunken"),
216
+ title: "Add Emoji",
217
+ children: [/* @__PURE__ */ h(p, { className: "h-4 w-4" }), "Emoji"]
218
+ })
202
219
  ]
220
+ }), /* @__PURE__ */ g("div", {
221
+ className: "flex items-center gap-2",
222
+ children: [/* @__PURE__ */ h("div", {
223
+ className: "h-2 w-24 rounded-full bg-bg-sunken overflow-hidden",
224
+ children: /* @__PURE__ */ h("div", {
225
+ className: n("h-full rounded-full transition-all", Y > 90 ? "bg-status-error-text" : Y > 70 ? "bg-status-warning-text" : "bg-status-success-text"),
226
+ style: { width: `${Y}%` }
227
+ })
228
+ }), /* @__PURE__ */ g("span", {
229
+ className: n("text-xs font-medium", E.length > J ? "text-status-error-text" : "text-text-secondary"),
230
+ children: [
231
+ E.length,
232
+ "/",
233
+ J
234
+ ]
235
+ })]
203
236
  })]
237
+ }),
238
+ R && /* @__PURE__ */ g("div", {
239
+ className: "mt-3 flex flex-wrap items-center gap-2",
240
+ children: [/* @__PURE__ */ h("input", {
241
+ type: "url",
242
+ value: B,
243
+ onChange: (e) => V(e.target.value),
244
+ onKeyDown: (e) => {
245
+ e.key === "Enter" && (e.preventDefault(), Z());
246
+ },
247
+ placeholder: "https://example.com/your-link",
248
+ className: "min-w-[12rem] flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
249
+ }), /* @__PURE__ */ h("button", {
250
+ type: "button",
251
+ onClick: Z,
252
+ disabled: !B.trim(),
253
+ className: "rounded-md bg-foreground px-3 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
254
+ children: "Insert"
255
+ })]
256
+ }),
257
+ H && /* @__PURE__ */ h("div", {
258
+ className: "mt-3 flex flex-wrap gap-1 rounded-md border border-border-subtle bg-bg-surface p-2",
259
+ children: ce.map((e) => /* @__PURE__ */ h("button", {
260
+ type: "button",
261
+ onClick: () => ge(e),
262
+ className: "rounded-md px-2 py-1 text-lg hover:bg-bg-sunken",
263
+ "aria-label": `Insert ${e}`,
264
+ children: e
265
+ }, e))
266
+ }),
267
+ O.length > 0 && /* @__PURE__ */ g("div", {
268
+ className: "mt-3 space-y-2",
269
+ children: [/* @__PURE__ */ g("p", {
270
+ className: "text-xs font-medium text-text-secondary",
271
+ children: [
272
+ "Attached media (",
273
+ O.length,
274
+ ")"
275
+ ]
276
+ }), /* @__PURE__ */ h("div", {
277
+ className: "flex flex-wrap gap-2",
278
+ children: O.map((e) => /* @__PURE__ */ g("span", {
279
+ className: "inline-flex max-w-[16rem] items-center gap-1.5 rounded-full border border-border-subtle bg-bg-surface px-3 py-1 text-xs text-text-primary",
280
+ children: [/* @__PURE__ */ h("span", {
281
+ className: "truncate",
282
+ children: e.split("/").pop()?.split("?")[0] || e
283
+ }), /* @__PURE__ */ h("button", {
284
+ type: "button",
285
+ onClick: () => he(e),
286
+ className: "text-text-secondary hover:text-status-error-text",
287
+ "aria-label": "Remove media",
288
+ children: /* @__PURE__ */ h(m, { className: "h-3 w-3" })
289
+ })]
290
+ }, e))
291
+ })]
292
+ })
293
+ ]
294
+ }),
295
+ /* @__PURE__ */ g("div", {
296
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
297
+ children: [/* @__PURE__ */ g("div", {
298
+ className: "flex items-center justify-between mb-3",
299
+ children: [/* @__PURE__ */ g("h3", {
300
+ className: "text-sm font-semibold text-text-primary flex items-center gap-2",
301
+ children: [/* @__PURE__ */ h(ne, { className: "h-4 w-4" }), "Schedule"]
302
+ }), /* @__PURE__ */ h("button", {
303
+ onClick: () => j(!A),
304
+ className: n("relative inline-flex h-6 w-11 items-center rounded-full transition-colors", A ? "bg-foreground" : "bg-bg-sunken"),
305
+ children: /* @__PURE__ */ h("span", { className: n("inline-block h-4 w-4 transform rounded-full bg-bg-surface transition-transform", A ? "translate-x-6" : "translate-x-1") })
306
+ })]
307
+ }), A && /* @__PURE__ */ g("div", {
308
+ className: "flex items-center gap-3",
309
+ children: [/* @__PURE__ */ h("input", {
310
+ type: "date",
311
+ value: M,
312
+ onChange: (e) => N(e.target.value),
313
+ className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
314
+ }), /* @__PURE__ */ h("input", {
315
+ type: "time",
316
+ value: P,
317
+ onChange: (e) => F(e.target.value),
318
+ className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
204
319
  })]
205
- })
206
- ]
207
- }),
208
- /* @__PURE__ */ x("div", {
209
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
210
- children: [/* @__PURE__ */ x("div", {
211
- className: "flex items-center justify-between mb-3",
212
- children: [/* @__PURE__ */ x("h3", {
213
- className: "text-sm font-semibold text-text-primary flex items-center gap-2",
214
- children: [/* @__PURE__ */ b(ee, { className: "h-4 w-4" }), "Schedule"]
215
- }), /* @__PURE__ */ b("button", {
216
- onClick: () => F(!P),
217
- className: i("relative inline-flex h-6 w-11 items-center rounded-full transition-colors", P ? "bg-foreground" : "bg-bg-sunken"),
218
- children: /* @__PURE__ */ b("span", { className: i("inline-block h-4 w-4 transform rounded-full bg-bg-surface transition-transform", P ? "translate-x-6" : "translate-x-1") })
219
- })]
220
- }), P && /* @__PURE__ */ x("div", {
221
- className: "flex items-center gap-3",
222
- children: [/* @__PURE__ */ b("input", {
223
- type: "date",
224
- value: I,
225
- onChange: (e) => L(e.target.value),
226
- className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
227
- }), /* @__PURE__ */ b("input", {
228
- type: "time",
229
- value: R,
230
- onChange: (e) => z(e.target.value),
231
- className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
232
- })]
233
- })]
234
- }),
235
- Z && /* @__PURE__ */ b("div", {
236
- className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
237
- children: Z
238
- }),
239
- /* @__PURE__ */ x("div", {
240
- className: "flex items-center justify-end gap-3",
241
- children: [/* @__PURE__ */ x("button", {
242
- onClick: async () => {
243
- await $(o.Draft);
244
- },
245
- disabled: O,
246
- 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 disabled:opacity-60",
247
- children: [/* @__PURE__ */ b(g, { className: "h-4 w-4" }), O ? "Saving..." : "Save Draft"]
248
- }), /* @__PURE__ */ x("button", {
249
- onClick: async () => {
250
- await $(P ? o.Scheduled : o.Published);
251
- },
252
- disabled: O,
253
- 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",
254
- children: [/* @__PURE__ */ b(_, { className: "h-4 w-4" }), O ? "Submitting..." : P ? "Schedule Post" : "Publish Now"]
255
- })]
256
- })
257
- ]
258
- }), /* @__PURE__ */ x("div", {
259
- className: "space-y-6",
260
- children: [/* @__PURE__ */ x("div", {
261
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
262
- children: [/* @__PURE__ */ x("h3", {
263
- className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
264
- children: [/* @__PURE__ */ b(p, { className: "h-4 w-4" }), "Suggested Hashtags"]
265
- }), /* @__PURE__ */ b("div", {
266
- className: "space-y-2",
267
- children: K.map((e) => /* @__PURE__ */ x("button", {
268
- onClick: () => X(e.tag),
269
- className: i("flex w-full items-center justify-between rounded-md px-3 py-2 text-sm transition-colors", M.includes(e.tag) ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
270
- children: [/* @__PURE__ */ b("span", { children: e.tag }), /* @__PURE__ */ x("span", {
271
- className: "text-xs",
272
- children: [e.posts, " posts"]
273
320
  })]
274
- }, e.tag))
275
- })]
276
- }), /* @__PURE__ */ x("div", {
277
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
278
- children: [
279
- /* @__PURE__ */ b("h3", {
280
- className: "text-sm font-semibold text-text-primary mb-3",
281
- children: "Preview"
282
321
  }),
283
- /* @__PURE__ */ b("div", {
284
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-4",
285
- children: M ? /* @__PURE__ */ b("p", {
286
- className: "text-sm text-text-primary whitespace-pre-wrap",
287
- children: M
288
- }) : /* @__PURE__ */ b("p", {
289
- className: "text-sm text-text-secondary italic",
290
- children: "Your post preview will appear here..."
291
- })
322
+ Q && /* @__PURE__ */ h("div", {
323
+ className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
324
+ children: Q
292
325
  }),
293
- /* @__PURE__ */ b("div", {
294
- className: "mt-3 flex flex-wrap gap-1",
295
- children: Array.from(A).map((e) => {
296
- let t = w.find((t) => t.key === e);
297
- return /* @__PURE__ */ x("span", {
298
- className: "inline-flex items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-xs text-text-secondary",
299
- children: [/* @__PURE__ */ b("span", { className: i("h-1.5 w-1.5 rounded-full", t?.color) }), t?.label]
300
- }, e);
301
- })
326
+ /* @__PURE__ */ g("div", {
327
+ className: "flex items-center justify-end gap-3",
328
+ children: [/* @__PURE__ */ g("button", {
329
+ onClick: async () => {
330
+ await $(r.Draft);
331
+ },
332
+ disabled: w,
333
+ 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 disabled:opacity-60",
334
+ children: [/* @__PURE__ */ h(ae, { className: "h-4 w-4" }), w ? "Saving..." : "Save Draft"]
335
+ }), /* @__PURE__ */ g("button", {
336
+ onClick: async () => {
337
+ await $(A ? r.Scheduled : r.Published);
338
+ },
339
+ disabled: w,
340
+ 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",
341
+ children: [/* @__PURE__ */ h(f, { className: "h-4 w-4" }), w ? "Submitting..." : A ? "Schedule Post" : "Publish Now"]
342
+ })]
302
343
  })
303
344
  ]
345
+ }), /* @__PURE__ */ g("div", {
346
+ className: "space-y-6",
347
+ children: [/* @__PURE__ */ g("div", {
348
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
349
+ children: [/* @__PURE__ */ g("h3", {
350
+ className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
351
+ children: [/* @__PURE__ */ h(re, { className: "h-4 w-4" }), "Suggested Hashtags"]
352
+ }), /* @__PURE__ */ h("div", {
353
+ className: "space-y-2",
354
+ children: fe.map((e) => /* @__PURE__ */ g("button", {
355
+ onClick: () => me(e.tag),
356
+ className: n("flex w-full items-center justify-between rounded-md px-3 py-2 text-sm transition-colors", E.includes(e.tag) ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
357
+ children: [/* @__PURE__ */ h("span", { children: e.tag }), /* @__PURE__ */ g("span", {
358
+ className: "text-xs",
359
+ children: [e.posts, " posts"]
360
+ })]
361
+ }, e.tag))
362
+ })]
363
+ }), /* @__PURE__ */ g("div", {
364
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6",
365
+ children: [
366
+ /* @__PURE__ */ h("h3", {
367
+ className: "text-sm font-semibold text-text-primary mb-3",
368
+ children: "Preview"
369
+ }),
370
+ /* @__PURE__ */ h("div", {
371
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop p-4",
372
+ children: E ? /* @__PURE__ */ h("p", {
373
+ className: "text-sm text-text-primary whitespace-pre-wrap",
374
+ children: E
375
+ }) : /* @__PURE__ */ h("p", {
376
+ className: "text-sm text-text-secondary italic",
377
+ children: "Your post preview will appear here..."
378
+ })
379
+ }),
380
+ /* @__PURE__ */ h("div", {
381
+ className: "mt-3 flex flex-wrap gap-1",
382
+ children: Array.from(T).map((e) => {
383
+ let t = _.find((t) => t.key === e);
384
+ return /* @__PURE__ */ g("span", {
385
+ className: "inline-flex items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-xs text-text-secondary",
386
+ children: [/* @__PURE__ */ h("span", { className: n("h-1.5 w-1.5 rounded-full", t?.color) }), t?.label]
387
+ }, e);
388
+ })
389
+ })
390
+ ]
391
+ })]
304
392
  })]
305
- })]
393
+ })
306
394
  })]
307
395
  });
308
396
  };
309
397
  //#endregion
310
- export { T as SocialMediaComposePage };
398
+ export { v as SocialMediaComposePage };
311
399
 
312
400
  //# sourceMappingURL=SocialMediaComposePage.js.map