import{d as A,a as y,m as S}from"./vuex.esm-bundler.8589b2dd.js";import{A as k,T as D}from"./TitleDescription.041a6561.js";import{C as x}from"./Card.24f1a534.js";import{C as O}from"./Tabs.eb56046b.js";import{C as B}from"./Tooltip.ae0bcccb.js";import{c as P}from"./index.fd0fcee8.js";import{_ as w,c as i,F as d,i as h,r as l,o as n,h as g,w as a,f as e,n as E,e as c,t as s,d as p,k as L,T as U}from"./_plugin-vue_export-helper.2d9794a3.js";import"./default-i18n.ab92175e.js";import"./_commonjsHelpers.f84db168.js";import"./WpTable.4d19dc46.js";import"./helpers.de7566d0.js";import"./RequiresUpdate.52f5acf2.js";import"./postContent.bb42e0a8.js";import"./index.02a5ed9a.js";import"./isArrayLikeObject.c492f682.js";import"./Caret.42a820e0.js";import"./cleanForSlug.62b08993.js";import"./constants.7044c894.js";import"./html.14f2a8b9.js";import"./Index.1fd8fc42.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./SaveChanges.bc66cd69.js";import"./RadioToggle.4c888ca1.js";import"./ProBadge.bcf74c08.js";import"./RobotsMeta.61c93b1f.js";import"./Checkbox.b4e8b6fc.js";import"./Checkmark.c5326878.js";import"./Row.5e452de4.js";import"./SettingsRow.09a16661.js";import"./GoogleSearchPreview.6684da45.js";import"./HtmlTagsEditor.f7794300.js";import"./Editor.7fd59f57.js";import"./UnfilteredHtml.47ebc566.js";import"./Slide.cd756e61.js";import"./TruSeoScore.76897846.js";import"./Information.a08d0ef0.js";const j={components:{Advanced:k,CoreCard:x,CoreMainTabs:O,CoreTooltip:B,SvgCircleQuestionMark:P,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.$tdPro),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{...A(["isUnlicensed"]),...y(["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 I(o,u,M,G,r,_){const f=l("svg-circle-question-mark"),b=l("core-tooltip"),$=l("core-main-tabs"),T=l("core-card");return n(),i("div",N,[(n(!0),i(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),i(d,null,h(t.postTypes,(m,v)=>(n(),i("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 xt=w(j,[["render",I]]);export{xt as default};
