import{a as x,u as A,e as k}from"./links.125d59c9.js";import{A as y,T as D}from"./TitleDescription.dfff7bf0.js";import{C as B}from"./Card.24b534de.js";import{C as O}from"./Tabs.14cdc788.js";import{C as L}from"./Tooltip.bcf420d9.js";import{a as P}from"./index.e978df4e.js";import{x as i,c as l,F as h,L as g,o as s,k as f,l as n,a as e,I as j,D as c,t as o,C as p,q,T as w}from"./vue.runtime.esm-bundler.4a881941.js";import{_ as E}from"./_plugin-vue_export-helper.abeb2ae0.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.ab8f4241.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./RadioToggle.91b7eae7.js";import"./ProBadge.07a48e27.js";import"./RobotsMeta.ce9c41a7.js";import"./Checkbox.257a03d8.js";import"./Checkmark.aaedf5f6.js";import"./Row.dbbe567c.js";import"./SettingsRow.f729cdc5.js";import"./tags.549c2c20.js";import"./Tags.cb4ba5da.js";import"./postSlug.ffc044fc.js";import"./Caret.02d7c74a.js";import"./metabox.e3fb2d0a.js";import"./cleanForSlug.cc6d9d47.js";import"./toString.7b877a36.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./get.038a6445.js";import"./GoogleSearchPreview.f2ebbae3.js";import"./HtmlTagsEditor.3dd82072.js";import"./Editor.e4c60376.js";import"./UnfilteredHtml.9de32d22.js";import"./Slide.7ee1d0f1.js";import"./TruSeoScore.b474bf15.js";import"./Ellipse.43a094b8.js";import"./Information.8e84b099.js";const F={setup(){return{optionsStore:x(),rootStore:A(),settingsStore:k()}},components:{Advanced:y,CoreCard:B,CoreMainTabs:O,CoreTooltip:L,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.__("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 a %1$s Feature",this.$td),"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))}}},N={class:"aioseo-search-appearance-taxonomies"},R={class:"aioseo-description"},V=e("br",null,null,-1),z=e("br",null,null,-1),I=e("br",null,null,-1);function M(u,_,U,r,a,d){const b=i("svg-circle-question-mark"),S=i("core-tooltip"),T=i("core-main-tabs"),$=i("core-card");return s(),l("div",N,[(s(!0),l(h,null,g(d.taxonomies,(t,C)=>(s(),f($,{key:C,slug:`${t.name}SA`},{header:n(()=>[e("div",{class:j(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},null,2),c(" "+o(t.label)+" ",1),p(S,{"z-index":"99999"},{tooltip:n(()=>[e("div",R,[c(o(a.strings.label)+" ",1),e("strong",null,o(t.label),1),V,c(" "+o(a.strings.name)+" ",1),e("strong",null,o(t.name),1),z,c(" "+o(a.strings.postTypes),1),I,e("ul",null,[(s(!0),l(h,null,g(t.postTypes,(m,v)=>(s(),l("li",{key:v},[e("strong",null,o(m),1)]))),128))])])]),default:n(()=>[p(b)]),_:2},1024)]),tabs:n(()=>[p(T,{tabs:a.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(w,{name:"route-fade",mode:"out-in"},{default:n(()=>[(s(),f(q(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 Dt=E(F,[["render",M]]);export{Dt as default};
