import{B as a}from"./Checkbox.60ba2f56.js";import{G as l,a as r}from"./Row.830f6397.js";import{n as u}from"./_plugin-vue2_normalizer.61652a7c.js";const p={components:{BaseCheckbox:a,GridColumn:l,GridRow:r},props:{options:{type:Object,required:!0},mainOptions:Object,global:Boolean},data(){return{settings:[{value:"noindex",label:this.$t.__("No Index",this.$td)},{value:"nofollow",label:this.$t.__("No Follow",this.$td)},{value:"noarchive",label:this.$t.__("No Archive",this.$td)},{value:"notranslate",label:this.$t.__("No Translate",this.$td)},{value:"noimageindex",label:this.$t.__("No Image Index",this.$td)},{value:"nosnippet",label:this.$t.__("No Snippet",this.$td)},{value:"noodp",label:this.$t.__("No ODP",this.$td)}],globalSettings:[{value:"noindexPaginated",label:this.$t.__("No Index Paginated",this.$td)},{value:"nofollowPaginated",label:this.$t.__("No Follow Paginated",this.$td)},{value:"noindexFeed",label:this.$t.__("No Index RSS Feeds",this.$td)}],strings:{useDefaultSettings:this.$t.__("Use Default Settings",this.$td),robotsMeta:this.$t.__("Robots meta:",this.$td),maxSnippet:this.$t.__("Max Snippet",this.$td),maxVideoPreview:this.$t.__("Max Video Preview",this.$td),maxImagePreview:this.$t.__("Max Image Preview",this.$td),standard:this.$t.__("Standard",this.$td),none:this.$t.__("None",this.$td),large:this.$t.__("Large",this.$td)}}},watch:{noindex(i){this.mainOptions&&(this.mainOptions.show=!i)},default(i){if(this.mainOptions){if(i){this.mainOptions.show=!0;return}this.mainOptions.show=!this.noindex}}},computed:{robotsSettings(){return this.global?this.settings.concat(this.globalSettings):this.settings},noindex(){return this.options.noindex},default(){return this.options.default},imagePreviewOptions(){return[{label:this.strings.none,value:"none"},{label:this.strings.standard,value:"standard"},{label:this.strings.large,value:"large"}]}},methods:{getImagePreviewOption(i){return this.imagePreviewOptions.find(t=>t.value===i)}}};var d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-robots-meta"},[e("base-toggle",{model:{value:t.options.default,callback:function(s){t.$set(t.options,"default",s)},expression:"options.default"}},[t._v(" "+t._s(t.strings.useDefaultSettings)+" ")]),t.options.default?t._e():e("div",{staticClass:"global-robots-settings aioseo-description"},[t._v(" "+t._s(t.strings.robotsMeta)+" "),e("grid-row",{staticClass:"settings"},t._l(t.robotsSettings,function(s,n){return e("grid-column",{key:n,attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},model:{value:t.options[s.value],callback:function(o){t.$set(t.options,s.value,o)},expression:"options[setting.value]"}},[t._v(" "+t._s(s.label)+" ")])],1)}),1),e("div",{staticClass:"global-robots-settings-options"},[t.options.nosnippet?t._e():e("div",{staticClass:"max-snippet aioseo-description"},[t._v(" "+t._s(t.strings.maxSnippet)+" "),e("base-input",{attrs:{type:"number",size:"medium"},model:{value:t.options.maxSnippet,callback:function(s){t.$set(t.options,"maxSnippet",s)},expression:"options.maxSnippet"}})],1),e("div",{staticClass:"max-video-preview aioseo-description"},[t._v(" "+t._s(t.strings.maxVideoPreview)+" "),e("base-input",{attrs:{type:"number",size:"medium"},model:{value:t.options.maxVideoPreview,callback:function(s){t.$set(t.options,"maxVideoPreview",s)},expression:"options.maxVideoPreview"}})],1),t.options.noimageindex?t._e():e("div",{staticClass:"max-image-preview aioseo-description"},[t._v(" "+t._s(t.strings.maxImagePreview)+" "),e("base-select",{attrs:{size:"medium",options:t.imagePreviewOptions,value:t.getImagePreviewOption(t.options.maxImagePreview)},on:{input:s=>t.options.maxImagePreview=s.value}})],1)])],1)],1)},_=[],m=u(p,d,_,!1,null,null,null,null);const g=m.exports;export{g as C};
