var a=Object.defineProperty;var r=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var l=(t,e,o)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,n=(t,e)=>{for(var o in e||(e={}))i.call(e,o)&&l(t,o,e[o]);if(r)for(var o of r(e))p.call(e,o)&&l(t,o,e[o]);return t};import{a as d}from"./index.24bc83f1.js";import{B as u}from"./Textarea.d161fc2e.js";import{C as k}from"./Index.6b49ef32.js";import{C as b}from"./Card.af43a02b.js";import{C as m}from"./SettingsRow.eb71f07b.js";import{n as _}from"./vueComponentNormalizer.87056a83.js";import"./default-i18n.abde8d59.js";import"./isArrayLikeObject.26ec157b.js";import"./index.6be33911.js";import"./client.94d919c5.js";import"./_commonjsHelpers.f40d732e.js";import"./constants.50303a5f.js";import"./Tooltip.3ec20ff5.js";import"./QuestionMark.83ebd18e.js";import"./Slide.f5d21606.js";import"./Row.13b6f3f1.js";var f=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"aioseo-tools-bad-bot-blocker"},[o("core-card",{attrs:{slug:"badBotBlocker","header-text":t.strings.badBotBlocker}},[o("core-settings-row",{attrs:{name:t.strings.blockBadBotsHttp},scopedSlots:t._u([{key:"content",fn:function(){return[o("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}])}),o("core-settings-row",{attrs:{name:t.strings.blockReferralSpamHttp},scopedSlots:t._u([{key:"content",fn:function(){return[o("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?o("core-settings-row",{attrs:{name:t.strings.useCustomBlocklists},scopedSlots:t._u([{key:"content",fn:function(){return[o("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?o("core-settings-row",{attrs:{name:t.strings.userAgentBlocklist},scopedSlots:t._u([{key:"content",fn:function(){return[o("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?o("core-settings-row",{attrs:{name:t.strings.refererBlockList},scopedSlots:t._u([{key:"content",fn:function(){return[o("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?o("core-settings-row",{attrs:{name:t.strings.trackBlockedBots},scopedSlots:t._u([{key:"content",fn:function(){return[o("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"}}),o("core-alert",{attrs:{type:"blue"},domProps:{innerHTML:t._s(t.strings.logLocation)}})]},proxy:!0}],null,!1,3972286096)}):t._e()],1)],1)},B=[];const g={components:{BaseTextarea:u,CoreAlert:k,CoreCard:b,CoreSettingsRow:m},data(){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:n({},d(["options"]))},c={};var h=_(g,f,B,!1,$,null,null,null);function $(t){for(let e in c)this[e]=c[e]}var F=function(){return h.exports}();export{F as default};
