import{e as A,u as x,d as y}from"./links.4e9269a4.js";import{A as k,T as D}from"./TitleDescription.2c59936e.js";import{C as O}from"./Card.37225977.js";import{C as B}from"./Tabs.23866df2.js";import{C as P}from"./Tooltip.fc81232d.js";import{a as j}from"./index.cd7fac8b.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,C as E,j as L}from"./vue.runtime.esm-bundler.1bf81f69.js";import{_ as N}from"./_plugin-vue_export-helper.4292a25a.js";import"./default-i18n.41786823.js";import"./isArrayLikeObject.76f0d098.js";import"./Caret.0b57d359.js";/* empty css                                            *//* empty css                                              */import"./constants.a78fc4cb.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";/* empty css                                              */import"./RadioToggle.6c005687.js";import"./ProBadge.5f8b58d0.js";import"./RobotsMeta.7e81c370.js";import"./Checkbox.1a2fc75a.js";import"./Checkmark.20d31f86.js";import"./Row.1358a527.js";import"./SettingsRow.2432af31.js";import"./tags.9c0199b3.js";import"./Tags.bc14d949.js";import"./postContent.164a8a2e.js";import"./cleanForSlug.10bf84e5.js";import"./toString.16b91dfe.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./html.3d4eb4ad.js";import"./get.d55c557c.js";import"./GoogleSearchPreview.45c17759.js";import"./HtmlTagsEditor.2a4955ac.js";import"./Editor.87ec1d9f.js";import"./UnfilteredHtml.2d041b8c.js";import"./Slide.c4e68d01.js";import"./TruSeoScore.177d3103.js";import"./Ellipse.ca34fa71.js";import"./Information.379a165f.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};
