@burdenoff/microfe-headshotmarketing 2026.704.4 → 2026.704.6
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 +215 -111
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +27 -19
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +56 -2
- package/dist/headshotmarketing/components/Toast.js.map +1 -0
- package/dist/headshotmarketing/pages/HomeFunnel.js +54 -0
- package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +423 -259
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeStatCard.js +79 -0
- package/dist/headshotmarketing/pages/HomeStatCard.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformChips.js +93 -0
- package/dist/headshotmarketing/pages/ads/AdPlatformChips.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +147 -0
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +461 -388
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +405 -115
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +565 -345
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +107 -0
- package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +213 -0
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -0
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +150 -0
- package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +380 -371
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +92 -0
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/SectionContent.js +346 -0
- package/dist/headshotmarketing/pages/builder/SectionContent.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +358 -0
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -0
- package/dist/headshotmarketing/pages/builder/builderCatalog.js +274 -0
- package/dist/headshotmarketing/pages/builder/builderCatalog.js.map +1 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +123 -233
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js +81 -0
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +479 -193
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +492 -197
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetThumbnail.js +37 -0
- package/dist/headshotmarketing/pages/content/AssetThumbnail.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +672 -219
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +200 -0
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -0
- package/dist/headshotmarketing/pages/content/ContentPage.js +224 -204
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentSubNav.js +51 -0
- package/dist/headshotmarketing/pages/content/ContentSubNav.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +107 -0
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +232 -0
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +330 -177
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsWidgets.js +179 -0
- package/dist/headshotmarketing/pages/crm/LeadsWidgets.js.map +1 -0
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +631 -379
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventImageUpload.js +123 -0
- package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -0
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +99 -0
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -0
- package/dist/headshotmarketing/pages/events/EventsPage.js +267 -228
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js +50 -0
- package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js.map +1 -0
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +147 -0
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -0
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +562 -419
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +108 -0
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +100 -0
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -0
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +315 -250
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js +60 -0
- package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js.map +1 -0
- package/dist/headshotmarketing/utils/adsMapper.js +2 -2
- package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/automationMapper.js +1 -1
- package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/campaignMapper.js +1 -22
- package/dist/headshotmarketing/utils/campaignMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js +4 -24
- package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js +2 -2
- package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/eventsMapper.js +9 -9
- package/dist/headshotmarketing/utils/eventsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/helpers.js +7 -4
- package/dist/headshotmarketing/utils/helpers.js.map +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js +1 -1
- package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
- package/dist/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
- package/dist/node_modules/lodash/_assignValue.js +17 -0
- package/dist/node_modules/lodash/_assignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssign.js +16 -0
- package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
- package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseClone.js +64 -0
- package/dist/node_modules/lodash/_baseClone.js.map +1 -0
- package/dist/node_modules/lodash/_baseCreate.js +21 -0
- package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMap.js +16 -0
- package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsSet.js +16 -0
- package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnset.js +26 -0
- package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
- package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneDataView.js +16 -0
- package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
- package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
- package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyArray.js +15 -0
- package/dist/node_modules/lodash/_copyArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyObject.js +22 -0
- package/dist/node_modules/lodash/_copyObject.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbols.js +16 -0
- package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_customOmitClone.js +15 -0
- package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
- package/dist/node_modules/lodash/_flatRest.js +17 -0
- package/dist/node_modules/lodash/_flatRest.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneArray.js +15 -0
- package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
- package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneObject.js +17 -0
- package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_parent.js +16 -0
- package/dist/node_modules/lodash/_parent.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +15 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/isMap.js +14 -0
- package/dist/node_modules/lodash/isMap.js.map +1 -0
- package/dist/node_modules/lodash/isSet.js +14 -0
- package/dist/node_modules/lodash/isSet.js.map +1 -0
- package/dist/node_modules/lodash/keysIn.js +17 -0
- package/dist/node_modules/lodash/keysIn.js.map +1 -0
- package/dist/node_modules/lodash/omit.js +28 -0
- package/dist/node_modules/lodash/omit.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/FunnelChart.js +15 -0
- package/dist/node_modules/recharts/es6/chart/FunnelChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/numberAxis/Funnel.js +370 -0
- package/dist/node_modules/recharts/es6/numberAxis/Funnel.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/FunnelUtils.js +81 -0
- package/dist/node_modules/recharts/es6/util/FunnelUtils.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { useHeadshotmarketingCreateContentItemMutation as e } from "../../../generated/wspace-operations.js";
|
|
2
2
|
import { useHeadshotMarketing as t } from "../../context/HeadshotMarketingContext.js";
|
|
3
3
|
import { cn as n } from "../../utils/helpers.js";
|
|
4
|
-
import {
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import { TagChipsInput as
|
|
7
|
-
import { useAssetUpload as
|
|
4
|
+
import { HeadshotmarketingAiToolCategory as r, HeadshotmarketingContentItemStatus as ee, HeadshotmarketingContentItemType as i } from "../../../generated/wspace-types.js";
|
|
5
|
+
import { PageLayout as te } from "../../components/PageLayout.js";
|
|
6
|
+
import { TagChipsInput as ne } from "../../components/TagChipsInput.js";
|
|
7
|
+
import { useAssetUpload as re } from "../../hooks/useAssetUpload.js";
|
|
8
8
|
import "../../components/index.js";
|
|
9
|
-
import { useHeadshotmarketingBootstrap as
|
|
10
|
-
import { useRef as
|
|
11
|
-
import { ArrowLeft as l, Edit3 as u, Eye as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { useHeadshotmarketingBootstrap as ie } from "../../hooks/useHeadshotmarketingBootstrap.js";
|
|
10
|
+
import { useMemo as a, useRef as o, useState as s } from "react";
|
|
11
|
+
import { ArrowLeft as ae, ArrowUpRight as oe, Bold as se, CalendarClock as c, Check as l, Code2 as ce, Edit3 as u, Eye as le, FileText as d, Globe as f, Heading1 as ue, Heading2 as de, Image as fe, Italic as pe, Link2 as me, List as he, ListOrdered as ge, Loader2 as p, Mail as _e, Megaphone as ve, Quote as ye, Save as be, Search as xe, Send as Se, Settings2 as Ce, Share2 as m, Sparkles as h, Underline as we } from "lucide-react";
|
|
12
|
+
import { gql as Te } from "@apollo/client";
|
|
13
|
+
import { useMutation as Ee } from "@apollo/client/react";
|
|
14
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
15
|
+
import { EmphasisPanel as De, PagePurpose as Oe } from "@burdenoff/fe-libs/ui";
|
|
14
16
|
//#region src/headshotmarketing/pages/content/ContentCreationPage.tsx
|
|
15
|
-
var
|
|
17
|
+
var y = [
|
|
16
18
|
{
|
|
17
19
|
id: "blog",
|
|
18
20
|
label: "Blog Post",
|
|
@@ -23,14 +25,14 @@ var C = [
|
|
|
23
25
|
{
|
|
24
26
|
id: "social",
|
|
25
27
|
label: "Social Post",
|
|
26
|
-
icon:
|
|
28
|
+
icon: m,
|
|
27
29
|
description: "Posts for social platforms",
|
|
28
30
|
color: "text-status-success-text bg-status-success-bg"
|
|
29
31
|
},
|
|
30
32
|
{
|
|
31
33
|
id: "email",
|
|
32
34
|
label: "Email",
|
|
33
|
-
icon:
|
|
35
|
+
icon: _e,
|
|
34
36
|
description: "Email campaigns and newsletters",
|
|
35
37
|
color: "text-action-primary-bg bg-[var(--color-accent-soft)]"
|
|
36
38
|
},
|
|
@@ -44,11 +46,11 @@ var C = [
|
|
|
44
46
|
{
|
|
45
47
|
id: "ad",
|
|
46
48
|
label: "Ad Copy",
|
|
47
|
-
icon:
|
|
49
|
+
icon: ve,
|
|
48
50
|
description: "Advertising copy for campaigns",
|
|
49
51
|
color: "text-status-error-text bg-status-error-bg"
|
|
50
52
|
}
|
|
51
|
-
],
|
|
53
|
+
], b = [
|
|
52
54
|
{
|
|
53
55
|
id: "t1",
|
|
54
56
|
name: "How-To Guide",
|
|
@@ -85,273 +87,724 @@ var C = [
|
|
|
85
87
|
category: "ad",
|
|
86
88
|
description: "Google Ads copy template"
|
|
87
89
|
}
|
|
88
|
-
]
|
|
89
|
-
|
|
90
|
+
], ke = Te`
|
|
91
|
+
mutation HeadshotmarketingPublishContentItem(
|
|
92
|
+
$id: ID!
|
|
93
|
+
$input: HeadshotmarketingUpdateContentItemInput!
|
|
94
|
+
) {
|
|
95
|
+
headshotmarketingUpdateContentItem(id: $id, input: $input) {
|
|
96
|
+
id
|
|
97
|
+
status
|
|
98
|
+
publishedAt
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`, Ae = new Set([
|
|
102
|
+
r.ContentGeneration,
|
|
103
|
+
r.Copywriting,
|
|
104
|
+
r.Summarization,
|
|
105
|
+
r.SeoOptimization
|
|
106
|
+
]);
|
|
107
|
+
function x(e) {
|
|
90
108
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
91
109
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
110
|
+
function S(e) {
|
|
111
|
+
return e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, "");
|
|
112
|
+
}
|
|
113
|
+
function je(e) {
|
|
114
|
+
return e.replace(/<[^>]*>/g, " ").replace(/ /g, " ").replace(/\s+/g, " ").trim().length;
|
|
115
|
+
}
|
|
116
|
+
function Me(e) {
|
|
117
|
+
let t = (e.metaTitle.trim() || e.title.trim()).length, n = e.metaDescription.trim().length;
|
|
118
|
+
return [
|
|
119
|
+
{
|
|
120
|
+
label: "Title length",
|
|
121
|
+
passed: e.title.trim().length >= 15 && e.title.trim().length <= 70,
|
|
122
|
+
weight: 20,
|
|
123
|
+
hint: "Aim for 15–70 characters."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: "Meta title",
|
|
127
|
+
passed: t > 0 && t <= 60,
|
|
128
|
+
weight: 15,
|
|
129
|
+
hint: "Set a meta title up to 60 characters."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: "Meta description",
|
|
133
|
+
passed: n >= 80 && n <= 170,
|
|
134
|
+
weight: 25,
|
|
135
|
+
hint: "Write 80–170 characters."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: "URL slug",
|
|
139
|
+
passed: e.slug.trim().length > 0,
|
|
140
|
+
weight: 15,
|
|
141
|
+
hint: "Add a readable slug."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: "Body content",
|
|
145
|
+
passed: e.bodyChars >= 300,
|
|
146
|
+
weight: 15,
|
|
147
|
+
hint: "Write at least ~300 characters."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: "Tags",
|
|
151
|
+
passed: e.tagCount > 0,
|
|
152
|
+
weight: 10,
|
|
153
|
+
hint: "Add at least one tag."
|
|
154
|
+
}
|
|
155
|
+
];
|
|
156
|
+
}
|
|
157
|
+
var C = "inline-flex h-9 min-w-9 items-center justify-center gap-1 rounded-md px-2 text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60", w = "w-full 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)]", T = "prose prose-sm max-w-none text-text-primary [&_h1]:text-xl [&_h1]:font-bold [&_h2]:text-lg [&_h2]:font-semibold [&_a]:text-primary [&_a]:underline [&_img]:max-w-full [&_img]:h-auto [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_blockquote]:border-l-2 [&_blockquote]:border-border-strong [&_blockquote]:pl-3 [&_blockquote]:text-text-secondary [&_pre]:rounded-md [&_pre]:bg-bg-sunken [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-xs [&_pre]:whitespace-pre-wrap", E = ({ onClick: e, label: t, disabled: n, children: r }) => /* @__PURE__ */ _("button", {
|
|
158
|
+
type: "button",
|
|
159
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
160
|
+
onClick: e,
|
|
161
|
+
disabled: n,
|
|
162
|
+
"aria-label": t,
|
|
163
|
+
title: t,
|
|
164
|
+
className: C,
|
|
165
|
+
children: r
|
|
166
|
+
}), D = () => /* @__PURE__ */ _("span", {
|
|
167
|
+
className: "mx-0.5 h-5 w-px bg-border-subtle",
|
|
168
|
+
"aria-hidden": "true"
|
|
169
|
+
}), O = () => {
|
|
170
|
+
let { navigate: r, basePath: d } = t(), { data: f, refetch: _e } = ie(), [ve, { loading: m, error: Te }] = e(), [C, { loading: O, error: Ne }] = Ee(ke), { uploadFile: Pe, uploading: k, error: Fe } = re("/HeadshotMarketing/Content"), A = o(null), j = o(null), [M, Ie] = s(null), [Le, Re] = s(null), [N, ze] = s(""), [P, Be] = s(""), [F, Ve] = s([]), [I, He] = s(""), [Ue, We] = s(""), [Ge, Ke] = s(!1), [qe, Je] = s(""), [L, Ye] = s(""), [R, Xe] = s(""), [z, Ze] = s(""), [B, Qe] = s("settings"), [V, $e] = s("edit"), [et, H] = s(null), tt = a(() => f?.headshotmarketingCampaigns.items ?? [], [f]), nt = a(() => (f?.headshotmarketingAITools.items ?? []).filter((e) => e.isEnabled && Ae.has(e.category)), [f]), U = y.find((e) => e.id === M), rt = M ? b.filter((e) => e.category === M) : b, W = Ge ? Ue : S(N), G = a(() => {
|
|
171
|
+
if (!L) return null;
|
|
172
|
+
let e = new Date(L);
|
|
173
|
+
return Number.isNaN(e.getTime()) ? null : e.toISOString();
|
|
174
|
+
}, [L]), K = G ? new Date(G).getTime() > Date.now() : !1, q = a(() => je(I), [I]), it = a(() => Me({
|
|
175
|
+
title: N,
|
|
176
|
+
metaTitle: R,
|
|
177
|
+
metaDescription: z,
|
|
178
|
+
slug: W,
|
|
179
|
+
bodyChars: q,
|
|
180
|
+
tagCount: F.length
|
|
181
|
+
}), [
|
|
182
|
+
N,
|
|
183
|
+
R,
|
|
184
|
+
z,
|
|
185
|
+
W,
|
|
186
|
+
q,
|
|
187
|
+
F.length
|
|
188
|
+
]), J = it.reduce((e, t) => t.passed ? e + t.weight : e, 0), Y = J >= 80 ? "success" : J >= 50 ? "warning" : "error", X = () => {
|
|
189
|
+
A.current && He(A.current.innerHTML);
|
|
190
|
+
}, Z = (e, t) => {
|
|
96
191
|
let n = A.current;
|
|
97
|
-
n && (n.focus(), document.execCommand(e, !1, t),
|
|
98
|
-
},
|
|
192
|
+
n && (n.focus(), document.execCommand(e, !1, t), X());
|
|
193
|
+
}, at = () => {
|
|
99
194
|
let e = window.prompt("Link URL", "https://");
|
|
100
|
-
e &&
|
|
101
|
-
},
|
|
195
|
+
e && Z("createLink", e);
|
|
196
|
+
}, ot = (e) => {
|
|
102
197
|
let t = e.target.files?.[0];
|
|
103
|
-
e.target.value = "", t &&
|
|
198
|
+
e.target.value = "", t && Pe(t).then((e) => {
|
|
104
199
|
let t = A.current;
|
|
105
|
-
t && (t.innerHTML += `<img src="${
|
|
200
|
+
t && (t.innerHTML += `<img src="${x(e.url)}" alt="${x(e.name)}" style="max-width:100%;height:auto" />`, X());
|
|
106
201
|
}).catch(() => {});
|
|
107
|
-
},
|
|
202
|
+
}, st = (e) => {
|
|
108
203
|
switch (e) {
|
|
109
|
-
case "blog": return
|
|
110
|
-
case "social": return
|
|
111
|
-
case "email": return
|
|
112
|
-
case "landing": return
|
|
113
|
-
case "ad": return
|
|
114
|
-
default: return
|
|
204
|
+
case "blog": return i.BlogPost;
|
|
205
|
+
case "social": return i.SocialPost;
|
|
206
|
+
case "email": return i.Email;
|
|
207
|
+
case "landing": return i.LandingPage;
|
|
208
|
+
case "ad": return i.AdCopy;
|
|
209
|
+
default: return i.Other;
|
|
115
210
|
}
|
|
116
|
-
},
|
|
211
|
+
}, ct = async (e) => {
|
|
117
212
|
if (!M) {
|
|
118
|
-
|
|
213
|
+
H("Select a content type.");
|
|
119
214
|
return;
|
|
120
215
|
}
|
|
121
|
-
if (!
|
|
122
|
-
|
|
216
|
+
if (!N.trim()) {
|
|
217
|
+
H("Content title is required.");
|
|
123
218
|
return;
|
|
124
219
|
}
|
|
125
|
-
|
|
126
|
-
let
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
220
|
+
H(null);
|
|
221
|
+
let t = R.trim() || z.trim() ? {
|
|
222
|
+
metaTitle: R.trim() || null,
|
|
223
|
+
metaDescription: z.trim() || null
|
|
224
|
+
} : null, n = {
|
|
225
|
+
title: N.trim(),
|
|
226
|
+
slug: W.trim() || null,
|
|
227
|
+
summary: P.trim() || null,
|
|
228
|
+
body: I || null,
|
|
229
|
+
type: st(M),
|
|
230
|
+
tags: F,
|
|
231
|
+
campaignId: qe || null,
|
|
232
|
+
scheduledAt: G,
|
|
233
|
+
metadata: {
|
|
234
|
+
templateId: Le,
|
|
235
|
+
seo: t
|
|
236
|
+
}
|
|
133
237
|
};
|
|
134
238
|
try {
|
|
135
|
-
await
|
|
239
|
+
let t = (await ve({ variables: { input: n } })).data?.headshotmarketingCreateContentItem.id;
|
|
240
|
+
e && !K && t && await C({ variables: {
|
|
241
|
+
id: t,
|
|
242
|
+
input: { status: ee.Published }
|
|
243
|
+
} }), _e(), r(d + "/content");
|
|
136
244
|
} catch (e) {
|
|
137
|
-
|
|
245
|
+
H(e instanceof Error ? e.message : "Failed to save content item.");
|
|
138
246
|
}
|
|
139
|
-
}, Q =
|
|
140
|
-
|
|
141
|
-
|
|
247
|
+
}, Q = m || O, $ = et ?? Te?.message ?? Ne?.message ?? Fe ?? null, lt = K ? "Schedule" : "Publish", ut = K ? c : Se, dt = [
|
|
248
|
+
{
|
|
249
|
+
key: "settings",
|
|
250
|
+
label: "Settings",
|
|
251
|
+
icon: Ce
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
key: "seo",
|
|
255
|
+
label: "SEO",
|
|
256
|
+
icon: xe
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
key: "ai",
|
|
260
|
+
label: "AI Assist",
|
|
261
|
+
icon: h
|
|
262
|
+
}
|
|
263
|
+
];
|
|
264
|
+
return /* @__PURE__ */ v(te, {
|
|
265
|
+
title: U ? `New ${U.label}` : "Content Creation",
|
|
142
266
|
description: "Create marketing content from scratch or templates",
|
|
143
|
-
actions: /* @__PURE__ */
|
|
267
|
+
actions: /* @__PURE__ */ v("button", {
|
|
144
268
|
type: "button",
|
|
145
|
-
onClick: () => d
|
|
146
|
-
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",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
269
|
+
onClick: () => r(d + "/content"),
|
|
270
|
+
className: "inline-flex min-h-[40px] 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 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
271
|
+
children: [/* @__PURE__ */ _(ae, { className: "h-4 w-4" }), "Back"]
|
|
148
272
|
}),
|
|
149
273
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ _(Oe, { children: "Create a new piece of content from scratch or from a template. Pick the format you want (blog post, email, social post, ad copy, landing page), optionally start from a proven template, then draft, refine and publish — all in one place." }),
|
|
275
|
+
/* @__PURE__ */ v(De, { children: [/* @__PURE__ */ _("h3", {
|
|
152
276
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
153
277
|
children: "Choose Content Type"
|
|
154
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ _("div", {
|
|
155
279
|
className: "grid grid-cols-2 md:grid-cols-5 gap-3",
|
|
156
|
-
children:
|
|
157
|
-
let t = e.icon;
|
|
158
|
-
return /* @__PURE__ */
|
|
280
|
+
children: y.map((e) => {
|
|
281
|
+
let t = e.icon, r = M === e.id;
|
|
282
|
+
return /* @__PURE__ */ v("button", {
|
|
159
283
|
type: "button",
|
|
160
284
|
onClick: () => {
|
|
161
|
-
|
|
285
|
+
Ie(e.id), Re(null);
|
|
162
286
|
},
|
|
163
|
-
|
|
287
|
+
"aria-pressed": r,
|
|
288
|
+
className: n("group relative flex flex-col items-center gap-2 rounded-xl border-2 p-4 text-center transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", r ? "border-action-primary-bg bg-action-primary-bg/5 shadow-pop" : "border-border-subtle bg-bg-surface hover:border-action-primary-bg/40 hover:shadow-pop"),
|
|
164
289
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
className:
|
|
167
|
-
children: /* @__PURE__ */
|
|
290
|
+
r && /* @__PURE__ */ _("span", {
|
|
291
|
+
className: "absolute right-2 top-2 inline-flex h-5 w-5 items-center justify-center rounded-full bg-action-primary-bg text-action-primary-text",
|
|
292
|
+
children: /* @__PURE__ */ _(l, { className: "h-3 w-3" })
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ _("div", {
|
|
295
|
+
className: n("rounded-lg p-2 transition-transform group-hover:scale-105", e.color),
|
|
296
|
+
children: /* @__PURE__ */ _(t, { className: "h-5 w-5" })
|
|
168
297
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ _("span", {
|
|
170
299
|
className: "text-sm font-medium text-text-primary",
|
|
171
300
|
children: e.label
|
|
172
301
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
className: "text-[10px] text-text-secondary",
|
|
302
|
+
/* @__PURE__ */ _("span", {
|
|
303
|
+
className: "text-[10px] leading-tight text-text-secondary",
|
|
175
304
|
children: e.description
|
|
176
305
|
})
|
|
177
306
|
]
|
|
178
307
|
}, e.id);
|
|
179
308
|
})
|
|
180
309
|
})] }),
|
|
181
|
-
M && /* @__PURE__ */
|
|
310
|
+
M && /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("h3", {
|
|
182
311
|
className: "text-sm font-semibold text-text-primary mb-3",
|
|
183
312
|
children: "Select Template (Optional)"
|
|
184
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ _("div", {
|
|
185
314
|
className: "grid grid-cols-1 md:grid-cols-3 gap-3",
|
|
186
|
-
children:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
315
|
+
children: rt.map((e) => {
|
|
316
|
+
let t = Le === e.id;
|
|
317
|
+
return /* @__PURE__ */ v("button", {
|
|
318
|
+
type: "button",
|
|
319
|
+
onClick: () => Re(t ? null : e.id),
|
|
320
|
+
"aria-pressed": t,
|
|
321
|
+
className: n("flex flex-col items-start rounded-xl border-2 p-4 text-left transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", t ? "border-action-primary-bg bg-action-primary-bg/5 shadow-pop" : "border-border-subtle bg-bg-surface hover:border-action-primary-bg/40"),
|
|
322
|
+
children: [/* @__PURE__ */ v("span", {
|
|
323
|
+
className: "flex w-full items-center justify-between text-sm font-medium text-text-primary",
|
|
324
|
+
children: [e.name, t && /* @__PURE__ */ _(l, { className: "h-4 w-4 text-action-primary-bg" })]
|
|
325
|
+
}), /* @__PURE__ */ _("span", {
|
|
326
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
327
|
+
children: e.description
|
|
328
|
+
})]
|
|
329
|
+
}, e.id);
|
|
330
|
+
})
|
|
198
331
|
})] }),
|
|
199
|
-
M && /* @__PURE__ */
|
|
200
|
-
className: "grid grid-cols-1 lg:grid-cols-
|
|
201
|
-
children: [/* @__PURE__ */
|
|
202
|
-
className: "
|
|
203
|
-
children: /* @__PURE__ */ b("h3", {
|
|
204
|
-
className: "text-sm font-semibold text-text-primary flex items-center gap-2",
|
|
205
|
-
children: [/* @__PURE__ */ y(u, { className: "h-4 w-4" }), "Editor"]
|
|
206
|
-
})
|
|
207
|
-
}), /* @__PURE__ */ b("div", {
|
|
208
|
-
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop",
|
|
332
|
+
M && /* @__PURE__ */ v("div", {
|
|
333
|
+
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
334
|
+
children: [/* @__PURE__ */ v("div", {
|
|
335
|
+
className: "lg:col-span-2",
|
|
209
336
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
className: "
|
|
212
|
-
children: [
|
|
213
|
-
|
|
337
|
+
/* @__PURE__ */ v("div", {
|
|
338
|
+
className: "mb-3 flex items-center justify-between gap-2",
|
|
339
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
340
|
+
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
341
|
+
children: [/* @__PURE__ */ _(u, { className: "h-4 w-4" }), "Editor"]
|
|
342
|
+
}), /* @__PURE__ */ v("div", {
|
|
343
|
+
className: "inline-flex items-center rounded-lg border border-border-subtle p-0.5",
|
|
344
|
+
role: "tablist",
|
|
345
|
+
"aria-label": "Editor view",
|
|
346
|
+
children: [/* @__PURE__ */ v("button", {
|
|
347
|
+
type: "button",
|
|
348
|
+
role: "tab",
|
|
349
|
+
"aria-selected": V === "edit",
|
|
350
|
+
onClick: () => $e("edit"),
|
|
351
|
+
className: n("inline-flex min-h-[32px] items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors", V === "edit" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
|
|
352
|
+
children: [/* @__PURE__ */ _(u, { className: "h-3.5 w-3.5" }), "Edit"]
|
|
353
|
+
}), /* @__PURE__ */ v("button", {
|
|
354
|
+
type: "button",
|
|
355
|
+
role: "tab",
|
|
356
|
+
"aria-selected": V === "preview",
|
|
357
|
+
onClick: () => $e("preview"),
|
|
358
|
+
className: n("inline-flex min-h-[32px] items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors", V === "preview" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
|
|
359
|
+
children: [/* @__PURE__ */ _(le, { className: "h-3.5 w-3.5" }), "Preview"]
|
|
360
|
+
})]
|
|
361
|
+
})]
|
|
362
|
+
}),
|
|
363
|
+
/* @__PURE__ */ v("div", {
|
|
364
|
+
className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop",
|
|
365
|
+
children: [/* @__PURE__ */ _("div", {
|
|
366
|
+
className: "border-b border-border-subtle p-3",
|
|
367
|
+
children: /* @__PURE__ */ _("input", {
|
|
214
368
|
type: "text",
|
|
215
|
-
value:
|
|
216
|
-
onChange: (e) =>
|
|
369
|
+
value: N,
|
|
370
|
+
onChange: (e) => ze(e.target.value),
|
|
217
371
|
placeholder: "Content title",
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
372
|
+
"aria-label": "Content title",
|
|
373
|
+
className: "w-full bg-transparent px-1 py-1 text-lg font-semibold text-text-primary placeholder:text-text-secondary focus:outline-none"
|
|
374
|
+
})
|
|
375
|
+
}), V === "edit" ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("div", {
|
|
376
|
+
className: "flex flex-wrap items-center gap-0.5 overflow-x-auto border-b border-border-subtle p-2",
|
|
377
|
+
children: [
|
|
378
|
+
/* @__PURE__ */ _(E, {
|
|
379
|
+
label: "Bold",
|
|
380
|
+
onClick: () => Z("bold"),
|
|
381
|
+
children: /* @__PURE__ */ _(se, { className: "h-4 w-4" })
|
|
382
|
+
}),
|
|
383
|
+
/* @__PURE__ */ _(E, {
|
|
384
|
+
label: "Italic",
|
|
385
|
+
onClick: () => Z("italic"),
|
|
386
|
+
children: /* @__PURE__ */ _(pe, { className: "h-4 w-4" })
|
|
387
|
+
}),
|
|
388
|
+
/* @__PURE__ */ _(E, {
|
|
389
|
+
label: "Underline",
|
|
390
|
+
onClick: () => Z("underline"),
|
|
391
|
+
children: /* @__PURE__ */ _(we, { className: "h-4 w-4" })
|
|
392
|
+
}),
|
|
393
|
+
/* @__PURE__ */ _(D, {}),
|
|
394
|
+
/* @__PURE__ */ _(E, {
|
|
395
|
+
label: "Heading 1",
|
|
396
|
+
onClick: () => Z("formatBlock", "<h1>"),
|
|
397
|
+
children: /* @__PURE__ */ _(ue, { className: "h-4 w-4" })
|
|
398
|
+
}),
|
|
399
|
+
/* @__PURE__ */ _(E, {
|
|
400
|
+
label: "Heading 2",
|
|
401
|
+
onClick: () => Z("formatBlock", "<h2>"),
|
|
402
|
+
children: /* @__PURE__ */ _(de, { className: "h-4 w-4" })
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ _(D, {}),
|
|
405
|
+
/* @__PURE__ */ _(E, {
|
|
406
|
+
label: "Bulleted list",
|
|
407
|
+
onClick: () => Z("insertUnorderedList"),
|
|
408
|
+
children: /* @__PURE__ */ _(he, { className: "h-4 w-4" })
|
|
409
|
+
}),
|
|
410
|
+
/* @__PURE__ */ _(E, {
|
|
411
|
+
label: "Numbered list",
|
|
412
|
+
onClick: () => Z("insertOrderedList"),
|
|
413
|
+
children: /* @__PURE__ */ _(ge, { className: "h-4 w-4" })
|
|
414
|
+
}),
|
|
415
|
+
/* @__PURE__ */ _(D, {}),
|
|
416
|
+
/* @__PURE__ */ _(E, {
|
|
417
|
+
label: "Quote",
|
|
418
|
+
onClick: () => Z("formatBlock", "<blockquote>"),
|
|
419
|
+
children: /* @__PURE__ */ _(ye, { className: "h-4 w-4" })
|
|
420
|
+
}),
|
|
421
|
+
/* @__PURE__ */ _(E, {
|
|
422
|
+
label: "Code block",
|
|
423
|
+
onClick: () => Z("formatBlock", "<pre>"),
|
|
424
|
+
children: /* @__PURE__ */ _(ce, { className: "h-4 w-4" })
|
|
425
|
+
}),
|
|
426
|
+
/* @__PURE__ */ _(D, {}),
|
|
427
|
+
/* @__PURE__ */ _(E, {
|
|
428
|
+
label: "Insert link",
|
|
429
|
+
onClick: at,
|
|
430
|
+
children: /* @__PURE__ */ _(me, { className: "h-4 w-4" })
|
|
431
|
+
}),
|
|
432
|
+
/* @__PURE__ */ _(E, {
|
|
433
|
+
label: "Insert image",
|
|
434
|
+
disabled: k,
|
|
435
|
+
onClick: () => j.current?.click(),
|
|
436
|
+
children: k ? /* @__PURE__ */ _(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _(fe, { className: "h-4 w-4" })
|
|
437
|
+
}),
|
|
438
|
+
/* @__PURE__ */ _("input", {
|
|
439
|
+
ref: j,
|
|
440
|
+
type: "file",
|
|
441
|
+
accept: "image/*",
|
|
442
|
+
onChange: ot,
|
|
443
|
+
className: "hidden",
|
|
444
|
+
"aria-hidden": "true",
|
|
445
|
+
tabIndex: -1
|
|
446
|
+
})
|
|
447
|
+
]
|
|
448
|
+
}), /* @__PURE__ */ _("div", {
|
|
449
|
+
ref: A,
|
|
450
|
+
contentEditable: !0,
|
|
451
|
+
suppressContentEditableWarning: !0,
|
|
452
|
+
role: "textbox",
|
|
453
|
+
"aria-multiline": "true",
|
|
454
|
+
"aria-label": "Content body",
|
|
455
|
+
onInput: X,
|
|
456
|
+
"data-placeholder": "Start writing your content...",
|
|
457
|
+
className: n("min-h-[420px] w-full p-4 text-sm focus:outline-none", T, "empty:before:text-text-secondary empty:before:content-[attr(data-placeholder)]")
|
|
458
|
+
})] }) : /* @__PURE__ */ _("div", {
|
|
459
|
+
className: "min-h-[420px] p-6",
|
|
460
|
+
children: I ? /* @__PURE__ */ _("div", {
|
|
461
|
+
className: T,
|
|
462
|
+
dangerouslySetInnerHTML: { __html: I }
|
|
463
|
+
}) : /* @__PURE__ */ _("div", {
|
|
464
|
+
className: "flex min-h-[380px] items-center justify-center text-sm text-text-secondary",
|
|
465
|
+
children: "Nothing to preview yet — switch to Edit and start writing."
|
|
466
|
+
})
|
|
467
|
+
})]
|
|
236
468
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
className: "flex flex-wrap items-center gap-1
|
|
469
|
+
/* @__PURE__ */ v("div", {
|
|
470
|
+
className: "mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 px-1 text-xs text-text-secondary",
|
|
239
471
|
children: [
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
className: n($, "font-bold"),
|
|
245
|
-
children: "B"
|
|
246
|
-
}),
|
|
247
|
-
/* @__PURE__ */ y("button", {
|
|
248
|
-
type: "button",
|
|
249
|
-
onClick: () => J("italic"),
|
|
250
|
-
"aria-label": "Italic",
|
|
251
|
-
className: n($, "italic"),
|
|
252
|
-
children: "I"
|
|
253
|
-
}),
|
|
254
|
-
/* @__PURE__ */ y("button", {
|
|
255
|
-
type: "button",
|
|
256
|
-
onClick: () => J("underline"),
|
|
257
|
-
"aria-label": "Underline",
|
|
258
|
-
className: n($, "underline"),
|
|
259
|
-
children: "U"
|
|
260
|
-
}),
|
|
261
|
-
/* @__PURE__ */ y("span", { className: "w-px h-4 bg-border" }),
|
|
262
|
-
/* @__PURE__ */ y("button", {
|
|
263
|
-
type: "button",
|
|
264
|
-
onClick: () => J("formatBlock", "<h1>"),
|
|
265
|
-
"aria-label": "Heading 1",
|
|
266
|
-
className: $,
|
|
267
|
-
children: "H1"
|
|
268
|
-
}),
|
|
269
|
-
/* @__PURE__ */ y("button", {
|
|
270
|
-
type: "button",
|
|
271
|
-
onClick: () => J("formatBlock", "<h2>"),
|
|
272
|
-
"aria-label": "Heading 2",
|
|
273
|
-
className: $,
|
|
274
|
-
children: "H2"
|
|
472
|
+
/* @__PURE__ */ v("span", { children: [q.toLocaleString(), " characters"] }),
|
|
473
|
+
/* @__PURE__ */ _("span", {
|
|
474
|
+
"aria-hidden": "true",
|
|
475
|
+
children: "•"
|
|
275
476
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
|
|
477
|
+
/* @__PURE__ */ v("span", { children: [I ? Math.max(1, Math.ceil(q / 1e3)) : 0, " min read"] })
|
|
478
|
+
]
|
|
479
|
+
})
|
|
480
|
+
]
|
|
481
|
+
}), /* @__PURE__ */ _("div", {
|
|
482
|
+
className: "lg:col-span-1",
|
|
483
|
+
children: /* @__PURE__ */ v("div", {
|
|
484
|
+
className: "lg:sticky lg:top-4",
|
|
485
|
+
children: [/* @__PURE__ */ _("div", {
|
|
486
|
+
className: "mb-3 flex items-center gap-1 overflow-x-auto border-b border-border-seam",
|
|
487
|
+
role: "tablist",
|
|
488
|
+
"aria-label": "Content settings",
|
|
489
|
+
children: dt.map((e) => {
|
|
490
|
+
let t = e.icon, r = B === e.key;
|
|
491
|
+
return /* @__PURE__ */ v("button", {
|
|
278
492
|
type: "button",
|
|
279
|
-
|
|
280
|
-
"aria-
|
|
281
|
-
|
|
282
|
-
|
|
493
|
+
role: "tab",
|
|
494
|
+
"aria-selected": r,
|
|
495
|
+
onClick: () => Qe(e.key),
|
|
496
|
+
className: n("relative inline-flex min-h-[40px] shrink-0 items-center gap-1.5 whitespace-nowrap px-3 pb-2.5 pt-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", r ? "text-text-primary" : "text-text-secondary hover:text-text-primary"),
|
|
497
|
+
children: [
|
|
498
|
+
/* @__PURE__ */ _(t, { className: "h-4 w-4" }),
|
|
499
|
+
e.label,
|
|
500
|
+
r && /* @__PURE__ */ _("span", { className: "absolute inset-x-2 -bottom-px h-0.5 rounded-full bg-action-primary-bg" })
|
|
501
|
+
]
|
|
502
|
+
}, e.key);
|
|
503
|
+
})
|
|
504
|
+
}), /* @__PURE__ */ v("div", {
|
|
505
|
+
className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-4",
|
|
506
|
+
children: [
|
|
507
|
+
B === "settings" && /* @__PURE__ */ v("div", {
|
|
508
|
+
className: "space-y-4",
|
|
509
|
+
children: [
|
|
510
|
+
/* @__PURE__ */ v("div", {
|
|
511
|
+
className: "grid grid-cols-2 gap-3",
|
|
512
|
+
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("span", {
|
|
513
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
514
|
+
children: "Content type"
|
|
515
|
+
}), U && /* @__PURE__ */ v("span", {
|
|
516
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-sm text-text-primary",
|
|
517
|
+
children: [/* @__PURE__ */ _(U.icon, { className: "h-3.5 w-3.5" }), U.label]
|
|
518
|
+
})] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("span", {
|
|
519
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
520
|
+
children: "Status"
|
|
521
|
+
}), /* @__PURE__ */ _("span", {
|
|
522
|
+
className: n("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium", K ? "bg-status-info-bg text-status-info-text" : "bg-status-warning-bg text-status-warning-text"),
|
|
523
|
+
children: K ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(c, { className: "h-3.5 w-3.5" }), "Scheduled"] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(u, { className: "h-3.5 w-3.5" }), "Draft"] })
|
|
524
|
+
})] })]
|
|
525
|
+
}),
|
|
526
|
+
/* @__PURE__ */ v("div", { children: [
|
|
527
|
+
/* @__PURE__ */ _("label", {
|
|
528
|
+
htmlFor: "content-slug",
|
|
529
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
530
|
+
children: "Slug"
|
|
531
|
+
}),
|
|
532
|
+
/* @__PURE__ */ _("input", {
|
|
533
|
+
id: "content-slug",
|
|
534
|
+
type: "text",
|
|
535
|
+
value: W,
|
|
536
|
+
onChange: (e) => {
|
|
537
|
+
Ke(!0), We(S(e.target.value));
|
|
538
|
+
},
|
|
539
|
+
placeholder: "auto-generated-from-title",
|
|
540
|
+
className: n(w, "font-mono text-xs")
|
|
541
|
+
}),
|
|
542
|
+
Ge && /* @__PURE__ */ _("button", {
|
|
543
|
+
type: "button",
|
|
544
|
+
onClick: () => {
|
|
545
|
+
Ke(!1), We("");
|
|
546
|
+
},
|
|
547
|
+
className: "mt-1 text-xs text-text-secondary underline hover:text-text-primary",
|
|
548
|
+
children: "Reset to title"
|
|
549
|
+
})
|
|
550
|
+
] }),
|
|
551
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
552
|
+
htmlFor: "content-summary",
|
|
553
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
554
|
+
children: "Summary"
|
|
555
|
+
}), /* @__PURE__ */ _("input", {
|
|
556
|
+
id: "content-summary",
|
|
557
|
+
type: "text",
|
|
558
|
+
value: P,
|
|
559
|
+
onChange: (e) => Be(e.target.value),
|
|
560
|
+
placeholder: "Short summary (optional)",
|
|
561
|
+
className: w
|
|
562
|
+
})] }),
|
|
563
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("span", {
|
|
564
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
565
|
+
children: "Tags"
|
|
566
|
+
}), /* @__PURE__ */ _(ne, {
|
|
567
|
+
value: F,
|
|
568
|
+
onChange: Ve,
|
|
569
|
+
placeholder: "Add a tag…"
|
|
570
|
+
})] }),
|
|
571
|
+
/* @__PURE__ */ v("div", { children: [
|
|
572
|
+
/* @__PURE__ */ _("label", {
|
|
573
|
+
htmlFor: "content-campaign",
|
|
574
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
575
|
+
children: "Campaign"
|
|
576
|
+
}),
|
|
577
|
+
/* @__PURE__ */ v("select", {
|
|
578
|
+
id: "content-campaign",
|
|
579
|
+
value: qe,
|
|
580
|
+
onChange: (e) => Je(e.target.value),
|
|
581
|
+
className: n(w, "h-10"),
|
|
582
|
+
children: [/* @__PURE__ */ _("option", {
|
|
583
|
+
value: "",
|
|
584
|
+
children: "No campaign"
|
|
585
|
+
}), tt.map((e) => /* @__PURE__ */ _("option", {
|
|
586
|
+
value: e.id,
|
|
587
|
+
children: e.name
|
|
588
|
+
}, e.id))]
|
|
589
|
+
}),
|
|
590
|
+
tt.length === 0 && /* @__PURE__ */ _("p", {
|
|
591
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
592
|
+
children: "No campaigns yet — create one to link content."
|
|
593
|
+
})
|
|
594
|
+
] }),
|
|
595
|
+
/* @__PURE__ */ v("div", { children: [
|
|
596
|
+
/* @__PURE__ */ v("label", {
|
|
597
|
+
htmlFor: "content-schedule",
|
|
598
|
+
className: "mb-1 flex items-center gap-1.5 text-xs font-medium text-text-secondary",
|
|
599
|
+
children: [/* @__PURE__ */ _(c, { className: "h-3.5 w-3.5" }), "Publish schedule"]
|
|
600
|
+
}),
|
|
601
|
+
/* @__PURE__ */ _("input", {
|
|
602
|
+
id: "content-schedule",
|
|
603
|
+
type: "datetime-local",
|
|
604
|
+
value: L,
|
|
605
|
+
onChange: (e) => Ye(e.target.value),
|
|
606
|
+
className: n(w, "h-10")
|
|
607
|
+
}),
|
|
608
|
+
L && !K && /* @__PURE__ */ _("p", {
|
|
609
|
+
className: "mt-1 text-xs text-status-warning-text",
|
|
610
|
+
children: "Pick a future time to schedule publishing."
|
|
611
|
+
}),
|
|
612
|
+
K && /* @__PURE__ */ _("p", {
|
|
613
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
614
|
+
children: "Saved as a draft and published automatically at this time."
|
|
615
|
+
})
|
|
616
|
+
] })
|
|
617
|
+
]
|
|
283
618
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
619
|
+
B === "seo" && /* @__PURE__ */ v("div", {
|
|
620
|
+
className: "space-y-4",
|
|
621
|
+
children: [
|
|
622
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("div", {
|
|
623
|
+
className: "mb-1 flex items-center justify-between",
|
|
624
|
+
children: [/* @__PURE__ */ _("span", {
|
|
625
|
+
className: "text-xs font-medium text-text-secondary",
|
|
626
|
+
children: "SEO score"
|
|
627
|
+
}), /* @__PURE__ */ v("span", {
|
|
628
|
+
className: n("text-sm font-semibold", Y === "success" && "text-status-success-text", Y === "warning" && "text-status-warning-text", Y === "error" && "text-status-error-text"),
|
|
629
|
+
children: [J, "/100"]
|
|
630
|
+
})]
|
|
631
|
+
}), /* @__PURE__ */ _("div", {
|
|
632
|
+
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
633
|
+
children: /* @__PURE__ */ _("div", {
|
|
634
|
+
className: n("h-full rounded-full transition-all", Y === "success" && "bg-status-success-text", Y === "warning" && "bg-status-warning-text", Y === "error" && "bg-status-error-text"),
|
|
635
|
+
style: { width: `${J}%` }
|
|
636
|
+
})
|
|
637
|
+
})] }),
|
|
638
|
+
/* @__PURE__ */ v("div", { children: [
|
|
639
|
+
/* @__PURE__ */ _("label", {
|
|
640
|
+
htmlFor: "content-meta-title",
|
|
641
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
642
|
+
children: "Meta title"
|
|
643
|
+
}),
|
|
644
|
+
/* @__PURE__ */ _("input", {
|
|
645
|
+
id: "content-meta-title",
|
|
646
|
+
type: "text",
|
|
647
|
+
value: R,
|
|
648
|
+
onChange: (e) => Xe(e.target.value),
|
|
649
|
+
placeholder: N || "Page title for search results",
|
|
650
|
+
maxLength: 70,
|
|
651
|
+
className: w
|
|
652
|
+
}),
|
|
653
|
+
/* @__PURE__ */ v("p", {
|
|
654
|
+
className: "mt-1 text-right text-xs text-text-secondary",
|
|
655
|
+
children: [(R || N).length, "/60"]
|
|
656
|
+
})
|
|
657
|
+
] }),
|
|
658
|
+
/* @__PURE__ */ v("div", { children: [
|
|
659
|
+
/* @__PURE__ */ _("label", {
|
|
660
|
+
htmlFor: "content-meta-desc",
|
|
661
|
+
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
662
|
+
children: "Meta description"
|
|
663
|
+
}),
|
|
664
|
+
/* @__PURE__ */ _("textarea", {
|
|
665
|
+
id: "content-meta-desc",
|
|
666
|
+
value: z,
|
|
667
|
+
onChange: (e) => Ze(e.target.value),
|
|
668
|
+
placeholder: "Description shown in search results",
|
|
669
|
+
rows: 3,
|
|
670
|
+
maxLength: 200,
|
|
671
|
+
className: n(w, "resize-none")
|
|
672
|
+
}),
|
|
673
|
+
/* @__PURE__ */ v("p", {
|
|
674
|
+
className: "mt-1 text-right text-xs text-text-secondary",
|
|
675
|
+
children: [z.length, "/160"]
|
|
676
|
+
})
|
|
677
|
+
] }),
|
|
678
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("span", {
|
|
679
|
+
className: "mb-1.5 block text-xs font-medium text-text-secondary",
|
|
680
|
+
children: "Search preview"
|
|
681
|
+
}), /* @__PURE__ */ v("div", {
|
|
682
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ _("p", {
|
|
685
|
+
className: "truncate text-xs text-status-success-text",
|
|
686
|
+
children: W ? `/${W}` : "/your-content-slug"
|
|
687
|
+
}),
|
|
688
|
+
/* @__PURE__ */ _("p", {
|
|
689
|
+
className: "mt-0.5 truncate text-sm font-medium text-primary",
|
|
690
|
+
children: R || N || "Untitled content"
|
|
691
|
+
}),
|
|
692
|
+
/* @__PURE__ */ _("p", {
|
|
693
|
+
className: "mt-0.5 line-clamp-2 text-xs text-text-secondary",
|
|
694
|
+
children: z || P || "Add a meta description to control how this appears in search results."
|
|
695
|
+
})
|
|
696
|
+
]
|
|
697
|
+
})] }),
|
|
698
|
+
/* @__PURE__ */ _("ul", {
|
|
699
|
+
className: "space-y-1.5",
|
|
700
|
+
children: it.map((e) => /* @__PURE__ */ v("li", {
|
|
701
|
+
className: "flex items-start gap-2 text-xs",
|
|
702
|
+
children: [/* @__PURE__ */ _("span", {
|
|
703
|
+
className: n("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full", e.passed ? "bg-status-success-bg text-status-success-text" : "bg-bg-sunken text-text-secondary"),
|
|
704
|
+
children: e.passed ? /* @__PURE__ */ _(l, { className: "h-3 w-3" }) : /* @__PURE__ */ _("span", { className: "h-1.5 w-1.5 rounded-full bg-current" })
|
|
705
|
+
}), /* @__PURE__ */ v("span", {
|
|
706
|
+
className: e.passed ? "text-text-primary" : "text-text-secondary",
|
|
707
|
+
children: [e.label, !e.passed && /* @__PURE__ */ v("span", {
|
|
708
|
+
className: "text-text-secondary",
|
|
709
|
+
children: [
|
|
710
|
+
" ",
|
|
711
|
+
"— ",
|
|
712
|
+
e.hint
|
|
713
|
+
]
|
|
714
|
+
})]
|
|
715
|
+
})]
|
|
716
|
+
}, e.label))
|
|
717
|
+
})
|
|
718
|
+
]
|
|
291
719
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
720
|
+
B === "ai" && /* @__PURE__ */ v("div", {
|
|
721
|
+
className: "space-y-3",
|
|
722
|
+
children: [
|
|
723
|
+
/* @__PURE__ */ v("div", {
|
|
724
|
+
className: "flex items-start gap-2 rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
725
|
+
children: [/* @__PURE__ */ _(h, { className: "mt-0.5 h-4 w-4 shrink-0 text-action-primary-bg" }), /* @__PURE__ */ _("p", {
|
|
726
|
+
className: "text-xs text-text-secondary",
|
|
727
|
+
children: "Draft, rewrite and optimize copy with your workspace AI tools. Pick a tool below to open it in the AI workspace."
|
|
728
|
+
})]
|
|
729
|
+
}),
|
|
730
|
+
nt.length > 0 ? /* @__PURE__ */ _("ul", {
|
|
731
|
+
className: "space-y-2",
|
|
732
|
+
children: nt.slice(0, 6).map((e) => /* @__PURE__ */ _("li", { children: /* @__PURE__ */ v("button", {
|
|
733
|
+
type: "button",
|
|
734
|
+
onClick: () => r(d + "/content/ai-tools"),
|
|
735
|
+
className: "group flex w-full items-center gap-3 rounded-lg border border-border-subtle bg-bg-surface p-3 text-left transition-colors hover:border-action-primary-bg/40 hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
736
|
+
children: [
|
|
737
|
+
/* @__PURE__ */ _("span", {
|
|
738
|
+
className: "inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-action-primary-bg",
|
|
739
|
+
children: /* @__PURE__ */ _(h, { className: "h-4 w-4" })
|
|
740
|
+
}),
|
|
741
|
+
/* @__PURE__ */ v("span", {
|
|
742
|
+
className: "min-w-0 flex-1",
|
|
743
|
+
children: [/* @__PURE__ */ _("span", {
|
|
744
|
+
className: "block truncate text-sm font-medium text-text-primary",
|
|
745
|
+
children: e.name
|
|
746
|
+
}), e.description && /* @__PURE__ */ _("span", {
|
|
747
|
+
className: "block truncate text-xs text-text-secondary",
|
|
748
|
+
children: e.description
|
|
749
|
+
})]
|
|
750
|
+
}),
|
|
751
|
+
/* @__PURE__ */ _(oe, { className: "h-4 w-4 shrink-0 text-text-secondary transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5" })
|
|
752
|
+
]
|
|
753
|
+
}) }, e.id))
|
|
754
|
+
}) : /* @__PURE__ */ _("div", {
|
|
755
|
+
className: "rounded-lg border border-dashed border-border-subtle p-4 text-center",
|
|
756
|
+
children: /* @__PURE__ */ _("p", {
|
|
757
|
+
className: "text-xs text-text-secondary",
|
|
758
|
+
children: "No content AI tools are enabled yet."
|
|
759
|
+
})
|
|
760
|
+
}),
|
|
761
|
+
/* @__PURE__ */ v("button", {
|
|
762
|
+
type: "button",
|
|
763
|
+
onClick: () => r(d + "/content/ai-tools"),
|
|
764
|
+
className: "inline-flex w-full min-h-[40px] items-center justify-center gap-2 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
765
|
+
children: [/* @__PURE__ */ _(h, { className: "h-4 w-4" }), "Open AI Tools"]
|
|
766
|
+
})
|
|
767
|
+
]
|
|
300
768
|
})
|
|
301
769
|
]
|
|
302
|
-
})
|
|
303
|
-
/* @__PURE__ */ y("div", {
|
|
304
|
-
ref: A,
|
|
305
|
-
contentEditable: !0,
|
|
306
|
-
suppressContentEditableWarning: !0,
|
|
307
|
-
role: "textbox",
|
|
308
|
-
"aria-multiline": "true",
|
|
309
|
-
"aria-label": "Content body",
|
|
310
|
-
onInput: q,
|
|
311
|
-
"data-placeholder": "Start writing your content...",
|
|
312
|
-
className: "min-h-[360px] w-full p-4 text-sm text-text-primary focus:outline-none prose prose-sm max-w-none [&_h1]:text-xl [&_h1]:font-bold [&_h2]:text-lg [&_h2]:font-semibold [&_a]:text-primary [&_a]:underline [&_img]:max-w-full [&_img]:h-auto empty:before:text-text-secondary empty:before:content-[attr(data-placeholder)]"
|
|
313
|
-
})
|
|
314
|
-
]
|
|
315
|
-
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("div", {
|
|
316
|
-
className: "flex items-center justify-between mb-3",
|
|
317
|
-
children: /* @__PURE__ */ b("h3", {
|
|
318
|
-
className: "text-sm font-semibold text-text-primary flex items-center gap-2",
|
|
319
|
-
children: [/* @__PURE__ */ y(te, { className: "h-4 w-4" }), "Preview"]
|
|
320
|
-
})
|
|
321
|
-
}), /* @__PURE__ */ y("div", {
|
|
322
|
-
className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-6 min-h-[400px]",
|
|
323
|
-
children: H ? /* @__PURE__ */ y("div", {
|
|
324
|
-
className: "prose prose-sm max-w-none text-text-primary [&_h1]:text-xl [&_h1]:font-bold [&_h2]:text-lg [&_h2]:font-semibold [&_a]:text-primary [&_a]:underline [&_img]:max-w-full [&_img]:h-auto",
|
|
325
|
-
dangerouslySetInnerHTML: { __html: H }
|
|
326
|
-
}) : /* @__PURE__ */ y("div", {
|
|
327
|
-
className: "flex items-center justify-center h-full text-text-secondary",
|
|
328
|
-
children: /* @__PURE__ */ y("p", {
|
|
329
|
-
className: "text-sm",
|
|
330
|
-
children: "Preview will appear here"
|
|
331
|
-
})
|
|
770
|
+
})]
|
|
332
771
|
})
|
|
333
|
-
})]
|
|
772
|
+
})]
|
|
334
773
|
}),
|
|
335
|
-
|
|
774
|
+
$ && /* @__PURE__ */ _("div", {
|
|
336
775
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
|
|
337
|
-
children:
|
|
776
|
+
children: $
|
|
338
777
|
}),
|
|
339
|
-
M && /* @__PURE__ */
|
|
340
|
-
className: "flex justify-
|
|
341
|
-
children: /* @__PURE__ */
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
778
|
+
M && /* @__PURE__ */ v("div", {
|
|
779
|
+
className: "flex flex-col-reverse gap-3 border-t border-border-seam pt-4 sm:flex-row sm:items-center sm:justify-between",
|
|
780
|
+
children: [/* @__PURE__ */ _("p", {
|
|
781
|
+
className: "text-xs text-text-secondary",
|
|
782
|
+
children: K ? "This item will be saved as a draft and published on schedule." : "New items are saved as drafts. Publish to make them live."
|
|
783
|
+
}), /* @__PURE__ */ v("div", {
|
|
784
|
+
className: "flex items-center gap-2",
|
|
785
|
+
children: [/* @__PURE__ */ v("button", {
|
|
786
|
+
type: "button",
|
|
787
|
+
onClick: () => {
|
|
788
|
+
ct(!1);
|
|
789
|
+
},
|
|
790
|
+
disabled: Q,
|
|
791
|
+
className: "inline-flex min-h-[44px] 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 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:opacity-60",
|
|
792
|
+
children: [m && !O ? /* @__PURE__ */ _(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _(be, { className: "h-4 w-4" }), "Save Draft"]
|
|
793
|
+
}), /* @__PURE__ */ v("button", {
|
|
794
|
+
type: "button",
|
|
795
|
+
onClick: () => {
|
|
796
|
+
ct(!0);
|
|
797
|
+
},
|
|
798
|
+
disabled: Q,
|
|
799
|
+
className: "inline-flex min-h-[44px] items-center gap-2 rounded-md bg-action-primary-bg px-5 py-2 text-sm font-medium text-action-primary-text shadow-pop transition-colors hover:bg-action-primary-bg/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:opacity-60",
|
|
800
|
+
children: [O ? /* @__PURE__ */ _(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _(ut, { className: "h-4 w-4" }), Q ? "Saving…" : lt]
|
|
801
|
+
})]
|
|
802
|
+
})]
|
|
350
803
|
})
|
|
351
804
|
]
|
|
352
805
|
});
|
|
353
806
|
};
|
|
354
807
|
//#endregion
|
|
355
|
-
export {
|
|
808
|
+
export { O as ContentCreationPage };
|
|
356
809
|
|
|
357
810
|
//# sourceMappingURL=ContentCreationPage.js.map
|