import{f as l,i as r,r as m,ai as Ye,j as n,U as o,O as f,ad as I,a0 as A,R as S,ae as _,M as p,P as H,Q as Y,v as b,T as q,Y as de,u}from"./vendor-vue-ui.232c7c36.js";import{b as qe}from"./app-core.c8323d51.js";import{_ as pe}from"./Button.3cec2279.js";import{C as Ae}from"./Card.9ee06a3e.js";import{c as Ke}from"./vendor-prism-editor.fa0057cb.js";import{_ as Qe}from"./_plugin-vue_export-helper.eefbdd86.js";import{S as Xe}from"./Caret.aae02d8a.js";import{a as ke}from"./Pencil.683baab8.js";import{S as Ce}from"./Exclamation.179e5969.js";import{T as ve}from"./Slide.f2114d9d.js";import{_ as t,a as K}from"./vendor-other.39e59221.js";import"./vendor-lodash.03129cfe.js";import"./Tooltip.569a23d9.js";import"./Trash.47f6fc0e.js";import"./Close.7fb523c8.js";const Ze={emits:["change","paste","blur"],props:{editorId:{type:String,required:!0},language:{type:String,default(){return"json"}},placeholder:{type:String,default(){return""}},value:{type:String,default(){return""}},readonly:{type:Boolean,default(){return!1}},wordWrap:{type:Boolean,default(){return!1}}},data(){return{editorInstance:null}},methods:{getValue(){return this.editorInstance?this.editorInstance.value:""},setValue(O){this.editorInstance&&this.editorInstance.setOptions({value:O})}},mounted(){const O=document.getElementById(this.editorId);if(!O)return;const e=this;this.editorInstance=Ke(O,{language:this.language,value:this.value,readOnly:this.readonly,lineNumbers:!0,wordWrap:this.wordWrap,tabSize:4,insertSpaces:!1,onUpdate(g){e.$emit("change",g)}}),this.placeholder&&(this.editorInstance.textarea.placeholder=this.placeholder),this.editorInstance.textarea.addEventListener("paste",g=>{this.$emit("paste",{event:g})}),this.editorInstance.textarea.addEventListener("blur",g=>{this.$emit("blur",{event:g})})},beforeUnmount(){this.editorInstance&&(this.editorInstance.remove(),this.editorInstance=null)}},et=["id"];function tt(O,e,g,x,Q,P){return l(),r("div",{id:g.editorId,class:"aioseo-code-editor"},null,8,et)}const st=Qe(Ze,[["render",tt]]),at={class:"aioseo-mcp-v2"},it={class:"mcp-v2-hero"},nt={class:"mcp-v2-examples"},ot={class:"label"},lt={key:0,class:"mcp-v2-summary"},rt={class:"next-action"},ct={class:"mcp-v2-steps"},ut=["onClick"],dt={class:"mcp-v2-step-number"},pt={class:"mcp-v2-step-title"},vt=["innerHTML"],ht=["href"],mt={class:"mcp-v2-step-body"},gt={class:"mcp-v2-abilities"},yt=["onClick"],bt={class:"label"},ft={class:"count"},_t={class:"mcp-v2-abilities-list"},wt={class:"label"},At={class:"description"},kt={key:0},Ct={key:0,class:"mcp-v2-hint"},St={key:1,class:"mcp-v2-hint"},Pt=["innerHTML"],It={key:0,class:"mcp-v2-credentials"},Ot={class:"warning"},xt={class:"cred-row"},Tt={class:"label"},Lt={class:"value"},Et={type:"button",class:"copy-btn"},Mt={class:"cred-row"},jt={class:"label"},$t={class:"value"},Ht={type:"button",class:"copy-btn"},Nt={class:"hint"},Rt={key:1,class:"mcp-v2-inline-message error"},Bt={key:0},Dt={key:1,class:"mcp-v2-hint"},Vt={class:"detail"},Ut={class:"mcp-v2-clients-lede"},Wt={class:"mcp-v2-client-tabs"},Gt=["onClick"],zt={key:0,class:"mcp-v2-client-note"},Ft={key:0,class:"mcp-v2-password-banner"},Jt={key:1,class:"mcp-v2-snippet-meta"},Yt={class:"meta-label"},qt={class:"meta-paths"},Kt={class:"mcp-v2-snippet-block"},Qt={type:"button",class:"copy-corner"},Xt={class:"mcp-v2-instruction-steps"},Zt=["innerHTML"],ms={__name:"Mcp",setup(O){const e="all-in-one-seo-pack",g=qe(),x=u(()=>g.aioseo.aiInsights&&g.aioseo.aiInsights.mcp||{}),Q=u(()=>x.value.abilities||[]),P=u(()=>x.value.abilitiesApiAvailable===!0),w=m(x.value.mcpAdapterActive===!0),N=u(()=>x.value.mcpAdapterInstalled===!0),ae=m(null),R=u(()=>ae.value!==null?ae.value:Q.value.length),T=m(!1),L=m({}),Se=i=>{L.value={...L.value,[i]:!L.value[i]}},Pe=u(()=>{const i={};return Q.value.forEach(c=>{const d=c.category||"general";i[d]||(i[d]={label:(c.categoryLabel||d).replace(/^AIOSEO\s*[—–-]+\s*/,""),items:[]}),i[d].items.push(c)}),Object.values(i)}),B=u(()=>{const i=g.aioseo&&g.aioseo.urls||{};return(i.home||i.mainSiteUrl||window.location.origin||"").replace(/\/+$/,"")}),X=u(()=>(g.aioseo&&g.aioseo.user||{}).login||""),Ie=u(()=>B.value+"/wp-admin/profile.php#application-passwords-section"),D=m(!1),y=m(null),V=m(""),k=u(()=>x.value.hasAppPassword===!0||y.value!==null),he=u(()=>g.aioseo&&g.aioseo.nonce||""),me=u(()=>B.value+"/wp-json/aioseo/v1"),ge=u(()=>B.value+"/wp-json/wp-abilities/v1/abilities"),U=m(!1),E=m(""),Z=m(!1),ie=()=>{const i={Accept:"application/json"};return he.value&&(i["X-WP-Nonce"]=he.value),i},Oe=async()=>{try{const i=await fetch(ge.value,{credentials:"same-origin",headers:ie()});if(!i.ok)return;const c=await i.json();if(!Array.isArray(c))return;ae.value=c.filter(d=>{const a=d&&(d.name||d.id||"");return typeof a=="string"&&a.indexOf("aioseo-")===0}).length}catch{}},xe=async()=>{if(!U.value){U.value=!0,E.value="",Z.value=!1;try{const i=await fetch(me.value+"/ai-agents/install-mcp-adapter",{method:"POST",credentials:"same-origin",headers:{...ie(),"Content-Type":"application/json"},body:JSON.stringify({})}),c=await i.json();i.ok&&c&&c.success?(E.value=c.message||t("MCP Adapter installed.",e),w.value=!0,await Oe()):(Z.value=!0,E.value=c&&c.message||t("Install failed.",e))}catch{Z.value=!0,E.value=t("Install failed. Check site connectivity and try again.",e)}U.value=!1}},Te=async()=>{if(!D.value){D.value=!0,V.value="";try{const i=await fetch(me.value+"/ai-agents/generate-app-password",{method:"POST",credentials:"same-origin",headers:{...ie(),"Content-Type":"application/json"},body:JSON.stringify({})}),c=await i.json();i.ok&&c&&c.success?y.value={username:c.username,password:c.password}:V.value=c&&c.message||t("Failed to generate an Application Password.",e)}catch{V.value=t("Failed to generate an Application Password.",e)}D.value=!1}},W=u(()=>P.value&&0W.value&&y.value!==null),te=m(!1),v=m(null),G=u(()=>v.value?v.value.ok:W.value),Le=async()=>{if(te.value||!ee.value)return;te.value=!0;const i=Date.now();try{const c=window.btoa(y.value.username+":"+y.value.password),d=await fetch(ge.value,{credentials:"omit",headers:{Accept:"application/json",Authorization:"Basic "+c}}),a=d.ok?await d.json():null,h=Date.now()-i;if(d.ok&&Array.isArray(a)){const C=a.filter($=>{const J=$&&($.name||$.id||"");return typeof J=="string"&&J.indexOf("aioseo-")===0});v.value={ok:!0,detail:K(t("Authenticated with your Application Password and discovered %1$d AIOSEO abilities in %2$dms. Your site is ready to connect an AI client below.",e),C.length,h)}}else d.status===401||d.status===403?v.value={ok:!1,detail:t("Your Application Password was rejected — it may have been revoked. Generate a new one and test again.",e)}:v.value={ok:!1,detail:t("The abilities endpoint responded but the data was unexpected. Check the MCP Adapter is active and try again.",e)}}catch{v.value={ok:!1,detail:t("Could not reach the abilities endpoint. Check the site is reachable and try again.",e)}}te.value=!1},ne=m(!1),Ee=()=>{ne.value=!0,setTimeout(()=>{ne.value=!1},2e3)},oe=m(!1),Me=()=>{oe.value=!0,setTimeout(()=>{oe.value=!1},2e3)},je=u(()=>U.value?N.value?s.steps.activating:s.steps.installing:N.value?s.steps.activateMcpAdapter:s.steps.installMcpAdapter),$e=u(()=>K(t("An Application Password lets an AI client sign in to this site as %1$s. It grants the same %2$sfull access%3$s as your user account and is generated for the currently logged-in user only. You can revoke it at any time from your profile page.",e),""+X.value+"","","")),z=m(null),F=u(()=>{const i=[{key:"abilities",title:s.steps.abilitiesTitle,subtitle:K(t("%d SEO abilities registered with the WordPress Abilities API",e),R.value),done:P.value&&0"+X.value+""):s.steps.appPasswordSubtitle,done:k.value,pillLabel:k.value?s.steps.generated:s.steps.actionNeeded,pillClass:k.value?"green":"orange",blocking:!k.value},{key:"test",title:v.value?v.value.ok?s.steps.testSuccess:s.steps.testFailure:G.value?s.steps.testReadyTitle:s.steps.testTitle,subtitle:v.value?v.value.ok?s.steps.testJustRan:s.steps.testSubtitle:G.value?s.steps.testVerifiedSubtitle:s.steps.testSubtitle,done:G.value,pillLabel:G.value?s.steps.verified:v.value?s.steps.actionNeeded:s.steps.pending,pillClass:G.value?"green":v.value?"orange":"gray",blocking:!1}],c=i.find(a=>!a.done&&a.blocking),d=i.find(a=>!a.done);return i.map((a,h)=>{const C=h+1,$=a.key==="abilities"&&T.value,J=a.key==="test"&&v.value!==null,_e=a.key==="appPassword"&&y.value,Je=z.value===a.key||z.value===null&&a===(c||d)||$||_e||J,we=!a.done||_e||a.key==="test"&&W.value&&!ee.value||$||J;return{...a,number:C,blocking:!a.done&&a===c,toggleable:we,expanded:Je&&we}})}),ye=u(()=>F.value.filter(i=>i.done).length),be=u(()=>ye.value===F.value.length),He=u(()=>{const i=F.value.find(c=>!c.done);return i?K(t("next up: %s",e),i.title):""}),Ne=i=>{i.toggleable&&(z.value===i.key?z.value="":z.value=i.key)},Re=u(()=>y.value?y.value.password:""),le=u(()=>({command:"npx",args:["-y","@automattic/mcp-wordpress-remote"],env:{WP_API_URL:B.value+"/wp-json/",WP_API_USERNAME:X.value,WP_API_PASSWORD:Re.value}})),re=u(()=>B.value+"/wp-json/mcp/mcp-adapter-default-server"),fe=u(()=>{if(!y.value)return"";try{return window.btoa(X.value+":"+y.value.password)}catch{return""}}),Be=u(()=>({path:["macOS: ~/Library/Application Support/Claude/claude_desktop_config.json","Windows: %APPDATA%\\Claude\\claude_desktop_config.json"],body:JSON.stringify({mcpServers:{"aioseo-site":le.value}},null,2)})),De=u(()=>({path:t("Terminal (Claude Code CLI)",e),body:["claude mcp add aioseo-site \\",` --transport http "${re.value}" \\`,` --header "Authorization: Basic ${fe.value}"`].join(` `)})),Ve=u(()=>({path:"Cursor Settings → MCP → Add Server",body:JSON.stringify({name:"AIOSEO Site",...le.value},null,2)})),Ue=u(()=>({path:"~/.gemini/settings.json",body:JSON.stringify({mcpServers:{"aioseo-site":le.value}},null,2)})),We=u(()=>({path:".vscode/mcp.json",body:JSON.stringify({servers:{"aioseo-site":{type:"http",url:re.value,headers:{Authorization:"Basic "+fe.value}}}},null,2)})),Ge=u(()=>({path:"",body:re.value})),ce=[{id:"claude-desktop",label:"Claude Desktop",metaLabel:t("Save to:",e),instructions:[t("Open the file for your operating system shown above (create it if it doesn't exist). On Linux, use the Claude Code CLI tab instead.",e),t("Paste the snippet above into the file.",e),t("Restart Claude Desktop to load the AIOSEO abilities.",e)]},{id:"claude-code",label:"Claude Code CLI",lang:"shell",metaLabel:t("Run in:",e),instructions:[t("Open a terminal in your project directory.",e),t("Paste the command above and press enter.",e),t("Exit Claude Code (/exit) and start a new session to load the AIOSEO abilities.",e)]},{id:"gemini-cli",label:"Gemini CLI",metaLabel:t("Save to:",e),instructions:[t("Open the file shown above (create it if it doesn't exist).",e),t("Paste the snippet above into the file.",e),t("Restart the Gemini CLI to load the AIOSEO abilities.",e)]},{id:"cursor",label:"Cursor",metaLabel:t("Add in:",e),instructions:[t("In Cursor, go to Settings → MCP → Add Server.",e),t("Paste the snippet above as a new server.",e),t("Enable the server in the MCP list to load the AIOSEO abilities.",e)]},{id:"vscode",label:"VS Code",metaLabel:t("Save to:",e),instructions:[t("Create the file shown above in your workspace (or use the user-level file).",e),t("Paste the snippet above into the file.",e),t("Open the Chat view in agent mode and start the server (or trust it the first time) to load the AIOSEO abilities.",e)]},{id:"chatgpt",label:"ChatGPT",unsupported:!0,warning:t("ChatGPT's developer-mode connectors only support OAuth, which this site doesn't offer yet. Use Claude, Gemini, Cursor or VS Code instead.",e)}],M=m("claude-desktop"),j=u(()=>ce.find(i=>i.id===M.value)||ce[0]),se=u(()=>{switch(M.value){case"claude-code":return De.value;case"cursor":return Ve.value;case"gemini-cli":return Ue.value;case"vscode":return We.value;case"chatgpt":return Ge.value;default:return Be.value}}),ze=u(()=>{const i=se.value.path;return Array.isArray(i)?i:[i]}),ue=m(!1),Fe=()=>{ue.value=!0,setTimeout(()=>{ue.value=!1},2e3)},s={hero:{heading:t("Let your AI assistant work on your SEO",e),lede:t("Connect any MCP-compatible AI client below to read and update your SEO data from chat.",e),examplesLabel:t("Try asking:",e),examplePrompts:[t("Find posts missing meta descriptions",e),t("Create a redirect from /old to /new",e),t("Summarise last month's Search Console performance",e),t("Update titles for all posts in /blog/",e)]},setup:{heading:t("Setup",e),complete:t("Setup Complete",e)},progress:{heading:t("Setup progress",e),complete:t("Setup complete",e),allSet:t("You're all set!",e),of:t("of",e),stepsComplete:t("steps complete",e)},steps:{abilitiesTitle:t("AIOSEO Abilities registered",e),abilitiesDescription:t("SEO functions AIOSEO has registered for agents to call — read posts, audit the site, manage redirects, and more.",e),viewAbilities:t("View all abilities",e),hideAbilities:t("Hide abilities",e),showDetails:t("Show details",e),hideDetails:t("Hide details",e),mcpAdapterTitle:t("MCP Adapter installed",e),mcpAdapterSubtitle:t("Bridges AIOSEO abilities to the Model Context Protocol so Claude, Cursor and others can call them",e),mcpAdapterDescription:t("The MCP Adapter is a free WordPress plugin that exposes registered abilities over the Model Context Protocol.",e),mcpAdapterInstallHint:t("Install it to expose AIOSEO's SEO abilities over MCP.",e),mcpAdapterActivateHint:t("The plugin is installed but not active. Activate it to expose AIOSEO's SEO abilities over MCP.",e),installMcpAdapter:t("Install MCP Adapter",e),activateMcpAdapter:t("Activate MCP Adapter",e),installing:t("Installing…",e),activating:t("Activating…",e),appPasswordTitle:t("Application password generated",e),appPasswordSubtitle:t("Generate a password so an AI client can sign in to your site",e),appPasswordShownOnce:t("This password will not be shown again. Copy it now.",e),appPasswordSessionHint:t("We've also pre-filled it into the configuration snippets below for this session. Once you leave the page, the snippets will show a placeholder instead.",e),generateAppPassword:t("Generate Application Password",e),generating:t("Generating…",e),manageInProfile:t("Manage in profile",e),username:t("Username",e),password:t("Password",e),copy:t("Copy",e),copied:t("Copied",e),testTitle:t("Test the connection",e),testReadyTitle:t("Connection ready",e),testSubtitle:t("We'll sign in with your Application Password and confirm an AI client can reach your AIOSEO abilities.",e),testVerifiedSubtitle:t("All steps are complete — your site is ready for an AI client to connect.",e),testJustRan:t("Last tested just now",e),testLocked:t("Available once the steps above are complete.",e),testServerVerifiedHint:t("Your site is set up and ready to connect an AI client. To run a live credential test, generate a new Application Password above.",e),testConnection:t("Test connection",e),testAgain:t("Test again",e),testSuccess:t("Connection successful",e),testFailure:t("Connection unsuccessful",e),ready:t("Ready",e),active:t("Active",e),actionNeeded:t("Action needed",e),generated:t("Generated",e),verified:t("Verified",e),pending:t("Pending",e),upgradeWp:t("Requires WP 6.9+",e),noAbilities:t("Not registered",e)},clients:{heading:t("Connect to AI Client",e),lede:t("Pick the AI tool you want to connect, then copy its configuration. Your application password is filled in automatically once generated.",e),copySnippet:t("Copy snippet",e),copied:t("Copied",e),passwordFilled:t("Application password is filled in below. Just copy and paste.",e),notSupportedLabel:t("Not supported:",e)}};return(i,c)=>{const d=Ye("clipboard");return l(),r("div",at,[n("div",it,[n("h2",null,o(s.hero.heading),1),n("p",null,o(s.hero.lede),1),n("div",nt,[n("span",ot,o(s.hero.examplesLabel),1),(l(!0),r(f,null,I(s.hero.examplePrompts,a=>(l(),r("span",{key:a,class:"example"},o(a),1))),128))])]),A(b(Ae),{slug:"mcpSetup","header-text":be.value?s.setup.complete:s.setup.heading,toggles:!1,"no-slide":!0},{default:S(()=>[be.value?p("",!0):(l(),r("div",lt,[n("strong",null,o(ye.value),1),_(" "+o(s.progress.of)+" "+o(F.value.length)+" "+o(s.progress.stepsComplete)+" — ",1),n("span",rt,o(He.value),1)])),n("div",ct,[(l(!0),r(f,null,I(F.value,a=>(l(),r("div",{key:a.key,class:H(["mcp-v2-step",{done:a.done,blocking:a.blocking,expanded:a.expanded,toggleable:a.toggleable}])},[n("div",{class:"mcp-v2-step-header",onClick:h=>Ne(a)},[n("div",dt,[a.done?(l(),Y(b(ke),{key:0})):(l(),r(f,{key:1},[_(o(a.number),1)],64))]),n("div",pt,[_(o(a.title)+" ",1),a.subtitle?(l(),r("span",{key:0,class:"subtle",innerHTML:a.subtitle},null,8,vt)):p("",!0)]),n("div",{class:"mcp-v2-step-status",onClick:c[1]||(c[1]=q(()=>{},["stop"]))},[a.key==="abilities"&&Q.value.length?(l(),r("button",{key:0,type:"button",class:"mcp-v2-link",onClick:c[0]||(c[0]=q(h=>T.value=!T.value,["stop"]))},o(T.value?s.steps.hideAbilities:s.steps.viewAbilities),1)):p("",!0),a.key==="mcpAdapter"&&!w.value?(l(),Y(b(pe),{key:1,type:"blue",size:"small",loading:U.value,onClick:q(xe,["stop"])},{default:S(()=>[_(o(je.value),1)]),_:1},8,["loading"])):p("",!0),a.key==="appPassword"&&!k.value?(l(),Y(b(pe),{key:2,type:"blue",size:"small",loading:D.value,onClick:q(Te,["stop"])},{default:S(()=>[_(o(D.value?s.steps.generating:s.steps.generateAppPassword),1)]),_:1},8,["loading"])):p("",!0),a.key==="appPassword"&&k.value?(l(),r("a",{key:3,href:Ie.value,target:"_blank",rel:"noopener",class:"mcp-v2-link"},o(s.steps.manageInProfile),9,ht)):p("",!0),a.key==="test"&&ee.value?(l(),Y(b(pe),{key:4,type:"blue",size:"small",loading:te.value,onClick:q(Le,["stop"])},{default:S(()=>[_(o(v.value?s.steps.testAgain:s.steps.testConnection),1)]),_:1},8,["loading"])):p("",!0)])],8,ut),A(b(ve),{active:a.expanded},{default:S(()=>[n("div",mt,[a.key==="abilities"?(l(),r(f,{key:0},[A(b(ve),{active:T.value},{default:S(()=>[n("div",gt,[(l(!0),r(f,null,I(Pe.value,h=>(l(),r("div",{key:h.label,class:H(["mcp-v2-abilities-group",{open:L.value[h.label]}])},[n("button",{type:"button",class:"mcp-v2-abilities-category-row",onClick:C=>Se(h.label)},[n("span",bt,o(h.label),1),n("span",ft,o(h.items.length),1),A(b(Xe),{class:H(["caret",{rotated:L.value[h.label]}])},null,8,["class"])],8,yt),A(b(ve),{active:!!L.value[h.label]},{default:S(()=>[n("div",_t,[(l(!0),r(f,null,I(h.items,C=>(l(),r("div",{key:C.name,class:"mcp-v2-ability"},[n("span",wt,o(C.label),1),n("span",At,o(C.description),1)]))),128))])]),_:2},1032,["active"])],2))),128))])]),_:1},8,["active"]),T.value?p("",!0):(l(),r("p",kt,o(s.steps.abilitiesDescription),1))],64)):p("",!0),a.key==="mcpAdapter"?(l(),r(f,{key:1},[n("p",null,o(s.steps.mcpAdapterDescription),1),!w.value&&N.value?(l(),r("p",Ct,o(s.steps.mcpAdapterActivateHint),1)):p("",!0),!w.value&&!N.value?(l(),r("p",St,o(s.steps.mcpAdapterInstallHint),1)):p("",!0),E.value?(l(),r("div",{key:2,class:H(["mcp-v2-inline-message",{error:Z.value}])},o(E.value),3)):p("",!0)],64)):p("",!0),a.key==="appPassword"?(l(),r(f,{key:2},[n("p",{innerHTML:$e.value},null,8,Pt),y.value?(l(),r("div",It,[n("div",Ot,[A(b(Ce)),_(" "+o(s.steps.appPasswordShownOnce),1)]),n("div",xt,[n("span",Tt,o(s.steps.username),1),n("code",Lt,o(y.value.username),1),de((l(),r("button",Et,[_(o(oe.value?s.steps.copied:s.steps.copy),1)])),[[d,y.value.username,"copy"],[d,Me,"success"]])]),n("div",Mt,[n("span",jt,o(s.steps.password),1),n("code",$t,o(y.value.password),1),de((l(),r("button",Ht,[_(o(ne.value?s.steps.copied:s.steps.copy),1)])),[[d,y.value.password,"copy"],[d,Ee,"success"]])]),n("p",Nt,o(s.steps.appPasswordSessionHint),1)])):p("",!0),V.value?(l(),r("div",Rt,o(V.value),1)):p("",!0)],64)):p("",!0),a.key==="test"?(l(),r(f,{key:3},[!W.value&&!v.value?(l(),r("p",Bt,o(s.steps.testLocked),1)):W.value&&!ee.value&&!v.value?(l(),r("p",Dt,o(s.steps.testServerVerifiedHint),1)):p("",!0),v.value?(l(),r("div",{key:2,class:H(["mcp-v2-test-result",{error:!v.value.ok}])},[n("div",Vt,o(v.value.detail),1)],2)):p("",!0)],64)):p("",!0)])]),_:2},1032,["active"])],2))),128))])]),_:1},8,["header-text"]),A(b(Ae),{slug:"mcpClients","header-text":s.clients.heading,toggles:!1,"no-slide":!0},{default:S(()=>[n("p",Ut,o(s.clients.lede),1),n("div",Wt,[(l(),r(f,null,I(ce,a=>n("button",{key:a.id,type:"button",class:H(["mcp-v2-client-tab",{active:M.value===a.id}]),onClick:h=>M.value=a.id},o(a.label),11,Gt)),64))]),j.value.warning?(l(),r("div",zt,[A(b(Ce)),n("span",null,[n("strong",null,o(s.clients.notSupportedLabel),1),_(" "+o(j.value.warning),1)])])):p("",!0),j.value.unsupported?p("",!0):(l(),r(f,{key:1},[y.value?(l(),r("div",Ft,[A(b(ke)),_(" "+o(s.clients.passwordFilled),1)])):p("",!0),se.value.path?(l(),r("div",Jt,[c[2]||(c[2]=n("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),n("polyline",{points:"14 2 14 8 20 8"})],-1)),n("span",Yt,o(j.value.metaLabel),1),n("span",qt,[(l(!0),r(f,null,I(ze.value,(a,h)=>(l(),r("code",{key:h},o(a),1))),128))])])):p("",!0),n("div",Kt,[(l(),Y(b(st),{key:M.value,"editor-id":`aioseo-mcp-v2-snippet-${M.value}`,language:j.value.lang||"json",value:se.value.body,readonly:!0},null,8,["editor-id","language","value"])),de((l(),r("button",Qt,[c[3]||(c[3]=n("svg",{viewBox:"0 0 24 24",width:"13",height:"13",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),n("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})],-1)),_(" "+o(ue.value?s.clients.copied:s.clients.copySnippet),1)])),[[d,se.value.body,"copy"],[d,Fe,"success"]])]),n("ol",Xt,[(l(!0),r(f,null,I(j.value.instructions,(a,h)=>(l(),r("li",{key:h,innerHTML:a},null,8,Zt))),128))])],64))]),_:1},8,["header-text"])])}}};export{ms as default};