1import{a as w,j as e,r as s}from"./react-vendor-Cw2rj2c7.js";import{C as u,cG as f,B as j,M as i,cH as A,bE as C,be as F,cs as O,b as d}from"./main-BUfwPRuc.js";import{T as q}from"./textarea-CCnckY2U.js";import{S as L,a as W,b as k,c as E,d as h}from"./select-p45ap2h6.js";import{T as M}from"./ToolPageLayout-DysiitNr.js";import{u as U,T as y,a as Y}from"./ToolOutput-BL1mr-ck.js";import{R as B,a as D}from"./RemainingUses-BSuwuhBI.js";import"./after-paint-DlOAbvpA.js";import"./index-BdQq_4o_.js";import"./useMutation-CAKW8DkJ.js";const G=[{question:"What is an AI paragraph rewriter?",answer:"An AI paragraph rewriter is a tool that uses artificial intelligence to rephrase entire paragraphs while preserving the original meaning. It improves readability, adjusts tone, and creates unique content variations."},{question:"Is this paragraph rewriter free to use?",answer:"Yes! Our AI paragraph rewriter is completely free. You get 5 uses per day without an account, or 15 uses per day with a free account. Paid plans offer unlimited access."},{question:"How is this different from a sentence rewriter?",answer:"A paragraph rewriter handles entire paragraphs as a single unit, maintaining context, flow, and coherence across multiple sentences. It understands the relationship between sentences and keeps the paragraph structure logical."},{question:"What writing styles are available?",answer:"We offer three writing styles: Concise (shorter, more direct), Detailed (expanded with more information), and Simplified (easier to understand, plain language). Choose based on your audience and content goals."},{question:"Will the rewritten content be plagiarism-free?",answer:"Yes! Our AI generates unique variations of your text. The rewritten content is original and safe to use. However, we recommend running important content through a plagiarism checker as a best practice."},{question:"What is the maximum paragraph length?",answer:"You can rewrite paragraphs up to 2,000 characters. For longer content, break it into smaller paragraphs and rewrite each separately."}],H=[{name:"Enter your paragraph",text:"Paste or type the paragraph you want to rewrite (20-2000 characters)."},{name:"Choose a style",text:"Select concise, detailed, or simplified based on your needs."},{name:"Generate rewrite",text:"Click Rewrite to generate an improved version of your paragraph."},{name:"Compare and copy",text:"Compare word counts and copy the rewritten paragraph."}];function z(){const[a,n]=s.useState(""),[o,m]=s.useState(void 0),[r,b]=s.useState(null),[N,v]=s.useState(void 0),[_,S]=s.useState(void 0),[R,P]=s.useState(void 0),[I,x]=s.useState(!1),[p,T]=s.useState(null),l=Y("ai-paragraph-rewriter"),g=async()=>{if(!a.trim()){d.error("Please enter a paragraph to rewrite");return}if(a.length<20){d.error("Paragraph must be at least 20 characters");return}if(a.length>2e3){d.error("Paragraph must be less than 2000 characters");return}try{const t={paragraph:a.trim(),style:o},c=await l.mutateAsync(t);b(c.output),v(c.result_id),S(c.share_url),P(c.remaining_uses)}catch(t){t.isRateLimitError?(T({userType:t.user_type,resetAt:t.reset_at}),x(!0)):d.error(t.message||"Failed to rewrite paragraph. Please try again.")}};return e.jsxs(e.Fragment,{children:[e.jsxs(u,{className:"p-6 border-2 border-primary/20 mb-8",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx(i,{className:"mb-4 px-4 py-1.5 text-sm bg-green-500/10 text-green-600 border-green-500/20",children:"FREE TOOL"}),e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"AI Paragraph Rewriter"}),e.jsx("p",{className:"text-muted-foreground",children:"Rewrite paragraphs with improved clarity and your chosen style"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Your Paragraph"}),e.jsx(q,{placeholder:"Paste your paragraph here to rewrite it with improved clarity and flow...",value:a,onChange:t=>n(t.target.value),className:"min-h-[150px] resize-none",maxLength:2e3}),e.jsxs("div",{className:"flex justify-between mt-1",children:[e.jsx("span",{className:"text-xs text-muted-foreground",children:"Min 20 characters"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[a.length,"/2000 characters"]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Writing Style (Optional)"}),e.jsxs(L,{value:o,onValueChange:m,children:[e.jsx(W,{className:"w-full sm:w-48",children:e.jsx(k,{placeholder:"Select style..."})}),e.jsxs(E,{children:[e.jsx(h,{value:"concise",children:"Concise - Shorter, direct"}),e.jsx(h,{value:"detailed",children:"Detailed - More depth"}),e.jsx(h,{value:"simplified",children:"Simplified - Plain language"})]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 pt-4",children:[e.jsx(B,{}),e.jsx(j,{size:"lg",className:"w-full sm:w-auto gap-2",onClick:g,disabled:l.isPending||!a.trim(),children:l.isPending?e.jsxs(e.Fragment,{children:[e.jsx(f,{className:"w-4 h-4 animate-spin"}),"Rewriting..."]}):e.jsxs(e.Fragment,{children:[e.jsx(A,{className:"w-4 h-4"}),"Rewrite Paragraph"]})})]})]}),e.jsxs("div",{className:"mt-6 pt-4 border-t flex flex-wrap items-center justify-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(C,{className:"text-green-500 w-4 h-4"}),e.jsx("span",{children:"No signup required"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(F,{className:"text-green-500 w-4 h-4"}),e.jsx("span",{children:"100% free"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(O,{className:"text-green-500 w-4 h-4"}),e.jsx("span",{children:"Instant results"})]})]})]}),r&&e.jsxs(y,{toolName:"ai-paragraph-rewriter",resultId:N,shareUrl:_,remainingUses:R,onRegenerate:g,isRegenerating:l.isPending,children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-muted/30 border",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Original"}),e.jsxs(i,{variant:"outline",className:"text-xs",children:[r.word_count_original," words"]})]}),e.jsx("p",{className:"text-sm leading-relaxed",children:r.original})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-primary/5 border border-primary/20",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("p",{className:"text-xs font-medium text-primary",children:"Rewritten"}),e.jsxs(i,{variant:"outline",className:"text-xs bg-primary/10 text-primary border-primary/20",children:[r.word_count_rewritten," words"]})]}),e.jsx("p",{className:"text-sm leading-relaxed",children:r.rewritten})]})]}),e.jsx("div",{className:"mt-4 p-3 rounded-lg bg-muted/50 text-center",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Word count changed from ",e.jsx("span",{className:"font-medium",children:r.word_count_original})," to"," ",e.jsx("span",{className:"font-medium",children:r.word_count_rewritten})," words",r.word_count_rewritten<r.word_count_original&&e.jsxs("span",{className:"text-green-600",children:[" (",Math.round((1-r.word_count_rewritten/r.word_count_original)*100),"% more concise)"]}),r.word_count_rewritten>r.word_count_original&&e.jsxs("span",{className:"text-blue-600",children:[" (",Math.round((r.word_count_rewritten/r.word_count_original-1)*100),"% more detailed)"]})]})})]}),I&&p&&e.jsx(D,{userType:p.userType,resetAt:p.resetAt,onClose:()=>x(!1)})]})}function V(){const{resultId:a}=w(),{data:n,isLoading:o,error:m}=U(a);if(o)return e.jsxs(u,{className:"p-8 text-center",children:[e.jsx(f,{className:"w-8 h-8 animate-spin mx-auto text-primary mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"Loading result..."})]});if(m||!n)return e.jsxs(u,{className:"p-8 text-center",children:[e.jsx("p",{className:"text-lg font-semibold mb-2",children:"Result not found"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"This result may have expired or doesn't exist."}),e.jsx(j,{onClick:()=>window.location.href="/tools/ai-paragraph-rewriter",children:"Try the tool"})]});const r=n.output;return e.jsx(y,{toolName:"ai-paragraph-rewriter",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-muted/30 border",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Original"}),e.jsxs(i,{variant:"outline",className:"text-xs",children:[r.word_count_original," words"]})]}),e.jsx("p",{className:"text-sm leading-relaxed",children:r.original})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-primary/5 border border-primary/20",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("p",{className:"text-xs font-medium text-primary",children:"Rewritten"}),e.jsxs(i,{variant:"outline",className:"text-xs bg-primary/10 text-primary border-primary/20",children:[r.word_count_rewritten," words"]})]}),e.jsx("p",{className:"text-sm leading-relaxed",children:r.rewritten})]})]})})}function se(){const{resultId:a}=w();return e.jsx(M,{title:"AI Paragraph Rewriter",metaTitle:"Free AI Paragraph Rewriter - Rewrite Paragraphs Online | SEOPro AI",metaDescription:"Free AI paragraph rewriter tool. Rewrite paragraphs with improved clarity and flow. Choose concise, detailed, or simplified styles. No signup required.",canonicalPath:a?`/tools/ai-paragraph-rewriter/${a}`:"/tools/ai-paragraph-rewriter",keywords:"ai paragraph rewriter, paragraph rewriter, rewrite paragraph, rephrase paragraph, paragraph paraphraser, free paragraph rewriter, online paragraph rewriter",h1:"Free AI Paragraph Rewriter",subtitle:"Transform your paragraphs with improved clarity and flow. Choose your style and get professional rewrites powered by AI.",schemaName:"SEOPro AI Paragraph Rewriter",schemaDescription:"Free AI-
1powered paragraph rewriter with multiple style options for content optimization.",howToSteps:H,faqs:G,ctaType:"content-planner",currentTool:"ai-paragraph-rewriter",children:a?e.jsx(V,{}):e.jsx(z,{})})}export{se as default};
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.