var d=Object.defineProperty,p=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var n=(s,e,t)=>e in s?d(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))_.call(e,t)&&n(s,t,e[t]);if(r)for(var t of r(e))v.call(e,t)&&n(s,t,e[t]);return s},m=(s,e)=>p(s,f(e));import{j as g}from"./index.0f8634bc.js";import{C as y}from"./Card.5e3c0ad5.js";import{G as b,a as S}from"./Row.13b6f3f1.js";import{S as h}from"./Checkmark.e7547654.js";import{S as C}from"./Copy.a07db25e.js";import{S as w}from"./Download.bc45fb83.js";import{T as I,a as E}from"./Row.b5e5f12f.js";import{n as A}from"./vueComponentNormalizer.87056a83.js";import"./Tooltip.674a9fb4.js";import"./client.93f15631.js";import"./index.02c35f2a.js";import"./QuestionMark.83ebd18e.js";import"./Slide.f5d21606.js";var k=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"aioseo-tools-system-status-info"},[t("core-card",{attrs:{slug:"systemStatusInfo","header-text":s.strings.systemStatusInfo}},[t("div",{staticClass:"actions"},[t("grid-row",[t("grid-column",{staticClass:"left",attrs:{sm:"6"}},[t("base-button",{attrs:{type:"blue",size:"medium"},on:{click:s.downloadSystemStatusInfo}},[t("svg-download"),s._v(" "+s._s(s.strings.downloadSystemInfoFile)+" ")],1),t("base-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:s.copySystemStatusInfo,expression:"copySystemStatusInfo",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:s.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:s.onError,expression:"onError",arg:"error"}],attrs:{type:"blue",size:"medium"}},[s.copied?s._e():[t("svg-copy"),s._v(" "+s._s(s.strings.copyToClipboard)+" ")],s.copied?[t("svg-checkmark"),s._v(" "+s._s(s.strings.copied)+" ")]:s._e()],2)],1),t("grid-column",{staticClass:"right",attrs:{sm:"6"}},[t("base-input",{class:{"aioseo-error":s.emailError},attrs:{size:"medium",placeholder:s.strings.emailDebugInformation},model:{value:s.emailAddress,callback:function(o){s.emailAddress=o},expression:"emailAddress"}}),t("base-button",{attrs:{type:"blue",size:"medium",loading:s.sendingEmail},on:{click:s.processEmailDebugInfo}},[s._v(" "+s._s(s.strings.submit)+" ")])],1)],1)],1),t("div",{staticClass:"aioseo-settings-row"},[s._l(s.$aioseo.data.status,function(o,c){return[o.results.length?t("div",{key:c,staticClass:"settings-group"},[t("div",{staticClass:"settings-name"},[t("div",{staticClass:"name"},[s._v(s._s(o.label))])]),t("div",{staticClass:"settings-content"},[t("div",{staticClass:"system-status-table"},s._l(o.results,function(a,i){return t("table-row",{key:i,class:{even:i%2===0}},[t("table-column",{staticClass:"system-status-header"},[s._v(" "+s._s(a.header)+" ")]),t("table-column",[s._v(" "+s._s(a.value)+" ")])],1)}),1)])]):s._e()]})],2)])],1)},x=[];const D={components:{CoreCard:y,GridColumn:b,GridRow:S,SvgCheckmark:h,SvgCopy:C,SvgDownload:w,TableColumn:I,TableRow:E},data(){return{copied:!1,emailError:null,emailAddress:null,sendingEmail:!1,strings:{systemStatusInfo:"System Status Info",downloadSystemInfoFile:"Download System Info File",copyToClipboard:"Copy to Clipboard",emailDebugInformation:"Email Debug Information",submit:"Submit",wordPress:"WordPress",serverInfo:"Server Info",activeTheme:"Active Theme",muPlugins:"Must-Use Plugins",activePlugins:"Active Plugins",inactivePlugins:"Inactive Plugins",copied:"Copied!"}}},computed:{copySystemStatusInfo(){return JSON.stringify(this.$aioseo.data.status)}},methods:m(l({},g(["emailDebugInfo"])),{onCopy(){this.copied=!0,setTimeout(()=>{this.copied=!1},2e3)},onError(){},downloadSystemStatusInfo(){const s=new Blob([JSON.stringify(this.$aioseo.data.status)],{type:"application/json"}),e=document.createElement("a");e.href=URL.createObjectURL(s),e.download=`aioseo-system-status-${this.$moment().format("YYYY-MM-DD")}.json`,e.click(),URL.revokeObjectURL(e.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.emailDebugInfo(this.emailAddress).then(()=>{this.emailAddress=null,this.sendingEmail=!1})}})},u={};var P=A(D,k,x,!1,R,null,null,null);function R(s){for(let e in u)this[e]=u[e]}var W=function(){return P.exports}();export{W as default};
