import{u as f,c as g}from"./index.ms17x8jb.js";import{B as _}from"./Textarea.h27mw65u.js";import{C as S}from"./Caret.mmz7e9vd.js";import{C as V}from"./Card.iorx4a6j.js";import{C as x}from"./SettingsRow.ea488ybt.js";import"./translations.b896ab1m.js";import{_ as C}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as s,a as y}from"./default-i18n.hohxoesu.js";import{c as H,C as r,m as c,x as i,o as p,l as m,b as k}from"./runtime-dom.esm-bundler.h3wlw8jh.js";import"./helpers.dyu2l85l.js";import"./Tooltip.i4ssodi5.js";import"./index.h6q9ey6x.js";import"./Slide.bl4b075t.js";import"./Row.o2r9j8ur.js";const n="all-in-one-seo-pack",L={setup(){return{optionsStore:f(),rootStore:g()}},components:{BaseTextarea:_,CoreAlert:S,CoreCard:V,CoreSettingsRow:x},data(){return{strings:{badBotBlocker:s("Bad Bot Blocker",n),blockBadBotsHttp:s("Block Bad Bots using HTTP",n),blockReferralSpamHttp:s("Block Referral Spam using HTTP",n),trackBlockedBots:s("Track Blocked Bots",n),useCustomBlocklists:s("Use Custom Blocklists",n),userAgentBlocklist:s("User Agent Blocklist",n),refererBlockList:s("Referer Blocklist",n),blockedBotsLog:s("Blocked Bots Log",n),logLocation:y(s("The log for the blocked bots is located here: %1$s",n),'<br><a href="'+this.rootStore.aioseo.urls.blockedBotsLogUrl+'" target="_blank">'+this.rootStore.aioseo.urls.blockedBotsLogUrl+"</a>")}}}},R={class:"aioseo-tools-bad-bot-blocker"};function U(T,e,A,o,l,w){const d=i("base-toggle"),a=i("core-settings-row"),u=i("base-textarea"),b=i("core-alert"),B=i("core-card");return p(),H("div",R,[r(B,{slug:"badBotBlocker","header-text":l.strings.badBotBlocker},{default:c(()=>[r(a,{name:l.strings.blockBadBotsHttp},{content:c(()=>[r(d,{modelValue:o.optionsStore.options.deprecated.tools.blocker.blockBots,"onUpdate:modelValue":e[0]||(e[0]=t=>o.optionsStore.options.deprecated.tools.blocker.blockBots=t)},null,8,["modelValue"])]),_:1},8,["name"]),r(a,{name:l.strings.blockReferralSpamHttp},{content:c(()=>[r(d,{modelValue:o.optionsStore.options.deprecated.tools.blocker.blockReferer,"onUpdate:modelValue":e[1]||(e[1]=t=>o.optionsStore.options.deprecated.tools.blocker.blockReferer=t)},null,8,["modelValue"])]),_:1},8,["name"]),o.optionsStore.options.deprecated.tools.blocker.blockBots||o.optionsStore.options.deprecated.tools.blocker.blockReferer?(p(),m(a,{key:0,name:l.strings.useCustomBlocklists},{content:c(()=>[r(d,{modelValue:o.optionsStore.options.deprecated.tools.blocker.custom.enable,"onUpdate:modelValue":e[2]||(e[2]=t=>o.optionsStore.options.deprecated.tools.blocker.custom.enable=t)},null,8,["modelValue"])]),_:1},8,["name"])):k("",!0),o.optionsStore.options.deprecated.tools.blocker.blockBots&&o.optionsStore.options.deprecated.tools.blocker.custom.enable?(p(),m(a,{key:1,name:l.strings.userAgentBlocklist},{content:c(()=>[r(u,{minHeight:200,maxHeight:200,modelValue:o.optionsStore.options.deprecated.tools.blocker.custom.bots,"onUpdate:modelValue":e[3]||(e[3]=t=>o.optionsStore.options.deprecated.tools.blocker.custom.bots=t)},null,8,["modelValue"])]),_:1},8,["name"])):k("",!0),o.optionsStore.options.deprecated.tools.blocker.blockReferer&&o.optionsStore.options.deprecated.tools.blocker.custom.enable?(p(),m(a,{key:2,name:l.strings.refererBlockList},{content:c(()=>[r(u,{minHeight:200,maxHeight:200,modelValue:o.optionsStore.options.deprecated.tools.blocker.custom.referer,"onUpdate:modelValue":e[4]||(e[4]=t=>o.optionsStore.options.deprecated.tools.blocker.custom.referer=t)},null,8,["modelValue"])]),_:1},8,["name"])):k("",!0),o.optionsStore.options.deprecated.tools.blocker.blockBots||o.optionsStore.options.deprecated.tools.blocker.blockReferer?(p(),m(a,{key:3,name:l.strings.trackBlockedBots},{content:c(()=>[r(d,{modelValue:o.optionsStore.options.deprecated.tools.blocker.track,"onUpdate:modelValue":e[5]||(e[5]=t=>o.optionsStore.options.deprecated.tools.blocker.track=t)},null,8,["modelValue"]),r(b,{type:"blue",innerHTML:l.strings.logLocation},null,8,["innerHTML"])]),_:1},8,["name"])):k("",!0)]),_:1},8,["header-text"])])}const J=C(L,[["render",U]]);export{J as default};
