import{b as A,u as x,m as y}from"./links.96ffe3f0.js";import{A as k,T as D}from"./TitleDescription.00e02446.js";import{C as B}from"./Card.b1cf2e4d.js";import{C as O}from"./Tabs.1eea2de2.js";import{C as P}from"./Tooltip.6a8793f6.js";import{a as w}from"./index.57ad6f19.js";import{r as a,c as l,F as h,C as g,o as s,d as f,w as n,a as o,n as E,B as c,x as e,g as p,A as L,T as j}from"./vue.runtime.esm-bundler.f433d23f.js";import{_ as N}from"./_plugin-vue_export-helper.3febc96a.js";import"./default-i18n.41786823.js";import"./isArrayLikeObject.7c69e632.js";import"./Caret.b5c2e4ec.js";/* empty css                                            *//* empty css                                              */import"./constants.008ef172.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";/* empty css                                              */import"./RadioToggle.29fa7827.js";import"./ProBadge.f4f3af83.js";import"./RobotsMeta.ea70af20.js";import"./Checkbox.8f797799.js";import"./Checkmark.74f4bcd8.js";import"./Row.e69aefbc.js";import"./SettingsRow.81a9aa4d.js";import"./tags.83142c1f.js";import"./Tags.4b8b1ae9.js";import"./postContent.2b412d8b.js";import"./cleanForSlug.b54907fb.js";import"./toString.9a2ec6a1.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./deburr.40d916cf.js";import"./html.51334e3e.js";import"./get.5bf9ffd1.js";import"./GoogleSearchPreview.9a3ae2ed.js";import"./HtmlTagsEditor.897f0371.js";import"./Editor.93dbb6c1.js";import"./UnfilteredHtml.5eb9a053.js";import"./Slide.99d45c60.js";import"./TruSeoScore.177d3103.js";import"./SaveChanges.744089d3.js";import"./Information.6754f071.js";const U={setup(){return{optionsStore:A(),rootStore:x(),settingsStore:y()}},components:{Advanced:k,CoreCard:B,CoreMainTabs:O,CoreTooltip:P,SvgCircleQuestionMark:w,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:E(["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(j,{name:"route-fade",mode:"out-in"},{default:n(()=>[(s(),f(L(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 Et=N(U,[["render",M]]);export{Et as default};
