import{j as e,r as y,i as Y,d as D,c as J}from"./index-cd3b2402.js";/* empty css                */function m({checked:l,onChange:v,disabled:a,id:g,"aria-label":c}){return e.jsxs("label",{className:"llm-uiverse-switch",children:[e.jsx("input",{id:g,type:"checkbox",role:"switch",checked:l,onChange:N=>{a||v(N.target.checked)},disabled:a,"aria-checked":l,"aria-label":c}),e.jsx("div",{className:"llm-uiverse-switch__slider",children:e.jsxs("div",{className:"llm-uiverse-switch__circle",children:[e.jsx("svg",{className:"cross",viewBox:"0 0 365.696 365.696",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:e.jsx("path",{fill:"currentColor",d:"M243.188 182.86 356.32 69.726c12.5-12.5 12.5-32.766 0-45.247L341.238 9.398c-12.504-12.503-32.77-12.503-45.25 0L182.86 122.528 69.727 9.374c-12.5-12.5-32.766-12.5-45.247 0L9.375 24.457c-12.5 12.504-12.5 32.77 0 45.25l113.152 113.152L9.398 295.99c-12.503 12.503-12.503 32.769 0 45.25L24.48 356.32c12.5 12.5 32.766 12.5 45.247 0l113.132-113.132L295.99 356.32c12.503 12.5 32.769 12.5 45.25 0l15.081-15.082c12.5-12.504 12.5-32.77 0-45.25zm0 0"})}),e.jsx("svg",{className:"checkmark",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:e.jsx("path",{fill:"currentColor",d:"M9.707 19.121a.997.997 0 0 1-1.414 0l-5.646-5.647a1.5 1.5 0 0 1 0-2.121l.707-.707a1.5 1.5 0 0 1 2.121 0L9 14.171l9.525-9.525a1.5 1.5 0 0 1 2.121 0l.707.707a1.5 1.5 0 0 1 0 2.121z"})})]})})]})}function K({settings:l,postTypes:v,planData:a,wooCommerceActive:g=!1,llmsFullInfo:c,robotsTxtStatus:N,onSettingsChange:_}){const W=a.plan_name==="free"&&!a.is_trial?l.post_types.filter(t=>t==="post"||t==="page"):l.post_types,h=a.plan_name!=="free"||a.is_trial,[r,b]=y.useState({post_types:W,full_content:l.full_content,days_to_include:l.days_to_include,delete_on_uninstall:l.delete_on_uninstall,include_images:l.include_images||!1,llms_txt_custom_intro:l.llms_txt_custom_intro||"",llms_txt_show_excerpts:l.llms_txt_show_excerpts!==!1,llms_txt_max_per_section:l.llms_txt_max_per_section||50,llms_txt_show_prices:l.llms_txt_show_prices!==!1,llms_txt_group_by_type:l.llms_txt_group_by_type!==!1,llms_txt_show_author:l.llms_txt_show_author!==!1,generate_full:l.generate_full!==!1,llms_full_max_posts:l.llms_full_max_posts||200}),w=N,[F,k]=y.useState(""),[U,C]=y.useState(""),[L,T]=y.useState(!0),[u,S]=y.useState(!1),P=async()=>{try{T(!0);const t=await fetch("/llms.txt?t="+Date.now());if(t.ok){const s=await t.text();k(s)}else k(R());const i=await fetch("/llms-full.txt?t="+Date.now());if(i.ok){const s=await i.text();C(s)}else C(B())}catch(t){console.error("Error fetching llms.txt:",t),k(R()),C(B())}finally{T(!1),S(!1)}};y.useEffect(()=>{P()},[]);const j=async()=>{try{S(!0);const t=window.llmagnetContentSettingsData||window.llmagnetDashboardData;if(t!=null&&t.ajaxUrl&&(t!=null&&t.nonce)){const i=new FormData;i.append("action","llmagnet_ai_seo_generate_now"),i.append("nonce",t.nonce),(await(await fetch(t.ajaxUrl,{method:"POST",body:i,credentials:"same-origin"})).json()).success&&await new Promise(o=>setTimeout(o,500))}await P()}catch(t){console.error("Error regenerating llms.txt:",t),S(!1)}},A=()=>{j()},R=()=>`# About Our Company

Company Name: TechFlow Solutions
Website: https://www.techflow.example.com
Industry: Software Development & Consulting
Founded: 2018
Location: Tel Aviv, Israel

## Company Overview

TechFlow Solutions is a leading software development company specializing in custom web applications, mobile apps, and cloud solutions. We help businesses transform their digital presence through innovative technology solutions.

## Our Services

### Web Development
We create responsive, scalable web applications using modern frameworks like React, Vue.js, and Next.js. Our team specializes in both front-end and back-end development.

### Mobile Development
Native and cross-platform mobile applications for iOS and Android. We use React Native, Flutter, and Swift/Kotlin to deliver high-performance mobile experiences.

### Cloud Solutions
AWS, Azure, and Google Cloud infrastructure setup and management. We handle everything from migration to ongoing DevOps support.`,B=()=>`# llms-full.txt

llms-full.txt has not been generated yet.

Enable "Generate llms-full.txt" in settings to create the full-content export file.`,z=async(t,i)=>{const s={...r,post_types:i?[...r.post_types,t]:r.post_types.filter(n=>n!==t)};b(s),_(s),setTimeout(()=>{j()},500)},x=async(t,i)=>{const s={...r,[t]:i};b(s),_(s),t!=="delete_on_uninstall"&&setTimeout(()=>{j()},500)},H=async(t,i)=>{const s={...r,[t]:i};b(s),_(s)},M=async(t,i)=>{const s={...r,[t]:i};b(s),_(s)},I=()=>{setTimeout(()=>{j()},300)},$=()=>{setTimeout(()=>{j()},300)},f=t=>t?t.split(/(\*\*[^*]+\*\*|\[[^\]]+\]\([^)]+\))/g).map((s,n)=>{if(!s)return null;if(s.startsWith("**")&&s.endsWith("**"))return e.jsx("strong",{className:"font-semibold text-slate-100",children:s.slice(2,-2)},n);const o=s.match(/^\[([^\]]+)\]\(([^)]+)\)$/);return o?e.jsx("a",{href:o[2],className:"text-sky-400 underline decoration-sky-500/50 underline-offset-2 hover:text-sky-300",target:"_blank",rel:"noopener noreferrer",children:o[1]},n):e.jsx("span",{children:s},n)}):" ",O=t=>{const i=t.split(`
`),s="font-mono text-[12px] leading-[1.55] tabular-nums";return e.jsx("div",{className:`${s} text-slate-300`,children:i.map((n,o)=>{const G=o+1,p=e.jsx("span",{className:"inline-flex min-h-[1.55em] min-w-[2.75rem] shrink-0 select-none items-start justify-end border-r border-slate-700/90 bg-[#0a0e14] py-0.5 pl-2 pr-3 font-mono text-[11px] text-slate-500 tabular-nums",children:G});if(n.trim()==="")return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsx("span",{className:"min-w-0 flex-1 py-0.5 pl-3 font-mono text-[12px] text-slate-600",children:" "})]},o);if(n.startsWith("#### "))return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsxs("span",{className:"min-w-0 flex-1 py-0.5 pl-3 font-mono text-[12px] font-medium text-violet-300",children:[e.jsx("span",{className:"text-slate-500",children:"#### "}),f(n.slice(5))]})]},o);if(n.startsWith("### "))return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsxs("span",{className:"min-w-0 flex-1 py-0.5 pl-3 font-mono text-[12px] font-medium text-emerald-300",children:[e.jsx("span",{className:"text-slate-500",children:"### "}),f(n.slice(4))]})]},o);if(n.startsWith("## "))return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsxs("span",{className:"min-w-0 flex-1 py-0.5 pl-3 font-mono text-[12px] font-medium text-sky-300",children:[e.jsx("span",{className:"text-slate-500",children:"## "}),f(n.slice(3))]})]},o);if(n.startsWith("# "))return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsxs("span",{className:"min-w-0 flex-1 py-0.5 pl-3 font-mono text-[12px] font-medium text-amber-300",children:[e.jsx("span",{className:"text-slate-500",children:"# "}),f(n.slice(2))]})]},o);if(/^---+$/.test(n.trim()))return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsx("span",{className:"min-w-0 flex-1 py-0.5 pl-3 font-mono text-[12px] text-slate-500",children:"---"})]},o);if(n.includes(": ")&&!n.trim().startsWith("#")){const E=n.indexOf(": "),X=n.slice(0,E),V=n.slice(E+2);return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsxs("span",{className:"min-w-0 flex-1 py-0.5 pl-3 font-mono text-[12px]",children:[e.jsx("span",{className:"text-cyan-300",children:f(X)}),e.jsx("span",{className:"text-slate-500",children:": "}),e.jsx("span",{className:"text-slate-300",children:f(V)})]})]},o)}return e.jsxs("div",{className:"flex hover:bg-white/[0.02]",children:[p,e.jsx("span",{className:"min-w-0 flex-1 break-words py-0.5 pl-3 font-mono text-[12px] text-slate-300",children:f(n)})]},o)})})};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:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white p-6",style:{boxShadow:"0px 5.4px 10.79px 0px rgba(0, 0, 0, 0.03)"},children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"LLMs.txt Manager"}),e.jsx("p",{className:"text-gray-500 text-sm mb-6",children:"Select content for llms.txt and Markdown exports."}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-4 text-sm text-gray-800",children:"Content types to include"}),e.jsx("div",{className:"space-y-1",children:v.map(t=>{const s=!(t.name==="post"||t.name==="page")&&a.plan_name==="free"&&!a.is_trial;return e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:t.label}),e.jsxs("div",{className:`relative flex items-center gap-2 ${s?"tooltip-trigger":""}`,children:[s&&e.jsx("span",{className:"text-xs py-0.5 px-1.5 bg-gradient-to-r from-purple-500 to-pink-500 text-white rounded-full",children:"PRO"}),e.jsx(m,{checked:r.post_types.includes(t.name),onChange:n=>{s||z(t.name,n)},disabled:s,"aria-label":`${t.label} in llms.txt`}),s&&e.jsx("div",{className:"premium-tooltip -translate-y-full right-0 top-0",children:"Premium feature - Upgrade to enable"})]})]},t.name)})})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-4 text-sm text-gray-800",children:"Content export options"}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:r.full_content?"FULL CONTENT":"EXCERPTS ONLY"}),e.jsx(m,{checked:r.full_content,onChange:t=>x("full_content",t),"aria-label":"Full content or excerpts only"})]}),e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"IMAGES"}),e.jsxs("div",{className:`relative flex items-center gap-2 ${a.plan_name==="free"&&!a.is_trial?"tooltip-trigger":""}`,children:[a.plan_name==="free"&&!a.is_trial&&e.jsx("span",{className:"text-xs py-0.5 px-1.5 bg-gradient-to-r from-purple-500 to-pink-500 text-white rounded-full",children:"PRO"}),e.jsx(m,{checked:r.include_images,onChange:t=>{(a.plan_name!=="free"||a.is_trial)&&x("include_images",t)},disabled:a.plan_name==="free"&&!a.is_trial,"aria-label":"Include images"}),a.plan_name==="free"&&!a.is_trial&&e.jsx("div",{className:"premium-tooltip -translate-y-full right-0 top-0",children:"Premium feature - Upgrade to enable"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-4 text-sm text-gray-800",children:"LLMs-full.txt (complete content)"}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"GENERATE LLMS-FULL.TXT"}),e.jsxs("div",{className:`relative flex items-center gap-2 ${h?"":"tooltip-trigger"}`,children:[!h&&e.jsx("span",{className:"text-xs py-0.5 px-1.5 bg-gradient-to-r from-purple-500 to-pink-500 text-white rounded-full",children:"PRO"}),e.jsx(m,{checked:r.generate_full,onChange:t=>{h&&x("generate_full",t)},disabled:!h,"aria-label":"Generate llms-full.txt"}),!h&&e.jsx("div",{className:"premium-tooltip -translate-y-full right-0 top-0",children:"Premium feature - Upgrade to enable"})]})]}),r.generate_full&&h&&e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"MAX POSTS"}),e.jsx("input",{type:"number",min:"1",max:"1000",value:r.llms_full_max_posts,onChange:t=>M("llms_full_max_posts",parseInt(t.target.value)||200),onBlur:()=>{setTimeout(()=>{j()},300)},className:"w-20 px-3 py-1.5 text-sm rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 text-center",style:{border:"1px solid #e5e7eb"}})]}),r.generate_full&&h&&c&&e.jsxs("div",{className:"py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"CURRENT FILE SIZE"}),e.jsx("span",{className:`text-sm font-medium ${c.warning?"text-amber-600":"text-gray-600"}`,children:c.exists?c.size_formatted:"Not generated yet"})]}),c.warning&&e.jsxs("p",{className:"text-xs text-amber-600 mt-1",children:["File is ",c.warning,"MB. Consider reducing max posts."]}),c.exists&&e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[c.post_count," posts included"]})]})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-4 text-sm text-gray-800",children:"LLMs.txt structure settings"}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("label",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide block mb-2",children:"CUSTOM INTRO TEXT"}),e.jsx("textarea",{value:r.llms_txt_custom_intro,onChange:t=>H("llms_txt_custom_intro",t.target.value),onBlur:I,placeholder:"Enter a custom description for your llms.txt header (leave empty to use site tagline)",className:"w-full px-3 py-2 text-sm rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 resize-none",style:{border:"1px solid #e5e7eb"},rows:3})]}),e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"GROUP BY CONTENT TYPE"}),e.jsx(m,{checked:r.llms_txt_group_by_type,onChange:t=>x("llms_txt_group_by_type",t),"aria-label":"Group by content type"})]}),e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"INCLUDE EXCERPTS"}),e.jsx(m,{checked:r.llms_txt_show_excerpts,onChange:t=>x("llms_txt_show_excerpts",t),"aria-label":"Include excerpts"})]}),e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"MAX POSTS PER SECTION"}),e.jsx("input",{type:"number",min:"1",max:"200",value:r.llms_txt_max_per_section,onChange:t=>M("llms_txt_max_per_section",parseInt(t.target.value)||50),onBlur:$,className:"w-20 px-3 py-1.5 text-sm rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 text-center",style:{border:"1px solid #e5e7eb"}})]}),g&&e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"SHOW PRODUCT PRICES"}),e.jsx(m,{checked:r.llms_txt_show_prices,onChange:t=>x("llms_txt_show_prices",t),"aria-label":"Show product prices"})]}),e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"SHOW ABOUT SECTION"}),e.jsx(m,{checked:r.llms_txt_show_author,onChange:t=>x("llms_txt_show_author",t),"aria-label":"Show about section"})]})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-4 text-sm text-gray-800",children:"Robots.txt integration"}),e.jsx("div",{className:"space-y-1",children:w&&e.jsxs("div",{className:"py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 uppercase tracking-wide",children:"STATUS"}),e.jsx("span",{className:`text-sm font-medium flex items-center gap-1.5 ${w.has_llms_reference?"text-green-600":"text-amber-600"}`,children:w.has_llms_reference?e.jsxs(e.Fragment,{children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),"robots.txt references llms.txt"]}):e.jsxs(e.Fragment,{children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),"Missing llms.txt reference"]})})]}),e.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Method: ",w.injection_method==="filter"?"WordPress filter (virtual)":w.injection_method==="file"?"Physical file":"Disabled",w.has_physical_file&&" — physical robots.txt detected"]})]})})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium mb-4 text-sm text-gray-800",children:"Cleanup on uninstall"}),e.jsxs("div",{className:"flex items-center justify-between py-3",style:{borderBottom:"1px solid #f3f4f6"},children:[e.jsx("span",{className:"text-sm text-gray-700",children:"Delete files when plugin is uninstalled"}),e.jsx(m,{checked:r.delete_on_uninstall,onChange:t=>x("delete_on_uninstall",t),"aria-label":"Delete files when plugin is uninstalled"})]})]})]})]}),e.jsxs("div",{className:"bg-white p-6",style:{boxShadow:"0px 5.4px 10.79px 0px rgba(0, 0, 0, 0.03)"},children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"LLMs.txt Preview"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("a",{href:"/llms.txt",target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-lg hover:bg-gray-100 transition-colors",title:"Open llms.txt in new tab",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})}),e.jsx("button",{onClick:A,disabled:u,className:`p-2 rounded-lg hover:bg-gray-100 transition-colors ${u?"opacity-50 cursor-not-allowed":""}`,title:"Refresh preview",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`h-5 w-5 text-gray-500 ${u?"animate-spin":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})]})]}),e.jsx("div",{className:"overflow-hidden rounded-lg border border-slate-700 bg-[#0d1117] shadow-inner",style:{maxHeight:"600px"},children:e.jsx("div",{className:"overflow-x-auto overflow-y-auto",style:{maxHeight:"580px"},children:L||u?e.jsx("div",{className:"flex h-32 items-center justify-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsxs("svg",{className:"h-6 w-6 animate-spin text-purple-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e.jsx("p",{className:"text-sm text-slate-400",children:u?"Regenerating...":"Loading preview..."})]})}):O(F)})}),e.jsxs("div",{className:"flex items-center justify-between mt-6 mb-4",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"LLMs-full.txt Preview"}),e.jsx("a",{href:"/llms-full.txt",target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-lg hover:bg-gray-100 transition-colors",title:"Open llms-full.txt in new tab",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})})]}),e.jsx("div",{className:"overflow-hidden rounded-lg border border-slate-700 bg-[#0d1117] shadow-inner",style:{maxHeight:"600px",minHeight:"600px"},children:e.jsx("div",{className:"overflow-x-auto overflow-y-auto",style:{maxHeight:"580px",minHeight:"580px"},children:L||u?e.jsx("div",{className:"flex h-20 items-center justify-center",children:e.jsx("p",{className:"text-sm text-slate-400",children:u?"Regenerating...":"Loading preview..."})}):O(U)})})]})]})})}const d=window.llmagnetContentSettingsData;Y({analyticsData:d==null?void 0:d.analyticsData,planData:d==null?void 0:d.planData,settings:d==null?void 0:d.settings});D("Content Settings");function Q(){const l=window.llmagnetContentSettingsData;if(!l)return e.jsx("div",{className:"p-4 text-red-600",children:"Content settings data not found."});const v=async a=>{try{if(!(await fetch(l.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"llmagnet_ai_seo_save_settings",nonce:l.nonce,settings:JSON.stringify(a)})})).ok)throw new Error("Failed to save settings");J("content",Object.keys(a))}catch(g){console.error("Error saving settings:",g)}};return e.jsx("div",{className:"llms-content-settings-react-app",style:{position:"relative",backgroundColor:"#F0F0F1"},children:e.jsx(K,{settings:l.settings,postTypes:l.postTypes,planData:l.planData,wooCommerceActive:l.wooCommerceActive,llmsFullInfo:l.llmsFullInfo,robotsTxtStatus:l.robotsTxtStatus,onSettingsChange:v})})}export{Q as ContentSettingsApp};
