import{b as A,u as x,e as y}from"./links.6d4c0bdb.js";import{A as k,T as D}from"./TitleDescription.fad211fb.js";import{C as O}from"./Card.9b0c1a15.js";import{C as B}from"./Tabs.2d98f126.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.10b615a9.js";import"./Caret.164d8058.js";/* empty css                                            *//* empty css                                              */import"./constants.1758f66e.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./TruSeoHighlighter.3c8290a7.js";import"./postContent.37ac0296.js";import"./cleanForSlug.a67f7e84.js";import"./_stringToArray.a4422725.js";import"./Ellipse.f3d45202.js";import"./toFinite.c2274946.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.8f5c2702.js";import"./Tags.993eb9a7.js";import"./GoogleSearchPreview.e8c93b1b.js";import"./HtmlTagsEditor.acf1755b.js";import"./Editor.34e7b5eb.js";import"./UnfilteredHtml.c2f2a37a.js";import"./Slide.cdf6c622.js";import"./TruSeoScore.29220195.js";import"./SaveChanges.64df9080.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 Pt=N(U,[["render",M]]);export{Pt as default};
