import{a as A,u as k,e as x}from"./links.C572zDFG.js";import{A as y,T as D}from"./TitleDescription.CHFIjZJO.js";import{C as B}from"./Card.CuS1kKeW.js";import{C as P}from"./Tabs.C-PQxwBC.js";import{C as O}from"./Tooltip.CRFjFnpF.js";import{P as L}from"./PostTypes.Cef6XkQ_.js";import{a as j}from"./index.CdwEuUIl.js";import{_ as q,T as w}from"./_plugin-vue_export-helper.BLXtEB-G.js";import{v as a,c as l,F as h,ac as g,o as s,k as f,l as n,a as o,aa as E,C as c,t as e,B as p,q as F}from"./runtime-core.esm-bundler.DMBo7TXk.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.D5tYIqKS.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.CODR8har.js";import"./Caret.CGwYaMo_.js";import"./ProBadge.Bm930amZ.js";import"./RobotsMeta.PSz00Srx.js";import"./Checkbox.CxE2HV-P.js";import"./Checkmark.DL3UTTgg.js";import"./Row.CHjKxnPP.js";import"./SettingsRow.BzmNmU2T.js";import"./Editor.DxKrKvK1.js";import"./isEqual.6YJSJDqn.js";import"./_baseIsEqual.8qmZqLuw.js";import"./_getTag.Dxs-K0Yj.js";import"./_baseClone.Zn5yUk9p.js";import"./_arrayEach.Fgt6pfHj.js";import"./Tags.D1_s1xAA.js";import"./postSlug.CtHxoMEa.js";import"./metabox.CE2B6Dot.js";import"./cleanForSlug.DjsajR64.js";import"./toString.CkyAieyd.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.SHpzr1A5.js";import"./GoogleSearchPreview.DQIVXQEq.js";import"./constants.B6ynd7gz.js";import"./HtmlTagsEditor.BQtOQ8ni.js";import"./UnfilteredHtml.C9zHp9e0.js";import"./Slide.D2pWF0rN.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.CAgnKuMU.js";import"./Information.JAmX9TGg.js";const M={setup(){return{optionsStore:A(),rootStore:k(),settingsStore:x()}},components:{Advanced:y,CoreCard:B,CoreMainTabs:P,CoreTooltip:O,SvgCircleQuestionMark:j,TitleDescription:D},mixins:[L],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(m,_){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${m}SA`,value:_}),setTimeout(()=>{this.internalDebounce=!1},50))}}},N={class:"aioseo-search-appearance-taxonomies"},R={class:"aioseo-description"},V=o("br",null,null,-1),z=o("br",null,null,-1),I=o("br",null,null,-1);function U(m,_,H,r,i,d){const b=a("svg-circle-question-mark"),S=a("core-tooltip"),T=a("core-main-tabs"),C=a("core-card");return s(),l("div",N,[(s(!0),l(h,null,g(d.taxonomies,(t,$)=>(s(),f(C,{key:$,slug:`${t.name}SA`},{header:n(()=>[o("div",{class:E(["icon dashicons",m.getPostIconClass(t.icon)])},null,2),c(" "+e(t.label)+" ",1),p(S,{"z-index":"99999"},{tooltip:n(()=>[o("div",R,[c(e(i.strings.label)+" ",1),o("strong",null,e(t.label),1),V,c(" "+e(i.strings.name)+" ",1),o("strong",null,e(t.name),1),z,c(" "+e(i.strings.postTypes),1),I,o("ul",null,[(s(!0),l(h,null,g(t.postTypes,(u,v)=>(s(),l("li",{key:v},[o("strong",null,e(u),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:u=>d.processChangeTab(t.name,u)},null,8,["tabs","active","onChanged"])]),default:n(()=>[p(w,{name:"route-fade",mode:"out-in"},{default:n(()=>[(s(),f(F(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 wt=q(M,[["render",U]]);export{wt as default};
