@burdenoff/microfe-headshotmarketing 2026.703.1 → 2026.704.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/wspace-operations.js +960 -77
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +26 -10
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoot.js +45 -44
- package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js +20 -0
- package/dist/headshotmarketing/HeadshotMarketingRoutes.js.map +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js +57 -0
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js +47 -0
- package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -0
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +606 -0
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -0
- package/dist/headshotmarketing/components/LoadingSkeleton.js +11 -1
- package/dist/headshotmarketing/components/LoadingSkeleton.js.map +1 -0
- package/dist/headshotmarketing/components/Modal.js +6 -3
- package/dist/headshotmarketing/components/Modal.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +117 -0
- package/dist/headshotmarketing/components/Pagination.js.map +1 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js +46 -0
- package/dist/headshotmarketing/components/QueryStateBoundary.js.map +1 -0
- package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +74 -0
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -0
- package/dist/headshotmarketing/components/index.js +6 -0
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js +26 -22
- package/dist/headshotmarketing/context/HeadshotMarketingContext.js.map +1 -1
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +29 -0
- package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -0
- package/dist/headshotmarketing/hooks/index.js +4 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js +86 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js +12 -0
- package/dist/headshotmarketing/hooks/useHeadshotmarketingBootstrap.js.map +1 -0
- package/dist/headshotmarketing/hooks/usePagination.js +53 -0
- package/dist/headshotmarketing/hooks/usePagination.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +334 -301
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +522 -225
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +749 -147
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +197 -188
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +583 -147
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +218 -206
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +244 -237
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js +278 -272
- package/dist/headshotmarketing/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +197 -193
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +254 -295
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +221 -211
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +239 -168
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +150 -102
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +287 -0
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +56 -58
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +211 -179
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +444 -306
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +290 -217
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +189 -151
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +417 -274
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +345 -260
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +261 -192
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +213 -141
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js +242 -246
- package/dist/headshotmarketing/pages/content/ContentAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +184 -136
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +208 -159
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +336 -265
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +76 -87
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +195 -196
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +663 -0
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/CrmPage.js +237 -207
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +168 -165
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +189 -178
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +188 -190
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +256 -238
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +195 -167
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +280 -243
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +186 -183
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +303 -231
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +460 -310
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +318 -104
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +266 -255
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +365 -202
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +321 -233
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +324 -308
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/headshotmarketing/utils/adsMapper.js +74 -51
- package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/helpers.js +11 -1
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +1 -0
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/package.json +1 -1
- package/dist/headshotmarketing/utils/reportMapper.js +0 -33
- package/dist/headshotmarketing/utils/reportMapper.js.map +0 -1
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
|
|
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
|
-
}
|
|
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
|
|
34
|
+
function ee(e, t) {
|
|
29
35
|
return new Date(e, t + 1, 0).getDate();
|
|
30
36
|
}
|
|
31
|
-
function
|
|
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:
|
|
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
|
-
}),
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
let t = new Date(
|
|
45
|
-
t.setDate(t.getDate() + e * 7),
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
]),
|
|
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 <
|
|
54
|
-
for (let e = 1; 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__ */
|
|
59
|
+
return /* @__PURE__ */ _(n, {
|
|
57
60
|
title: "Content Calendar",
|
|
58
61
|
description: "Plan and visualize your content schedule",
|
|
59
|
-
actions: /* @__PURE__ */
|
|
60
|
-
onClick: () => w("/social
|
|
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__ */
|
|
66
|
-
/* @__PURE__ */
|
|
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
|
|
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
|
|
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
|
|
88
|
+
onClick: () => w(T + "/social/posts")
|
|
86
89
|
}
|
|
87
90
|
]
|
|
88
91
|
}),
|
|
89
|
-
/* @__PURE__ */ g(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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__ */
|
|
122
|
-
|
|
123
|
-
|
|
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__ */
|
|
138
|
-
|
|
139
|
-
children:
|
|
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__ */
|
|
142
|
-
|
|
143
|
-
|
|
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__ */
|
|
151
|
-
className: "flex
|
|
152
|
-
children: [/* @__PURE__ */
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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__ */
|
|
223
|
-
className: "text-[10px]
|
|
224
|
-
children:
|
|
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
|
-
}
|
|
227
|
-
})
|
|
228
|
-
}
|
|
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
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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__ */
|
|
311
|
-
className: "
|
|
312
|
-
children: "
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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
|
});
|