import{u as x,c as A,e as k}from"./links.DYfvsp_u.js";import{A as y,T as D}from"./TitleDescription.CN8S4UVL.js";import{C as P}from"./Card.D-184XDc.js";import{C as B}from"./Tabs.XG-5THDv.js";import{C as O}from"./Tooltip.zaM0rDUW.js";import{P as L}from"./PostTypes.Cef6XkQ_.js";import{a as j}from"./index.sD-vStxq.js";import{x as a,c as l,F as h,K as g,o as s,l as f,m as n,a as o,H as w,D as c,t as e,C as p,v as E,T as F}from"./vue.esm-bundler.DqIKZLqK.js";import{_ as M}from"./_plugin-vue_export-helper.BN1snXvA.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.Ccl21t4W.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.olJdJ6Wy.js";import"./Caret.CE8P-qnG.js";import"./ProBadge.CjKJMApR.js";import"./RobotsMeta.RLs2O5Jw.js";import"./Checkbox.DUOJ_PLM.js";import"./Checkmark.CUxYD2Fh.js";import"./Row.DKhn_IWV.js";import"./SettingsRow.BjeXKLX-.js";import"./Editor.gRwsjI93.js";import"./Tags.CKyymmAs.js";import"./postSlug.C0G28UTt.js";import"./metabox.DWiH9FAY.js";import"./cleanForSlug.mq09Rl93.js";import"./toString.C7L0MmPq.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./deburr.CC-JFHJI.js";import"./get.25styALf.js";import"./_baseSet.CNpgKW96.js";import"./GoogleSearchPreview.BJKYSpUS.js";import"./constants.B6ynd7gz.js";import"./HtmlTagsEditor.LH79b9dN.js";import"./UnfilteredHtml.BWtmT_2l.js";import"./Slide.Qz9BWVTI.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.ObmEcohO.js";import"./Information.DFP4LhAC.js";const N={setup(){return{optionsStore:x(),rootStore:A(),settingsStore:k()}},components:{Advanced:y,CoreCard:P,CoreMainTabs:B,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))}}},R={class:"aioseo-search-appearance-taxonomies"},V={class:"aioseo-description"},q=o("br",null,null,-1),z=o("br",null,null,-1),H=o("br",null,null,-1);function I(m,_,U,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",R,[(s(!0),l(h,null,g(d.taxonomies,(t,$)=>(s(),f(C,{key:$,slug:`${t.name}SA`},{header:n(()=>[o("div",{class:w(["icon dashicons",m.getPostIconClass(t.icon)])},null,2),c(" "+e(t.label)+" ",1),p(S,{"z-index":"99999"},{tooltip:n(()=>[o("div",V,[c(e(i.strings.label)+" ",1),o("strong",null,e(t.label),1),q,c(" "+e(i.strings.name)+" ",1),o("strong",null,e(t.name),1),z,c(" "+e(i.strings.postTypes),1),H,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(F,{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 Lt=M(N,[["render",I]]);export{Lt as default};
