(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"],{"1c6d":function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tools-debug"},[s("core-card",{attrs:{slug:"debug","header-text":t.strings.debug}},[s("core-alert",{staticClass:"warning",attrs:{type:"yellow"}},[t._v(" "+t._s(t.strings.warning)+" ")]),s("core-settings-row",{staticClass:"first-row",attrs:{name:t.strings.general,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"action-row"},[t.$aioseo.data.isDev?s("base-button",{staticClass:"clear-cache",attrs:{type:"blue",size:"medium",loading:t.loading.clearingCache},on:{click:t.clearCache}},[t._v(" "+t._s(t.strings.clearCache)+" ")]):t._e(),s("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.clearCacheDescription)+" ")])],1),s("div",{staticClass:"action-row"},[t.$aioseo.data.isDev?s("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)+" ")]):t._e(),s("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.removeDuplicatesDescription)}})],1),s("div",{staticClass:"action-row"},[t.$aioseo.data.isDev?s("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)+" ")]):t._e(),s("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.unescapeDataDescription)}})],1)]},proxy:!0}])}),s("core-settings-row",{attrs:{name:"Sitemap",align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"action-row"},[t.$aioseo.data.isDev?s("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)+" ")]):t._e(),s("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.clearImageDataDescription)}})],1),t.$isPro?s("div",{staticClass:"action-row"},[t.$aioseo.data.isDev?s("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)+" ")]):t._e(),s("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.clearVideoDataDescription)}})],1):t._e()]},proxy:!0}])}),s("core-settings-row",{attrs:{name:"Migration",align:""},scopedSlots:t._u([{key:"content",fn:function(){return[t.$aioseo.data.isDev?s("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(),s("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.restartMigrationDescriptionPart1)+" ")]),s("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.restartMigrationDescriptionPart2)}})]},proxy:!0}])}),t.showAreYouSureModal?s("core-modal",{attrs:{"no-header":""},scopedSlots:t._u([{key:"body",fn:function(){return[s("div",{staticClass:"aioseo-modal-body"},[s("button",{staticClass:"close",on:{click:function(e){e.stopPropagation(),t.showAreYouSureModal=!1}}},[s("svg-close",{on:{click:function(e){t.showDeleteModal=!1}}})],1),s("h3",[t._v(t._s(t.strings.areYouSureTitle))]),s("div",{staticClass:"reset-description",domProps:{innerHTML:t._s(t.strings.cannotBeUndone)}}),s("base-button",{attrs:{type:"blue",size:"medium"},on:{click:t.restartMigration}},[t._v(" "+t._s(t.strings.startMigration)+" ")]),s("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(e){t.showAreYouSureModal=!1}}},[t._v(" "+t._s(t.strings.noChangedMind)+" ")])],1)]},proxy:!0}],null,!1,14870036)}):t._e()],1)],1)},a=[],i=s("5530"),r=s("2f62"),n={data:function(){var t=this.$t.sprintf('Scheduled Actions',this.$aioseo.urls.admin.scheduledActions);return{showAreYouSureModal:!1,loading:{clearingCache:!1,removeDuplicates:!1,unescapeData:!1,clearImageData:!1,clearVideoData:!1,restartMigration:!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.",removeDuplicates:"Remove Duplicates",removeDuplicatesDescription:"This action will remove any duplicate records that are found in the aioseo_posts or aioseo_terms 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 aioseo_unslash_escaped_data_posts or aioseo_unslash_escaped_data_terms action.",t),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 aioseo_video_sitemap_scan 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 aioseo_video_sitemap_scan action.",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 aioseo_migrate_post_meta or aioseo_migrate_term_meta action.",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"}}},methods:Object(i["a"])(Object(i["a"])({},Object(r["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(){return console.error("Cache could not be cleared.")}))},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(){return console.error("Duplicates could not be removed.")}))},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(){return console.error("Cleaning procedure for escaped data could not be scheduled.")}))},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(){return console.error("Image data could not be wiped.")}))},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(){return console.error("Video data could not be cleared.")}))},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(){return console.error("Migration could not be restarted.")}))}})},l=n,c=(s("fd4e"),s("2877")),d=Object(c["a"])(l,o,a,!1,null,null,null);e["default"]=d.exports},"1d7b":function(t,e,s){"use strict";s("db9a")},2653:function(t,e,s){},2853:function(t,e,s){"use strict";s("5c24")},"3b6e":function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tools-htaccess-editor"},[s("core-card",{attrs:{slug:"htaccessEditor","header-text":t.strings.htaccessEditor}},[s("div",{staticClass:"aioseo-settings-row aioseo-section-description",domProps:{innerHTML:t._s(t.strings.description)}}),s("core-settings-row",{attrs:{name:t.strings.editHtaccess,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[t.htaccessError?s("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.htaccessError)+" ")]):t._e(),s("base-editor",{staticClass:"htaccess-editor",attrs:{disabled:!t.$aioseo.user.unfilteredHtml,"line-numbers":"",monospace:""},model:{value:t.$aioseo.data.htaccess,callback:function(e){t.$set(t.$aioseo.data,"htaccess",e)},expression:"$aioseo.data.htaccess"}})]},proxy:!0}])})],1)],1)},a=[],i=s("5530"),r=s("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),"","")}}},computed:Object(i["a"])({},Object(r["e"])(["htaccessError"]))},l=n,c=(s("1d7b"),s("2877")),d=Object(c["a"])(l,o,a,!1,null,null,null);e["default"]=d.exports},"464d":function(t,e,s){},"4cec":function(t,e,s){"use strict";s("8772")},"4d74":function(t,e,s){"use strict";s("2653")},"5a9b":function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("core-main",{attrs:{"page-name":t.strings.pageName,"show-save-button":t.showSaveButton}},[s(t.$route.name,{tag:"component"})],1)},a=[],i=(s("b0c0"),s("af30")),r=s("e6b1"),n=s("1c6d"),l=s("3b6e"),c=s("0687"),d=s("e4d8"),u=s("d046"),h={components:{BadBotBlocker:i["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}}},g=h,p=s("2877"),b=Object(p["a"])(g,o,a,!1,null,null,null);e["default"]=b.exports},"5c24":function(t,e,s){},"5d3c":function(t,e,s){"use strict";s("c55f")},8772:function(t,e,s){},af30:function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tools-bad-bot-blocker"},[s("core-card",{attrs:{slug:"badBotBlocker","header-text":t.strings.badBotBlocker}},[s("core-settings-row",{attrs:{name:t.strings.blockBadBotsHttp},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-toggle",{model:{value:t.options.deprecated.tools.blocker.blockBots,callback:function(e){t.$set(t.options.deprecated.tools.blocker,"blockBots",e)},expression:"options.deprecated.tools.blocker.blockBots"}})]},proxy:!0}])}),s("core-settings-row",{attrs:{name:t.strings.blockReferralSpamHttp},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-toggle",{model:{value:t.options.deprecated.tools.blocker.blockReferer,callback:function(e){t.$set(t.options.deprecated.tools.blocker,"blockReferer",e)},expression:"options.deprecated.tools.blocker.blockReferer"}})]},proxy:!0}])}),t.options.deprecated.tools.blocker.blockBots||t.options.deprecated.tools.blocker.blockReferer?s("core-settings-row",{attrs:{name:t.strings.useCustomBlocklists},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-toggle",{model:{value:t.options.deprecated.tools.blocker.custom.enable,callback:function(e){t.$set(t.options.deprecated.tools.blocker.custom,"enable",e)},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?s("core-settings-row",{attrs:{name:t.strings.userAgentBlocklist},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-textarea",{attrs:{minHeight:200,maxHeight:200},model:{value:t.options.deprecated.tools.blocker.custom.bots,callback:function(e){t.$set(t.options.deprecated.tools.blocker.custom,"bots",e)},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?s("core-settings-row",{attrs:{name:t.strings.refererBlockList},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-textarea",{attrs:{minHeight:200,maxHeight:200},model:{value:t.options.deprecated.tools.blocker.custom.referer,callback:function(e){t.$set(t.options.deprecated.tools.blocker.custom,"referer",e)},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?s("core-settings-row",{attrs:{name:t.strings.trackBlockedBots},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-toggle",{model:{value:t.options.deprecated.tools.blocker.track,callback:function(e){t.$set(t.options.deprecated.tools.blocker,"track",e)},expression:"options.deprecated.tools.blocker.track"}}),s("core-alert",{attrs:{type:"blue"},domProps:{innerHTML:t._s(t.strings.logLocation)}})]},proxy:!0}],null,!1,3972286096)}):t._e()],1)],1)},a=[],i=s("5530"),r=s("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),'
'+this.$aioseo.urls.blockedBotsLogUrl+"")}}},computed:Object(i["a"])({},Object(r["e"])(["options"]))},l=n,c=(s("4d74"),s("2877")),d=Object(c["a"])(l,o,a,!1,null,null,null);e["default"]=d.exports},c55f:function(t,e,s){},d046:function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tools-system-status-info"},[s("core-card",{attrs:{slug:"systemStatusInfo","header-text":t.strings.systemStatusInfo}},[s("div",{staticClass:"actions"},[s("grid-row",[s("grid-column",{staticClass:"left",attrs:{sm:"6"}},[s("base-button",{attrs:{type:"blue",size:"medium"},on:{click:t.downloadSystemStatusInfo}},[s("svg-download"),t._v(" "+t._s(t.strings.downloadSystemInfoFile)+" ")],1),s("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():[s("svg-copy"),t._v(" "+t._s(t.strings.copyToClipboard)+" ")],t.copied?[s("svg-checkmark"),t._v(" "+t._s(t.strings.copied)+" ")]:t._e()],2)],1),s("grid-column",{staticClass:"right",attrs:{sm:"6"}},[s("base-input",{class:{"aioseo-error":t.emailError},attrs:{size:"medium",placeholder:t.strings.emailDebugInformation},model:{value:t.emailAddress,callback:function(e){t.emailAddress=e},expression:"emailAddress"}}),s("base-button",{attrs:{type:"blue",size:"medium",loading:t.sendingEmail},on:{click:t.processEmailDebugInfo}},[t._v(" "+t._s(t.strings.submit)+" ")])],1)],1)],1),s("div",{staticClass:"aioseo-settings-row"},[t._l(t.$aioseo.data.status,(function(e,o){return[e.results.length?s("div",{key:o,staticClass:"settings-group"},[s("div",{staticClass:"settings-name"},[s("div",{staticClass:"name"},[t._v(t._s(e.label))])]),s("div",{staticClass:"settings-content"},[s("div",{staticClass:"system-status-table"},t._l(e.results,(function(e,o){return s("table-row",{key:o,class:{even:0===o%2}},[s("table-column",{staticClass:"system-status-header"},[t._v(" "+t._s(e.header)+" ")]),s("table-column",[t._v(" "+t._s(e.value)+" ")])],1)})),1)])]):t._e()]}))],2)])],1)},a=[],i=s("5530"),r=(s("d3b7"),s("3ca3"),s("ddb0"),s("2b3d"),s("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(i["a"])(Object(i["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"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.download="aioseo-system-status-".concat(this.$moment().format("YYYY-MM-DD"),".json"),e.click(),URL.revokeObjectURL(e.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=(s("4cec"),s("2877")),d=Object(c["a"])(l,o,a,!1,null,null,null);e["default"]=d.exports},db9a:function(t,e,s){},e4d8:function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tools-robots-editor"},[s("core-card",{attrs:{slug:"robotsEditor","header-text":t.strings.robotsEditor}},[s("div",{staticClass:"aioseo-settings-row aioseo-section-description"},[t._v(" "+t._s(t.strings.description)+" "),s("br"),s("br"),t._v(" "+t._s(t.strings.description2)+" "),s("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?s("div",{staticClass:"aioseo-settings-row physical-robots"},[s("core-alert",{attrs:{type:"red","show-close":""},on:{"close-alert":t.hideRobotsDetected}},[t._v(" "+t._s(t.strings.physicalRobotsFound)+" "),s("div",{staticClass:"buttons"},[s("base-button",{attrs:{type:"blue",size:"medium",loading:t.importLoading},on:{click:t.importAndDeleteRobots}},[t._v(" "+t._s(t.strings.importAndDelete)+" ")]),s("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():s("div",{staticClass:"aioseo-settings-row rewrite-exists"},[s("core-alert",{attrs:{type:"red"},domProps:{innerHTML:t._s(t.missingRewriteRules)}})],1),s("core-settings-row",{attrs:{name:t.$constants.GLOBAL_STRINGS.preview,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"aioseo-sitemap-preview"},[s("base-button",{attrs:{size:"medium",type:"blue",tag:"a",href:t.$aioseo.urls.robotsTxtUrl,target:"_blank"}},[s("svg-external"),t._v(" "+t._s(t.strings.openRobotsTxt)+" ")],1)],1)]},proxy:!0}])}),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?s("core-settings-row",{attrs:{name:t.strings.enableCustomRobots},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-toggle",{model:{value:t.options.tools.robots.enable,callback:function(e){t.$set(t.options.tools.robots,"enable",e)},expression:"options.tools.robots.enable"}})]},proxy:!0}],null,!1,1538436598)}):t._e(),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?t._e():s("core-alert",{attrs:{type:"blue"},domProps:{innerHTML:t._s(t.subdirectoryAlert)}}),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?s("div",{staticClass:"aioseo-settings-row"},[s("div",{staticClass:"settings-content"},[this.hasErrors?s("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.duplicateOrInvalid)+" ")]):t._e(),s("div",{staticClass:"robots-table"},[s("div",{staticClass:"robots-header"},[s("div",{staticClass:"robots-user-agent"},[t._v(t._s(t.strings.userAgent))]),s("div",{staticClass:"robots-rule"},[t._v(t._s(t.strings.rule))]),s("div",{staticClass:"robots-directory-path"},[t._v(t._s(t.strings.directoryPath))]),s("div",{staticClass:"robots-actions"})]),s("div",{staticClass:"robots-rows"},t._l(t.parsedRules,(function(e,o){return s("div",{key:o,staticClass:"robots-row",class:{even:0===o%2}},[s("div",{staticClass:"robots-user-agent"},[s("base-input",{ref:"userAgent",refInFor:!0,class:t.hasError(e.userAgent+e.rule+e.directoryPath),attrs:{value:e.userAgent,size:"medium",placeholder:t.strings.userAgentPlaceholder,disabled:!t.options.tools.robots.enable},on:{blur:function(e){return t.updateRule("userAgent",e,o)}}})],1),s("div",{staticClass:"robots-rule"},[s("base-radio",{ref:"allow",refInFor:!0,attrs:{name:"rule-"+o,value:"allow"===e.rule,disabled:!t.options.tools.robots.enable,size:"medium",type:2},on:{input:function(e){return t.updateRule("rule","allow",o)}}},[t._v(" "+t._s(t.strings.allow)+" ")]),s("base-radio",{ref:"disallow",refInFor:!0,attrs:{name:"rule-"+o,value:"disallow"===e.rule,disabled:!t.options.tools.robots.enable,size:"medium",type:2},on:{input:function(e){return t.updateRule("rule","disallow",o)}}},[t._v(" "+t._s(t.strings.disallow)+" ")])],1),s("div",{staticClass:"robots-directory-path"},[s("base-input",{class:t.hasError(e.userAgent+e.rule+e.directoryPath),attrs:{value:e.directoryPath,size:"medium",placeholder:t.strings.directoryPathPlaceholder,disabled:!t.options.tools.robots.enable},on:{blur:function(e){return t.updateRule("directoryPath",e,o)}}})],1),s("div",{staticClass:"robots-actions"},[t.options.tools.robots.enable?s("core-tooltip",{attrs:{type:"action"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.deleteRule)+" ")]},proxy:!0}],null,!0)},[s("svg-trash",{nativeOn:{click:function(e){return t.removeRow(o)}}})],1):t._e()],1)])})),0)]),s("base-button",{attrs:{type:"blue",size:"medium",disabled:!t.options.tools.robots.enable},on:{click:t.addRow}},[s("svg-circle-plus"),t._v(" "+t._s(t.strings.addRule)+" ")],1)],1)]):t._e(),t.$aioseo.data.subdomain||t.$aioseo.data.mainSite?s("div",{staticClass:"aioseo-settings-row"},[s("div",{staticClass:"settings-name"},[s("div",{staticClass:"name"},[t._v(t._s(t.strings.robotsPreview))])]),s("div",{staticClass:"settings-content"},[s("base-editor",{attrs:{value:t.robotsTxt,"line-numbers":!0,"minimum-line-numbers":13,disabled:"","force-updates":"",monospace:""}})],1)]):t._e()],1)],1)},a=[],i=s("5530"),r=(s("d81d"),s("a15b"),s("4de4"),s("b64b"),s("fb6a"),s("caad"),s("2532"),s("159b"),s("ac1f"),s("5319"),s("466d"),s("40d1")),n=s("9c0e"),l=s("2f62"),c={userAgent:null,rule:"allow",directoryPath:null},d={mixins:[n["i"]],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(i["a"])(Object(i["a"])(Object(i["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:{})),e=JSON.parse(JSON.stringify(this.$aioseo.data.robots.defaultRules)),s="\r\n"+this.$aioseo.data.robots.sitemapUrls.filter((function(t){return 0'+this.$aioseo.urls.mainSiteUrl+"")},missingRewriteRules:function(){var t=this.$t.__("It looks like you are missing the proper rewrite rules for the robots.txt file.",this.$td),e="";return this.$aioseo.data.server.apache?e=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),'',""):this.$aioseo.data.server.nginx&&(e=e=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),'',"")),t+" "+e}}),methods:Object(i["a"])(Object(i["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(i["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,e,s){var o=this,a=JSON.parse(this.options.tools.robots.rules[s]);a[t]=e,this.$set(this.options.tools.robots.rules,s,JSON.stringify(a)),"directoryPath"===t&&(a[t]=this.sanitizePath(e),this.$set(this.options.tools.robots.rules,s,JSON.stringify(a))),this.validateRules(),"rule"===t&&this.$nextTick((function(){return o.$refs[e][s].$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 e={},s=JSON.parse(JSON.stringify(this.$aioseo.data.multisite&&!this.$aioseo.data.network?this.getNetworkRobotsRules:{})),o=JSON.parse(JSON.stringify(this.$aioseo.data.robots.defaultRules)),a=Object(r["a"])(Object(i["a"])({},o),Object(r["b"])(this.options.tools.robots.rules,!0),!0);Object.keys(a).forEach((function(s){var o=a[s];e[s]||(e[s]={allow:[],disallow:[]}),o.allow.forEach((function(o){e[s].allow.includes(o)?t.errors[s+"allow"+o]=!0:e[s].allow.push(o)})),o.disallow.forEach((function(o){e[s].disallow.includes(o)?t.errors[s+"disallow"+o]=!0:e[s].disallow.push(o)}))}));var n={},l=Object(r["a"])(Object(i["a"])({},s),Object(r["b"])(this.options.tools.robots.rules,!0),!0);Object.keys(l).forEach((function(e){var s=l[e];n[e]||(n[e]={allow:[],disallow:[]}),s.allow.forEach((function(s){if(n[e].allow.includes(s))t.errors[e+"allow"+s]=!0;else{if(n[e].disallow.includes(s))return t.errors[e+"allow"+s]=!0,void(t.errors[e+"disallow"+s]=!0);var o="^"+s.replace(".","\\.").replace("/","\\/").replace("*","(.*)")+"$",a=n[e].allow.some((function(t){return t&&t.match(o)}))||n[e].disallow.some((function(t){return t&&t.match(o)}));if(a)return t.errors[e+"allow"+s]=!0,void(t.errors[e+"disallow"+s]=!0);n[e].allow.push(s)}})),s.disallow.forEach((function(s){if(n[e].disallow.includes(s))t.errors[e+"disallow"+s]=!0;else{if(n[e].allow.includes(s))return t.errors[e+"allow"+s]=!0,void(t.errors[e+"disallow"+s]=!0);var o="^"+s.replace(".","\\.").replace("/","\\/").replace("*","(.*)")+"$",a=n[e].allow.some((function(t){return t&&t.match(o)}))||n[e].disallow.some((function(t){return t&&t.match(o)}));if(a)return t.errors[e+"allow"+s]=!0,void(t.errors[e+"disallow"+s]=!0);n[e].disallow.push(s)}}))}))}},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,h=(s("5d3c"),s("2877")),g=Object(h["a"])(u,o,a,!1,null,null,null);e["default"]=g.exports},e6b1:function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tools-database-tools"},[s("core-card",{attrs:{slug:"databaseTools","header-text":t.strings.resetRestoreSettings}},[s("core-settings-row",{attrs:{name:t.strings.selectSettings},scopedSlots:t._u([{key:"content",fn:function(){return[t.showSuccess?s("core-alert",{staticClass:"reset-success",attrs:{type:"green"}},[t._v(" "+t._s(t.strings.resetSuccess)+" ")]):t._e(),s("div",{staticClass:"reset-settings"},[t._v(" "+t._s(t.strings.selectSettingsToReset)+" "),s("br"),s("br"),s("grid-row",{staticClass:"settings"},[s("grid-column",[s("base-checkbox",{attrs:{size:"medium"},model:{value:t.options.all,callback:function(e){t.$set(t.options,"all",e)},expression:"options.all"}},[t._v(" "+t._s(t.strings.allSettings)+" ")])],1),t._l(t.toolsSettings,(function(e,o){return s("grid-column",{key:o,attrs:{xl:"3",md:"4",sm:"6"}},[t.options.all?t._e():s("base-checkbox",{attrs:{size:"medium"},model:{value:t.options[e.value],callback:function(s){t.$set(t.options,e.value,s)},expression:"options[setting.value]"}},[t._v(" "+t._s(e.label)+" ")]),"all"!==e.value&&t.options.all?s("base-checkbox",{attrs:{size:"medium",value:!0,disabled:""}},[t._v(" "+t._s(e.label)+" ")]):t._e()],1)}))],2),s("base-button",{attrs:{type:"gray",size:"medium",disabled:t.canReset},on:{click:function(e){t.showModal=!0}}},[t._v(" "+t._s(t.strings.resetSelectedSettings)+" ")])],1)]},proxy:!0}])})],1),t.showLogs?s("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?s("core-settings-row",{attrs:{name:t.strings.logs404,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-button",{staticClass:"clear-log",attrs:{type:"gray",size:"medium",loading:"logs404"===t.loadingLog,disabled:t.disabledLog("logs404")},on:{click:function(e){return t.processClearLog("logs404")}}},[t.disabledLog("logs404")?s("span",[s("svg-checkmark"),t._v(" "+t._s(t.strings.cleared)+" ")],1):t._e(),t.disabledLog("logs404")?t._e():s("span",[t._v(" "+t._s(t.strings.clear404Logs)+" ")])]),s("div",{staticClass:"log-size"},[s("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?s("core-settings-row",{attrs:{name:t.strings.redirectLogs,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-button",{staticClass:"clear-log",attrs:{type:"gray",size:"medium",loading:"redirectLogs"===t.loadingLog,disabled:t.disabledLog("redirectLogs")},on:{click:function(e){return t.processClearLog("redirectLogs")}}},[t.disabledLog("redirectLogs")?s("span",[s("svg-checkmark"),t._v(" "+t._s(t.strings.cleared)+" ")],1):t._e(),t.disabledLog("redirectLogs")?t._e():s("span",[t._v(" "+t._s(t.strings.clearRedirectLogs)+" ")])]),s("div",{staticClass:"log-size"},[s("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?s("core-settings-row",{attrs:{name:t.strings.badBotBlockerLogs,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-button",{staticClass:"clear-log",attrs:{type:"gray",size:"medium",loading:"badBotBlockerLog"===t.loadingLog,disabled:t.disabledLog("badBotBlockerLog")},on:{click:function(e){return t.processClearLog("badBotBlockerLog")}}},[t.disabledLog("badBotBlockerLog")?s("span",[s("svg-checkmark"),t._v(" "+t._s(t.strings.cleared)+" ")],1):t._e(),t.disabledLog("badBotBlockerLog")?t._e():s("span",[t._v(" "+t._s(t.strings.clearBadBotBlockerLogs)+" ")])]),s("div",{staticClass:"log-size"},[s("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?s("core-modal",{attrs:{"no-header":""},scopedSlots:t._u([{key:"body",fn:function(){return[s("div",{staticClass:"aioseo-modal-body"},[s("button",{staticClass:"close",on:{click:function(e){e.stopPropagation(),t.showModal=!1}}},[s("svg-close",{on:{click:function(e){t.showModal=!1}}})],1),s("h3",[t._v(t._s(t.strings.areYouSureReset))]),s("div",{staticClass:"reset-description",domProps:{innerHTML:t._s(t.strings.actionCannotBeUndone)}}),s("base-button",{attrs:{type:"blue",size:"medium",loading:t.loading},on:{click:t.processResetSettings}},[t._v(" "+t._s(t.strings.yesIHaveBackup)+" ")]),s("base-button",{attrs:{type:"gray",size:"medium"},on:{click:function(e){t.showModal=!1}}},[t._v(" "+t._s(t.strings.noBackup)+" ")])],1)]},proxy:!0}],null,!1,2298756748)}):t._e()],1)},a=[],i=s("5530"),r=(s("159b"),s("b64b"),s("caad"),s("2532"),s("4de4"),s("2f62")),n=s("9c0e"),l={mixins:[n["m"]],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),"",""),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,e=[];return Object.keys(this.options).forEach((function(s){e.push(t.options[s])})),!e.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(i["a"])(Object(i["a"])({},Object(r["b"])(["resetSettings","clearLog"])),{},{processResetSettings:function(){var t=this,e=[];this.options.all?this.toolsSettings.filter((function(t){return"all"!==t.value})).forEach((function(t){e.push(t.value)})):Object.keys(this.options).forEach((function(s){t.options[s]&&e.push(s)})),this.loading=!0,this.resetSettings(e).then((function(){t.showModal=!1,t.loading=!1,t.showSuccess=!0,t.options={},setTimeout((function(){t.showSuccess=!1}),5e3)}))},getSizeClass:function(t){var e="green";return 262144e3