import{j as e,i as p,d as y}from"./index-cd3b2402.js";import{L as s}from"./label-ab9b1c08.js";import"./index-da476f39.js";import"./index-e3b5c256.js";import"./clsx-0839fdbe.js";import"./utils-7247f908.js";function j({wordpressVersion:t,pluginVersion:d,rootPath:x,llmsTxtExists:r,llmsTxtSize:i,postsCount:o,markdownCount:c,imageCount:n,isWritable:m,lastGenerated:l}){return e.jsx("div",{className:"wrap",style:{maxWidth:"1200px",margin:"auto",paddingTop:"1.5rem",paddingLeft:"1.5rem",paddingRight:"1.5rem"},children:e.jsxs("div",{className:"bg-white border border-gray-200 shadow-sm p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Settings "}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-gray-100",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"WordPress Version"}),e.jsx("span",{className:"text-sm text-gray-600",children:t})]}),e.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-gray-100",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"Plugin Version"}),e.jsx("span",{className:"text-sm text-gray-600",children:d})]}),e.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-gray-100",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"Root Path"}),e.jsx("code",{className:"text-xs text-gray-600 bg-gray-100 px-2 py-1 rounded",children:x})]}),e.jsx("div",{className:"mt-6 pt-4 ",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center py-1",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"LLMS.txt Status"}),e.jsx("span",{className:`text-sm font-semibold ${r?"text-green-600":"text-red-600"}`,children:r?"Active":"Not Generated"})]}),i&&e.jsxs("div",{className:"flex justify-between items-center py-1",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"LLMS.txt Size"}),e.jsx("span",{className:"text-sm text-gray-600",children:i})]}),e.jsxs("div",{className:"flex justify-between items-center py-1",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"Posts Available to Export"}),e.jsx("span",{className:"text-sm text-blue-600 font-semibold",children:o})]}),e.jsxs("div",{className:"flex justify-between items-center py-1",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"Generated Markdown Files"}),e.jsx("span",{className:"text-sm text-purple-600 font-semibold",children:c})]}),e.jsxs("div",{className:"flex justify-between items-center py-1",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"Indexed Images"}),e.jsx("span",{className:`text-sm font-semibold ${n>0?"text-green-600":"text-gray-400"}`,children:n})]}),e.jsxs("div",{className:"flex justify-between items-center py-1",children:[e.jsx(s,{className:"text-sm font-medium text-gray-700",children:"Directory Status"}),e.jsx("span",{className:`text-sm font-semibold ${m?"text-green-600":"text-red-600"}`,children:m?"Writable":"Not Writable"})]})]})}),l&&e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsxs("div",{className:"text-sm text-gray-600",children:[e.jsx("strong",{children:"Last Generated:"})," ",l]})})]})]})})}const a=window.llmagnetSystemInfoData;p({analyticsData:a==null?void 0:a.analyticsData,planData:a==null?void 0:a.planData});y("System Information");function w(){const t=window.llmagnetSystemInfoData;return t?e.jsx("div",{className:"llms-system-information-react-app",style:{position:"relative",backgroundColor:"#F0F0F1"},children:e.jsx(j,{wordpressVersion:t.wordpressVersion,pluginVersion:t.pluginVersion,rootPath:t.rootPath,llmsTxtExists:t.llmsTxtExists,llmsTxtSize:t.llmsTxtSize,postsCount:t.postsCount,markdownCount:t.markdownCount,imageCount:t.imageCount,isWritable:t.isWritable,lastGenerated:t.lastGenerated})}):e.jsx("div",{className:"p-4 text-red-600",children:"System information data not found."})}export{w as SystemInformationApp};
