@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,22 +1,28 @@
1
1
  import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { useHeadshotmarketingBootstrapDataQuery as t } from "../../../generated/wspace-operations.js";
3
- import { cn as n } from "../../utils/helpers.js";
4
- import { PageLayout as r } from "../../components/PageLayout.js";
2
+ import { cn as t } from "../../utils/helpers.js";
3
+ import { PageLayout as n } from "../../components/PageLayout.js";
4
+ import { QueryStateBoundary as r } from "../../components/QueryStateBoundary.js";
5
5
  import "../../components/index.js";
6
- import { toCalendarPosts as i, toSocialAccountModel as a, toSocialPostModel as o } from "../../utils/socialMapper.js";
7
- import { useMemo as s, useState as c } from "react";
8
- import { BarChart3 as l, CalendarDays as u, ChevronLeft as d, ChevronRight as f, Clock as p } from "lucide-react";
9
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
10
- import { EmphasisPanel as _, NextSteps as v, PagePurpose as y } from "@burdenoff/fe-libs/ui";
6
+ import { useHeadshotmarketingBootstrap as i } from "../../hooks/useHeadshotmarketingBootstrap.js";
7
+ import { toCalendarPosts as a, toSocialAccountModel as o, toSocialPostModel as s } from "../../utils/socialMapper.js";
8
+ import "../../hooks/index.js";
9
+ import { useMemo as c, useState as l } from "react";
10
+ import { BarChart3 as u, CalendarDays as d, ChevronLeft as f, ChevronRight as p, Clock as m } from "lucide-react";
11
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
12
+ import { EmphasisPanel as v, NextSteps as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
11
13
  //#region src/headshotmarketing/pages/social-media/ContentCalendarPage.tsx
12
- var b = {
14
+ var x = {
13
15
  instagram: "bg-action-primary-bg",
14
16
  facebook: "bg-status-info-text",
15
17
  twitter: "bg-status-info-text",
16
18
  linkedin: "bg-status-info-text",
17
19
  youtube: "bg-status-error-text",
18
20
  tiktok: "bg-bg-sunken"
19
- }, x = [
21
+ };
22
+ function S(e) {
23
+ return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
24
+ }
25
+ var C = [
20
26
  "Sun",
21
27
  "Mon",
22
28
  "Tue",
@@ -25,301 +31,306 @@ var b = {
25
31
  "Fri",
26
32
  "Sat"
27
33
  ];
28
- function S(e, t) {
34
+ function ee(e, t) {
29
35
  return new Date(e, t + 1, 0).getDate();
30
36
  }
31
- function C(e, t) {
37
+ function te(e, t) {
32
38
  return new Date(e, t, 1).getDay();
33
39
  }
34
40
  var w = () => {
35
- let { navigate: w } = e(), { data: T } = t({ variables: {
36
- limit: 200,
37
- offset: 0
38
- } }), [E, D] = c("month"), [O, k] = c(new Date(2026, 1, 10)), [A, j] = c("all"), M = O.getFullYear(), N = O.getMonth(), P = S(M, N), F = C(M, N), I = O.toLocaleDateString("en-US", {
41
+ let { navigate: w, basePath: T } = e(), { data: E, loading: D, error: O, refetch: k } = i(), [A, j] = l("month"), [M, N] = l(() => /* @__PURE__ */ new Date()), [P, F] = l("all"), I = M.getFullYear(), L = M.getMonth(), R = ee(I, L), z = te(I, L), B = M.toLocaleDateString("en-US", {
39
42
  month: "long",
40
43
  year: "numeric"
41
- }), L = (e) => {
42
- k(new Date(M, N + e, 1));
43
- }, R = (e) => {
44
- let t = new Date(O);
45
- t.setDate(t.getDate() + e * 7), k(t);
46
- }, z = s(() => (T?.headshotmarketingSocialAccounts.items ?? []).map((e) => a(e)), [T?.headshotmarketingSocialAccounts.items]), B = s(() => Object.fromEntries((T?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.accountName])), [T?.headshotmarketingSocialAccounts.items]), V = s(() => Object.fromEntries(z.map((e) => [e.id, e.platform])), [z]), H = s(() => (T?.headshotmarketingSocialPosts.items ?? []).map((e) => o(e, B, V)), [
47
- T?.headshotmarketingSocialPosts.items,
48
- B,
49
- V
50
- ]), U = s(() => i(H), [H]), W = s(() => A === "all" ? U : U.filter((e) => e.platform === A), [A, U]), G = (e) => W.filter((t) => t.date === e), K = "2026-02-10", q = W.filter((e) => e.date === K), J = W.filter((e) => e.date > K && e.status === "scheduled").sort((e, t) => e.date.localeCompare(t.date)).slice(0, 5), Y = W.filter((e) => e.status === "published").length, X = W.filter((e) => e.status === "scheduled").length, Z = W.filter((e) => e.status === "draft").length, Q = new Date(O);
44
+ }), V = (e) => {
45
+ N(new Date(I, L + e, 1));
46
+ }, H = (e) => {
47
+ let t = new Date(M);
48
+ t.setDate(t.getDate() + e * 7), N(t);
49
+ }, U = c(() => (E?.headshotmarketingSocialAccounts.items ?? []).map((e) => o(e)), [E?.headshotmarketingSocialAccounts.items]), W = c(() => Object.fromEntries((E?.headshotmarketingSocialAccounts.items ?? []).map((e) => [e.id, e.accountName])), [E?.headshotmarketingSocialAccounts.items]), G = c(() => Object.fromEntries(U.map((e) => [e.id, e.platform])), [U]), K = c(() => (E?.headshotmarketingSocialPosts.items ?? []).map((e) => s(e, W, G)), [
50
+ E?.headshotmarketingSocialPosts.items,
51
+ W,
52
+ G
53
+ ]), q = c(() => a(K), [K]), J = c(() => P === "all" ? q : q.filter((e) => e.platform === P), [P, q]), Y = (e) => J.filter((t) => t.date === e), X = S(/* @__PURE__ */ new Date()), Z = J.filter((e) => e.date === X), ne = J.filter((e) => e.date > X && e.status === "scheduled").sort((e, t) => e.date.localeCompare(t.date)).slice(0, 5), re = J.filter((e) => e.status === "published").length, ie = J.filter((e) => e.status === "scheduled").length, ae = J.filter((e) => e.status === "draft").length, Q = new Date(M);
51
54
  Q.setDate(Q.getDate() - Q.getDay());
52
55
  let $ = [];
53
- for (let e = 0; e < F; e++) $.push(null);
54
- for (let e = 1; e <= P; e++) $.push(e);
56
+ for (let e = 0; e < z; e++) $.push(null);
57
+ for (let e = 1; e <= R; e++) $.push(e);
55
58
  for (; $.length % 7 != 0;) $.push(null);
56
- return /* @__PURE__ */ g(r, {
59
+ return /* @__PURE__ */ _(n, {
57
60
  title: "Content Calendar",
58
61
  description: "Plan and visualize your content schedule",
59
- actions: /* @__PURE__ */ h("button", {
60
- onClick: () => w("/social-media/compose"),
62
+ actions: /* @__PURE__ */ g("button", {
63
+ onClick: () => w(T + "/social/compose"),
61
64
  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",
62
65
  children: "+ New Post"
63
66
  }),
64
67
  children: [
65
- /* @__PURE__ */ h(y, { children: "Plan your posting cadence at a glance. See everything scheduled across channels on a month or week view, spot gaps and clashes, and jump straight into composing for any day — so your content goes out consistently." }),
66
- /* @__PURE__ */ h(v, {
68
+ /* @__PURE__ */ g(b, { children: "Plan your posting cadence at a glance. See everything scheduled across channels on a month or week view, spot gaps and clashes, and jump straight into composing for any day — so your content goes out consistently." }),
69
+ /* @__PURE__ */ g(y, {
67
70
  storageKey: "headshotmarketing-content-calendar",
68
71
  steps: [
69
72
  {
70
73
  id: "compose",
71
74
  label: "Compose a post",
72
75
  description: "Draft and schedule a post for any channel.",
73
- onClick: () => w("/social-media/compose")
76
+ onClick: () => w(T + "/social/compose")
74
77
  },
75
78
  {
76
79
  id: "accounts",
77
80
  label: "Connect accounts",
78
81
  description: "Link the social accounts you publish to.",
79
- onClick: () => w("/social-media/accounts")
82
+ onClick: () => w(T + "/social/accounts")
80
83
  },
81
84
  {
82
85
  id: "posts",
83
86
  label: "Review all posts",
84
87
  description: "See every draft, scheduled and published post.",
85
- onClick: () => w("/social-media/posts")
88
+ onClick: () => w(T + "/social/posts")
86
89
  }
87
90
  ]
88
91
  }),
89
- /* @__PURE__ */ g("div", {
90
- className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
91
- children: [/* @__PURE__ */ g("div", {
92
- className: "lg:col-span-3 space-y-4",
93
- children: [
94
- /* @__PURE__ */ g("div", {
95
- className: "flex items-center justify-between",
96
- children: [/* @__PURE__ */ g("div", {
97
- className: "flex items-center gap-2",
98
- children: [
99
- /* @__PURE__ */ h("button", {
100
- onClick: () => E === "month" ? L(-1) : R(-1),
101
- className: "rounded-md border border-border-subtle p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
102
- children: /* @__PURE__ */ h(d, { className: "h-4 w-4" })
103
- }),
104
- /* @__PURE__ */ h("h2", {
105
- className: "text-lg font-semibold text-text-primary min-w-[180px] text-center",
106
- children: I
107
- }),
108
- /* @__PURE__ */ h("button", {
109
- onClick: () => E === "month" ? L(1) : R(1),
110
- className: "rounded-md border border-border-subtle p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
111
- children: /* @__PURE__ */ h(f, { className: "h-4 w-4" })
112
- })
113
- ]
114
- }), /* @__PURE__ */ g("div", {
115
- className: "flex items-center gap-2",
116
- children: [/* @__PURE__ */ g("select", {
117
- value: A,
118
- onChange: (e) => j(e.target.value),
119
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
92
+ /* @__PURE__ */ g(r, {
93
+ loading: D,
94
+ error: O,
95
+ onRetry: k,
96
+ hasData: !!E,
97
+ children: /* @__PURE__ */ _("div", {
98
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
99
+ children: [/* @__PURE__ */ _("div", {
100
+ className: "lg:col-span-3 space-y-4",
101
+ children: [
102
+ /* @__PURE__ */ _("div", {
103
+ className: "flex flex-wrap items-center justify-between gap-3",
104
+ children: [/* @__PURE__ */ _("div", {
105
+ className: "flex items-center gap-2",
120
106
  children: [
121
- /* @__PURE__ */ h("option", {
122
- value: "all",
123
- children: "All Platforms"
124
- }),
125
- /* @__PURE__ */ h("option", {
126
- value: "instagram",
127
- children: "Instagram"
128
- }),
129
- /* @__PURE__ */ h("option", {
130
- value: "facebook",
131
- children: "Facebook"
132
- }),
133
- /* @__PURE__ */ h("option", {
134
- value: "twitter",
135
- children: "Twitter"
107
+ /* @__PURE__ */ g("button", {
108
+ onClick: () => A === "month" ? V(-1) : H(-1),
109
+ className: "rounded-md border border-border-subtle p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
110
+ children: /* @__PURE__ */ g(f, { className: "h-4 w-4" })
136
111
  }),
137
- /* @__PURE__ */ h("option", {
138
- value: "linkedin",
139
- children: "LinkedIn"
112
+ /* @__PURE__ */ g("h2", {
113
+ className: "text-lg font-semibold text-text-primary min-w-[180px] text-center",
114
+ children: B
140
115
  }),
141
- /* @__PURE__ */ h("option", {
142
- value: "youtube",
143
- children: "YouTube"
144
- }),
145
- /* @__PURE__ */ h("option", {
146
- value: "tiktok",
147
- children: "TikTok"
116
+ /* @__PURE__ */ g("button", {
117
+ onClick: () => A === "month" ? V(1) : H(1),
118
+ className: "rounded-md border border-border-subtle p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
119
+ children: /* @__PURE__ */ g(p, { className: "h-4 w-4" })
148
120
  })
149
121
  ]
150
- }), /* @__PURE__ */ g("div", {
151
- className: "flex rounded-md border border-border-subtle",
152
- children: [/* @__PURE__ */ h("button", {
153
- onClick: () => D("month"),
154
- className: n("px-3 py-2 text-sm", E === "month" ? "bg-foreground text-background" : "text-text-secondary hover:text-text-primary"),
155
- children: "Month"
156
- }), /* @__PURE__ */ h("button", {
157
- onClick: () => D("week"),
158
- className: n("px-3 py-2 text-sm", E === "week" ? "bg-foreground text-background" : "text-text-secondary hover:text-text-primary"),
159
- children: "Week"
122
+ }), /* @__PURE__ */ _("div", {
123
+ className: "flex items-center gap-2",
124
+ children: [/* @__PURE__ */ _("select", {
125
+ value: P,
126
+ onChange: (e) => F(e.target.value),
127
+ className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
128
+ children: [
129
+ /* @__PURE__ */ g("option", {
130
+ value: "all",
131
+ children: "All Platforms"
132
+ }),
133
+ /* @__PURE__ */ g("option", {
134
+ value: "instagram",
135
+ children: "Instagram"
136
+ }),
137
+ /* @__PURE__ */ g("option", {
138
+ value: "facebook",
139
+ children: "Facebook"
140
+ }),
141
+ /* @__PURE__ */ g("option", {
142
+ value: "twitter",
143
+ children: "Twitter"
144
+ }),
145
+ /* @__PURE__ */ g("option", {
146
+ value: "linkedin",
147
+ children: "LinkedIn"
148
+ }),
149
+ /* @__PURE__ */ g("option", {
150
+ value: "youtube",
151
+ children: "YouTube"
152
+ }),
153
+ /* @__PURE__ */ g("option", {
154
+ value: "tiktok",
155
+ children: "TikTok"
156
+ })
157
+ ]
158
+ }), /* @__PURE__ */ _("div", {
159
+ className: "flex rounded-md border border-border-subtle",
160
+ children: [/* @__PURE__ */ g("button", {
161
+ onClick: () => j("month"),
162
+ className: t("px-3 py-2 text-sm", A === "month" ? "bg-foreground text-background" : "text-text-secondary hover:text-text-primary"),
163
+ children: "Month"
164
+ }), /* @__PURE__ */ g("button", {
165
+ onClick: () => j("week"),
166
+ className: t("px-3 py-2 text-sm", A === "week" ? "bg-foreground text-background" : "text-text-secondary hover:text-text-primary"),
167
+ children: "Week"
168
+ })]
160
169
  })]
161
170
  })]
162
- })]
163
- }),
164
- E === "month" && /* @__PURE__ */ h("div", {
165
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop overflow-hidden",
166
- children: /* @__PURE__ */ g("div", {
167
- className: "grid grid-cols-7",
168
- children: [x.map((e) => /* @__PURE__ */ h("div", {
169
- className: "border-b border-r border-border-subtle px-2 py-2 text-center text-xs font-medium text-text-secondary",
170
- children: e
171
- }, e)), $.map((e, t) => {
172
- let r = e ? `${M}-${String(N + 1).padStart(2, "0")}-${String(e).padStart(2, "0")}` : "", i = e ? G(r) : [], a = r === K;
173
- return /* @__PURE__ */ h("div", {
174
- className: n("min-h-[80px] border-b border-r border-border-subtle p-1", !e && "bg-bg-sunken/30", a && "bg-status-info-bg/50"),
175
- children: e && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
176
- className: n("text-xs font-medium", a ? "text-status-info-text font-bold" : "text-text-secondary"),
177
- children: e
178
- }), /* @__PURE__ */ g("div", {
179
- className: "mt-0.5 space-y-0.5",
180
- children: [i.slice(0, 3).map((e) => /* @__PURE__ */ h("div", {
181
- className: n("rounded px-1 py-0.5 text-[10px] text-white truncate", b[e.platform]),
182
- children: e.title
183
- }, e.id)), i.length > 3 && /* @__PURE__ */ g("span", {
184
- className: "text-[10px] text-text-secondary",
185
- children: [
186
- "+",
187
- i.length - 3,
188
- " more"
189
- ]
190
- })]
191
- })] })
192
- }, t);
193
- })]
194
- })
195
- }),
196
- E === "week" && /* @__PURE__ */ h("div", {
197
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop overflow-hidden",
198
- children: /* @__PURE__ */ h("div", {
199
- className: "grid grid-cols-7",
200
- children: Array.from({ length: 7 }).map((e, t) => {
201
- let r = new Date(Q);
202
- r.setDate(r.getDate() + t);
203
- let i = r.toISOString().split("T")[0], a = G(i), o = i === K;
204
- return /* @__PURE__ */ g("div", {
205
- className: n("border-r border-border-subtle p-3 min-h-[200px]", o && "bg-status-info-bg/50"),
206
- children: [/* @__PURE__ */ g("div", {
207
- className: "text-center mb-2",
208
- children: [/* @__PURE__ */ h("div", {
209
- className: "text-xs text-text-secondary",
210
- children: x[t]
211
- }), /* @__PURE__ */ h("div", {
212
- className: n("text-sm font-medium", o ? "text-status-info-text" : "text-text-primary"),
213
- children: r.getDate()
214
- })]
215
- }), /* @__PURE__ */ h("div", {
216
- className: "space-y-1",
217
- children: a.map((e) => /* @__PURE__ */ g("div", {
218
- className: n("rounded px-2 py-1 text-xs text-white", b[e.platform]),
219
- children: [/* @__PURE__ */ h("div", {
220
- className: "font-medium truncate",
171
+ }),
172
+ A === "month" && /* @__PURE__ */ g("div", {
173
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop overflow-x-auto",
174
+ children: /* @__PURE__ */ _("div", {
175
+ className: "grid min-w-[560px] grid-cols-7",
176
+ children: [C.map((e) => /* @__PURE__ */ g("div", {
177
+ className: "border-b border-r border-border-subtle px-2 py-2 text-center text-xs font-medium text-text-secondary",
178
+ children: e
179
+ }, e)), $.map((e, n) => {
180
+ let r = e ? `${I}-${String(L + 1).padStart(2, "0")}-${String(e).padStart(2, "0")}` : "", i = e ? Y(r) : [], a = r === X;
181
+ return /* @__PURE__ */ g("div", {
182
+ onClick: e ? () => w(T + "/social/compose") : void 0,
183
+ title: e ? "Compose a post" : void 0,
184
+ className: t("min-h-[80px] border-b border-r border-border-subtle p-1", !e && "bg-bg-sunken/30", a && "bg-status-info-bg/50", e && "cursor-pointer transition-colors hover:bg-bg-sunken/40"),
185
+ children: e && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("span", {
186
+ className: t("text-xs font-medium", a ? "text-status-info-text font-bold" : "text-text-secondary"),
187
+ children: e
188
+ }), /* @__PURE__ */ _("div", {
189
+ className: "mt-0.5 space-y-0.5",
190
+ children: [i.slice(0, 3).map((e) => /* @__PURE__ */ g("div", {
191
+ className: t("rounded px-1 py-0.5 text-[10px] text-white truncate", x[e.platform]),
221
192
  children: e.title
222
- }), /* @__PURE__ */ h("div", {
223
- className: "text-[10px] opacity-80 capitalize",
224
- children: e.status
193
+ }, e.id)), i.length > 3 && /* @__PURE__ */ _("span", {
194
+ className: "text-[10px] text-text-secondary",
195
+ children: [
196
+ "+",
197
+ i.length - 3,
198
+ " more"
199
+ ]
225
200
  })]
226
- }, e.id))
227
- })]
228
- }, t);
201
+ })] })
202
+ }, n);
203
+ })]
204
+ })
205
+ }),
206
+ A === "week" && /* @__PURE__ */ g("div", {
207
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop overflow-x-auto",
208
+ children: /* @__PURE__ */ g("div", {
209
+ className: "grid min-w-[560px] grid-cols-7",
210
+ children: Array.from({ length: 7 }).map((e, n) => {
211
+ let r = new Date(Q);
212
+ r.setDate(r.getDate() + n);
213
+ let i = S(r), a = Y(i), o = i === X;
214
+ return /* @__PURE__ */ _("div", {
215
+ className: t("border-r border-border-subtle p-3 min-h-[200px]", o && "bg-status-info-bg/50"),
216
+ children: [/* @__PURE__ */ _("div", {
217
+ className: "text-center mb-2",
218
+ children: [/* @__PURE__ */ g("div", {
219
+ className: "text-xs text-text-secondary",
220
+ children: C[n]
221
+ }), /* @__PURE__ */ g("div", {
222
+ className: t("text-sm font-medium", o ? "text-status-info-text" : "text-text-primary"),
223
+ children: r.getDate()
224
+ })]
225
+ }), /* @__PURE__ */ g("div", {
226
+ className: "space-y-1",
227
+ children: a.map((e) => /* @__PURE__ */ _("div", {
228
+ className: t("rounded px-2 py-1 text-xs text-white", x[e.platform]),
229
+ children: [/* @__PURE__ */ g("div", {
230
+ className: "font-medium truncate",
231
+ children: e.title
232
+ }), /* @__PURE__ */ g("div", {
233
+ className: "text-[10px] opacity-80 capitalize",
234
+ children: e.status
235
+ })]
236
+ }, e.id))
237
+ })]
238
+ }, n);
239
+ })
229
240
  })
230
241
  })
231
- })
232
- ]
233
- }), /* @__PURE__ */ g("div", {
234
- className: "space-y-4",
235
- children: [
236
- /* @__PURE__ */ g("div", {
237
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
238
- children: [/* @__PURE__ */ g("h3", {
239
- className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
240
- children: [/* @__PURE__ */ h(u, { className: "h-4 w-4" }), "Today"]
241
- }), q.length > 0 ? /* @__PURE__ */ h("div", {
242
- className: "space-y-2",
243
- children: q.map((e) => /* @__PURE__ */ g("div", {
244
- className: "flex items-center gap-2 text-sm",
245
- children: [/* @__PURE__ */ h("span", { className: n("h-2 w-2 rounded-full", b[e.platform]) }), /* @__PURE__ */ h("span", {
246
- className: "text-text-primary",
247
- children: e.title
248
- })]
249
- }, e.id))
250
- }) : /* @__PURE__ */ h("p", {
251
- className: "text-sm text-text-secondary",
252
- children: "No posts scheduled for today"
253
- })]
254
- }),
255
- /* @__PURE__ */ g("div", {
256
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
257
- children: [/* @__PURE__ */ g("h3", {
258
- className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
259
- children: [/* @__PURE__ */ h(p, { className: "h-4 w-4" }), "Upcoming Queue"]
260
- }), /* @__PURE__ */ h("div", {
261
- className: "space-y-2",
262
- children: J.map((e) => /* @__PURE__ */ g("div", {
263
- className: "flex items-center justify-between text-sm",
264
- children: [/* @__PURE__ */ g("div", {
265
- className: "flex items-center gap-2",
266
- children: [/* @__PURE__ */ h("span", { className: n("h-2 w-2 rounded-full", b[e.platform]) }), /* @__PURE__ */ h("span", {
267
- className: "text-text-primary truncate",
242
+ ]
243
+ }), /* @__PURE__ */ _("div", {
244
+ className: "space-y-4",
245
+ children: [
246
+ /* @__PURE__ */ _("div", {
247
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
248
+ children: [/* @__PURE__ */ _("h3", {
249
+ className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
250
+ children: [/* @__PURE__ */ g(d, { className: "h-4 w-4" }), "Today"]
251
+ }), Z.length > 0 ? /* @__PURE__ */ g("div", {
252
+ className: "space-y-2",
253
+ children: Z.map((e) => /* @__PURE__ */ _("div", {
254
+ className: "flex items-center gap-2 text-sm",
255
+ children: [/* @__PURE__ */ g("span", { className: t("h-2 w-2 rounded-full", x[e.platform]) }), /* @__PURE__ */ g("span", {
256
+ className: "text-text-primary",
268
257
  children: e.title
269
258
  })]
270
- }), /* @__PURE__ */ h("span", {
271
- className: "text-xs text-text-secondary whitespace-nowrap ml-2",
272
- children: new Date(e.date).toLocaleDateString("en-US", {
273
- month: "short",
274
- day: "numeric"
275
- })
276
- })]
277
- }, e.id))
278
- })]
279
- }),
280
- /* @__PURE__ */ g(_, {
281
- className: "p-4",
282
- children: [/* @__PURE__ */ g("h3", {
283
- className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
284
- children: [/* @__PURE__ */ h(l, { className: "h-4 w-4" }), "This Month"]
285
- }), /* @__PURE__ */ g("div", {
286
- className: "space-y-2",
287
- children: [
288
- /* @__PURE__ */ g("div", {
289
- className: "flex items-center justify-between text-sm",
290
- children: [/* @__PURE__ */ h("span", {
291
- className: "text-text-secondary",
292
- children: "Published"
293
- }), /* @__PURE__ */ h("span", {
294
- className: "font-medium text-status-success-text",
295
- children: Y
296
- })]
297
- }),
298
- /* @__PURE__ */ g("div", {
299
- className: "flex items-center justify-between text-sm",
300
- children: [/* @__PURE__ */ h("span", {
301
- className: "text-text-secondary",
302
- children: "Scheduled"
303
- }), /* @__PURE__ */ h("span", {
304
- className: "font-medium text-action-primary-bg",
305
- children: X
306
- })]
307
- }),
308
- /* @__PURE__ */ g("div", {
259
+ }, e.id))
260
+ }) : /* @__PURE__ */ g("p", {
261
+ className: "text-sm text-text-secondary",
262
+ children: "No posts scheduled for today"
263
+ })]
264
+ }),
265
+ /* @__PURE__ */ _("div", {
266
+ className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-4",
267
+ children: [/* @__PURE__ */ _("h3", {
268
+ className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
269
+ children: [/* @__PURE__ */ g(m, { className: "h-4 w-4" }), "Upcoming Queue"]
270
+ }), /* @__PURE__ */ g("div", {
271
+ className: "space-y-2",
272
+ children: ne.map((e) => /* @__PURE__ */ _("div", {
309
273
  className: "flex items-center justify-between text-sm",
310
- children: [/* @__PURE__ */ h("span", {
311
- className: "text-text-secondary",
312
- children: "Drafts"
313
- }), /* @__PURE__ */ h("span", {
314
- className: "font-medium text-text-secondary",
315
- children: Z
274
+ children: [/* @__PURE__ */ _("div", {
275
+ className: "flex items-center gap-2",
276
+ children: [/* @__PURE__ */ g("span", { className: t("h-2 w-2 rounded-full", x[e.platform]) }), /* @__PURE__ */ g("span", {
277
+ className: "text-text-primary truncate",
278
+ children: e.title
279
+ })]
280
+ }), /* @__PURE__ */ g("span", {
281
+ className: "text-xs text-text-secondary whitespace-nowrap ml-2",
282
+ children: new Date(e.date).toLocaleDateString("en-US", {
283
+ month: "short",
284
+ day: "numeric"
285
+ })
316
286
  })]
317
- })
318
- ]
319
- })]
320
- })
321
- ]
322
- })]
287
+ }, e.id))
288
+ })]
289
+ }),
290
+ /* @__PURE__ */ _(v, {
291
+ className: "p-4",
292
+ children: [/* @__PURE__ */ _("h3", {
293
+ className: "text-sm font-semibold text-text-primary mb-3 flex items-center gap-2",
294
+ children: [/* @__PURE__ */ g(u, { className: "h-4 w-4" }), "This Month"]
295
+ }), /* @__PURE__ */ _("div", {
296
+ className: "space-y-2",
297
+ children: [
298
+ /* @__PURE__ */ _("div", {
299
+ className: "flex items-center justify-between text-sm",
300
+ children: [/* @__PURE__ */ g("span", {
301
+ className: "text-text-secondary",
302
+ children: "Published"
303
+ }), /* @__PURE__ */ g("span", {
304
+ className: "font-medium text-status-success-text",
305
+ children: re
306
+ })]
307
+ }),
308
+ /* @__PURE__ */ _("div", {
309
+ className: "flex items-center justify-between text-sm",
310
+ children: [/* @__PURE__ */ g("span", {
311
+ className: "text-text-secondary",
312
+ children: "Scheduled"
313
+ }), /* @__PURE__ */ g("span", {
314
+ className: "font-medium text-action-primary-bg",
315
+ children: ie
316
+ })]
317
+ }),
318
+ /* @__PURE__ */ _("div", {
319
+ className: "flex items-center justify-between text-sm",
320
+ children: [/* @__PURE__ */ g("span", {
321
+ className: "text-text-secondary",
322
+ children: "Drafts"
323
+ }), /* @__PURE__ */ g("span", {
324
+ className: "font-medium text-text-secondary",
325
+ children: ae
326
+ })]
327
+ })
328
+ ]
329
+ })]
330
+ })
331
+ ]
332
+ })]
333
+ })
323
334
  })
324
335
  ]
325
336
  });