import{B as l}from"./Checkbox.732cf0d4.js";import{G as r,a as u}from"./Row.89c6bb85.js";import{n as p}from"./vueComponentNormalizer.58b0a173.js";var d=function(){var t=this,i=t.$createElement,e=t._self._c||i;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,o){return e("grid-column",{key:o,attrs:{xl:"3",md:"4",sm:"6"}},[e("base-checkbox",{attrs:{size:"medium"},model:{value:t.options[s.value],callback:function(a){t.$set(t.options,s.value,a)},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:function(s){return t.options.maxImagePreview=s.value}}})],1)])],1)],1)},_=[];const m={components:{BaseCheckbox:l,GridColumn:r,GridRow:u},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(t){this.mainOptions&&(this.mainOptions.show=!t)},default(t){if(!!this.mainOptions){if(t){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(t){return this.imagePreviewOptions.find(i=>i.value===t)}}},n={};var c=p(m,d,_,!1,v,null,null,null);function v(t){for(let i in n)this[i]=n[i]}const b=function(){return c.exports}();export{b as C};
