tools-Main-vue.js
47.2 KB
(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["tools-Main-vue","tools-BadBotBlocker-vue","tools-DatabaseTools-vue","tools-Debug-vue","tools-HtaccessEditor-vue","tools-RobotsEditor-vue","tools-SystemStatus-vue","tools-lite-Debug-vue","tools-pro-Debug-vue"],{"0614":function(t,s,e){"use strict";var o=e("5530"),i=e("2f62");s["a"]={data:function(){var t=this.$t.sprintf('<a href="%1$s" target="_blank">Scheduled Actions</a>',this.$aioseo.urls.admin.scheduledActions);return{showAreYouSureModal:!1,loading:{clearCache:!1,readdCapabilities:!1,rerunMigrations:!1,removeDuplicates:!1,unescapeData:!1,clearImageData:!1,clearVideoData:!1,restartMigration:!1,undismissSuggestions:!1,clearLinkAssistantData:!1},strings:{debug:"Debug",warning:"Before you run any of these actions, make sure that you have fully read the description and understand the consequences as these cannot be reverted.",general:"General",clearCache:"Clear Cache",clearCacheDescription:"This action deletes all cache records in the database.",rerunMigrations:"Rerun Migrations",rerunMigrationsDescription:"This action will rerun all update migrations since 4.0.0, excluding the V3 migration (which can be retriggered below).",readdCapabilities:"Readd Capabilities",readdCapabilitiesDescription:"This action will readd our capabilities (permissions) for all users.",removeDuplicates:"Remove Duplicates",removeDuplicatesDescription:"This action will remove any duplicate records that are found in the <code>aioseo_posts</code> or <code>aioseo_terms</code> table.",unescapeData:"Unescape Data",unescapeDataDescription:this.$t.sprintf("This action will clean posts/terms whose data is corrupted via Action Scheduler. To speed up this process, go to %1$s and run the <code>aioseo_unslash_escaped_data_posts</code> or <code>aioseo_unslash_escaped_data_terms</code> action.",t),sitemap:"Sitemap",clearImageData:"Clear Image Data",clearImageDataDescription:this.$t.sprintf("This action removes all image data from the database, forcing a site-wide rescan via Action Scheduler. To speed up the image scan, go to %1$s and run the <code>aioseo_video_sitemap_scan</code> action.",t),clearVideoData:"Clear Video Data",clearVideoDataDescription:this.$t.sprintf("This action removes all video data from the database, forcing a site-wide rescan via Action Scheduler. To speed up the video scan, go to %1$s and run the <code>aioseo_video_sitemap_scan</code> action.",t),linkAssistant:"Link Assistant",undismissSuggestions:"Undismiss Suggestions",undismissSuggestionsDescription:this.$t.sprintf("This action removes the dismissed state from all suggestions, which makes them appear in the UI again.",t),clearLinkAssistantData:"Clear Data",clearLinkAssistantDataDescription:this.$t.sprintf("This action removes all Link Assistant data from the database, forcing a site-wide rescan via Action Scheduler. The various Link Assistant scans can be sped up through the %1$s",t),restartMigration:"Restart v3 Migration",restartMigrationDescriptionPart1:"This action restarts the migration from v3 to v4. All settings are overidden immediately; the post/term meta will gradually be updated via Action Scheduler.",restartMigrationDescriptionPart2:this.$t.sprintf("To speed up the post/term meta migration, go to %1$s and run the <code>aioseo_migrate_post_meta</code> or <code>aioseo_migrate_term_meta action</code>.",t),areYouSureTitle:"Are you sure you want to restart the migration?",cannotBeUndone:"This action cannot be undone.",startMigration:"Yes, restart the migration",noChangedMind:"No, I changed my mind",migration:"Migration"}}},methods:Object(o["a"])(Object(o["a"])({},Object(i["b"])(["doTask"])),{},{clearCache:function(){var t=this;this.loading.clearingCache=!0,this.doTask("clear-cache").then((function(){t.loading.clearingCache=!1,console.log("Cache has been cleared.")}),(function(t){return console.error("Cache could not be cleared:",t)}))},readdCapabilities:function(){var t=this;this.loading.readdCapabilities=!0,this.doTask("readd-capabilities").then((function(){t.loading.readdCapabilities=!1,console.log("Capabilities have been readded.")}),(function(t){return console.error("Capabilities could not be readded:",t)}))},rerunMigrations:function(){var t=this;this.loading.rerunMigrations=!0,this.doTask("rerun-migrations").then((function(){t.loading.rerunMigrations=!1,console.log("Migrations have been restarted.")}),(function(t){return console.error("Migrations could not be restarted:",t)}))},removeDuplicates:function(){var t=this;this.loading.removeDuplicates=!0,this.doTask("remove-duplicates").then((function(){t.loading.removeDuplicates=!1,console.log("Duplicates have been removed.")}),(function(t){return console.error("Duplicates could not be removed:",t)}))},unescapeData:function(){var t=this;this.loading.unescapeData=!0,this.doTask("unescape-data").then((function(){t.loading.unescapeData=!1,console.log("Cleaning procedure for escaped data has been scheduled.")}),(function(t){return console.error("Cleaning procedure for escaped data could not be scheduled:",t)}))},clearImageData:function(){var t=this;this.loading.clearImageData=!0,this.doTask("clear-image-data").then((function(){t.loading.clearImageData=!1,console.log("Image data has been wiped.")}),(function(t){return console.error("Image data could not be wiped:",t)}))},clearVideoData:function(){var t=this;this.loading.clearVideoData=!0,this.doTask("clear-video-data").then((function(){t.loading.clearVideoData=!1,console.log("Video data has been cleared.")}),(function(t){return console.error("Video data could not be cleared:",t)}))},undismissSuggestions:function(){var t=this;this.loading.undismissSuggestions=!0,this.doTask("undismiss-suggestions").then((function(){t.loading.undismissSuggestions=!1,console.log("Suggestions have been undismissed.")}),(function(t){return console.error("Suggestions could not be undismissed:",t)}))},clearLinkAssistantData:function(){var t=this;this.loading.clearLinkAssistantData=!0,this.doTask("clear-link-assistant-data").then((function(){t.loading.clearLinkAssistantData=!1,console.log("Link Assistant data has been cleared.")}),(function(t){return console.error("Link data Assistant could not be cleared:",t)}))},maybeRestartMigration:function(){this.showAreYouSureModal=!0},restartMigration:function(){var t=this;this.showAreYouSureModal=!1,this.loading.restartMigration=!0,this.doTask("restart-v3-migration").then((function(){t.loading.restartMigration=!1,console.log("Migration has been restarted.")}),(function(t){return console.error("Migration could not be restarted:",t)}))}})}},"1c6d":function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-debug"},[t.$isPro&&t.$aioseo.data.isDev?e("Debug"):t._e(),!t.$isPro&&t.$aioseo.data.isDev?e("DebugLite"):t._e()],1)},i=[],a=e("5530"),r=e("2f62"),n=e("e0b8"),l=e("65e5"),c={components:{Debug:n["default"],DebugLite:l["default"]},computed:Object(a["a"])({},Object(r["c"])(["isUnlicensed"]))},d=c,u=(e("fd4e"),e("2877")),g=Object(u["a"])(d,o,i,!1,null,null,null);s["default"]=g.exports},"1d7b":function(t,s,e){"use strict";e("db9a")},2653:function(t,s,e){},2853:function(t,s,e){"use strict";e("5c24")},"3b6e":function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-htaccess-editor"},[e("core-card",{attrs:{slug:"htaccessEditor","header-text":t.strings.htaccessEditor}},[e("div",{staticClass:"aioseo-settings-row aioseo-section-description",domProps:{innerHTML:t._s(t.strings.description)}}),e("core-settings-row",{attrs:{name:t.strings.editHtaccess,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[t.htaccessError?e("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.htaccessError)+" ")]):t._e(),e("base-editor",{staticClass:"htaccess-editor",attrs:{disabled:!t.$aioseo.user.unfilteredHtml,"line-numbers":"",monospace:""},model:{value:t.$aioseo.data.htaccess,callback:function(s){t.$set(t.$aioseo.data,"htaccess",s)},expression:"$aioseo.data.htaccess"}})]},proxy:!0}])})],1)],1)},i=[],a=e("5530"),r=e("2f62"),n={data:function(){return{strings:{htaccessEditor:this.$t.__(".htaccess Editor",this.$td),editHtaccess:this.$t.__("Edit .htaccess",this.$td),description:this.$t.sprintf(this.$t.__("This allows you to edit the .htaccess file for your site. All WordPress sites on an Apache server have a .htaccess file and we have provided you with a convenient way of editing it. Care should always be taken when editing important files from within WordPress as an incorrect change could cause WordPress to become inaccessible. %1$sBe sure to make a backup before making changes and ensure that you have FTP access to your web server and know how to access and edit files via FTP.%2$s",this.$td),"<strong>","</strong>")}}},computed:Object(a["a"])({},Object(r["e"])(["htaccessError"]))},l=n,c=(e("1d7b"),e("2877")),d=Object(c["a"])(l,o,i,!1,null,null,null);s["default"]=d.exports},"464d":function(t,s,e){},"4cec":function(t,s,e){"use strict";e("8772")},"4d74":function(t,s,e){"use strict";e("2653")},"5a9b":function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("core-main",{attrs:{"page-name":t.strings.pageName,"show-save-button":t.showSaveButton}},[e(t.$route.name,{tag:"component"})],1)},i=[],a=(e("b0c0"),e("af30")),r=e("e6b1"),n=e("1c6d"),l=e("3b6e"),c=e("0687"),d=e("e4d8"),u=e("d046"),g={components:{BadBotBlocker:a["default"],DatabaseTools:r["default"],Debug:n["default"],HtaccessEditor:l["default"],ImportExport:c["default"],RobotsEditor:d["default"],SystemStatus:u["default"]},data:function(){return{strings:{pageName:this.$t.__("Tools",this.$td)}}},computed:{showSaveButton:function(){return"system-status"!==this.$route.name&&"import-export"!==this.$route.name&&"database-tools"!==this.$route.name}}},h=g,p=e("2877"),b=Object(p["a"])(h,o,i,!1,null,null,null);s["default"]=b.exports},"5c24":function(t,s,e){},"5d3c":function(t,s,e){"use strict";e("c55f")},"65e5":function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-debug"},[e("core-card",{attrs:{slug:"debug","header-text":t.strings.debug}},[e("core-alert",{staticClass:"warning",attrs:{type:"yellow"}},[t._v(" "+t._s(t.strings.warning)+" ")]),e("core-settings-row",{staticClass:"first-row",attrs:{name:t.strings.general,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"clear-cache",attrs:{type:"blue",size:"medium",loading:t.loading.clearCache},on:{click:t.clearCache}},[t._v(" "+t._s(t.strings.clearCache)+" ")]),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.clearCacheDescription)+" ")])],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"readd-capabilities",attrs:{type:"blue",size:"medium",loading:t.loading.readdCapabilities},on:{click:t.readdCapabilities}},[t._v(" "+t._s(t.strings.readdCapabilities)+" ")]),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.readdCapabilitiesDescription)+" ")])],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"rerun-migrations",attrs:{type:"blue",size:"medium",loading:t.loading.rerunMigrations},on:{click:t.rerunMigrations}},[t._v(" "+t._s(t.strings.rerunMigrations)+" ")]),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.rerunMigrationsDescription)+" ")])],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"remove-duplicates",attrs:{type:"blue",size:"medium",loading:t.loading.removeDuplicates},on:{click:t.removeDuplicates}},[t._v(" "+t._s(t.strings.removeDuplicates)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.removeDuplicatesDescription)}})],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"unescape-data",attrs:{type:"blue",size:"medium",loading:t.loading.unescapeData},on:{click:t.unescapeData}},[t._v(" "+t._s(t.strings.unescapeData)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.unescapeDataDescription)}})],1)]},proxy:!0}])}),e("core-settings-row",{attrs:{name:"Sitemap",align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"clear-image-data",attrs:{type:"blue",size:"medium",loading:t.loading.clearImageData},on:{click:t.clearImageData}},[t._v(" "+t._s(t.strings.clearImageData)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.clearImageDataDescription)}})],1)]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.migration,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[t.$aioseo.data.isDev?e("base-button",{staticClass:"redo-v3-migration",attrs:{type:"blue",size:"medium",loading:t.loading.restartMigration},on:{click:t.maybeRestartMigration}},[t._v(" "+t._s(t.strings.restartMigration)+" ")]):t._e(),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.restartMigrationDescriptionPart1)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.restartMigrationDescriptionPart2)}})]},proxy:!0}])}),t.showAreYouSureModal?e("core-modal",{attrs:{"no-header":""},scopedSlots:t._u([{key:"body",fn:function(){return[e("div",{staticClass:"aioseo-modal-body"},[e("button",{staticClass:"close",on:{click:function(s){s.stopPropagation(),t.showAreYouSureModal=!1}}},[e("svg-close",{on:{click:function(s){t.showDeleteModal=!1}}})],1),e("h3",[t._v(t._s(t.strings.areYouSureTitle))]),e("div",{staticClass:"reset-description",domProps:{innerHTML:t._s(t.strings.cannotBeUndone)}}),e("base-button",{attrs:{type:"blue",size:"medium"},on:{click:t.restartMigration}},[t._v(" "+t._s(t.strings.startMigration)+" ")]),e("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(s){t.showAreYouSureModal=!1}}},[t._v(" "+t._s(t.strings.noChangedMind)+" ")])],1)]},proxy:!0}],null,!1,14870036)}):t._e()],1)],1)},i=[],a=e("0614"),r={mixins:[a["a"]]},n=r,l=e("2877"),c=Object(l["a"])(n,o,i,!1,null,null,null);s["default"]=c.exports},8772:function(t,s,e){},af30:function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-bad-bot-blocker"},[e("core-card",{attrs:{slug:"badBotBlocker","header-text":t.strings.badBotBlocker}},[e("core-settings-row",{attrs:{name:t.strings.blockBadBotsHttp},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-toggle",{model:{value:t.options.deprecated.tools.blocker.blockBots,callback:function(s){t.$set(t.options.deprecated.tools.blocker,"blockBots",s)},expression:"options.deprecated.tools.blocker.blockBots"}})]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.blockReferralSpamHttp},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-toggle",{model:{value:t.options.deprecated.tools.blocker.blockReferer,callback:function(s){t.$set(t.options.deprecated.tools.blocker,"blockReferer",s)},expression:"options.deprecated.tools.blocker.blockReferer"}})]},proxy:!0}])}),t.options.deprecated.tools.blocker.blockBots||t.options.deprecated.tools.blocker.blockReferer?e("core-settings-row",{attrs:{name:t.strings.useCustomBlocklists},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-toggle",{model:{value:t.options.deprecated.tools.blocker.custom.enable,callback:function(s){t.$set(t.options.deprecated.tools.blocker.custom,"enable",s)},expression:"options.deprecated.tools.blocker.custom.enable"}})]},proxy:!0}],null,!1,2813344989)}):t._e(),t.options.deprecated.tools.blocker.blockBots&&t.options.deprecated.tools.blocker.custom.enable?e("core-settings-row",{attrs:{name:t.strings.userAgentBlocklist},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-textarea",{attrs:{minHeight:200,maxHeight:200},model:{value:t.options.deprecated.tools.blocker.custom.bots,callback:function(s){t.$set(t.options.deprecated.tools.blocker.custom,"bots",s)},expression:"options.deprecated.tools.blocker.custom.bots"}})]},proxy:!0}],null,!1,2333962956)}):t._e(),t.options.deprecated.tools.blocker.blockReferer&&t.options.deprecated.tools.blocker.custom.enable?e("core-settings-row",{attrs:{name:t.strings.refererBlockList},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-textarea",{attrs:{minHeight:200,maxHeight:200},model:{value:t.options.deprecated.tools.blocker.custom.referer,callback:function(s){t.$set(t.options.deprecated.tools.blocker.custom,"referer",s)},expression:"options.deprecated.tools.blocker.custom.referer"}})]},proxy:!0}],null,!1,3362070519)}):t._e(),t.options.deprecated.tools.blocker.blockBots||t.options.deprecated.tools.blocker.blockReferer?e("core-settings-row",{attrs:{name:t.strings.trackBlockedBots},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-toggle",{model:{value:t.options.deprecated.tools.blocker.track,callback:function(s){t.$set(t.options.deprecated.tools.blocker,"track",s)},expression:"options.deprecated.tools.blocker.track"}}),e("core-alert",{attrs:{type:"blue"},domProps:{innerHTML:t._s(t.strings.logLocation)}})]},proxy:!0}],null,!1,3972286096)}):t._e()],1)],1)},i=[],a=e("5530"),r=e("2f62"),n={data:function(){return{strings:{badBotBlocker:this.$t.__("Bad Bot Blocker",this.$td),blockBadBotsHttp:this.$t.__("Block Bad Bots using HTTP",this.$td),blockReferralSpamHttp:this.$t.__("Block Referral Spam using HTTP",this.$td),trackBlockedBots:this.$t.__("Track Blocked Bots",this.$td),useCustomBlocklists:this.$t.__("Use Custom Blocklists",this.$td),userAgentBlocklist:this.$t.__("User Agent Blocklist",this.$td),refererBlockList:this.$t.__("Referer Blocklist",this.$td),blockedBotsLog:this.$t.__("Blocked Bots Log",this.$td),logLocation:this.$t.sprintf(this.$t.__("The log for the blocked bots is located here: %1$s",this.$td),'<br><a href="'+this.$aioseo.urls.blockedBotsLogUrl+'" target="_blank">'+this.$aioseo.urls.blockedBotsLogUrl+"</a>")}}},computed:Object(a["a"])({},Object(r["e"])(["options"]))},l=n,c=(e("4d74"),e("2877")),d=Object(c["a"])(l,o,i,!1,null,null,null);s["default"]=d.exports},c55f:function(t,s,e){},d046:function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-system-status-info"},[e("core-card",{attrs:{slug:"systemStatusInfo","header-text":t.strings.systemStatusInfo}},[e("div",{staticClass:"actions"},[e("grid-row",[e("grid-column",{staticClass:"left",attrs:{sm:"6"}},[e("base-button",{attrs:{type:"blue",size:"medium"},on:{click:t.downloadSystemStatusInfo}},[e("svg-download"),t._v(" "+t._s(t.strings.downloadSystemInfoFile)+" ")],1),e("base-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copySystemStatusInfo,expression:"copySystemStatusInfo",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}],attrs:{type:"blue",size:"medium"}},[t.copied?t._e():[e("svg-copy"),t._v(" "+t._s(t.strings.copyToClipboard)+" ")],t.copied?[e("svg-checkmark"),t._v(" "+t._s(t.strings.copied)+" ")]:t._e()],2)],1),e("grid-column",{staticClass:"right",attrs:{sm:"6"}},[e("base-input",{class:{"aioseo-error":t.emailError},attrs:{size:"medium",placeholder:t.strings.emailDebugInformation},model:{value:t.emailAddress,callback:function(s){t.emailAddress=s},expression:"emailAddress"}}),e("base-button",{attrs:{type:"blue",size:"medium",loading:t.sendingEmail},on:{click:t.processEmailDebugInfo}},[t._v(" "+t._s(t.strings.submit)+" ")])],1)],1)],1),e("div",{staticClass:"aioseo-settings-row"},[t._l(t.$aioseo.data.status,(function(s,o){return[s.results.length?e("div",{key:o,staticClass:"settings-group"},[e("div",{staticClass:"settings-name"},[e("div",{staticClass:"name"},[t._v(t._s(s.label))])]),e("div",{staticClass:"settings-content"},[e("div",{staticClass:"system-status-table"},t._l(s.results,(function(s,o){return e("table-row",{key:o,class:{even:0===o%2}},[e("table-column",{staticClass:"system-status-header"},[t._v(" "+t._s(s.header)+" ")]),e("table-column",[t._v(" "+t._s(s.value)+" ")])],1)})),1)])]):t._e()]}))],2)])],1)},i=[],a=e("5530"),r=(e("d3b7"),e("3ca3"),e("ddb0"),e("2b3d"),e("2f62")),n={data:function(){return{copied:!1,emailError:null,emailAddress:null,sendingEmail:!1,strings:{systemStatusInfo:this.$t.__("System Status Info",this.$td),downloadSystemInfoFile:this.$t.__("Download System Info File",this.$td),copyToClipboard:this.$t.__("Copy to Clipboard",this.$td),emailDebugInformation:this.$t.__("Email Debug Information",this.$td),submit:this.$t.__("Submit",this.$td),wordPress:this.$t.__("WordPress",this.$td),serverInfo:this.$t.__("Server Info",this.$td),activeTheme:this.$t.__("Active Theme",this.$td),muPlugins:this.$t.__("Must-Use Plugins",this.$td),activePlugins:this.$t.__("Active Plugins",this.$td),inactivePlugins:this.$t.__("Inactive Plugins",this.$td),copied:this.$t.__("Copied!",this.$td)}}},computed:{copySystemStatusInfo:function(){return JSON.stringify(this.$aioseo.data.status)}},methods:Object(a["a"])(Object(a["a"])({},Object(r["b"])(["emailDebugInfo"])),{},{onCopy:function(){var t=this;this.copied=!0,setTimeout((function(){t.copied=!1}),2e3)},onError:function(){},downloadSystemStatusInfo:function(){var t=new Blob([JSON.stringify(this.$aioseo.data.status)],{type:"application/json"}),s=document.createElement("a");s.href=URL.createObjectURL(t),s.download="aioseo-system-status-".concat(this.$moment().format("YYYY-MM-DD"),".json"),s.click(),URL.revokeObjectURL(s.href)},processEmailDebugInfo:function(){var t=this;this.emailError=!1,this.emailAddress&&/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(this.emailAddress)?(this.sendingEmail=!0,this.emailDebugInfo(this.emailAddress).then((function(){t.emailAddress=null,t.sendingEmail=!1}))):this.emailError=!0}})},l=n,c=(e("4cec"),e("2877")),d=Object(c["a"])(l,o,i,!1,null,null,null);s["default"]=d.exports},db9a:function(t,s,e){},e0b8:function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-debug"},[e("core-card",{attrs:{slug:"debug","header-text":t.strings.debug}},[e("core-alert",{staticClass:"warning",attrs:{type:"yellow"}},[t._v(" "+t._s(t.strings.warning)+" ")]),e("core-settings-row",{staticClass:"first-row",attrs:{name:t.strings.general,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"clear-cache",attrs:{type:"blue",size:"medium",loading:t.loading.clearCache},on:{click:t.clearCache}},[t._v(" "+t._s(t.strings.clearCache)+" ")]),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.clearCacheDescription)+" ")])],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"readd-capabilities",attrs:{type:"blue",size:"medium",loading:t.loading.readdCapabilities},on:{click:t.readdCapabilities}},[t._v(" "+t._s(t.strings.readdCapabilities)+" ")]),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.readdCapabilitiesDescription)+" ")])],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"rerun-migrations",attrs:{type:"blue",size:"medium",loading:t.loading.rerunMigrations},on:{click:t.rerunMigrations}},[t._v(" "+t._s(t.strings.rerunMigrations)+" ")]),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.rerunMigrationsDescription)+" ")])],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"remove-duplicates",attrs:{type:"blue",size:"medium",loading:t.loading.removeDuplicates},on:{click:t.removeDuplicates}},[t._v(" "+t._s(t.strings.removeDuplicates)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.removeDuplicatesDescription)}})],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"unescape-data",attrs:{type:"blue",size:"medium",loading:t.loading.unescapeData},on:{click:t.unescapeData}},[t._v(" "+t._s(t.strings.unescapeData)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.unescapeDataDescription)}})],1)]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.sitemap,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"clear-image-data",attrs:{type:"blue",size:"medium",loading:t.loading.clearImageData},on:{click:t.clearImageData}},[t._v(" "+t._s(t.strings.clearImageData)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.clearImageDataDescription)}})],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"clear-video-data",attrs:{type:"blue",size:"medium",loading:t.loading.clearVideoData},on:{click:t.clearVideoData}},[t._v(" "+t._s(t.strings.clearVideoData)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.clearVideoDataDescription)}})],1)]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.linkAssistant,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"undismiss-suggestions",attrs:{type:"blue",size:"medium",loading:t.loading.undismissSuggestions},on:{click:t.undismissSuggestions}},[t._v(" "+t._s(t.strings.undismissSuggestions)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.undismissSuggestionsDescription)}})],1),e("div",{staticClass:"action-row"},[e("base-button",{staticClass:"clear-link-data",attrs:{type:"blue",size:"medium",loading:t.loading.clearLinkAssistantData},on:{click:t.clearLinkAssistantData}},[t._v(" "+t._s(t.strings.clearLinkAssistantData)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.clearLinkAssistantDataDescription)}})],1)]},proxy:!0}])}),e("core-settings-row",{attrs:{name:t.strings.migration,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[t.$aioseo.data.isDev?e("base-button",{staticClass:"redo-v3-migration",attrs:{type:"blue",size:"medium",loading:t.loading.restartMigration},on:{click:t.maybeRestartMigration}},[t._v(" "+t._s(t.strings.restartMigration)+" ")]):t._e(),e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.restartMigrationDescriptionPart1)+" ")]),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.restartMigrationDescriptionPart2)}})]},proxy:!0}])}),t.showAreYouSureModal?e("core-modal",{attrs:{"no-header":""},scopedSlots:t._u([{key:"body",fn:function(){return[e("div",{staticClass:"aioseo-modal-body"},[e("button",{staticClass:"close",on:{click:function(s){s.stopPropagation(),t.showAreYouSureModal=!1}}},[e("svg-close",{on:{click:function(s){t.showDeleteModal=!1}}})],1),e("h3",[t._v(t._s(t.strings.areYouSureTitle))]),e("div",{staticClass:"reset-description",domProps:{innerHTML:t._s(t.strings.cannotBeUndone)}}),e("base-button",{attrs:{type:"blue",size:"medium"},on:{click:t.restartMigration}},[t._v(" "+t._s(t.strings.startMigration)+" ")]),e("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(s){t.showAreYouSureModal=!1}}},[t._v(" "+t._s(t.strings.noChangedMind)+" ")])],1)]},proxy:!0}],null,!1,14870036)}):t._e()],1)],1)},i=[],a=e("0614"),r={mixins:[a["a"]]},n=r,l=e("2877"),c=Object(l["a"])(n,o,i,!1,null,null,null);s["default"]=c.exports},e4d8:function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-robots-editor"},[e("core-card",{attrs:{slug:"robotsEditor","header-text":t.strings.robotsEditor}},[e("div",{staticClass:"aioseo-settings-row aioseo-section-description"},[t._v(" "+t._s(t.strings.description)+" "),e("br"),e("br"),t._v(" "+t._s(t.strings.description2)+" "),e("span",{domProps:{innerHTML:t._s(t.$links.getDocLink(t.$constants.GLOBAL_STRINGS.learnMore,"robotsEditor",!0))}})]),t.$aioseo.data.robots.hasPhysicalRobots&&t.options.tools.robots.robotsDetected?e("div",{staticClass:"aioseo-settings-row physical-robots"},[e("core-alert",{attrs:{type:"red","show-close":""},on:{"close-alert":t.hideRobotsDetected}},[t._v(" "+t._s(t.strings.physicalRobotsFound)+" "),e("div",{staticClass:"buttons"},[e("base-button",{attrs:{type:"blue",size:"medium",loading:t.importLoading},on:{click:t.importAndDeleteRobots}},[t._v(" "+t._s(t.strings.importAndDelete)+" ")]),e("base-button",{attrs:{type:"blue",size:"medium",loading:t.deleteLoading},on:{click:t.deleteRobots}},[t._v(" "+t._s(t.strings.delete)+" ")])],1)])],1):t._e(),t.$aioseo.data.robots.rewriteExists?t._e():e("div",{staticClass:"aioseo-settings-row rewrite-exists"},[e("core-alert",{attrs:{type:"red"},domProps:{innerHTML:t._s(t.missingRewriteRules)}})],1),e("core-settings-row",{attrs:{name:t.$constants.GLOBAL_STRINGS.preview,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"aioseo-sitemap-preview"},[e("base-button",{attrs:{size:"medium",type:"blue",tag:"a",href:t.$aioseo.urls.robotsTxtUrl,target:"_blank"}},[e("svg-external"),t._v(" "+t._s(t.strings.openRobotsTxt)+" ")],1)],1)]},proxy:!0}])}),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?e("core-settings-row",{attrs:{name:t.strings.enableCustomRobots},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-toggle",{model:{value:t.options.tools.robots.enable,callback:function(s){t.$set(t.options.tools.robots,"enable",s)},expression:"options.tools.robots.enable"}})]},proxy:!0}],null,!1,1538436598)}):t._e(),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?t._e():e("core-alert",{attrs:{type:"blue"},domProps:{innerHTML:t._s(t.subdirectoryAlert)}}),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?e("div",{staticClass:"aioseo-settings-row"},[e("div",{staticClass:"settings-content"},[this.hasErrors?e("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.duplicateOrInvalid)+" ")]):t._e(),e("div",{staticClass:"robots-table"},[e("div",{staticClass:"robots-header"},[e("div",{staticClass:"robots-user-agent"},[t._v(t._s(t.strings.userAgent))]),e("div",{staticClass:"robots-rule"},[t._v(t._s(t.strings.rule))]),e("div",{staticClass:"robots-directory-path"},[t._v(t._s(t.strings.directoryPath))]),e("div",{staticClass:"robots-actions"})]),e("div",{staticClass:"robots-rows"},t._l(t.parsedRules,(function(s,o){return e("div",{key:o,staticClass:"robots-row",class:{even:0===o%2}},[e("div",{staticClass:"robots-user-agent"},[e("base-input",{ref:"userAgent",refInFor:!0,class:t.hasError(s.userAgent+s.rule+s.directoryPath),attrs:{value:s.userAgent,size:"medium",placeholder:t.strings.userAgentPlaceholder,disabled:!t.options.tools.robots.enable},on:{blur:function(s){return t.updateRule("userAgent",s,o)}}})],1),e("div",{staticClass:"robots-rule"},[e("base-radio",{ref:"allow",refInFor:!0,attrs:{name:"rule-"+o,value:"allow"===s.rule,disabled:!t.options.tools.robots.enable,size:"medium",type:2},on:{input:function(s){return t.updateRule("rule","allow",o)}}},[t._v(" "+t._s(t.strings.allow)+" ")]),e("base-radio",{ref:"disallow",refInFor:!0,attrs:{name:"rule-"+o,value:"disallow"===s.rule,disabled:!t.options.tools.robots.enable,size:"medium",type:2},on:{input:function(s){return t.updateRule("rule","disallow",o)}}},[t._v(" "+t._s(t.strings.disallow)+" ")])],1),e("div",{staticClass:"robots-directory-path"},[e("base-input",{class:t.hasError(s.userAgent+s.rule+s.directoryPath),attrs:{value:s.directoryPath,size:"medium",placeholder:t.strings.directoryPathPlaceholder,disabled:!t.options.tools.robots.enable},on:{blur:function(s){return t.updateRule("directoryPath",s,o)}}})],1),e("div",{staticClass:"robots-actions"},[t.options.tools.robots.enable?e("core-tooltip",{attrs:{type:"action"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.deleteRule)+" ")]},proxy:!0}],null,!0)},[e("svg-trash",{nativeOn:{click:function(s){return t.removeRow(o)}}})],1):t._e()],1)])})),0)]),e("base-button",{attrs:{type:"blue",size:"medium",disabled:!t.options.tools.robots.enable},on:{click:t.addRow}},[e("svg-circle-plus"),t._v(" "+t._s(t.strings.addRule)+" ")],1)],1)]):t._e(),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?e("div",{staticClass:"aioseo-settings-row"},[e("div",{staticClass:"settings-name"},[e("div",{staticClass:"name"},[t._v(t._s(t.strings.robotsPreview))])]),e("div",{staticClass:"settings-content"},[e("base-editor",{attrs:{value:t.robotsTxt,"line-numbers":!0,"minimum-line-numbers":13,disabled:"","force-updates":"",monospace:""}})],1)]):t._e()],1)],1)},i=[],a=e("5530"),r=(e("d81d"),e("a15b"),e("4de4"),e("b64b"),e("fb6a"),e("caad"),e("2532"),e("159b"),e("ac1f"),e("5319"),e("466d"),e("40d1")),n=e("9c0e"),l=e("2f62"),c={userAgent:null,rule:"allow",directoryPath:null},d={mixins:[n["m"]],data:function(){return{importLoading:!1,deleteLoading:!1,errors:{},strings:{robotsEditor:this.$t.__("Robots.txt Editor",this.$td),description:this.$t.sprintf(this.$t.__("The robots.txt editor in %1$s allows you to set up a robots.txt file for your site that will override the default robots.txt file that WordPress creates. By creating a robots.txt file with %2$s you have greater control over the instructions you give web crawlers about your site.",this.$td),"AIOSEO","AIOSEO"),description2:this.$t.sprintf(this.$t.__("Just like WordPress, %1$s generates a dynamic file so there is no static file to be found on your server. The content of the robots.txt file is stored in your WordPress database.",this.$td),"All in One SEO"),enableCustomRobots:this.$t.__("Enable Custom Robots.txt",this.$td),duplicateOrInvalid:this.$t.__("Duplicate or invalid entries have been detected! Please check your rules and try again.",this.$td),userAgent:this.$t.__("User Agent",this.$td),rule:this.$t.__("Rule",this.$td),directoryPath:this.$t.__("Directory Path",this.$td),allow:this.$t.__("Allow",this.$td),disallow:this.$t.__("Disallow",this.$td),addRule:this.$t.__("Add Rule",this.$td),deleteRule:this.$t.__("Delete Rule",this.$td),robotsPreview:this.$t.__("Robots.txt Preview:",this.$td),openRobotsTxt:this.$t.__("Open Robots.txt",this.$td),physicalRobotsFound:this.$t.sprintf(this.$t.__("%1$s has detected a physical robots.txt file in the root folder of your WordPress installation. We recommend removing this file as it could cause conflicts with WordPress' dynamically generated one. %2$s can import this file and delete it, or you can simply delete it.",this.$td),"AIOSEO","AIOSEO"),importAndDelete:this.$t.__("Import and Delete",this.$td),delete:this.$t.__("Delete",this.$td)}}},watch:{options:{deep:!0,handler:function(){this.validateRules()}}},computed:Object(a["a"])(Object(a["a"])(Object(a["a"])({},Object(l["e"])(["options"])),Object(l["c"])(["getNetworkRobotsRules"])),{},{parsedRules:function(){return this.options.tools.robots.rules.map((function(t){return JSON.parse(t)}))},robotsTxt:function(){var t=JSON.parse(JSON.stringify(this.$aioseo.data.multisite&&!this.$aioseo.data.network?this.getNetworkRobotsRules:{})),s=JSON.parse(JSON.stringify(this.$aioseo.data.robots.defaultRules)),e="\r\n"+this.$aioseo.data.robots.sitemapUrls.filter((function(t){return 0<t.length})).join("\r\n");return this.options.tools.robots.enable?Object(r["c"])(Object(r["a"])(Object(a["a"])({},s),Object(r["a"])(Object(a["a"])({},t),Object(r["b"])(this.options.tools.robots.rules)),!1,!0))+e:Object(r["c"])(Object(r["a"])(Object(a["a"])({},s),Object(a["a"])({},t)))+e},hasErrors:function(){return Object.keys(this.errors).length},subdirectoryAlert:function(){return this.$t.sprintf(this.$t.__("This site is running in a sub-directory of your main site located at %1$s. Your robots.txt file should only appear in the root directory of that site.",this.$td),'<a href="'+this.$aioseo.urls.mainSiteUrl+'" target="_blank"><strong>'+this.$aioseo.urls.mainSiteUrl+"</strong></a>")},missingRewriteRules:function(){var t=this.$t.__("It looks like you are missing the proper rewrite rules for the robots.txt file.",this.$td),s="";return this.$aioseo.data.server.apache?s=this.$t.sprintf(this.$t.__("It appears that your server is running on Apache, so the fix should be as simple as checking the %1$scorrect .htaccess implementation on wordpress.org%2$s.",this.$td),'<a href="https://wordpress.org/support/article/htaccess/" target="_blank">',"</a>"):this.$aioseo.data.server.nginx&&(s=s=this.$t.sprintf(this.$t.__("It appears that your server is running on nginx, so the fix will most likely require adding the correct rewrite rules to our nginx configuration. %1$sCheck our documentation for more information%2$s.",this.$td),'<a href="'+this.$links.getDocUrl("robotsRewrite")+'" target="_blank">',"</a>")),t+" "+s}}),methods:Object(a["a"])(Object(a["a"])({},Object(l["b"])(["processButtonAction"])),{},{removeRow:function(t){this.$delete(this.options.tools.robots.rules,t),this.options.tools.robots.rules.length||this.addRow(),this.validateRules()},addRow:function(){var t=this;this.options.tools.robots.rules.push(JSON.stringify(Object(a["a"])({},c))),this.$nextTick((function(){t.$refs.userAgent[t.options.tools.robots.rules.length-1].$el.querySelector(".robots-user-agent input").focus()}))},updateRule:function(t,s,e){var o=this,i=JSON.parse(this.options.tools.robots.rules[e]);i[t]=s,this.$set(this.options.tools.robots.rules,e,JSON.stringify(i)),"directoryPath"===t&&(i[t]=this.sanitizePath(s),this.$set(this.options.tools.robots.rules,e,JSON.stringify(i))),this.validateRules(),"rule"===t&&this.$nextTick((function(){return o.$refs[s][e].$el.querySelector("input").focus()}))},sanitizePath:function(t){return"*"===t.slice(t.length-1)||t.includes(".")||(t=this.$links.trailingSlashIt(t)),"/"!==t.charAt(0)&&(t="/"+t),t.toLowerCase()},hasError:function(t){return this.errors[t]?"aioseo-error":""},validateRules:function(){var t=this;if(this.errors={},this.options.tools.robots.enable){var s={},e=JSON.parse(JSON.stringify(this.$aioseo.data.multisite&&!this.$aioseo.data.network?this.getNetworkRobotsRules:{})),o=JSON.parse(JSON.stringify(this.$aioseo.data.robots.defaultRules)),i=Object(r["a"])(Object(a["a"])({},o),Object(r["b"])(this.options.tools.robots.rules,!0),!0);Object.keys(i).forEach((function(e){var o=i[e];s[e]||(s[e]={allow:[],disallow:[]}),o.allow.forEach((function(o){s[e].allow.includes(o)?t.errors[e+"allow"+o]=!0:s[e].allow.push(o)})),o.disallow.forEach((function(o){s[e].disallow.includes(o)?t.errors[e+"disallow"+o]=!0:s[e].disallow.push(o)}))}));var n={},l=Object(r["a"])(Object(a["a"])({},e),Object(r["b"])(this.options.tools.robots.rules,!0),!0);Object.keys(l).forEach((function(s){var e=l[s];n[s]||(n[s]={allow:[],disallow:[]}),e.allow.forEach((function(e){if(n[s].allow.includes(e))t.errors[s+"allow"+e]=!0;else{if(n[s].disallow.includes(e))return t.errors[s+"allow"+e]=!0,void(t.errors[s+"disallow"+e]=!0);var o="^"+e.replace(".","\\.").replace("/","\\/").replace("*","(.*)")+"$",i=n[s].allow.some((function(t){return t&&t.match(o)}))||n[s].disallow.some((function(t){return t&&t.match(o)}));if(i)return t.errors[s+"allow"+e]=!0,void(t.errors[s+"disallow"+e]=!0);n[s].allow.push(e)}})),e.disallow.forEach((function(e){if(n[s].disallow.includes(e))t.errors[s+"disallow"+e]=!0;else{if(n[s].allow.includes(e))return t.errors[s+"allow"+e]=!0,void(t.errors[s+"disallow"+e]=!0);var o="^"+e.replace(".","\\.").replace("/","\\/").replace("*","(.*)")+"$",i=n[s].allow.some((function(t){return t&&t.match(o)}))||n[s].disallow.some((function(t){return t&&t.match(o)}));if(i)return t.errors[s+"allow"+e]=!0,void(t.errors[s+"disallow"+e]=!0);n[s].disallow.push(e)}}))}))}},importAndDeleteRobots:function(){this.importLoading=!0,this.processButtonAction("tools/import-robots-txt").then((function(){window.location.reload()}))},deleteRobots:function(){this.deleteLoading=!0,this.processButtonAction("tools/delete-robots-txt").then((function(){window.location.reload()}))},hideRobotsDetected:function(){this.options.tools.robots.robotsDetected=!1,this.saveChanges()}}),mounted:function(){this.validateRules(),this.options.tools.robots.rules.length||this.addRow()}},u=d,g=(e("5d3c"),e("2877")),h=Object(g["a"])(u,o,i,!1,null,null,null);s["default"]=h.exports},e6b1:function(t,s,e){"use strict";e.r(s);var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-tools-database-tools"},[e("core-card",{attrs:{slug:"databaseTools","header-text":t.strings.resetRestoreSettings}},[e("core-settings-row",{attrs:{name:t.strings.selectSettings},scopedSlots:t._u([{key:"content",fn:function(){return[t.showSuccess?e("core-alert",{staticClass:"reset-success",attrs:{type:"green"}},[t._v(" "+t._s(t.strings.resetSuccess)+" ")]):t._e(),e("div",{staticClass:"reset-settings"},[t._v(" "+t._s(t.strings.selectSettingsToReset)+" "),e("br"),e("br"),e("grid-row",{staticClass:"settings"},[e("grid-column",[e("base-checkbox",{attrs:{size:"medium"},model:{value:t.options.all,callback:function(s){t.$set(t.options,"all",s)},expression:"options.all"}},[t._v(" "+t._s(t.strings.allSettings)+" ")])],1),t._l(t.toolsSettings,(function(s,o){return e("grid-column",{key:o,attrs:{xl:"3",md:"4",sm:"6"}},[t.options.all?t._e():e("base-checkbox",{attrs:{size:"medium"},model:{value:t.options[s.value],callback:function(e){t.$set(t.options,s.value,e)},expression:"options[setting.value]"}},[t._v(" "+t._s(s.label)+" ")]),"all"!==s.value&&t.options.all?e("base-checkbox",{attrs:{size:"medium",value:!0,disabled:""}},[t._v(" "+t._s(s.label)+" ")]):t._e()],1)}))],2),e("base-button",{attrs:{type:"gray",size:"medium",disabled:t.canReset},on:{click:function(s){t.showModal=!0}}},[t._v(" "+t._s(t.strings.resetSelectedSettings)+" ")])],1)]},proxy:!0}])})],1),t.showLogs?e("core-card",{attrs:{slug:"databaseToolsLogs","header-text":t.strings.logs},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.logsTooltip)+" ")]},proxy:!0}],null,!1,3934548655)},[t.$aioseo.data.logSizes.logs404?e("core-settings-row",{attrs:{name:t.strings.logs404,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-button",{staticClass:"clear-log",attrs:{type:"gray",size:"medium",loading:"logs404"===t.loadingLog,disabled:t.disabledLog("logs404")},on:{click:function(s){return t.processClearLog("logs404")}}},[t.disabledLog("logs404")?e("span",[e("svg-checkmark"),t._v(" "+t._s(t.strings.cleared)+" ")],1):t._e(),t.disabledLog("logs404")?t._e():e("span",[t._v(" "+t._s(t.strings.clear404Logs)+" ")])]),e("div",{staticClass:"log-size"},[e("span",{staticClass:"size-dot",class:t.getSizeClass(t.$aioseo.data.logSizes.logs404.original)}),t._v(" "+t._s(t.$aioseo.data.logSizes.logs404.readable)+" ")])]},proxy:!0}],null,!1,1716809233)}):t._e(),t.$aioseo.data.logSizes.redirectLogs?e("core-settings-row",{attrs:{name:t.strings.redirectLogs,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-button",{staticClass:"clear-log",attrs:{type:"gray",size:"medium",loading:"redirectLogs"===t.loadingLog,disabled:t.disabledLog("redirectLogs")},on:{click:function(s){return t.processClearLog("redirectLogs")}}},[t.disabledLog("redirectLogs")?e("span",[e("svg-checkmark"),t._v(" "+t._s(t.strings.cleared)+" ")],1):t._e(),t.disabledLog("redirectLogs")?t._e():e("span",[t._v(" "+t._s(t.strings.clearRedirectLogs)+" ")])]),e("div",{staticClass:"log-size"},[e("span",{staticClass:"size-dot",class:t.getSizeClass(t.$aioseo.data.logSizes.redirectLogs.original)}),t._v(" "+t._s(t.$aioseo.data.logSizes.redirectLogs.readable)+" ")])]},proxy:!0}],null,!1,4167017073)}):t._e(),t.showBadBotBlockerLogs?e("core-settings-row",{attrs:{name:t.strings.badBotBlockerLogs,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-button",{staticClass:"clear-log",attrs:{type:"gray",size:"medium",loading:"badBotBlockerLog"===t.loadingLog,disabled:t.disabledLog("badBotBlockerLog")},on:{click:function(s){return t.processClearLog("badBotBlockerLog")}}},[t.disabledLog("badBotBlockerLog")?e("span",[e("svg-checkmark"),t._v(" "+t._s(t.strings.cleared)+" ")],1):t._e(),t.disabledLog("badBotBlockerLog")?t._e():e("span",[t._v(" "+t._s(t.strings.clearBadBotBlockerLogs)+" ")])]),e("div",{staticClass:"log-size"},[e("span",{staticClass:"size-dot",class:t.getSizeClass(t.$aioseo.data.logSizes.badBotBlockerLog.original)}),t._v(" "+t._s(t.$aioseo.data.logSizes.badBotBlockerLog.readable)+" ")])]},proxy:!0}],null,!1,649968002)}):t._e()],1):t._e(),t.showModal?e("core-modal",{attrs:{"no-header":""},scopedSlots:t._u([{key:"body",fn:function(){return[e("div",{staticClass:"aioseo-modal-body"},[e("button",{staticClass:"close",on:{click:function(s){s.stopPropagation(),t.showModal=!1}}},[e("svg-close",{on:{click:function(s){t.showModal=!1}}})],1),e("h3",[t._v(t._s(t.strings.areYouSureReset))]),e("div",{staticClass:"reset-description",domProps:{innerHTML:t._s(t.strings.actionCannotBeUndone)}}),e("base-button",{attrs:{type:"blue",size:"medium",loading:t.loading},on:{click:t.processResetSettings}},[t._v(" "+t._s(t.strings.yesIHaveBackup)+" ")]),e("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(s){t.showModal=!1}}},[t._v(" "+t._s(t.strings.noBackup)+" ")])],1)]},proxy:!0}],null,!1,2298756748)}):t._e()],1)},i=[],a=e("5530"),r=(e("159b"),e("b64b"),e("caad"),e("2532"),e("4de4"),e("2f62")),n=e("9c0e"),l={mixins:[n["q"]],data:function(){return{clearedLogs:{badBotBlockerLogs:!1,redirectLogs:!1,logs404:!1},showModal:!1,loading:!1,loadingLog:null,showSuccess:!1,options:{},strings:{resetRestoreSettings:this.$t.__("Reset / Restore Settings",this.$td),selectSettings:this.$t.__("Select Settings",this.$td),selectSettingsToReset:this.$t.__("Select settings that you would like to reset:",this.$td),resetSelectedSettings:this.$t.__("Reset Selected Settings to Default",this.$td),resetSuccess:this.$t.__("Your settings have been reset successfully!",this.$td),areYouSureReset:this.$t.__("Are you sure you want to reset the selected settings to default?",this.$td),actionCannotBeUndone:this.$t.sprintf(this.$t.__("This action cannot be undone. Before taking this action, we recommend that you make a %1$sfull website backup first%2$s.",this.$td),"<strong>","</strong>"),yesIHaveBackup:this.$t.__("Yes, I have a backup and want to reset the settings",this.$td),noBackup:this.$t.__("No, I need to make a backup",this.$td),logs:this.$t.__("Logs",this.$td),badBotBlockerLogs:this.$t.__("Bad Bot Blocker Logs",this.$td),cleared:this.$t.__("Cleared",this.$td),clearBadBotBlockerLogs:this.$t.__("Clear Bad Bot Blocker Logs",this.$td),logs404:this.$t.__("404 Logs",this.$td),clear404Logs:this.$t.__("Clear 404 Logs",this.$td),redirectLogs:this.$t.__("Redirect Logs",this.$td),clearRedirectLogs:this.$t.__("Clear Redirect Logs",this.$td),allSettings:this.$t.sprintf(this.$t.__("All %1$s Settings",this.$td),"AIOSEO"),logsTooltip:this.$t.__('Log sizes may fluctuate and not always be 100% accurate since the results can be cached. Also after clearing a log, it may not show as "0" since database tables also include additional information such as indexes that we don\'t clear.',this.$td)}}},computed:{canReset:function(){var t=this,s=[];return Object.keys(this.options).forEach((function(e){s.push(t.options[e])})),!s.some((function(t){return t}))},showLogs:function(){return this.showBadBotBlockerLogs||this.$aioseo.data.logSizes.redirectLogs||this.$aioseo.data.logSizes.logs404},showBadBotBlockerLogs:function(){return window.aioseo.internalOptions.internal.deprecatedOptions.includes("badBotBlocker")}},methods:Object(a["a"])(Object(a["a"])({},Object(r["b"])(["resetSettings","clearLog"])),{},{processResetSettings:function(){var t=this,s=[];this.options.all?this.toolsSettings.filter((function(t){return"all"!==t.value})).forEach((function(t){s.push(t.value)})):Object.keys(this.options).forEach((function(e){t.options[e]&&s.push(e)})),this.loading=!0,this.resetSettings(s).then((function(){t.showModal=!1,t.loading=!1,t.showSuccess=!0,t.options={},setTimeout((function(){t.showSuccess=!1}),5e3)}))},getSizeClass:function(t){var s="green";return 262144e3<t?s="orange":1073741274<t&&(s="red"),s},processClearLog:function(t){var s=this;this.loadingLog=t,this.clearLog(t).then((function(){s.loadingLog=null,s.clearedLogs[t]=!0}))},disabledLog:function(t){return!this.$aioseo.data.logSizes[t].original||this.clearedLogs[t]}})},c=l,d=(e("2853"),e("2877")),u=Object(d["a"])(c,o,i,!1,null,null,null);s["default"]=u.exports},fd4e:function(t,s,e){"use strict";e("464d")}}]);