import{c as y,m as A,b as S}from"./vuex.esm-bundler.55d3d5b3.js";import{A as k,T as x}from"./TitleDescription.8ae9e95f.js";import{C as D}from"./Card.0a3b54f8.js";import{C as B}from"./Tabs.5bdc95fd.js";import{C as O}from"./Tooltip.c4cc47a2.js";import{S as P}from"./index.fae5bbc8.js";import{_ as w,r as i,c as l,F as d,G as h,o as n,b as g,w as a,a as e,B as E,y as c,t as s,d as p,x as L,C as U}from"./_plugin-vue_export-helper.a81c6319.js";import"./default-i18n.0e8bc810.js";import"./_commonjsHelpers.f84db168.js";import"./helpers.51e5fd9c.js";import"./WpTable.3e09f0c1.js";import"./Index.3662e61b.js";import"./Caret.19bf2275.js";import"./Row.d42459be.js";import"./RequiresUpdate.52f5acf2.js";import"./postContent.f08c6962.js";import"./index.4dbecc01.js";import"./cleanForSlug.d16f1e3a.js";import"./constants.e56e1512.js";import"./html.a669733f.js";import"./Index.048705a6.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./SaveChanges.c85e9ba4.js";import"./RadioToggle.cfd7da6d.js";import"./ProBadge.c7f4f378.js";import"./RobotsMeta.b9d9406e.js";import"./Checkbox.ec732dfe.js";import"./Checkmark.36fbf255.js";import"./SettingsRow.bc3a4ca9.js";import"./GoogleSearchPreview.170d666f.js";import"./HtmlTagsEditor.5ebef317.js";import"./Editor.5cedc7bc.js";import"./UnfilteredHtml.ceff4936.js";import"./Slide.4392623f.js";import"./TruSeoScore.1eab6bb1.js";import"./Information.050096cc.js";const j={components:{Advanced:k,CoreCard:D,CoreMainTabs:B,CoreTooltip:O,SvgCircleQuestionMark:P,TitleDescription:x},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:{...y(["isUnlicensed"]),...A(["options","dynamicOptions","settings"]),taxonomies(){return this.$aioseo.postData.taxonomies}},methods:{...S(["changeTab"]),processChangeTab(o,u){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${o}SA`,value:u}),setTimeout(()=>{this.internalDebounce=!1},50))}}},N={class:"aioseo-search-appearance-taxonomies"},V={class:"aioseo-description"},q=e("br",null,null,-1),z=e("br",null,null,-1),F=e("br",null,null,-1);function G(o,u,I,M,r,_){const f=i("svg-circle-question-mark"),b=i("core-tooltip"),$=i("core-main-tabs"),T=i("core-card");return n(),l("div",N,[(n(!0),l(d,null,h(_.taxonomies,(t,C)=>(n(),g(T,{key:C,slug:`${t.name}SA`},{header:a(()=>[e("div",{class:E(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},null,2),c(" "+s(t.label)+" ",1),p(b,{"z-index":"99999"},{tooltip:a(()=>[e("div",V,[c(s(r.strings.label)+" ",1),e("strong",null,s(t.label),1),q,c(" "+s(r.strings.name)+" ",1),e("strong",null,s(t.name),1),z,c(" "+s(r.strings.postTypes),1),F,e("ul",null,[(n(!0),l(d,null,h(t.postTypes,(m,v)=>(n(),l("li",{key:v},[e("strong",null,s(m),1)]))),128))])])]),default:a(()=>[p(f)]),_:2},1024)]),tabs:a(()=>[p($,{tabs:r.tabs,showSaveButton:!1,active:o.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:m=>_.processChangeTab(t.name,m)},null,8,["tabs","active","onChanged"])]),default:a(()=>[p(U,{name:"route-fade",mode:"out-in"},{default:a(()=>[(n(),g(L(o.settings.internalTabs[`${t.name}SA`]),{object:t,separator:o.options.searchAppearance.global.separator,options:o.dynamicOptions.searchAppearance.taxonomies[t.name],type:"taxonomies","show-bulk":!1},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Dt=w(j,[["render",G]]);export{Dt as default};
