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