PageSourceSearch

https://app.easyempire.ai/_next/static/chunks/7329.13bf50d9a2c506e6.js

js easyempire.ai collected 2026-10-05 15:21:54 UTC 7,412 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7329],{27329:function(e,t,a){a.r(t);var s=a(27573),r=a(7653),l=a(36673),n=a(43029),c=a(75721),o=a(74737);t.default=e=>{let{onGenerateStrategy:t,onClose:a}=e,[d,i]=(0,r.useState)(!1),[u,g]=(0,r.useState)(1),[x,m]=(0,r.useState)({businessType:"",targetAudience:"",contentTypes:[],contentTopics:[],toneStyle:"professional",goals:[],callToAction:""}),b=e=>{let{name:t,value:a}=e.target;m(e=>({...e,[t]:a}))},y=(e,t)=>{m(a=>{let s=a[e];return s.includes(t)?{...a,[e]:s.filter(e=>e!==t)}:{...a,[e]:[...s,t]}})},h=()=>{switch(u){case 1:return""!==x.businessType.trim()&&""!==x.targetAudience.trim();case 2:return x.contentTypes.length>0;case 3:default:return!0;case 4:return""!==x.toneStyle&&x.goals.length>0}};return(0,s.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 max-w-2xl mx-auto",children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsxs)("h2",{className:"text-xl font-semibold text-gray-800 dark:text-white flex items-center",children:[(0,s.jsx)(l.Z,{className:"mr-2"}),"Content Strategy Generator"]}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mt-1",children:"Create a custom content strategy for your business"}),(0,s.jsx)("div",{className:"w-full bg-gray-200 dark:bg-gray-700 h-2 rounded-full mt-4",children:(0,s.jsx)("div",{className:"bg-blue-500 h-2 rounded-full transition-all duration-300 ease-in-out",style:{width:"".concat(u/4*100,"%")}})}),(0,s.jsxs)("div",{className:"flex justify-between text-xs text-gray-500 dark:text-gray-400 mt-1",children:[(0,s.jsx)("span",{children:"Business Info"}),(0,s.jsx)("span",{children:"Content Types"}),(0,s.jsx)("span",{children:"Topics"}),(0,s.jsx)("span",{children:"Style & Goals"})]})]}),1===u&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"What type of business do you have?"}),(0,s.jsx)("input",{type:"text",name:"businessType",value:x.businessType,onChange:b,placeholder:"e.g., E-commerce store, Marketing agency, SaaS company",className:"w-full p-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white",required:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Describe your target audience"}),(0,s.jsx)("textarea",{name:"targetAudience",value:x.targetAudience,onChange:b,placeholder:"e.g., Small business owners ages 35-50, tech-savvy professionals, etc.",className:"w-full p-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white",rows:3,required:!0})]})]}),2===u&&(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"What types of content do you want to create?"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2",children:["Blog Posts","Social Media","Email Newsletters","Video Scripts","Product Descriptions","Ad Copy"].map(e=>(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("input",{type:"checkbox",id:"type-".concat(e),checked:x.contentTypes.includes(e),onChange:()=>y("contentTypes",e),className:"mr-2"}),(0,s.jsx)("label",{htmlFor:"type-".concat(e),className:"text-sm text-gray-700 dark:text-gray-300",children:e})]},e))})]})}),3===u&&(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"What topics would you like to cover? (One per line)"}),(0,s.jsx)("textarea",{value:x.contentTopics.join("\n"),onChange:e=>{let t=e.target.value.split("\n").map(e=>e.trim()).filter(Boolean);m(e=>({...e,contentTopics:t}))},placeholder:"e.g. Industry trends Tips for beginners Product showcases",className:"w-full p-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white",rows:5}),(0,s.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"Leave blank for AI-recommended topics based on your business type"})]})}),4===u&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Content tone/style"}),(0,s.jsx)("select",{name:"toneStyle",value:x.toneStyle,onChange:b,className:"w-full p-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white",children:["professional","casual","humorous","inspirational","educational","conversational"].map(e=>(0,s.jsx)("option",{value:e,children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Content goals"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2",children:["Increase Brand Awareness","Generate Leads","Build Authority","Drive Sales","Improve Customer Retention","Educate Audience"].map(e=>(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("input",{type:"checkbox",id:"goal-".concat(e),checked:x.goals.includes(e),onChange:()=>y("goals",e),className:"mr-2"}),(0,s.jsx)("label",{htmlFor:"goal-".concat(e),className:"text-sm text-gray-700 dark:text-gray-300",children:e})]},e))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Typical call to action"}),(0,s.jsx)("input",{type:"text",name:"callToAction",value:x.callToAction,onChange:b,placeholder:"e.g., Sign up for a free trial, Schedule a consultation",className:"w-full p-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"})]})]}),(0,s.jsxs)("div",{className:"flex justify-between mt-6",children:[u>1?(0,s.jsx)("button",{onClick:()=>g(e=>e-1),className:"px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-200 rounded-md hover:bg-gray-300 dark:hover:bg-gray-600",children:"Back"}):(0,s.jsx)("button",{onClick:a,className:"px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-200 rounded-md hover:bg-gray-300 dark:hover:bg-gray-600",children:"Cancel"}),u<4?(0,s.jsxs)("button",{onClick:()=>g(e=>e+1),disabled:!h(),className:"px-4 py-2 flex items-center rounded-md ".concat(h()?"bg-blue-600 hover:bg-blue-700 text-white":"bg-blue-300 cursor-not-allowed text-white"),children:["Next ",(0,s.jsx)(n.Z,{className:"ml-1 h-4 w-4"})]}):(0,s.jsx)("button",{onClick:()=>{i(!0),setTimeout(()=>{t({...x,contentTopics:x.contentTopics.length>0?x.contentTopics:["Industry trends","How-to guides","Customer success stories"]}),i(!1)},1500)},disabled:d||!h(),className:"px-4 py-2 flex items-center rounded-md ".concat(d||!h()?"bg-blue-300 cursor-not-allowed text-white":"bg-blue-600 hover:bg-blue-700 text-white"),children:d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Generating..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{className:"mr-2 h-4 w-4"}),"Generate Strategy"]}
1)})]})]})}}}]);

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.