1import{K as ls,r as D,j as s,F,s as b,$ as M,a0 as z,a1 as _,a2 as E,a3 as p,B as l,x as G,C as m,b as u,d as N,e as d,aE as ss,J as I,X as es,ab as i,a4 as v,S as g,aF as k,ap as P,f as vs,h as gs,a8 as ws,a9 as Cs,aa as Ss,bj as ts,V as as,T as ks,E as cs,l as Ps,bU as Bs,aG as Ts,aY as As,z as Ds}from"./index-CuSEeJFb.js";import{T as Ms,a as zs,b as L,c as $}from"./tabs-CcPOXtvT.js";import{P as R}from"./progress-B2eMqtVV.js";import{C as _s}from"./calendar-B35CJklo.js";import{S as Es}from"./save-DMqvNvzo.js";import{S as Is}from"./square-pen-Wwme7SiP.js";import{H as Ls}from"./hash-jasa6rMo.js";import{S as $s}from"./share-B5BYf7qZ.js";import{I as Rs}from"./image-fQC3p4ps.js";import{C as Os}from"./copy-Ctw93tQ7.js";import{f as Hs}from"./format-hhvI2L0z.js";import"./subDays-Cl8kgx1y.js";import"./isSameDay-asvKFMkz.js";import"./en-US-BOoww7nS.js";import"./differenceInCalendarMonths-CdYt3YUn.js";import"./isSameMonth-GNceXh6W.js";import"./endOfWeek-COLolEil.js";import"./endOfMonth-DMtDxPW7.js";import"./isBefore-dQ65yIyQ.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Ws=ls("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 7 * @license lucide-react v0.453.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Us=ls("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);function ue({register:x,control:Ys,setValue:y,watch:c,businessProfile:h,isGeneratingField:e,onGenerateField:n,creativeFormat:qs,temperature:Ks,awarenessLevel:Vs,getValidationStatus:Y}){var Z;const[ns,rs]=D.useState("content"),[O,is]=D.useState(),[os,ms]=D.useState("desktop"),[B,Js]=D.useState(75),o=c("platformContent.headline")||"",H=c("platformContent.subtitle")||"",T=c("platformContent.introduction")||"",w=c("platformContent.bodySections")||[""],W=c("platformContent.conclusion")||"",q=c("platformContent.authorBio")||"",K=c("platformContent.articleFormat")||"blog_post",ds=c("platformContent.publicationPlatform")||"company_blog",S=c("platformContent.keywords")||"",C=c("platformContent.metaDescription")||"";c("platformContent.readingTime"),c("platformContent.category"),c("platformContent.tags"),c("platformContent.featuredImage");const V=c("platformContent.publishSchedule")||"immediate",xs=c("platformContent.socialPromotion")??!0,hs=c("platformContent.emailPromotion")??!1,J=c("platformContent.contentStatus")||"draft";c("platformContent.targetAudience"),c("platformContent.contentGoals");const r={headline:100,subtitle:150,introduction:300,bodySection:1e3,conclusion:200,authorBio:150,metaDescription:160,keywords:200},f=(t,a,j)=>{if(Y){const U=Y(t,j);return{colorClass:U.status==="error"?"text-red-500":U.status==="warning"?"text-orange-500":"text-gray-500 dark:text-gray-400",message:U.message}}const A=a/j;return{colorClass:A>.9?"text-red-500":A>.7?"text-orange-500":"text-gray-500 dark:text-gray-400",message:`${a}/${j}`}},Q=()=>{const t=[o,H,T,...w,W].join(" ").split(/\s+/).filter(a=>a.length>0).length;return Math.max(1,Math.ceil(t/200))},js=(h==null?void 0:h.businessName)||"Your Business",ps=(h==null?void 0:h.contactName)||"Author Name";js.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2);const X={blog_post:{name:"Blog Post",icon:F,description:"Informative and engaging blog content"},news_article:{name:"News Article",icon:As,description:"Timely news and announcements"},press_release:{name:"Press Release",icon:G,description:"Official company announcements"},case_study:{name:"Case Study",icon:es,description:"Detailed customer success stories"},how_to_guide:{name:"How-To Guide",icon:Ds,description:"Step-by-step instructional content"},industry_report:{name:"Industry Report",icon:as,description:"Research and market insights"}},us={company_blog:{name:"Company Blog",reach:"Direct audience",cost:"Free"},medium:{name:"Medium",reach:"150M+ readers",cost:"Free"},linkedin_articles:{name:"LinkedIn Articles",reach:"Professional network",cost:"Free"},industry_publications:{name:"Industry Publications",reach:"Niche audience",cost:"Varies"},guest_posts:{name:"Guest Posts",reach:"Partner audiences",cost:"Free"}},Ns=[{type:"keyword",message:"Use primary keyword in first paragraph",status:o.toLowerCase().includes(S.toLowerCase())?"good":"warning"},{type:"length",message:"Headline length is optimal",status:o.length>=30&&o.length<=60?"good":"warning"},{type:"meta",message:"Meta description is compelling",status:C.length>=120&&C.length<=160?"good":"warning"},{type:"readability",message:"Content is readable",status:"good"}],ys=()=>{const t=[...w,""];y("platformContent.bodySections",t)},fs=t=>{if(w.length>1){const a=w.filter((j,A)=>A!==t);y("platformContent.bodySections",a)}},bs=(t,a)=>{const j=[...w];j[t]=a,y("platformContent.bodySections",j)};return s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsx("div",{className:"bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700 px-6 py-4 mb-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(F,{className:"w-6 h-6 text-blue-600"}),s.jsx("h1",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Content Management System"})]}),s.jsx(b,{variant:"outline",className:"text-xs",children:((Z=X[K])==null?void 0:Z.name)||"Article"})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsxs(M,{value:os,onValueChange:t=>ms(t),children:[s.jsx(z,{className:"w-32",children:s.jsx(_,{})}),s.jsxs(E,{children:[s.jsx(p,{value:"desktop",children:"Desktop"}),s.jsx(p,{value:"tablet",children:"Tablet"}),s.jsx(p,{value:"mobile",children:"Mobile"})]})]}),s.jsxs(l,{size:"sm",variant:"outline","data-testid":"button-save-draft",children:[s.jsx(Es,{className:"w-4 h-4 mr-1"}),"Save Draft"]}),s.jsxs(l,{size:"sm","data-testid":"button-publish",children:[s.jsx(G,{className:"w-4 h-4 mr-1"}),"Publish"]})]})]})}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[s.jsx("div",{className:"lg:col-span-3",children:s.jsxs(m,{children:[s.jsx(u,{children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(N,{children:"Article Content"}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs(b,{variant:"secondary",className:"text-xs",children:[Q()," min read"]}),s.jsx(b,{variant:J==="published"?"default":"secondary",className:"text-xs",children:J})]})]})}),s.jsx(d,{children:s.jsxs(Ms,{value:ns,onValueChange:t=>rs(t),children:[s.jsxs(zs,{className:"grid w-full grid-cols-4",children:[s.jsxs(L,{value:"content","data-testid":"tab-content",children:[s.jsx(Is,{className:"w-4 h-4 mr-1"}),"Content"]}),s.jsxs(L,{value:"seo","data-testid":"tab-seo",children:[s.jsx(ss,{className:"w-4 h-4 mr-1"}),"SEO"]}),s.jsxs(L,{value:"publish","data-testid":"tab-publish",children:[s.jsx(I,{className:"w-4 h-4 mr-1"}),"Publish"]}),s.jsxs(L,{value:"analytics","data-testid":"tab-analytics",children:[s.jsx(es,{className:"w-4 h-4 mr-1"}),"Analytics"]})]}),s.jsxs($,{value:"content",className:"space-y-6 mt-6",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(i,{className:"text-sm font-medium",children:"Article Format"}),s.jsxs(M,{value:K,onValueChange:t=>y("platformContent.articleFormat",t),children:[s.jsx(z,{"data-testid":"select-article-format",children:s.jsx(_,{})}),s.jsx(E,{children:Object.entries(X).map(([t,a])=>s.jsx(p,{value:t,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(a.icon,{className:"w-4 h-4"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:a.name}),s.jsx("div",{className:"text-xs text-gray-500",children:a.description})]})]})},t))})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Headline"}),n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n("headline"),disabled:e==null?void 0:e("headline"),className:"h-6 px-2 text-xs","data-testid":"button-generate-headline",children:e!=null&&e("headline")?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})})]}),s.jsx(k,{...x("platformContent.headline"),placeholder:"Write a compelling headline that grabs attention...",className:"text-lg font-semibold","data-testid":"input-headline"}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Main headline for your article"}),s.jsxs("span",{className:f("headline",o.length,r.headline).colorClass,children:[o.length,"/",r.headline]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Subtitle"}),n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n("subtitle"),disabled:e==null?void 0:e("subtitle"),className:"h-6 px-2 text-xs","data-testid":"button-generate-subtitle",children:e!=null&&e("subtitle")?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})})]}),s.jsx(k,{...x("platformContent.subtitle"),placeholder:"Supporting subtitle that adds context...","data-testid":"input-subtitle"}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Supporting subtitle"}
11),s.jsxs("span",{className:f("subtitle",H.length,r.subtitle).colorClass,children:[H.length,"/",r.subtitle]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Introduction"}),n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n("introduction"),disabled:e==null?void 0:e("introduction"),className:"h-6 px-2 text-xs","data-testid":"button-generate-introduction",children:e!=null&&e("introduction")?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})})]}),s.jsx(P,{...x("platformContent.introduction"),placeholder:"Write an engaging introduction that hooks readers...",className:"min-h-[100px]","data-testid":"textarea-introduction"}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Opening paragraph"}),s.jsxs("span",{className:f("introduction",T.length,r.introduction).colorClass,children:[T.length,"/",r.introduction]})]})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Body Sections"}),s.jsxs(l,{size:"sm",variant:"outline",onClick:ys,className:"h-7 px-3 text-xs","data-testid":"button-add-section",children:[s.jsx(Us,{className:"w-3 h-3 mr-1"}),"Add Section"]})]}),w.map((t,a)=>s.jsxs("div",{className:"space-y-3 p-4 border border-gray-200 dark:border-gray-700 rounded-lg",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs(i,{className:"text-sm font-medium",children:["Section ",a+1]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n(`bodySection_${a}`),disabled:e==null?void 0:e(`bodySection_${a}`),className:"h-6 px-2 text-xs","data-testid":`button-generate-body-section-${a}`,children:e!=null&&e(`bodySection_${a}`)?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})}),w.length>1&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>fs(a),className:"h-6 px-2 text-xs text-red-500 hover:text-red-700","data-testid":`button-remove-section-${a}`,children:s.jsx(Ws,{className:"w-3 h-3"})})]})]}),s.jsx(P,{value:t,onChange:j=>bs(a,j.target.value),placeholder:`Write content for section ${a+1}...`,className:"min-h-[150px]","data-testid":`textarea-body-section-${a}`}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Body content section"}),s.jsxs("span",{className:f(`bodySection_${a}`,t.length,r.bodySection).colorClass,children:[t.length,"/",r.bodySection]})]})]},a))]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Conclusion"}),n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n("conclusion"),disabled:e==null?void 0:e("conclusion"),className:"h-6 px-2 text-xs","data-testid":"button-generate-conclusion",children:e!=null&&e("conclusion")?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})})]}),s.jsx(P,{...x("platformContent.conclusion"),placeholder:"Write a strong conclusion with clear next steps...",className:"min-h-[80px]","data-testid":"textarea-conclusion"}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Closing thoughts and call-to-action"}),s.jsxs("span",{className:f("conclusion",W.length,r.conclusion).colorClass,children:[W.length,"/",r.conclusion]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Author Bio"}),n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n("authorBio"),disabled:e==null?void 0:e("authorBio"),className:"h-6 px-2 text-xs","data-testid":"button-generate-author-bio",children:e!=null&&e("authorBio")?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})})]}),s.jsx(P,{...x("platformContent.authorBio"),placeholder:"Brief author biography and credentials...",className:"min-h-[60
11px]","data-testid":"textarea-author-bio"}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Author background and expertise"}),s.jsxs("span",{className:f("authorBio",q.length,r.authorBio).colorClass,children:[q.length,"/",r.authorBio]})]})]})]}),s.jsxs($,{value:"seo",className:"space-y-6 mt-6",children:[s.jsx(m,{className:"bg-gradient-to-r from-green-50 to-blue-50 dark:from-green-900/20 dark:to-blue-900/20",children:s.jsxs(d,{className:"pt-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold",children:"SEO Score"}),s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Content optimization analysis"})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-3xl font-bold text-green-600",children:B}),s.jsx("div",{className:"text-sm text-gray-500",children:"out of 100"})]})]}),s.jsx(R,{value:B,className:"mb-4"}),s.jsx("div",{className:"grid grid-cols-2 gap-4",children:Ns.map((t,a)=>s.jsxs("div",{className:"flex items-center space-x-2",children:[t.status==="good"?s.jsx(vs,{className:"w-4 h-4 text-green-500"}):s.jsx(gs,{className:"w-4 h-4 text-orange-500"}),s.jsx("span",{className:"text-sm",children:t.message})]},a))})]})}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Target Keywords"}),n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n("keywords"),disabled:e==null?void 0:e("keywords"),className:"h-6 px-2 text-xs","data-testid":"button-generate-keywords",children:e!=null&&e("keywords")?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})})]}),s.jsx(k,{...x("platformContent.keywords"),placeholder:"Enter target keywords separated by commas...","data-testid":"input-keywords"}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Primary and secondary keywords"}),s.jsxs("span",{className:f("keywords",S.length,r.keywords).colorClass,children:[S.length,"/",r.keywords]})]}),S&&s.jsx("div",{className:"flex flex-wrap gap-2",children:S.split(",").map((t,a)=>s.jsxs(b,{variant:"secondary",className:"text-xs",children:[s.jsx(Ls,{className:"w-3 h-3 mr-1"}),t.trim()]},a))})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(i,{className:"text-sm font-medium",children:"Meta Description"}),n&&s.jsx(l,{size:"sm",variant:"ghost",onClick:()=>n("metaDescription"),disabled:e==null?void 0:e("metaDescription"),className:"h-6 px-2 text-xs","data-testid":"button-generate-meta-description",children:e!=null&&e("metaDescription")?s.jsx(v,{className:"w-3 h-3 animate-spin"}):s.jsx(g,{className:"w-3 h-3"})})]}),s.jsx(P,{...x("platformContent.metaDescription"),placeholder:"Write a compelling meta description for search results...",className:"min-h-[80px]","data-testid":"textarea-meta-description"}),s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-gray-500",children:"Search engine description"}),s.jsxs("span",{className:f("metaDescription",C.length,r.metaDescription).colorClass,children:[C.length,"/",r.metaDescription]})]})]}),(o||C)&&s.jsxs(m,{className:"border-blue-200 dark:border-blue-800",children:[s.jsx(u,{children:s.jsxs(N,{className:"text-sm flex items-center",children:[s.jsx(ss,{className:"w-4 h-4 mr-2"}),"Search Engine Preview"]})}),s.jsx(d,{children:s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"text-blue-600 dark:text-blue-400 text-lg font-medium underline cursor-pointer",children:o||"Your Article Headline"}),s.jsxs("div",{className:"text-green-600 dark:text-green-400 text-sm",children:[(h==null?void 0:h.website)||"yourbusiness.com"," ⺠articles ⺠",o.toLowerCase().replace(/\s+/g,"-")]}),s.jsx("div",{className:"text-gray-700 dark:text-gray-300 text-sm",children:C||"Meta description will appear here in search results..."})]})})]})]}),s.jsxs($,{value:"publish",className:"space-y-6 mt-6",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(i,{className:"text-sm font-medium",children:"Publication Platform"}),s.jsxs(M,{value:ds,onValueChange:t=>y("platformContent.publicationPlatform",t),children:[s.jsx(z,{"data-testid":"select-publication-platform",children:s.jsx(_,{})}),s.jsx(E,{children:Object.entries(us).map(([t,a])=>s.jsx(p,{value:t,children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:a.name}),s.jsxs("div",{className:"text-xs text-gray-500",children:["Reach: ",a.reach]})]}),s.jsx(b,{variant:"outline",className:"text-xs",children:a.cost})]})},t))})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx(i,{className:"text-sm font-medium",children:"Publishing Schedule"}),s.jsxs(M,{value:V,onValueChange:t=>y("platformContent.publishSchedule",t),children:[s.jsx(z,{"data-testid":"select-publish-schedule",children:s.jsx(_,{})}),s.jsxs(E,{children:[s.jsx(p,{value:"immediate",children:"Publish Immediately"}),s.jsx(p,{value:"scheduled",children:"Schedule for Later"}),s.jsx(p,{value:"draft",children:"Save as Draft"}),s.jsx(p,{value:"review",children:"Send for Review"})]})]})]}),V==="scheduled"&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(i,{className:"text-sm font-medium",children:"Publish Date & Time"}),s.jsxs(ws,{children:[s.jsx(Cs,{asChild:!0,children:s.jsxs(l,{variant:"outline",className:"w-full justify-start text-left font-normal","data-testid":"button-select-publish-date",children:[s.jsx(I,{className:"mr-2 h-4 w-4"}),O?Hs(O,"PPP p"):"Select date and time"]})}),s.jsx(Ss,{className:"w-auto p-0",align:"start",children:s.jsx(_s,{mode:"single",selected:O,onSelect:is,initialFocus:!0})})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(i,{className:"text-sm font-medium",children:"Category"}),s.jsx(k,{...x("platformContent.category"),placeholder:"e.g., Marketing, Technology...","data-testid":"input-category"})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx(i,{className:"text-sm font-medium",children:"Tags"}),s.jsx(k,{...x("platformContent.tags"),placeholder:"Comma-separated tags...","data-testid":"input-tags"})]})]}),s.jsxs(m,{children:[s.jsx(u,{children:s.jsxs(N,{className:"text-sm flex items-center",children:[s.jsx($s,{className:"w-4 h-4 mr-2"}),"Promotion Settings"]})}),s.jsxs(d,{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Social Media Promotion"}),s.jsx("div",{className:"text-sm text-gray-500",children:"Auto-share to social platforms"})]}),s.jsx(ts,{checked:xs,onCheckedChange:t=>y("platformContent.socialPromotion",t),"data-testid":"switch-social-promotion"})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Email Newsletter"}),s.jsx("div",{className:"text-sm text-gray-500",children:"Include in next newsletter"})]}),s.jsx(ts,{checked:hs,onCheckedChange:t=>y("platformContent.emailPromotion",t),"data-testid":"switch-email-promotion"})]})]})]})]}),s.jsxs($,{value:"analytics",className:"space-y-6 mt-6",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[s.jsxs(m,{children:[s.jsx(u,{children:s.jsxs(N,{className:"text-sm flex items-center",children:[s.jsx(as,{className:"w-4 h-4 mr-2"}),"Performance Metrics"]})}),s.jsxs(d,{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Page Views"}),s.jsx("span",{className:"font-semibold",children:"1,234"})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Unique Visitors"}),s.jsx("span",{className:"font-semibold",children:"987"})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Avg. Reading Time"}),s.jsx("span",{className:"font-semibold",children:"3:45"})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Bounce Rate"}),s.jsx("span",{className:"font-semibold",children:"32%"})]})]})]}),s.jsxs(m,{children:[s.jsx(u,{children:s.jsxs(N,{className:"text-sm flex items-center",children:[s.jsx(ks,{className:"w-4 h-4 mr-2"}),"Engagement"]})}),s.jsxs(d,{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Social Shares"}),s.jsx("span",{className:"font-semibold",children:"156"})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Comments"}),s.jsx("span",{className:"font-semibold",children:"23"})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Email Signups"}),s.jsx("span",{className:"font-semibold",children:"45"})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm text-gray-600",children:"Conversion Rate"}),s.jsx("span",{className:"font-semibold",children:"4.5%"})]})]})]})]}),s.jsxs(m,{children:[s.jsx(u,{children:s.jsxs(N,{className:"text-sm flex items-center",children:[s.jsx(I,{className:"w-4 h-4 mr-2"}),"Content Calendar"]})}),s.jsx(d,{children:s.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400 py-8",children:[s.jsx(I,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),s.jsx("p",{children:"Content calendar integration will show upcoming publications and scheduled posts"})]})})]})]})]})})]})}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs(m,{children:[s.jsx(u,{children:s.jsxs(N,{className:"text-sm flex items-center",children:[s.jsx(cs,{className:"w-4 h-4 mr-2"}),"Article Preview"]})}),s.jsxs(d,{className:"space-y-4",children:[s.jsx("div",{className:"aspect-video bg-gray-100 dark:bg-gray-800 rounded-lg flex items-center justify-center",children:s.jsx(Rs,{className:"w-8 h-8 text-gray-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-sm mb-2",children:o||"Your Article Title"}),s.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 line-clamp-3",children:T||"Your article introduction will appear here..."})]}),s.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[s.jsxs("span",{children:["By ",ps]}),s.jsxs("span",{children:[Q()," min read"]})]})]})]}),s.jsxs(m,{children:[s.jsx(u,{children:s.jsxs(N,{className:"text-sm flex items-center",children:[s.jsx(Ps,{className:"w-4 h-4 mr-2"}),"Content Insights"]})}),s.jsxs(d,{className:"space-y-3",children:[s.jsxs("div",{className:"text-xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{children:"Readability Score"}),s.jsx(b,{variant:"secondary",className:"text-xs",children:"Good"})]}),s.jsx(R,{value:78,className:"h-2"})]}),s.jsxs("div",{className:"text-xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{children:"SEO Optimization"}),s.jsxs(b,{variant:"secondary",className:"text-xs",children:[B,"%"]})]}),s.jsx(R,{value:B,className:"h-2"})]}),s.jsxs("div",{className:"text-xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{children:"Engagement Potential"}),s.jsx(b,{variant:"secondary",className:"text-xs",children:"High"})]}),s.jsx(R,{value:85,className:"h-2"})]})]})]}),s.jsxs(m,{children:[s.jsx(u,{children:s.jsx(N,{className:"text-sm",children:"Qu
11ick Actions"})}),s.jsxs(d,{className:"space-y-2",children:[s.jsxs(l,{size:"sm",variant:"outline",className:"w-full justify-start","data-testid":"button-preview-article",children:[s.jsx(cs,{className:"w-4 h-4 mr-2"}),"Preview Article"]}),s.jsxs(l,{size:"sm",variant:"outline",className:"w-full justify-start","data-testid":"button-duplicate-article",children:[s.jsx(Os,{className:"w-4 h-4 mr-2"}),"Duplicate Article"]}),s.jsxs(l,{size:"sm",variant:"outline",className:"w-full justify-start","data-testid":"button-export-article",children:[s.jsx(Bs,{className:"w-4 h-4 mr-2"}),"Export Article"]}),s.jsxs(l,{size:"sm",variant:"outline",className:"w-full justify-start","data-testid":"button-archive-article",children:[s.jsx(Ts,{className:"w-4 h-4 mr-2"}),"Archive Article"]})]})]})]})]})]})}export{ue as ArticlesMockup};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.