1import{r as D,u as X,a as h,j as e,c as g,L as l,B as c,S as N,C as n,b as d,A as Z,d as m,e as i,f as t,Z as J,G as M,g as F,h as u,U as y,i as E,M as v,k as _,l as T,m as ee,n as se,o as I,p as j,q as ae,s as U,t as te,v as re,w as le,F as ne,x as ie,E as ce,R as de,y as me,z as oe,D as xe,P as Y,H as he,I as K,J as ge}from"./index-CuSEeJFb.js";import{P as pe}from"./progress-B2eMqtVV.js";import{T as je}from"./trophy-Cek-Y59u.js";import{R as z,T as O,C as fe}from"./generateCategoricalChart-lXkql-gd.js";import{A as ue,a as P}from"./AreaChart-BE8A1YFk.js";import{C as Ne,X as ye,Y as ve}from"./YAxis-edJjQlh1.js";import{P as we,a as be}from"./PieChart-BXVWJE0w.js";import{V as ke}from"./video-AMZtj4XD.js";import{T as Ce}from"./timer-ZazLa3Az.js";import{I as Ae}from"./image-fQC3p4ps.js";import{R as De}from"./rocket-DokzAs0d.js";import"./throttle-Bgu_Mp4s.js";import"./debounce-BH2V1_7f.js";import"./tiny-invariant-BaFNuDhB.js";import"./string-CFFdVFMV.js";const Ie=[{title:"Generate Content",description:"Create AI-powered marketing content",icon:N,href:"/content-studio",color:"from-purple-500 to-purple-600",bgGradient:"from-purple-50 to-purple-100 dark:from-purple-950 dark:to-purple-900"},{title:"Manage Campaigns",description:"View and organize your campaigns",icon:v,href:"/campaigns",color:"from-orange-500 to-orange-600",bgGradient:"from-orange-50 to-orange-100 dark:from-orange-950 dar
1k:to-orange-900"},{title:"Design Assets",description:"Create visual content and graphics",icon:Y,href:"/design-hub",color:"from-blue-500 to-blue-600",bgGradient:"from-blue-50 to-blue-100 dark:from-blue-950 dark:to-blue-900"},{title:"Create Avatar",description:"Define your ideal customer profile",icon:y,href:"/client-avatars",color:"from-green-500 to-green-600",bgGradient:"from-green-50 to-green-100 dark:from-green-950 dark:to-green-900"},{title:"Plan Budget",description:"Calculate and optimize your budget",icon:K,href:"/budget-calculator",color:"from-indigo-500 to-indigo-600",bgGradient:"from-indigo-50 to-indigo-100 dark:from-indigo-950 dark:to-indigo-900"},{title:"Schedule Content",description:"Manage your content calendar",icon:ge,href:"/advanced-calendar",color:"from-pink-500 to-pink-600",bgGradient:"from-pink-50 to-pink-100 dark:from-pink-950 dark:to-pink-900"}],Pe=[{day:"Mon",content:12,campaigns:2,designs:5},{day:"Tue",content:15,campaigns:3,designs:8},{day:"Wed",content:18,campaigns:2,designs:6},{day:"Thu",content:22,campaigns:4,designs:10},{day:"Fri",content:25,campaigns:5,designs:12},{day:"Sat",content:8,campaigns:1,designs:3},{day:"Sun",content:10,campaigns:2,designs:4}],S=[{name:"Social Media",value:35,color:"#FF6B35"},{name:"Email",value:25,color:"#4ECDC4"},{name:"Blog",value:20,color:"#45B7D1"},{name:"Video",value:15,color:"#96CEB4"},{name:"Other",value:5,color:"#FECA57"}];function _e(){var R,G,L;const[Se,w]=D.useState(""),[$,b]=D.useState(""),{subscription:s,loading:Be}=X(),{data:o,isLoading:Re}=h({queryKey:["/api/business-profile"],retry:!1}),{data:k=[],isLoading:Ge}=h({queryKey:["/api/client-avatars"],retry:!1}),{data:C=[],isLoading:Le}=h({queryKey:["/api/generated-offers"],retry:!1}),{data:f=[],isLoading:Me}=h({queryKey:["/api/campaigns"],retry:!1});h({queryKey:["/api/workflows"],retry:!1}),h({queryKey:["/api/marketing-calendar/upcoming"],retry:!1});const{data:q=[],isLoading:Fe}=h({queryKey:["/api/content-library/recent"],retry:!1});D.useEffect(()=>{const a=new Date().getHours();a<12?(w("morning"),b("Good morning")):a<17?(w("afternoon"),b("Good afternoon")):(w("evening"),b("Good evening"))},[]);const H=q.length||45,V=f.filter(a=>a.status==="active").length||3,W=28,Q=4.2,x={profile:o!=null&&o.companyName?100:0,avatars:k.length>0?100:0,offers:C.length>0?100:0,campaigns:f.length>0?100:0},A=Object.values(x).reduce((a,r)=>a+r,0)/4,B=(()=>{const a=[];return o!=null&&o.companyName||a.push({title:"Complete Your Business Profile",description:"Set up your company information to unlock AI features",action:"Complete Profile",href:"/business-profile",priority:"high",icon:F}),k.length===0&&a.push({title:"Create Your First Avatar",description:"Define your ideal customer to target your marketing",action:"Create Avatar",href:"/client-avatars",priority:"high",icon:y}),C.length===0&&a.push({title:"Generate Compelling Offers",description:"Use AI to create irresistible offers for your audience",action:"Generate Offers",href:"/offer-creator",priority:"medium",icon:E}),f.length===0&&a.push({title:"Launch Your First Campaign",description:"Put your marketing into action with a campaign",action:"View Campaigns",href:"/campaigns",priority:"medium",icon:v}),k.length>0&&C.length>0&&f.length===0&&a.push({title:"Ready to Launch!",description:"You have avatars and offers - time to create a campaign",action:"Go to Campaigns",href:"/campaigns",priority:"high",icon:De}),a})();return e.jsxs("div",{className:"max-w-7xl mx-auto space-y-6",children:[e.jsxs("div",{className:g("relative overflow-hidden rounded-2xl p-8 text-white",(s==null?void 0:s.plan)==="admin"?"bg-gradient-to-r from-red-600 via-red-500 to-orange-500":(s==null?void 0:s.plan)==="enterprise"?"bg-gradient-to-r from-gray-900 via-yellow-600 to-gray-900":(s==null?void 0:s.plan)==="agency"?"bg-gradient-to-r from-purple-600 via-purple-500 to-pink-500":(s==null?void 0:s.plan)==="professional"?"bg-gradient-to-r from-blue-600 via-blue-500 to-indigo-500":"bg-gradient-to-r from-orange-500 via-orange-400 to-yellow-400"),children:[e.jsxs("div",{className:"relative z-10",children:[e.jsxs("h1",{className:"text-4xl font-bold mb-2",children:[$,o!=null&&o.companyName?`, ${o.companyName}`:"","! ",(s==null?void 0:s.plan)==="admin"?"ð§":(s==null?void 0:s.plan)==="enterprise"?"â¡":(s==null?void 0:s.plan)==="agency"?"ð":(s==null?void 0:s.plan)==="professional"?"ð":"ð"]}),e.jsx("p",{className:"text-xl opacity-90 mb-4",children:(s==null?void 0:s.plan)==="admin"?"System Administrator - Full platform control and oversight":(s==null?void 0:s.plan)==="enterprise"?"Enterprise-grade marketing platform at your command":(s==null?void 0:s.plan)==="agency"?"Your agency command center with unlimited possibilities":(s==null?void 0:s.plan)==="professional"?"Your professional marketing suite is ready":"Your marketing command center is ready"}),e.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-lg px-4 py-2",children:[e.jsx("div",{className:"text-sm opacity-90",children:"Active Campaigns"}),e.jsx("div",{className:"text-2xl font-bold",children:V})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-lg px-4 py-2",children:[e.jsx("div",{className:"text-sm opacity-90",children:"Content Created"}),e.jsx("div",{className:"text-2xl font-bold",children:H})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-lg px-4 py-2",children:[e.jsx("div",{className:"text-sm opacity-90",children:"Engagement Rate"}),e.jsxs("div",{className:"text-2xl font-bold",children:[Q,"%"]})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-lg px-4 py-2",children:[e.jsx("div",{className:"text-sm opacity-90",children:"Tasks Completed"}),e.jsx("div",{className:"text-2xl font-bold",children:W})]})]}),e.jsx(l,{href:"/campaigns",children:e.jsxs(c,{size:"lg",className:"bg-white text-orange-600 hover:bg-gray-100 font-bold shadow-lg",children:[e.jsx(N,{className:"w-5 h-5 mr-2"}),"View Your Campaigns"]})})]}),e.jsx("div",{className:"absolute top-0 right-0 -mt-10 -mr-10 w-40 h-40 bg-white/10 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 -mb-10 -ml-10 w-60 h-60 bg-white/10 rounded-full blur-3xl"})]}),s&&e.jsxs(n,{className:g("border-2 bg-gradient-to-r",s.plan==="admin"?"border-red-400 from-red-900 to-red-800 dark:from-red-950 dark:to-red-900":s.plan==="enterprise"?"border-yellow-400 from-gray-900 to-gray-800 dark:from-gray-950 dark:to-gray-900":s.plan==="professional"?"border-blue-300 from-blue-50 to-indigo-50 dark:from-blue-950/30 dark:to-indigo-950/30":s.plan==="agency"?"border-purple-300 from-purple-50 to-pink-50 dark:from-purple-950/30 dark:to-pink-950/30":"border-orange-200 from-orange-50 to-yellow-50 dark:from-orange-950/30 dark:to-yellow-950/30"),children:[e.jsx(d,{className:"pb-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Z,{className:g("w-6 h-6",s.plan==="admin"?"text-red-400":s.plan==="enterprise"?"text-yellow-500":s.plan==="professional"?"text-blue-500":s.plan==="agency"?"text-purple-500":"text-orange-500")}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(m,{className:g("text-lg",(s.plan==="enterprise"||s.plan==="admin")&&"text-white"),children:[((R=s.plan)==null?void 0:R.charAt(0).toUpperCase())+((G=s.plan)==null?void 0:G.slice(1))," Plan"]}),s.plan==="admin"&&e.jsx("span",{className:"px-2 py-0.5 bg-gradient-to-r from-red-500 to-red-600 text-white text-xs font-bold rounded animate-pulse",children:"ADMIN"}),s.plan==="enterprise"&&e.jsx("span",{className:"px-2 py-0.5 bg-gradient-to-r from-yellow-400 to-yellow-600 text-black text-xs font-bold rounded",children:"ENTERPRISE"}),s.plan==="professional"&&e.jsx("span",{className:"px-2 py-0.5 bg-blue-500 text-white text-xs font-bold rounded",children:"PRO"}),s.plan==="agency"&&e.jsx("span",{className:"px-2 py-0.5 bg-purple-500 text-white text-xs font-bold rounded",children:"AGENCY"})]}),e.jsxs("div",{className:"mt-1",children:[e.jsxs("p",{className:g("text-sm mb-2",s.plan==="enterprise"||s.plan==="admin"?"text-gray-300":"text-muted-foreground"),children:["AI Credits: ",s.plan==="admin"?"Unlimited":`${s.creditsUsed.toLocaleStr
1ing()} / ${((L=s.creditsMonthly)==null?void 0:L.toLocaleString())||"20,000"}`]}),s.plan!=="admin"&&e.jsx("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2",children:e.jsx("div",{className:g("h-2 rounded-full transition-all",s.plan==="enterprise"?"bg-gradient-to-r from-yellow-400 to-yellow-600":s.plan==="professional"?"bg-gradient-to-r from-blue-400 to-blue-600":s.plan==="agency"?"bg-gradient-to-r from-purple-400 to-purple-600":"bg-gradient-to-r from-orange-400 to-orange-600"),style:{width:`${Math.min(s.creditsUsed/(s.creditsMonthly||2e4)*100,100)}%`}})}),s.plan==="admin"&&e.jsx("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2",children:e.jsx("div",{className:"h-2 rounded-full bg-gradient-to-r from-red-400 to-red-600 w-full animate-pulse"})})]})]})]}),e.jsx(l,{href:"/account",children:e.jsx(c,{variant:"outline",size:"sm",children:"Manage Plan"})})]})}),e.jsxs(i,{children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[s.plan==="starter"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Unlimited campaigns"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Marketing calendar"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Advanced avatars"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Basic AI features"})]})]}),s.plan==="professional"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"75,000 AI credits"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Advanced AI analytics"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Design Hub access"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"A/B testing"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Up to 5 team members"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Campaign templates"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Custom workflows"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Performance analytics"})]})]}),s.plan==="agency"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"350,000 AI credits"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Multi-company management"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"White-label options"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"API access"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Up to 10 team members"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm",children:"Custom training"})]})]}),s.plan==="enterprise"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"1,000,000 AI credits"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Unlimited team members"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Enterprise security"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Dedicated support"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Custom integrations"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"SLA guarantee"})]})]}),s.plan==="admin"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Unlimited AI credits"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"System oversight"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"User management"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Platform configuration"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Database access"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{className:"text-sm text-white",children:"Full admin control"})]})]})]}),s.plan==="starter"&&e.jsx("div",{className:"mt-3 p-3 bg-orange-100 dar
1k:bg-orange-900/20 rounded-lg",children:e.jsx("p",{className:"text-sm text-orange-800 dark:text-orange-200",children:"ð Upgrade to Professional for advanced AI features, analytics, and more!"})}),s.plan==="professional"&&e.jsx("div",{className:"mt-3 p-3 bg-blue-100 dark:bg-blue-900/20 rounded-lg",children:e.jsx("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"â You're on Professional! Consider Agency plan for multi-company management."})})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsxs("h2",{className:"text-2xl font-bold flex items-center gap-2",children:[e.jsx(J,{className:"text-orange-500"}),"Quick Actions"]}),e.jsx(l,{href:"/marketing-coach",children:e.jsxs(c,{variant:"outline",size:"sm",children:[e.jsx(M,{className:"w-4 h-4 mr-2"}),"Marketing Coach"]})})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:Ie.map((a,r)=>{const p=a.icon;return e.jsx(l,{href:a.href,children:e.jsx(n,{className:`hover:shadow-xl transition-all cursor-pointer hover:scale-105 bg-gradient-to-br ${a.bgGradient} border-2 hover:border-orange-300`,children:e.jsxs(i,{className:"p-4 text-center",children:[e.jsx("div",{className:`mx-auto w-12 h-12 bg-gradient-to-br ${a.color} rounded-lg flex items-center justify-center mb-3 shadow-lg`,children:e.jsx(p,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"font-semibold text-sm mb-1",children:a.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a.description})]})})},r)})})]}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs(n,{children:[e.jsx(d,{children:e.jsxs(m,{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(je,{className:"text-yellow-500"}),"Setup Progress"]}),e.jsxs("span",{className:"text-2xl font-bold text-orange-500",children:[Math.round(A),"%"]})]})}),e.jsxs(i,{className:"space-y-4",children:[e.jsx(pe,{value:A,className:"h-3"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(F,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm",children:"Business Profile"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[x.profile===100?e.jsx(t,{className:"w-4 h-4 text-green-500"}):e.jsx(u,{className:"w-4 h-4 text-yellow-500"}),e.jsxs("span",{className:"text-sm font-medium",children:[x.profile,"%"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm",children:"Client Avatars"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[x.avatars===100?e.jsx(t,{className:"w-4 h-4 text-green-500"}):e.jsx(u,{className:"w-4 h-4 text-yellow-500"}),e.jsxs("span",{className:"text-sm font-medium",children:[x.avatars,"%"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(E,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm",children:"Marketing Offers"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[x.offers===100?e.jsx(t,{className:"w-4 h-4 text-green-500"}):e.jsx(u,{className:"w-4 h-4 text-yellow-500"}),e.jsxs("span",{className:"text-sm font-medium",children:[x.offers,"%"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(v,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm",children:"Campaigns"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[x.campaigns===100?e.jsx(t,{className:"w-4 h-4 text-green-500"}):e.jsx(u,{className:"w-4 h-4 text-yellow-500"}),e.jsxs("span",{className:"text-sm font-medium",children:[x.campaigns,"%"]})]})]})]}),A<100&&e.jsxs(_,{children:[e.jsx(T,{className:"h-4 w-4"}),e.jsx(ee,{children:"Complete your setup to unlock all features and maximize your marketing potential!"})]})]})]}),B.length>0&&e.jsxs(n,{children:[e.jsxs(d,{children:[e.jsxs(m,{className:"flex items-center gap-2",children:[e.jsx(se,{className:"text-purple-500"}),"AI Recommendations"]}),e.jsx(I,{children:"Personalized next steps for your success"})]}),e.jsx(i,{className:"space-y-3",children:B.slice(0,3).map((a,r)=>
1{const p=a.icon;return e.jsx("div",{className:"p-3 bg-muted rounded-lg",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:`p-2 rounded-lg ${a.priority==="high"?"bg-red-100 dark:bg-red-900":a.priority==="medium"?"bg-yellow-100 dark:bg-yellow-900":"bg-blue-100 dark:bg-blue-900"}`,children:e.jsx(p,{className:`w-4 h-4 ${a.priority==="high"?"text-red-600 dark:text-red-400":a.priority==="medium"?"text-yellow-600 dark:text-yellow-400":"text-blue-600 dark:text-blue-400"}`})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-medium text-sm mb-1",children:a.title}),e.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:a.description}),e.jsx(l,{href:a.href,children:e.jsxs(c,{size:"sm",variant:"outline",children:[a.action,e.jsx(j,{className:"w-3 h-3 ml-2"})]})})]})]})},r)})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(n,{children:[e.jsx(d,{children:e.jsxs(m,{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(ae,{className:"text-blue-500"}),"Weekly Activity"]}),e.jsx(U,{variant:"outline",children:"Last 7 days"})]})}),e.jsxs(i,{children:[e.jsx("div",{className:"h-64",children:e.jsx(z,{width:"100%",height:"100%",children:e.jsxs(ue,{data:Pe,children:[e.jsx(Ne,{strokeDasharray:"3 3"}),e.jsx(ye,{dataKey:"day"}),e.jsx(ve,{}),e.jsx(O,{}),e.jsx(P,{type:"monotone",dataKey:"content",stackId:"1",stroke:"#FF6B35",fill:"#FF6B35",fillOpacity:.6,name:"Content"}),e.jsx(P,{type:"monotone",dataKey:"campaigns",stackId:"1",stroke:"#4ECDC4",fill:"#4ECDC4",fillOpacity:.6,name:"Campaigns"}),e.jsx(P,{type:"monotone",dataKey:"designs",stackId:"1",stroke:"#45B7D1",fill:"#45B7D1",fillOpacity:.6,name:"Designs"})]})})}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 mt-4",children:[e.jsxs("div",{className:"text-center p-2 bg-orange-50 dark:bg-orange-950 rounded",children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600",children:"92"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Content Items"})]}),e.jsxs("div",{className:"text-center p-2 bg-teal-50 dark:bg-teal-950 rounded",children:[e.jsx("div",{className:"text-2xl font-bold text-teal-600",children:"19"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Campaigns"})]}),e.jsxs("div",{className:"text-center p-2 bg-blue-50 dark:bg-blue-950 rounded",children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600",children:"48"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Designs"})]})]})]})]}),e.jsxs(n,{children:[e.jsxs(d,{children:[e.jsxs(m,{className:"flex items-center gap-2",children:[e.jsx(te,{className:"text-green-500"}),"Content Distribution"]}),e.jsx(I,{children:"Where your content is being used"})]}),e.jsxs(i,{children:[e.jsx("div",{className:"h-48",children:e.jsx(z,{width:"100%",height:"100%",children:e.jsxs(we,{children:[e.jsx(be,{data:S,cx:"50%",cy:"50%",innerRadius:40,outerRadius:60,paddingAngle:5,dataKey:"value",children:S.map((a,r)=>e.jsx(fe,{fill:a.color},`cell-${r}`))}),e.jsx(O,{})]})})}),e.jsx("div",{className:"space-y-2 mt-4",children:S.map((a,r)=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:a.color}}),e.jsx("span",{className:"text-sm",children:a.name})]}),e.jsxs("span",{className:"text-sm font-medium",children:[a.value,"%"]})]},r))})]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(n,{children:[e.jsx(d,{children:e.jsxs(m,{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(re,{className:"text-orange-500"}),"Upcoming Tasks"]}),e.jsx(l,{href:"/advanced-calendar",children:e.jsxs(c,{variant:"ghost",size:"sm",children:["View All",e.jsx(le,{className:"w-4 h-4 ml-1"})]})})]})}),e.jsx(i,{children:e.jsx("div",{className:"space-y-3",children:[{title:"Social Media Post",time:"Today, 2:00 PM",type:"content",urgent:!0},{title:"Email Campaign",time:"Tomorrow, 10:00 AM",type:"campaign",urgent:!1},{title:"Blog Article Review",time:"Dec 28, 3:00 PM",type:"review",urgent:!1}
1,{title:"Video Content Upload",time:"Dec 29, 12:00 PM",type:"video",urgent:!1}].map((a,r)=>e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg hover:bg-muted/80 transition-colors",children:[e.jsxs("div",{className:`p-2 rounded ${a.urgent?"bg-red-100 dark:bg-red-900":"bg-blue-100 dark:bg-blue-900"}`,children:[a.type==="content"&&e.jsx(ne,{className:"w-4 h-4 text-blue-600 dark:text-blue-400"}),a.type==="campaign"&&e.jsx(ie,{className:"w-4 h-4 text-green-600 dark:text-green-400"}),a.type==="review"&&e.jsx(ce,{className:"w-4 h-4 text-purple-600 dark:text-purple-400"}),a.type==="video"&&e.jsx(ke,{className:"w-4 h-4 text-red-600 dark:text-red-400"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-medium text-sm",children:a.title}),e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[e.jsx(Ce,{className:"w-3 h-3"}),a.time]})]}),a.urgent&&e.jsx(U,{variant:"destructive",className:"text-xs",children:"Urgent"})]},r))})})]}),e.jsxs(n,{children:[e.jsxs(d,{children:[e.jsxs(m,{className:"flex items-center gap-2",children:[e.jsx(de,{className:"text-purple-500"}),"Recent Activity"]}),e.jsx(I,{children:"Your latest actions"})]}),e.jsx(i,{children:e.jsx("div",{className:"space-y-3",children:[{action:"Created new avatar",item:"Small Business Owner",time:"2 hours ago",icon:y,color:"text-blue-600"},{action:"Generated content",item:"Holiday Sale Email",time:"4 hours ago",icon:N,color:"text-purple-600"},{action:"Launched campaign",item:"Winter Promotion",time:"Yesterday",icon:v,color:"text-orange-600"},{action:"Designed graphic",item:"Instagram Story",time:"2 days ago",icon:Ae,color:"text-green-600"}].map((a,r)=>{const p=a.icon;return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(p,{className:`w-4 h-4 ${a.color}`}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("p",{className:"text-sm",children:[e.jsx("span",{className:"font-medium",children:a.action})," ",e.jsxs("span",{className:"text-muted-foreground",children:['"',a.item,'"']})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a.time})]})]},r)})})})]}),e.jsxs(n,{className:"bg-gradient-to-br from-purple-50 to-blue-50 dark:from-purple-950 dark:to-blue-950",children:[e.jsx(d,{children:e.jsxs(m,{className:"flex items-center gap-2",children:[e.jsx(me,{className:"text-purple-500"}),"Need Help?"]})}),e.jsxs(i,{className:"space-y-3",children:[e.jsx(l,{href:"/marketing-coach",children:e.jsxs(c,{className:"w-full justify-start",variant:"outline",children:[e.jsx(M,{className:"w-4 h-4 mr-2"}),"Marketing Coach"]})}),e.jsx(l,{href:"/help-wiki",children:e.jsxs(c,{className:"w-full justify-start",variant:"outline",children:[e.jsx(oe,{className:"w-4 h-4 mr-2"}),"Help & Wiki"]})}),e.jsx(l,{href:"/feature-suggestions",children:e.jsxs(c,{className:"w-full justify-start",variant:"outline",children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),"Suggest Features"]})})]})]})]})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx(xe,{className:"text-yellow-500"}),"Platform Features"]}),e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsxs(n,{className:"hover:shadow-lg transition-all",children:[e.jsx(d,{className:"pb-3",children:e.jsxs(m,{className:"text-lg flex items-center gap-2",children:[e.jsx(N,{className:"text-purple-500"}),"AI Content Studio"]})}),e.jsxs(i,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Generate marketing content with AI, manage your library, and create templates."}),e.jsx(l,{href:"/content-studio",children:e.jsxs(c,{size:"sm",className:"w-full",children:["Open Studio",e.jsx(j,{className:"w-4 h-4 ml-2"})]})})]})]}),e.jsxs(n,{className:"hover:shadow-lg transition-all",children:[e.jsx(d,{className:"pb-3",children:e.jsxs(m,{className:"text-lg flex items-center gap-2",children:[e.jsx(Y,{className:"text-blue-500"}),"Design Hub"]})}),e.jsxs(i,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Professional design tools, templates, and AI-powered image generation."}),e.jsx(l,{href:"/design-hub",children:e.jsxs(c,{size:"sm",className:"w-full",children:["Start Designing",e.jsx(j,{className:"w-4 h-4 ml-2"})]})})]})]}),e.jsxs(n,{className:"hover:shadow-lg transition-all",children:[e.jsx(d,{className:"pb-3",children:e.jsxs(m,{className:"text-lg flex items-center gap-2",children:[e.jsx(he,{className:"text-orange-500"}),"Campaign Builder"]})}),e.jsxs(i,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Create multi-channel campaigns with avatar targeting and workflow automation."}),e.jsx(l,{href:"/campaign-builder",children:e.jsxs(c,{size:"sm",className:"w-full",children:["Build Campaign",e.jsx(j,{className:"w-4 h-4 ml-2"})]})})]})]}),e.jsxs(n,{className:"hover:shadow-lg transition-all",children:[e.jsx(d,{className:"pb-3",children:e.jsxs(m,{className:"text-lg flex items-center gap-2",children:[e.jsx(K,{className:"text-green-500"}
1),"Budget Calculator"]})}),e.jsxs(i,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Plan budgets, allocate resources, and predict ROI with advanced analytics."}),e.jsx(l,{href:"/budget-calculator",children:e.jsxs(c,{size:"sm",className:"w-full",children:["Calculate Budget",e.jsx(j,{className:"w-4 h-4 ml-2"})]})})]})]})]})]})]})}export{_e 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.