import{a as D,u as P,g as B}from"./index.ByF2aI-G.js";import{u as O}from"./PostTypes.DQr7JgPS.js";import{A as L,T as j}from"./TitleDescription.BRSz3uWv.js";import{C as q}from"./Card.Bqq4cvaT.js";import{C as w}from"./Tabs.BGx54iMB.js";import{C as E}from"./Tooltip.B0brI66q.js";import{a as F}from"./index.Olu2afa7.js";import"./translations.Ur07Kmot.js";import{v as p,c as m,F as h,J as b,o as r,k as S,l as a,a as o,G as I,x as u,t as n,C as _,q as N,T as R}from"./runtime-dom.esm-bundler.DKw-RQqs.js";import{_ as V}from"./_plugin-vue_export-helper.BN1snXvA.js";import{_ as e,a as T}from"./default-i18n.DvLqo3S3.js";import"./helpers.yjC6K_2A.js";import"./constants.DfsCWbZk.js";import"./JsonValues.CjR5TkFn.js";import"./RadioToggle.Cv8la4G_.js";import"./RobotsMeta.C2jPAXOo.js";import"./Checkbox.BAIONgTE.js";import"./Checkmark.BedAg8BV.js";import"./Row.D0941SYu.js";import"./SettingsRow.Ch1FEDlp.js";import"./Editor.Bq1LihFR.js";import"./isEqual.DPyFnjxk.js";import"./_baseIsEqual.BLPD4oRg.js";import"./_getTag.KnvRqur7.js";import"./_baseClone.B3PqkIxk.js";import"./_arrayEach.Fgt6pfHj.js";import"./Caret.DMa7g0j7.js";import"./Tags.CWcNgqQw.js";import"./postSlug.Bl0Z6T8y.js";import"./metabox.SRNlGbGk.js";import"./cleanForSlug.DaL6KzBn.js";import"./toString.Dc7QMRQR.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.Bbqt6CgN.js";import"./GoogleSearchPreview.CgoMblv2.js";import"./HtmlTagsEditor.CJg9npyw.js";import"./UnfilteredHtml.CeQlPW48.js";import"./Slide.CdVEnD7S.js";import"./vue-router.CGjDmB5N.js";import"./TruSeoScore.D1tEO-2v.js";import"./ProBadge.BJ3spTo5.js";import"./Information.CzCa0jo7.js";import"./Ellipse.Bgc7-2f7.js";const s="all-in-one-seo-pack",z={setup(){const{getPostIconClass:l}=O();return{getPostIconClass:l,optionsStore:D(),rootStore:P(),settingsStore:B()}},components:{Advanced:L,CoreCard:q,CoreMainTabs:w,CoreTooltip:E,SvgCircleQuestionMark:F,TitleDescription:j},data(){return{internalDebounce:null,strings:{label:e("Label:",s),name:e("Slug:",s),postTypes:e("Post Types:",s),ctaButtonText:e("Unlock Custom Taxonomies",s),ctaDescription:T(e("%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.",s),"AIOSEO","Pro"),ctaHeader:T(e("Custom Taxonomy Support is a %1$s Feature",s),"PRO")},tabs:[{slug:"title-description",name:e("Title & Description",s),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:e("Advanced",s),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{taxonomies(){return this.rootStore.aioseo.postData.taxonomies}},methods:{processChangeTab(l,g){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${l}SA`,value:g}),setTimeout(()=>{this.internalDebounce=!1},50))}}},M={class:"aioseo-search-appearance-taxonomies"},U={class:"aioseo-description"},G=o("br",null,null,-1),H=o("br",null,null,-1),J=o("br",null,null,-1);function Q(l,g,Y,i,c,f){const C=p("svg-circle-question-mark"),v=p("core-tooltip"),k=p("core-main-tabs"),A=p("core-card");return r(),m("div",M,[(r(!0),m(h,null,b(f.taxonomies,(t,x)=>(r(),S(A,{key:x,slug:`${t.name}SA`},{header:a(()=>[o("div",{class:I(["icon dashicons",i.getPostIconClass(t.icon)])},null,2),u(" "+n(t.label)+" ",1),_(v,{"z-index":"99999"},{tooltip:a(()=>[o("div",U,[u(n(c.strings.label)+" ",1),o("strong",null,n(t.label),1),G,u(" "+n(c.strings.name)+" ",1),o("strong",null,n(t.name),1),H,u(" "+n(c.strings.postTypes),1),J,o("ul",null,[(r(!0),m(h,null,b(t.postTypes,(d,y)=>(r(),m("li",{key:y},[o("strong",null,n(d),1)]))),128))])])]),default:a(()=>[_(C)]),_:2},1024)]),tabs:a(()=>[_(k,{tabs:c.tabs,showSaveButton:!1,active:i.settingsStore.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:d=>f.processChangeTab(t.name,d)},null,8,["tabs","active","onChanged"])]),default:a(()=>[_(R,{name:"route-fade",mode:"out-in"},{default:a(()=>[(r(),S(N(i.settingsStore.settings.internalTabs[`${t.name}SA`]),{object:t,separator:i.optionsStore.options.searchAppearance.global.separator,options:i.optionsStore.dynamicOptions.searchAppearance.taxonomies[t.name],type:"taxonomies","show-bulk":!1},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Rt=V(z,[["render",Q]]);export{Rt as default};
