import{e as A,u as x,d as y}from"./links.23796d97.js";import{A as k,T as D}from"./TitleDescription.6798b858.js";import{C as O}from"./Card.79fe964d.js";import{C as B}from"./Tabs.8ec856a5.js";import{C as P}from"./Tooltip.6979830f.js";import{a as j}from"./index.0eabb636.js";import{r as a,c as l,F as h,h as g,o as s,b as f,w as n,a as o,n as w,g as c,t as e,d as p,D as E,j as L}from"./vue.runtime.esm-bundler.b39e1078.js";import{_ as N}from"./_plugin-vue_export-helper.b97bdf23.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.22a096cb.js";import"./Caret.164d8058.js";/* empty css                                            *//* empty css                                              */import"./constants.1758f66e.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";/* empty css                                              */import"./RadioToggle.334ba6b1.js";import"./ProBadge.34da75c2.js";import"./RobotsMeta.5e9193c1.js";import"./Checkbox.17c05fc5.js";import"./Checkmark.e0bb6305.js";import"./Row.5242dafa.js";import"./SettingsRow.1adac8e2.js";import"./tags.1952ae10.js";import"./Tags.49706f1a.js";import"./postContent.dbf3451c.js";import"./cleanForSlug.383040f4.js";import"./toString.0891eb3e.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./html.e224f763.js";import"./get.ebf1fee6.js";import"./GoogleSearchPreview.104cd74f.js";import"./HtmlTagsEditor.b31d68d2.js";import"./Editor.5c187525.js";import"./UnfilteredHtml.2e4271be.js";import"./Slide.cdf6c622.js";import"./TruSeoScore.29220195.js";import"./Ellipse.1be120e0.js";import"./Information.70c6532e.js";const U={setup(){return{optionsStore:A(),rootStore:x(),settingsStore:y()}},components:{Advanced:k,CoreCard:O,CoreMainTabs:B,CoreTooltip:P,SvgCircleQuestionMark:j,TitleDescription:D},data(){return{internalDebounce:null,strings:{label:this.$t.__("Label:",this.$td),name:this.$t.__("Slug:",this.$td),postTypes:this.$t.__("Post Types:",this.$td),ctaButtonText:this.$t.__("Upgrade to Pro and Unlock Custom Taxonomies",this.$td),ctaDescription:this.$t.sprintf(this.$t.__("%1$s %2$s lets you set the SEO title and description for custom taxonomies. You can also control all of the robots meta and other options just like the default category and tags taxonomies.",this.$td),"AIOSEO","Pro"),ctaHeader:this.$t.sprintf(this.$t.__("Custom Taxonomy Support is only available for licensed %1$s %2$s users.",this.$td),"AIOSEO","Pro")},tabs:[{slug:"title-description",name:this.$t.__("Title & Description",this.$td),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:this.$t.__("Advanced",this.$td),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{taxonomies(){return this.rootStore.aioseo.postData.taxonomies}},methods:{processChangeTab(u,_){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${u}SA`,value:_}),setTimeout(()=>{this.internalDebounce=!1},50))}}},V={class:"aioseo-search-appearance-taxonomies"},q={class:"aioseo-description"},z=o("br",null,null,-1),F=o("br",null,null,-1),I=o("br",null,null,-1);function M(u,_,R,r,i,d){const b=a("svg-circle-question-mark"),S=a("core-tooltip"),T=a("core-main-tabs"),$=a("core-card");return s(),l("div",V,[(s(!0),l(h,null,g(d.taxonomies,(t,C)=>(s(),f($,{key:C,slug:`${t.name}SA`},{header:n(()=>[o("div",{class:w(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},null,2),c(" "+e(t.label)+" ",1),p(S,{"z-index":"99999"},{tooltip:n(()=>[o("div",q,[c(e(i.strings.label)+" ",1),o("strong",null,e(t.label),1),z,c(" "+e(i.strings.name)+" ",1),o("strong",null,e(t.name),1),F,c(" "+e(i.strings.postTypes),1),I,o("ul",null,[(s(!0),l(h,null,g(t.postTypes,(m,v)=>(s(),l("li",{key:v},[o("strong",null,e(m),1)]))),128))])])]),default:n(()=>[p(b)]),_:2},1024)]),tabs:n(()=>[p(T,{tabs:i.tabs,showSaveButton:!1,active:r.settingsStore.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:m=>d.processChangeTab(t.name,m)},null,8,["tabs","active","onChanged"])]),default:n(()=>[p(L,{name:"route-fade",mode:"out-in"},{default:n(()=>[(s(),f(E(r.settingsStore.settings.internalTabs[`${t.name}SA`]),{object:t,separator:r.optionsStore.options.searchAppearance.global.separator,options:r.optionsStore.dynamicOptions.searchAppearance.taxonomies[t.name],type:"taxonomies","show-bulk":!1},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const jt=N(U,[["render",M]]);export{jt as default};
