import{a as D,u as P,m as B}from"./index.681f720c.js";import{u as O}from"./PostTypes.dafa8837.js";import{A as L,T as N}from"./TitleDescription.338df2b7.js";import{C as j}from"./Card.9816f16f.js";import{C as w}from"./Tabs.6e7f902f.js";import{C as E}from"./Tooltip.418c677c.js";import{S as I}from"./index.e5bcd650.js";import"./translations.d159963e.js";import{c as p,G as h,N as b,x as m,o as a,l as S,m as i,a as o,K as R,y as u,t as r,H as _,v as V,T as q}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{_ as z}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e,s as T}from"./default-i18n.20001971.js";import"./helpers.e8ba8937.js";import"./constants.fe8bda37.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.51430965.js";import"./RobotsMeta.950709bd.js";import"./Checkbox.28e8400d.js";import"./Checkmark.43d7168a.js";import"./Row.aff98451.js";import"./SettingsRow.8aa99257.js";import"./Editor.d6666f4b.js";import"./isEqual.1eea7163.js";import"./_baseIsEqual.654f234d.js";import"./_getTag.dfa26aea.js";import"./_baseClone.4aac6d9c.js";import"./_arrayEach.6af5abac.js";import"./Caret.202f7c21.js";import"./SchemaStore.3c45ce4c.js";import"./metabox.4ef08012.js";import"./contentHasAssets.394bde62.js";import"./toString.6346a2b4.js";import"./_baseSet.4599153a.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.ff5a08b3.js";import"./Url.b0b6e9e3.js";import"./HtmlTagsEditor.e11ea183.js";import"./UnfilteredHtml.a66aed1b.js";import"./Slide.a525748d.js";import"./vue-router.ad00dfec.js";import"./ProBadge.aeac9858.js";import"./Information.3b2ed489.js";const s="all-in-one-seo-pack",F={setup(){const{getPostIconClass:n}=O();return{getPostIconClass:n,optionsStore:D(),rootStore:P(),settingsStore:B()}},components:{Advanced:L,CoreCard:j,CoreMainTabs:w,CoreTooltip:E,SvgCircleQuestionMark:I,TitleDescription:N},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.filter(n=>this.rootStore.aioseo.data.isWooCommerceActive?!n.name.startsWith("pa_"):!0)}},methods:{processChangeTab(n,g){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${n}SA`,value:g}),setTimeout(()=>{this.internalDebounce=!1},50))}}},H={class:"aioseo-search-appearance-taxonomies"},M={class:"aioseo-description"},U=o("br",null,null,-1),W=o("br",null,null,-1),G=o("br",null,null,-1);function K(n,g,Q,c,l,f){const C=m("svg-circle-question-mark"),v=m("core-tooltip"),A=m("core-main-tabs"),k=m("core-card");return a(),p("div",H,[(a(!0),p(h,null,b(f.taxonomies,(t,x)=>(a(),S(k,{key:x,slug:`${t.name}SA`},{header:i(()=>[o("div",{class:R(["icon dashicons",c.getPostIconClass(t.icon)])},null,2),u(" "+r(t.label)+" ",1),_(v,{"z-index":"99999"},{tooltip:i(()=>[o("div",M,[u(r(l.strings.label)+" ",1),o("strong",null,r(t.label),1),U,u(" "+r(l.strings.name)+" ",1),o("strong",null,r(t.name),1),W,u(" "+r(l.strings.postTypes),1),G,o("ul",null,[(a(!0),p(h,null,b(t.postTypes,(d,y)=>(a(),p("li",{key:y},[o("strong",null,r(d),1)]))),128))])])]),default:i(()=>[_(C)]),_:2},1024)]),tabs:i(()=>[_(A,{tabs:l.tabs,showSaveButton:!1,active:c.settingsStore.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:d=>f.processChangeTab(t.name,d)},null,8,["tabs","active","onChanged"])]),default:i(()=>[_(q,{name:"route-fade",mode:"out-in"},{default:i(()=>[(a(),S(V(c.settingsStore.settings.internalTabs[`${t.name}SA`]),{object:t,separator:c.optionsStore.options.searchAppearance.global.separator,options:c.optionsStore.dynamicOptions.searchAppearance.taxonomies[t.name],type:"taxonomies","show-bulk":!1},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const It=z(F,[["render",K]]);export{It as default};
