1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9503],{54953:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-writer",function(){return n(29608)}])},21706:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var i=n(85893),a=n(67294),s=n(98694);let o=a.forwardRef(function(e,t){let{className:n,type:a,...o}=e;return(0,i.jsx)("input",{type:a,className:(0,s.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t,...o})});o.displayName="Input"},66953:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var i=n(85893),a=n(67294),s=n(49102);let o=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,i.jsx)(s.f,{ref:t,className:n,...a})});o.displayName=s.f.displayName},29979:function(e,t,n){"use strict";n.d(t,{B:function(){return l}});var i=n(85893),a=n(50607),s=n(67294);let{signIn:o}=n(33299),{useRouter:r}=n(11163),l=e=>{let{onClose:t}=e,[n,l]=(0,s.useState)(!1),d=r(),c=()=>{l(!0);let e=d.asPath;o("google",{callbackUrl:e})};return(0,i.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},children:(0,i.jsxs)(a.E.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},style:{backgroundColor:"white",padding:"2rem",borderRadius:"0.5rem",maxWidth:"400px",width:"90%",textAlign:"center"},children:[(0,i.jsx)("h2",{style:{marginBottom:"1rem"},children:"Sign in to use this tool for free"}),(0,i.jsx)("p",{style:{marginBottom:"1rem"},children:"Unlock the power of AI Tools"}),(0,i.jsx)(a.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},disabled:n,onClick:c,style:{width:"100%",padding:"0.5rem 1rem",backgroundColor:"#4F46E5",color:"white",border:"none",borderRadius:"0.25rem",cursor:"pointer",marginBottom:"1rem"},children:n?(0,i.jsxs)("div",{className:"flex gap-3 items-center justify-center",children:["Signing in",(0,i.jsx)("div",{className:"w-6 h-6 border-t-2 border-white rounded-full animate-spin"})]}):"Sign in with Google"})]})})}},37813:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(85893);n(67294);var a=n(71095);function s(e){let{value:t,onChange:n,label:s="Change AI model",className:o=""}=e,r=[{value:"gpt-4o",name:"ChatGPT-4o",icon:"/images/models/chatgpt-icon.png"},{value:"gpt-4o-mini",name:"ChatGPT-4o Mini",icon:"/images/models/chatgpt-icon.png"},{value:"claude-3-opus",name:"Claude 3 Opus",icon:"/images/models/claude-ai-icon.png"},{value:"claude-3-sonnet",name:"Claude 3.5 Sonnet",icon:"/images/models/claude-ai-icon.png"},{value:"llama-3",name:"Llama 3",icon:"/images/models/meta-icon.png"},{value:"llama-3-pro",name:"Llama 3.1 (Pro)",icon:"/images/models/meta-icon.png"},{value:"perplexity-ai",name:"Perplexity AI",icon:"/images/models/perplexity-ai-icon.png"},{value:"mistral-large",name:"Mistral Large",icon:"/images/models/mistral-ai-icon.png"},{value:"gemini-1.5-pro",name:"Gemini 1.5 Pro",icon:"/images/models/google-gemini-icon.png"}];return(0,i.jsxs)(a.Ph,{onValueChange:n,value:t,className:"max-w-lg",children:[(0,i.jsx)(a.i4,{className:`h-8 text-sm bg-white border-gray-300 max-w-xs !py-2 ${o}`,children:(0,i.jsx)(a.ki,{placeholder:s,children:(()=>{let e=r.find(e=>e.value===t);return e?(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("img",{src:e.icon,className:"size-4",alt:""}),(0,i.jsx)("span",{className:"truncate text-sm",children:e.name})]}):s})()})}),(0,i.jsx)(a.Bw,{className:"bg-white max-w-sm",children:r.map(e=>(0,i.jsxs)(a.Ql,{value:e.value,className:"flex gap-2 justify-start items-start",children:[(0,i.jsx)("img",{src:e.icon,className:"size-5 mr-2",alt:""})," ",e.name]},e.value))})]})}},71095:function(e,t,n){"use strict";n.d(t,{Bw:function(){return h},Ph:function(){return c},Ql:function(){return x},i4:function(){return m},ki:function(){return u}});var i=n(85893),a=n(67294),s=n(79009),o=n(3424),r=n(2112),l=n(34001),d=n(98694);let c=s.fC;s.ZA;let u=s.B4,m=a.forwardRef(function(e,t){let{className:n,children:a,...r}=e;return(0,i.jsxs)(s.xz,{ref:t,className:(0,d.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 ",n),...r,style:{border:"1px solid #d1d5db"},children:[a,(0,i.jsx)(s.JO,{asChild:!0,children:(0,i.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=s.xz.displayName;let p=a.forwardRef(function(e,t){let{className:n,...a}=e;return(0,i.jsx)(s.u_,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",n),...a,children:(0,i.jsx)(r.Z,{className:"h-4 w-4"})})});p.displayName=s.u_.displayName;let f=a.forwardRef(function(e,t){let{className:n,...a}=e;return(0,i.jsx)(s.$G,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",n),...a,children:(0,i.jsx)(o.Z,{className:"h-4 w-4"})})});f.displayName=s.$G.displayName;let h=a.forwardRef(function(e,t){let{className:n,children:a,position:o="popper",...r}=e;return(0,i.jsx)(s.h_,{children:(0,i.jsxs)(s.VY,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...r,children:[(0,i.jsx)(p,{}),(0,i.jsx)(s.l_,{className:(0,d.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,i.jsx)(f,{})]})})});h.displayName=s.VY.displayName;let g=a.forwardRef(function(e,t){let{className:n,...a}=e;return(0,i.jsx)(s.__,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...a})});g.displayName=s.__.displayName;let x=a.forwardRef(function(e,t){let{className:n,children:a,...o}=e;return(0,i.jsxs)(s.ck,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(s.wU,{children:(0,i.jsx)(l.Z,{className:"h-4 w-4"})})}),(0,i.jsx)(s.eT,{children:a})]})});x.displayName=s.ck.displayName;let b=a.forwardRef(function(e,t){let{className:n,...a}=e;return(0,i.jsx)(s.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",n),...a})});b.displayName=s.Z0.displayName},4289:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var i=n(85893),a=n(67294),s=n(68482),o=n(98694);let r=a.forwardRef(function(e,t){let{className:n,...a}=e;return(0,i.jsxs)(s.fC,{ref:t,className:(0,o.cn)("relative flex w-full touch-none select-none items-center bg-gray-300 rounded-full",n),...a,children:[(0,i.jsx)(s.fQ,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,i.jsx)(s.e6,{className:"absolute h-full "})}),(0,i.jsx)(s.bU,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors bg-indigo-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})});r.displayName=s.fC.displayName},14055:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var i=n(85893),a=n(67294),s=n(98694);let o=a.forwardRef(function(e,t){let{className:n,...a}=e;return(0,i.jsx)("textarea",{className:(0,s.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t,...a})});o.displayName="Textarea"},29608:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var i=n(85893),a=n(36657),s=n(9008),o=n.n(s),r=n(67294),l=n(50607),d=n(34464),c=n(89583),u=n(33299),m=n(71095),p=n(14055),f=n(37370),h=n(78936);n(29979);var g=n(11163);n(21706);var x=n(4289);n(66953);var b=n(87066),w=n(37813);let y={title:"Free AI Writer Online - No Sign Up, Unlimited ",introContent:{title:"Free AI Writer",description:"Create high-quality content for any purpose in seconds",mainDescription:"Our Free AI Writer helps you create engaging, original content for blogs, essays, articles, emails, social media posts, and more. Simply describe what you need, select your preferences, and let AI do the writing for you."},faqs:[{question:"What can I use this AI writer for?",answer:"You can use our AI writer for virtually any writing task, including blog posts, essays, articles, product descriptions, emails, social media captions, website copy, creative stories, marketing content, and more. It's versatile enough to adapt to any topic or format you need."},{question:"How detailed should my writing prompt be?",answer:"The more specific and detailed your prompt is, the better the results will be. Include information about the topic, desired structure, key points to cover, target audience, and any specific requirements. For example, instead of 'Write about dogs,' try 'Write a comprehensive guide to first-time dog ownership, covering costs, training basics, and essential supplies for young professionals living in apartments.'"},{question:"Which tone should I select for my content?",answer:"Choose a tone that matches your brand voice and audience expectations. Professional works well for business content, informative for educational material, conversational for blogs and s
1ocial media, persuasive for marketing copy, creative for storytelling, and technical for specialized industry content. Experiment with different tones to see what resonates best with your audience."},{question:"How do I determine the right word count?",answer:"Consider your content's purpose and platform. Blog posts typically perform well at 1,000-1,500 words, social media captions at 70-150 words, emails at 300-500 words, and comprehensive articles at 1,500+ words. Choose a word count that allows enough space to cover your topic thoroughly while keeping your audience engaged throughout."},{question:"Is the AI-generated content original?",answer:"Yes, our AI writer creates original content based on your prompt. However, it draws on its training data to formulate responses, so while the specific combination of words is original, the information and ideas may be similar to existing content elsewhere. We recommend reviewing the generated content, adding your unique insights, and checking it with a plagiarism tool for critical applications."},{question:"Can I edit the generated content?",answer:"Absolutely! Consider the AI-generated content as a strong first draft. We recommend reviewing it, making edits for accuracy, adding your personal insights or examples, and adjusting the tone or structure as needed to perfectly match your requirements and style preferences."}],howToUseSteps:[{title:"Step 1: Describe What You Need Written",description:"Enter a detailed description of what you want the AI to write, including the topic, purpose, key points to cover, and any specific instructions."},{title:"Step 2: Select Your Preferred Tone",description:"Choose the writing tone that best matches your intended audience and purpose, from professional to creative to persuasive."},{title:"Step 3: Set Your Desired Word Count",description:"Use the slider to select approximately how many words you want in your generated content."},{title:"Step 4: Generate Your Content",description:"Click 'Generate Content' and wait briefly while our AI creates your custom written piece based on your specifications."},{title:"Step 5: Review and Use Your Content",description:"Copy the generated content, make any desired edits or additions, and use it for your intended purpose."}],proTips:["Be as specific as possible in your writing prompt for more targeted results","Include your target audience information for better tone matching","Mention specific sections or subtopics you want covered","Try generating multiple versions with different tones to find what works best","Always review AI-generated content for accuracy before publishing","Use the generated content as a foundation and add your unique insights","For longer pieces, generate content in sections to maintain focus and structure"]},v=[{value:"professional",label:"Professional & Formal"},{value:"conversational",label:"Conversational & Friendly"},{value:"persuasive",label:"Persuasive & Compelling"},{value:"informative",label:"Informative & Educational"},{value:"creative",label:"Creative & Engaging"},{value:"technical",label:"Technical & Precise"},{value:"humorous",label:"Humorous & Light-hearted"}];function j(){let{data:e,status:t}=(0,u.useSession)(),[n,s]=(0,r.useState)(!1),[j,N]=(0,r.useState)(!1),[C,k]=(0,r.useState)(""),[S,I]=(0,r.useState)("gpt-4o"),[A,T]=(0,r.useState)(!1),[E,_]=(0,r.useState)(null),[P,q]=(0,r.useState)(""),[R,W]=(0,r.useState)("professional"),[U,F]=(0,r.useState)(500),[Z,B]=(0,r.useState)(null),[G,H]=(0,r.useState)(!0),[Y,z]=(0,r.useState)(null),D=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=async()=>{D.current&&D.current.focus(),H(!0);try{let e=await b.Z.get("https://pmdw9gqd5at4.whatsthebigdata.com/wp-json/ai-tools/v2/tools/free-ai-writer");B(e.data),z(null)}catch(e){console.error("Error fetching tool data:",e),z("Failed to load tool data"),B(y)}finally{H(!1)}};e()},[]);let O=(null==Z?void 0:Z.introContent)||y.introContent,L=(null==Z?void 0:Z.faqs)||y.faqs,M=(null==Z?void 0:Z.howToUseSteps)||y.howToUseSteps,V=(null==Z?void 0:Z.proTips)||y.proTips,$=(0,g.useRouter)(),Q=(null==O?void 0:O.title)||"Free AI Writer";(0,r.useEffect)(()=>{"unauthenticated"===t&&s(!0)},[t]);let X=async e=>{if(e.preventDefault(),!P.trim()){_("Please describe what you would like to write");return}N(!0),_(null);try{let e=await b.Z.post("/api/writer-ai",{writingPrompt:P,writingTone:R,wordCount:U,model:S});k(e.data.content)}catch(e){var t,n;console.error("Error generating content:",e),_((null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.details)||e.message||"Failed to generate content. Please try again.")}finally{N(!1)}},J=()=>{C&&navigator.clipboard.writeText(C)},K=()=>
1{if(C){let e=document.createElement("a"),t=new Blob([C],{type:"text/plain"});e.href=URL.createObjectURL(t),e.download="ai-generated-content.md",document.body.appendChild(e),e.click()}},ee=()=>{k("")};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:Q}),(0,i.jsx)("link",{rel:"canonical",href:`https://whatsthebigdata.com${$.asPath.split("?")[0]}`}),(0,i.jsx)("meta",{name:"description",content:(null==O?void 0:O.description)||"Create high-quality content for any purpose in seconds"})]}),(0,i.jsxs)(a.Z,{children:[(0,i.jsxs)("div",{className:"max-w-5xl mx-auto",children:[(0,i.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-lg mb-8",children:[(0,i.jsx)("div",{className:"mb-8 border-b-2 border-indigo-100",children:(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("h1",{className:"display-3 mg-bottom-0",children:Q}),(0,i.jsx)("p",{className:"paragraph-large mg-top-16px",children:(null==O?void 0:O.description)||"Create high-quality content for any purpose in seconds"})]})}),(0,i.jsxs)("form",{onSubmit:X,className:"space-y-6",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"font-semibold text-indigo-700",children:"What would you like to write about?"}),(0,i.jsx)(p.g,{placeholder:"Describe what you need written in detail: the topic, purpose, key points to cover, target audience, and any specific requirements...",className:"mt-1",rows:5,value:P,onChange:e=>q(e.target.value),ref:D})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"font-semibold text-indigo-700",children:"Writing Tone:"}),(0,i.jsxs)(m.Ph,{onValueChange:W,value:R,children:[(0,i.jsx)(m.i4,{className:"mt-1",children:(0,i.jsx)(m.ki,{placeholder:"Select tone"})}),(0,i.jsx)(m.Bw,{className:"bg-white",children:v.map(e=>(0,i.jsx)(m.Ql,{value:e.value,children:e.label},e.value))})]})]}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)("div",{className:"flex justify-between",children:(0,i.jsxs)("label",{className:"font-semibold text-indigo-700",children:["Word Count: ",U>=1e3?`${(U/1e3).toFixed(1)}k words`:`${U} words`]})}),(0,i.jsx)(x.i,{value:[U],onValueChange:e=>F(e[0]),min:100,max:2e3,step:100,className:"mt-1 bg-gray-300 rounded-full "}),(0,i.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,i.jsx)("span",{children:"Short (100)"}),(0,i.jsx)("span",{children:"Medium (1000)"}),(0,i.jsx)("span",{children:"Long (2000)"})]})]}),A&&(0,i.jsx)("div",{className:"space-y-6",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"font-semibold text-indigo-700",children:"AI Model:"}),(0,i.jsx)(w.Z,{value:S,onChange:I,className:"mt-1 max-w-xs"})]})}),(0,i.jsx)("div",{className:"flex justify-between flew-wrap md:flex-row flex-col gap-4",children:(0,i.jsx)("button",{type:"button",onClick:()=>T(!A),className:"text-indigo-600 font-medium",children:A?"Hide Advanced Options":"Show Advanced Options"})}),(0,i.jsx)(l.E.button,{whileHover:{scale:1.02},whileTap:{scale:.98},type:"submit",className:"w-full bg-gradient-to-r from-indigo-600 to-purple-600 text-white py-3 rounded-lg font-semibold",disabled:j,children:j?"Generating Content...":"Generate Content"})]})]}),C&&(0,i.jsx)(l.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,i.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-lg",children:[(0,i.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,i.jsx)("p",{className:"text-2xl font-bold text-indigo-800 border-b-2 border-indigo-100 pb-2",children:"Generated Content"}),(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsx)(l.E.button,{whileHover:{scale:1.1},onClick:J,title:"Copy content",children:(0,i.jsx)(c.esY,{className:"text-indigo-600"})}),(0,i.jsx)(l.E.button,{whileHover:{scale:1.1},onClick:K,title:"Download content",children:(0,i.jsx)(c.aBF,{className:"text-green-600"})}),(0,i.jsx)(l.E.button,{whileHover:{scale:1.1},onClick:ee,title:"Clear content",children:(0,i.jsx)(c.Xm5,{className:"text-red-600"})})]})]}),(0,i.jsx)("div",{className:"bg-gray-50 p-4 rounded-md border border-gray-200 prose max-w-none",children:(0,i.jsx)(d.UG,{children:C})})]})},"content")]}),G?(0,i.jsx)("div",{className:"flex justify-center p-10",children:(0,i.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-indigo-500"})}):(0,i.jsx)(h.Z,{title:Q,introContent:O,faqs:L,howToUseSteps:M,proTips:V}),(0,i.jsx)(f.Z,{})]})]})}},49102:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});var i=n(67294),a=n(75320),s=n(85893),o=i.forwardRef((e,t)=>(0,s.jsx)(a.WV.label,{...e,ref:t,onMouseDown:t=>{let n=t.target;n.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var r=o}},function(e){e.O(0,[5445,3996,5675,2498,8764,7066,607,6501,1789,4464,8482,3034,6657,6947,9774,2888,179],function(){return e(e.s=54953)}),_N_E=e.O()}]);
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.