Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
superstepsgroup.com
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: TitleDescription.412108d0.js
import{G as x,b as B,y as j,h as M,at as D,V as L}from"./app-core.b862f9c8.js";import{u as G}from"./JsonValues.a0694556.js";import{B as V}from"./RadioToggle.b2f1549c.js";import{C as I}from"./RobotsMeta.d02129a5.js";import{C}from"./SettingsRow.1722e16a.js";import{_ as O}from"./_plugin-vue_export-helper.eefbdd86.js";import{a as w,_ as a}from"./vendor-other.7b559694.js";import{aq as m,f as s,i as T,a0 as p,R as i,Q as c,M as r,j as A,ae as v,U as f}from"./vendor-vue-ui.f00a1236.js";import{C as R}from"./Index.3967c277.js";import{C as N}from"./GoogleSearchPreview.14fc9832.js";import{C as P}from"./HtmlTagsEditor.fc0c6398.js";const g="all-in-one-seo-pack",U={setup(){const{getJsonValue:d,setJsonValue:t}=G();return{GLOBAL_STRINGS:x,getJsonValue:d,licenseStore:M(),optionsStore:j(),rootStore:B(),setJsonValue:t}},components:{BaseRadioToggle:V,CoreRobotsMeta:I,CoreSettingsRow:C},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean,noMetaBox:Boolean,includeKeywords:Boolean},data(){return{titleCount:0,descriptionCount:0,strings:{robotsSetting:a("Robots Meta Settings",g),bulkEditing:a("Bulk Editing",g),readOnly:a("Read Only",g),otherOptions:a("Other Options",g),keywords:a("Keywords",g),removeCategoryBase:a("Remove Category Base Prefix",g)}}},computed:{title(){return w(a("%1$s Title",g),this.object.singular)},showPostThumbnailInSearch(){return w(a("Show %1$s Thumbnail in Google Custom Search",g),this.object.singular)},showMetaBox(){return w(a("Show %1$s Meta Box",g),"AIOSEO")},showOtherOptions(){return this.object?.buddyPress?!1:!this.noMetaBox&&(!this.licenseStore.isUnlicensed||this.type!=="taxonomies")}}},E={class:"aioseo-sa-ct-advanced"},q={class:"other-options"};function J(d,t,e,n,o,u){const S=m("core-robots-meta"),_=m("core-settings-row"),b=m("base-radio-toggle"),k=m("base-toggle"),y=m("base-select");return s(),T("div",E,[p(_,{name:o.strings.robotsSetting},{content:i(()=>[p(S,{options:e.options.advanced.robotsMeta,mainOptions:e.options},null,8,["options","mainOptions"])]),_:1},8,["name"]),e.showBulk?(s(),c(_,{key:0,name:o.strings.bulkEditing,align:""},{content:i(()=>[p(b,{modelValue:e.options.advanced.bulkEditing,"onUpdate:modelValue":t[0]||(t[0]=l=>e.options.advanced.bulkEditing=l),name:`${e.object.name}BulkEditing`,options:[{label:n.GLOBAL_STRINGS.disabled,value:"disabled"},{label:n.GLOBAL_STRINGS.enabled,value:"enabled"},{label:o.strings.readOnly,value:"read-only"}]},null,8,["modelValue","name","options"])]),_:1},8,["name"])):r("",!0),e.type==="taxonomies"&&e.object.name==="category"?(s(),c(_,{key:1,name:o.strings.removeCategoryBase,align:""},{content:i(()=>[p(b,{modelValue:n.optionsStore.options.searchAppearance.advanced.removeCategoryBase,"onUpdate:modelValue":t[1]||(t[1]=l=>n.optionsStore.options.searchAppearance.advanced.removeCategoryBase=l),name:"removeCategoryBase",options:[{label:n.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:n.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])]),_:1},8,["name"])):r("",!0),u.showOtherOptions?(s(),c(_,{key:2,name:o.strings.otherOptions},{content:i(()=>[A("div",q,[p(k,{modelValue:e.options.advanced.showMetaBox,"onUpdate:modelValue":t[2]||(t[2]=l=>e.options.advanced.showMetaBox=l)},{default:i(()=>[v(f(u.showMetaBox),1)]),_:1},8,["modelValue"])])]),_:1},8,["name"])):r("",!0),n.optionsStore.options.searchAppearance.advanced.useKeywords&&e.includeKeywords?(s(),c(_,{key:3,name:o.strings.keywords,align:""},{content:i(()=>[p(y,{multiple:"",taggable:"",options:n.getJsonValue(e.options.advanced.keywords)||[],modelValue:n.getJsonValue(e.options.advanced.keywords)||[],"onUpdate:modelValue":t[3]||(t[3]=l=>e.options.advanced.keywords=n.setJsonValue(l)),"tag-placeholder":o.strings.tagPlaceholder},null,8,["options","modelValue","tag-placeholder"])]),_:1},8,["name"])):r("",!0)])}const ie=O(U,[["render",J]]),h="all-in-one-seo-pack",K={setup(d){const{parseTags:t}=L({separator:d.separator});return{parseTags:t,rootStore:B()}},components:{BaseRadioToggle:V,CoreAlert:R,CoreGoogleSearchPreview:N,CoreHtmlTagsEditor:P,CoreSettingsRow:C},props:{type:{type:String,required:!0},object:{type:Object,required:!0},separator:{type:String,required:!0},options:{type:Object,required:!0},edit:{type:Boolean,default(){return!0}}},data(){return{GLOBAL_STRINGS:x,titleCount:0,descriptionCount:0,strings:{showInSearchResults:a("Show in Search Results",h),clickToAddTitle:a("Click on the tags below to insert variables into your title.",h),metaDescription:a("Meta Description",h),clickToAddDescription:a("Click on the tags below to insert variables into your meta description.",h)}}},watch:{show(d){if(d){this.options.advanced.robotsMeta.noindex=!1,this.options.advanced.robotsMeta.nofollow===!1&&this.options.advanced.robotsMeta.noarchive===!1&&this.options.advanced.robotsMeta.notranslate===!1&&this.options.advanced.robotsMeta.noimageindex===!1&&this.options.advanced.robotsMeta.nosnippet===!1&&this.options.advanced.robotsMeta.noodp===!1&&parseInt(this.options.advanced.robotsMeta.maxSnippet)===-1&&parseInt(this.options.advanced.robotsMeta.maxVideoPreview)===-1&&this.options.advanced.robotsMeta.maxImagePreview.toLowerCase()==="large"&&(this.options.advanced.robotsMeta.default=!0);return}this.options.advanced.robotsMeta.default=!1,this.options.advanced.robotsMeta.noindex=!0}},computed:{title(){return w(a("%1$s Title",h),this.object.singular)},show(){return this.options.show},noIndexDescription(){return w(a('Choose whether your %1$s should be included in search results. If you select "No", then your %1$s will be noindexed and excluded from the sitemap so that search engines ignore them.',h),this.object.label)},noindexAlertDescription(){return w(a("Your %1$s will be noindexed and excluded from the sitemap so that search engines ignore them. You can still control how their page title looks like below.",h),this.object.label)}},methods:{getParsedDefaultTags(d,t,e){return this.rootStore.aioseo.postData.postTypes.find(n=>t===n.name&&n?.defaultTags)?.defaultTags?.[d]?.[e]||D.getDefaultTags(d,t,e)}}},Y={class:"aioseo-sa-ct-title-description"},H={class:"aioseo-description"},Q={key:0};function z(d,t,e,n,o,u){const S=m("base-radio-toggle"),_=m("core-alert"),b=m("core-settings-row"),k=m("core-google-search-preview"),y=m("core-html-tags-editor");return s(),T("div",Y,[p(b,{name:o.strings.showInSearchResults,align:""},{content:i(()=>[e.edit?(s(),c(S,{key:0,modelValue:e.options.show,"onUpdate:modelValue":t[0]||(t[0]=l=>e.options.show=l),name:`${e.object.name}ShowInSearch`,options:[{label:o.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:o.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","name","options"])):r("",!0),e.edit?r("",!0):(s(),c(S,{key:1,modelValue:!0,name:`${e.object.name}ShowInSearch`,options:[{label:o.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:o.GLOBAL_STRINGS.yes,value:!0}]},null,8,["name","options"])),A("div",H,[e.options.show?(s(),T("span",Q,f(u.noIndexDescription),1)):r("",!0),e.options.show?r("",!0):(s(),c(_,{key:1,type:"blue"},{default:i(()=>[v(f(u.noindexAlertDescription),1)]),_:1}))])]),_:1},8,["name"]),e.edit?(s(),c(b,{key:0,name:o.GLOBAL_STRINGS.preview},{content:i(()=>[p(k,{title:n.parseTags(e.options.title),description:n.parseTags(e.options.metaDescription)},null,8,["title","description"])]),_:1},8,["name"])):r("",!0),p(b,{name:u.title},{content:i(()=>[e.edit?(s(),c(y,{key:0,modelValue:e.options.title,"onUpdate:modelValue":t[1]||(t[1]=l=>e.options.title=l),"line-numbers":!1,single:"","tags-context":`${e.object.name}Title`,"default-tags":u.getParsedDefaultTags(e.type,e.object.name,"title")},{"tags-description":i(()=>[v(f(o.strings.clickToAddTitle),1)]),_:1},8,["modelValue","tags-context","default-tags"])):r("",!0),e.edit?r("",!0):(s(),c(y,{key:1,"line-numbers":!1,single:"","tags-context":`${e.object.name}Title`,"default-tags":u.getParsedDefaultTags(e.type,e.object.name,"title")},{"tags-description":i(()=>[v(f(o.strings.clickToAddTitle),1)]),_:1},8,["tags-context","default-tags"]))]),_:1},8,["name"]),e.options.show?(s(),c(b,{key:1,name:o.strings.metaDescription},{content:i(()=>[e.edit?(s(),c(y,{key:0,modelValue:e.options.metaDescription,"onUpdate:modelValue":t[2]||(t[2]=l=>e.options.metaDescription=l),"line-numbers":!1,description:"","tags-context":`${e.object.name}Description`,"default-tags":u.getParsedDefaultTags(e.type,e.object.name,"description")},{"tags-description":i(()=>[v(f(o.strings.clickToAddDescription),1)]),_:1},8,["modelValue","tags-context","default-tags"])):r("",!0),e.edit?r("",!0):(s(),c(y,{key:1,"line-numbers":!1,"tags-context":`${e.object.name}Description`,"default-tags":u.getParsedDefaultTags(e.type,e.object.name,"description")},{"tags-description":i(()=>[v(f(o.strings.clickToAddDescription),1)]),_:1},8,["tags-context","default-tags"]))]),_:1},8,["name"])):r("",!0)])}const re=O(K,[["render",z],["__scopeId","data-v-4db7f1ef"]]);export{ie as A,re as T};
Save
Cancel