import{e as D,u as P,m as B}from"./index.bd66e758.js";import{u as O}from"./PostTypes.dafa8837.js";import{A as L,T as N}from"./TitleDescription.3d2632bf.js";import{C as j}from"./Card.88a70537.js";import{C as w}from"./Tabs.38c9ba5c.js";import{C as E}from"./Tooltip.418c677c.js";import{S as I}from"./index.eb92a2a8.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 n,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.bf0d86e6.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.81f3911b.js";import"./isEqual.5cc76a57.js";import"./_baseIsEqual.6ce4f4be.js";import"./_getTag.591de94f.js";import"./_baseClone.1a97e0e2.js";import"./_arrayEach.6af5abac.js";import"./Caret.382b7591.js";import"./GoogleSearchPreview.d0cab464.js";import"./Url.47c8a1c7.js";import"./HtmlTagsEditor.e6c04a8d.js";import"./UnfilteredHtml.15c70aa8.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:r}=O();return{getPostIconClass:r,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(r=>this.rootStore.aioseo.data.isWooCommerceActive?!r.name.startsWith("pa_"):!0)}},methods:{processChangeTab(r,g){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${r}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(r,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(" "+n(t.label)+" ",1),_(v,{"z-index":"99999"},{tooltip:i(()=>[o("div",M,[u(n(l.strings.label)+" ",1),o("strong",null,n(t.label),1),U,u(" "+n(l.strings.name)+" ",1),o("strong",null,n(t.name),1),W,u(" "+n(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,n(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 Ot=z(F,[["render",K]]);export{Ot as default};
