import{a as x,u as A,e as y}from"./links.bbde6535.js";import{A as k,T as D}from"./TitleDescription.d7ade38b.js";import{C as P}from"./Card.3bd391bc.js";import{C as B}from"./Tabs.45282823.js";import{C as O}from"./Tooltip.432f1167.js";import{P as E}from"./PostTypes.e5795f0f.js";import{a as L}from"./index.fadde3df.js";import{x as a,c as l,H as h,I as g,o as s,k as f,l as n,a as e,E as j,A as c,t as o,z as p,q,T as w}from"./vue.runtime.esm-bundler.308f2021.js";import{_ as z}from"./_plugin-vue_export-helper.5bcc150c.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.965a2149.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./RadioToggle.3df41deb.js";import"./ProBadge.bf5a3f4e.js";import"./RobotsMeta.f21d983b.js";import"./Checkbox.30500119.js";import"./Checkmark.85e83e8c.js";import"./Row.16199427.js";import"./SettingsRow.42f6374c.js";import"./tags.8c7eead3.js";import"./Tags.55c98ce0.js";import"./postSlug.1266810a.js";import"./Caret.baea7fe0.js";import"./metabox.300d9f84.js";import"./cleanForSlug.b75b0ef4.js";import"./toString.1bb388e8.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./get.6473921f.js";import"./GoogleSearchPreview.d5453823.js";import"./HtmlTagsEditor.3f6db819.js";import"./Editor.678bc800.js";import"./UnfilteredHtml.825fcb93.js";import"./Slide.22dc72dc.js";import"./TruSeoScore.b474bf15.js";import"./Ellipse.bae3329f.js";import"./Information.5dd0922d.js";const I={setup(){return{optionsStore:x(),rootStore:A(),settingsStore:y()}},components:{Advanced:k,CoreCard:P,CoreMainTabs:B,CoreTooltip:O,SvgCircleQuestionMark:L,TitleDescription:D},mixins:[E],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.__("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 a %1$s Feature",this.$td),"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(m,_){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${m}SA`,value:_}),setTimeout(()=>{this.internalDebounce=!1},50))}}},M={class:"aioseo-search-appearance-taxonomies"},N={class:"aioseo-description"},R=e("br",null,null,-1),V=e("br",null,null,-1),F=e("br",null,null,-1);function H(m,_,U,r,i,d){const b=a("svg-circle-question-mark"),S=a("core-tooltip"),T=a("core-main-tabs"),C=a("core-card");return s(),l("div",M,[(s(!0),l(h,null,g(d.taxonomies,(t,$)=>(s(),f(C,{key:$,slug:`${t.name}SA`},{header:n(()=>[e("div",{class:j(["icon dashicons",m.getPostIconClass(t.icon)])},null,2),c(" "+o(t.label)+" ",1),p(S,{"z-index":"99999"},{tooltip:n(()=>[e("div",N,[c(o(i.strings.label)+" ",1),e("strong",null,o(t.label),1),R,c(" "+o(i.strings.name)+" ",1),e("strong",null,o(t.name),1),V,c(" "+o(i.strings.postTypes),1),F,e("ul",null,[(s(!0),l(h,null,g(t.postTypes,(u,v)=>(s(),l("li",{key:v},[e("strong",null,o(u),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:u=>d.processChangeTab(t.name,u)},null,8,["tabs","active","onChanged"])]),default:n(()=>[p(w,{name:"route-fade",mode:"out-in"},{default:n(()=>[(s(),f(q(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 Bt=z(I,[["render",H]]);export{Bt as default};
