import{a as F}from"./index.4b887428.js";import{D as N}from"./datetime.f197aeae.js";import{C as j}from"./Card.597c7ae2.js";import{G as z,a as B}from"./Row.bb9acf3f.js";import{S as O}from"./Checkmark.762f711e.js";import{S as G}from"./Input.f04bee4d.js";import{S as M}from"./Download.aa34559d.js";import{T as J,a as W}from"./Row.fec407d2.js";import"./translations.e71e2202.js";import{_ as q}from"./_plugin-vue_export-helper.eefbdd86.js";import{u as H}from"./ToolsStore.fc4d835f.js";import{_ as o}from"./default-i18n.65d58dd6.js";import{c as l,l as s,a2 as n,a6 as r,an as K,o as a,_ as c,a7 as p,$ as m,aj as Q,a1 as E,F as _,a4 as h,ae as S,af as D}from"./runtime-core.esm-bundler.ce5add0b.js";import"./helpers.633a054c.js";import"./Tooltip.23c7170d.js";import"./runtime-dom.esm-bundler.dc49ee3e.js";import"./Caret.cd869c5d.js";import"./Trash.87a7d946.js";import"./Close.ccd53ef3.js";import"./Slide.3003ef51.js";import"./Index.2a391835.js";import"./Pencil.d82df6a1.js";const t="all-in-one-seo-pack",X={setup(){return{rootStore:F(),toolsStore:H()}},components:{CoreCard:j,GridColumn:z,GridRow:B,SvgCheckmark:O,SvgCopy:G,SvgDownload:M,TableColumn:J,TableRow:W},data(){return{copied:!1,emailError:null,emailAddress:null,sendingEmail:!1,strings:{systemStatusInfo:o("System Status Info",t),downloadSystemInfoFile:o("Download System Info File",t),copyToClipboard:o("Copy to Clipboard",t),emailDebugInformation:o("Email Debug Information",t),submit:o("Submit",t),wordPress:o("WordPress",t),serverInfo:o("Server Info",t),activeTheme:o("Active Theme",t),muPlugins:o("Must-Use Plugins",t),activePlugins:o("Active Plugins",t),inactivePlugins:o("Inactive Plugins",t),copied:o("Copied!",t)}}},computed:{copySystemStatusInfo(){return JSON.stringify(this.rootStore.aioseo.data.status)}},methods:{onCopy(){this.copied=!0,setTimeout(()=>{this.copied=!1},2e3)},onError(){},downloadSystemStatusInfo(){const b=new Blob([JSON.stringify(this.rootStore.aioseo.data.status)],{type:"application/json"}),i=document.createElement("a");i.href=URL.createObjectURL(b),i.download=`aioseo-system-status-${N.now().toFormat("yyyy-MM-dd")}.json`,i.click(),URL.revokeObjectURL(i.href)},processEmailDebugInfo(){if(this.emailError=!1,!this.emailAddress||!/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(this.emailAddress)){this.emailError=!0;return}this.sendingEmail=!0,this.toolsStore.emailDebugInfo(this.emailAddress).then(()=>{this.emailAddress=null,this.sendingEmail=!1})}}},Y={class:"aioseo-tools-system-status-info"},Z={class:"actions"},$={class:"aioseo-settings-row"},ee={class:"settings-name"},oe={class:"name"},se={class:"aioseo-settings-content"},te={class:"system-status-table"},ne=["title"];function re(b,i,ae,A,e,u){const T=r("svg-download"),f=r("base-button"),x=r("svg-copy"),P=r("svg-checkmark"),v=r("grid-column"),R=r("base-input"),L=r("grid-row"),w=r("table-column"),U=r("table-row"),V=r("core-card"),g=K("clipboard");return a(),l("div",Y,[s(V,{slug:"systemStatusInfo","header-text":e.strings.systemStatusInfo},{default:n(()=>[c("div",Z,[s(L,null,{default:n(()=>[s(v,{sm:"6",class:"left"},{default:n(()=>[s(f,{type:"blue",size:"small",onClick:u.downloadSystemStatusInfo},{default:n(()=>[s(T),p(" "+m(e.strings.downloadSystemInfoFile),1)]),_:1},8,["onClick"]),Q((a(),E(f,{type:"blue",size:"small"},{default:n(()=>[e.copied?h("",!0):(a(),l(_,{key:0},[s(x),p(" "+m(e.strings.copyToClipboard),1)],64)),e.copied?(a(),l(_,{key:1},[s(P),p(" "+m(e.strings.copied),1)],64)):h("",!0)]),_:1})),[[g,u.copySystemStatusInfo,"copy"],[g,u.onCopy,"success"],[g,u.onError,"error"]])]),_:1}),s(v,{sm:"6",class:"right"},{default:n(()=>[s(R,{size:"small",placeholder:e.strings.emailDebugInformation,modelValue:e.emailAddress,"onUpdate:modelValue":i[0]||(i[0]=d=>e.emailAddress=d),class:S({"aioseo-error":e.emailError})},null,8,["placeholder","modelValue","class"]),s(f,{type:"blue",size:"small",onClick:u.processEmailDebugInfo,loading:e.sendingEmail},{default:n(()=>[p(m(e.strings.submit),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),c("div",$,[(a(!0),l(_,null,D(A.rootStore.aioseo.data.status,(d,k)=>{var C;return a(),l(_,{key:k},[(C=d.results)!=null&&C.length?(a(),l("div",{key:0,class:S(["settings-group",["settings-group--"+k]])},[c("div",ee,[c("div",oe,m(d.label),1)]),c("div",se,[c("div",te,[(a(!0),l(_,null,D(d.results,(y,I)=>(a(),E(U,{key:I,class:S({even:I%2===0})},{default:n(()=>[s(w,{class:"system-status-header"},{default:n(()=>[c("span",{title:y.header},m(y.header),9,ne)]),_:2},1024),s(w,null,{default:n(()=>[p(m(y.value),1)]),_:2},1024)]),_:2},1032,["class"]))),128))])])],2)):h("",!0)],64)}),128))])]),_:1},8,["header-text"])])}const Te=q(X,[["render",re]]);export{Te as default};
