import{Z as V,b as N}from"./app-core.339dde72.js";import{D as j}from"./vendor-datetime.361c8690.js";import{C as z}from"./Card.80471a55.js";import{G as B,a as F}from"./Row.3eefcfd5.js";import{S as O}from"./Checkmark.339be58a.js";import{S as M}from"./Input.97c6d61f.js";import{S as G}from"./Download.f9fce963.js";import{T as J,a as Q}from"./Row.a4b9013f.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 Z,Q as I,O as _,M as h,P as b,ad as E}from"./vendor-vue-ui.33864987.js";import{_ as o}from"./vendor-other.35999c47.js";import"./vendor-lodash.e0b5303e.js";import"./Tooltip.70f44574.js";import"./Caret.7384ec90.js";import"./Trash.2e806ed5.js";import"./Close.23ca5747.js";import"./Slide.70577ca1.js";import"./Index.7302dcdb.js";import"./Pencil.437f6c3d.js";const t="all-in-one-seo-pack",q={setup(){return{rootStore:N(),toolsStore:V()}},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})}}},H={class:"aioseo-tools-system-status-info"},K={class:"actions"},X={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"),L=n("core-card"),g=Y("clipboard");return a(),l("div",H,[s(L,{slug:"systemStatusInfo","header-text":e.strings.systemStatusInfo},{default:r(()=>[c("div",K,[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"]),Z((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",X,[(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(q,[["render",ne]]);export{Ie as default};
