import{V as L,b as N}from"./app-core.61d75c0b.js";import{D as j}from"./vendor-datetime.430013a3.js";import{C as z}from"./Card.357796d1.js";import{G as B,a as F}from"./Row.0a3f58c3.js";import{S as O}from"./Checkmark.8da35047.js";import{S as M}from"./Input.74b8f197.js";import{S as G}from"./Download.84de9e91.js";import{T as J,a as Q}from"./Row.d832cef7.js";import{_ as W}from"./_plugin-vue_export-helper.eefbdd86.js";import{as as n,aA as Y,f as a,i as l,a0 as s,R as r,j as c,ae as p,U as m,Y as q,Q as I,O as _,M as h,P as b,ad as E}from"./vendor-vue-ui.d70c869f.js";import{_ as o}from"./vendor-other.2cdd5822.js";import"./vendor-lodash.f9514987.js";import"./Tooltip.7f0ce0d2.js";import"./Caret.c4a084e6.js";import"./Trash.effd183e.js";import"./Close.cee3494e.js";import"./Slide.4a56936c.js";import"./Index.104764b8.js";import"./Pencil.acabfd26.js";const t="all-in-one-seo-pack",H={setup(){return{rootStore:N(),toolsStore:L()}},components:{CoreCard:z,GridColumn:F,GridRow:B,SvgCheckmark:O,SvgCopy:M,SvgDownload:G,TableColumn:Q,TableRow:J},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 S=new Blob([JSON.stringify(this.rootStore.aioseo.data.status)],{type:"application/json"}),i=document.createElement("a");i.href=URL.createObjectURL(S),i.download=`aioseo-system-status-${j.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})}}},K={class:"aioseo-tools-system-status-info"},X={class:"actions"},Z={class:"aioseo-settings-row"},$={class:"settings-name"},ee={class:"name"},se={class:"aioseo-settings-content"},oe={class:"system-status-table"},te=["title"];function ne(S,i,re,A,e,u){const D=n("svg-download"),f=n("base-button"),T=n("svg-copy"),P=n("svg-checkmark"),v=n("grid-column"),x=n("base-input"),R=n("grid-row"),w=n("table-column"),U=n("table-row"),V=n("core-card"),g=Y("clipboard");return a(),l("div",K,[s(V,{slug:"systemStatusInfo","header-text":e.strings.systemStatusInfo},{default:r(()=>[c("div",X,[s(R,null,{default:r(()=>[s(v,{sm:"6",class:"left"},{default:r(()=>[s(f,{type:"blue",size:"small",onClick:u.downloadSystemStatusInfo},{default:r(()=>[s(D),p(" "+m(e.strings.downloadSystemInfoFile),1)]),_:1},8,["onClick"]),q((a(),I(f,{type:"blue",size:"small"},{default:r(()=>[e.copied?h("",!0):(a(),l(_,{key:0},[s(T),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:r(()=>[s(x,{size:"small",placeholder:e.strings.emailDebugInformation,modelValue:e.emailAddress,"onUpdate:modelValue":i[0]||(i[0]=d=>e.emailAddress=d),class:b({"aioseo-error":e.emailError})},null,8,["placeholder","modelValue","class"]),s(f,{type:"blue",size:"small",onClick:u.processEmailDebugInfo,loading:e.sendingEmail},{default:r(()=>[p(m(e.strings.submit),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),c("div",Z,[(a(!0),l(_,null,E(A.rootStore.aioseo.data.status,(d,k)=>(a(),l(_,{key:k},[d.results?.length?(a(),l("div",{key:0,class:b(["settings-group",["settings-group--"+k]])},[c("div",$,[c("div",ee,m(d.label),1)]),c("div",se,[c("div",oe,[(a(!0),l(_,null,E(d.results,(y,C)=>(a(),I(U,{key:C,class:b({even:C%2===0})},{default:r(()=>[s(w,{class:"system-status-header"},{default:r(()=>[c("span",{title:y.header},m(y.header),9,te)]),_:2},1024),s(w,null,{default:r(()=>[p(m(y.value),1)]),_:2},1024)]),_:2},1032,["class"]))),128))])])],2)):h("",!0)],64))),128))])]),_:1},8,["header-text"])])}const Ie=W(H,[["render",ne]]);export{Ie as default};
