import{B as y}from"./Checkbox.e9c7109b.js";import{G as N,a as O}from"./Row.42f1b009.js";import"./app-core.82d0a9b8.js";import{_ as I}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e}from"./vendor-other.2cdd5822.js";import{as as i,f as l,i as p,a0 as r,R as c,ae as u,U as d,O as k,ad as U,Q as B,j as v,M as _}from"./vendor-vue-ui.02763c14.js";const o="all-in-one-seo-pack",C={components:{BaseCheckbox:y,GridColumn:O,GridRow:N},props:{options:{type:Object,required:!0},mainOptions:Object,global:Boolean},data(){return{settings:[{value:"noindex",label:e("No Index",o)},{value:"nofollow",label:e("No Follow",o)},{value:"noarchive",label:e("No Archive",o)},{value:"notranslate",label:e("No Translate",o)},{value:"noimageindex",label:e("No Image Index",o)},{value:"nosnippet",label:e("No Snippet",o)},{value:"noodp",label:e("No ODP",o)}],globalSettings:[{value:"noindexPaginated",label:e("No Index Paginated",o)},{value:"nofollowPaginated",label:e("No Follow Paginated",o)},{value:"noindexFeed",label:e("No Index RSS Feeds",o)}],strings:{useDefaultSettings:e("Use Default Settings",o),robotsMeta:e("Robots meta:",o),maxSnippet:e("Max Snippet",o),maxVideoPreview:e("Max Video Preview",o),maxImagePreview:e("Max Image Preview",o),standard:e("Standard",o),none:e("None",o),large:e("Large",o)}}},watch:{noindex(s){this.mainOptions&&(this.mainOptions.show=!s)},default(s){if(this.mainOptions){if(s){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(s){return this.imagePreviewOptions.find(a=>a.value===s)}}},M={class:"aioseo-robots-meta"},R={key:0,class:"global-robots-settings aioseo-description"},D={class:"global-robots-settings-options"},F={key:0,class:"max-snippet aioseo-description"},z={class:"max-video-preview aioseo-description"},A={key:1,class:"max-image-preview aioseo-description"};function L(s,a,t,j,m,g){const x=i("base-toggle"),f=i("base-checkbox"),w=i("grid-column"),h=i("grid-row"),b=i("base-input"),V=i("base-select");return l(),p("div",M,[r(x,{modelValue:t.options.default,"onUpdate:modelValue":a[0]||(a[0]=n=>t.options.default=n)},{default:c(()=>[u(d(m.strings.useDefaultSettings),1)]),_:1},8,["modelValue"]),t.options.default?_("",!0):(l(),p("div",R,[u(d(m.strings.robotsMeta)+" ",1),r(h,{class:"settings"},{default:c(()=>[(l(!0),p(k,null,U(g.robotsSettings,(n,P)=>(l(),B(w,{key:P,xl:"3",md:"4",sm:"6"},{default:c(()=>[r(f,{size:"medium",modelValue:t.options[n.value],"onUpdate:modelValue":S=>t.options[n.value]=S},{default:c(()=>[u(d(n.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1}),v("div",D,[t.options.nosnippet?_("",!0):(l(),p("div",F,[u(d(m.strings.maxSnippet)+" ",1),r(b,{type:"number",size:"medium",modelValue:t.options.maxSnippet,"onUpdate:modelValue":a[1]||(a[1]=n=>t.options.maxSnippet=n)},null,8,["modelValue"])])),v("div",z,[u(d(m.strings.maxVideoPreview)+" ",1),r(b,{type:"number",size:"medium",modelValue:t.options.maxVideoPreview,"onUpdate:modelValue":a[2]||(a[2]=n=>t.options.maxVideoPreview=n)},null,8,["modelValue"])]),t.options.noimageindex?_("",!0):(l(),p("div",A,[u(d(m.strings.maxImagePreview)+" ",1),r(V,{size:"medium",options:g.imagePreviewOptions,modelValue:g.getImagePreviewOption(t.options.maxImagePreview),"onUpdate:modelValue":a[3]||(a[3]=n=>t.options.maxImagePreview=n.value)},null,8,["options","modelValue"])]))])]))])}const J=I(C,[["render",L]]);export{J as C};
