import{i as p,j as t,d as l,b as m}from"./index-cd3b2402.js";import{O as d}from"./overview-182fc2c6.js";import"./preload-helper-a4192956.js";/* empty css                */import"./screen-loader-a32f4219.js";import"./utils-7247f908.js";import"./clsx-0839fdbe.js";import"./sanitize-html-45143966.js";import"./purify.es-1510d87d.js";import"./ComposedChart-19803db0.js";import"./createLucideIcon-d625dbb4.js";import"./file-text-456bae35.js";const e=window.llmagnetDashboardData;p({analyticsData:e==null?void 0:e.analyticsData,planData:e==null?void 0:e.planData,isPremium:e==null?void 0:e.isPremium,settings:e==null?void 0:e.settings});l("Overview");function L(){const r=window.llmagnetDashboardData,c=async()=>{var n,i,o;if(!r)return{success:!1,message:"No data available"};try{const s=new FormData;s.append("action","llmagnet_ai_seo_generate_now"),s.append("nonce",r.nonce);const a=await(await fetch(r.ajaxUrl,{method:"POST",body:s,credentials:"same-origin"})).json();return m(a.success,"overview",(n=a.data)==null?void 0:n.message),{success:a.success,message:((i=a.data)==null?void 0:i.message)||"Unknown error",timestamp:(o=a.data)==null?void 0:o.timestamp}}catch(s){return console.error("Error generating LLMS.txt:",s),m(!1,"overview","Network error"),{success:!1,message:"Error generating LLMS.txt. Please check server permissions."}}};return r?t.jsx("div",{className:"llms-txt-react-app",children:t.jsx("div",{className:"wrap",children:t.jsx(d,{data:r,onGenerateNow:c})})}):t.jsx("div",{className:"p-4 text-red-600",children:"Overview data not found."})}export{L as OverviewApp};
