import{a as D,b as P,n as B}from"./index.6205915e.js";import{u as O}from"./PostTypes.4e006733.js";import{A as w,T as L}from"./TitleDescription.60615c40.js";import{C as j}from"./Card.1db76325.js";import{C as q}from"./Tabs.c595cb5a.js";import{C as E}from"./Tooltip.e5a30815.js";import{S as F}from"./Trash.544ebd43.js";import"./translations.e71e2202.js";import{T as I}from"./runtime-dom.esm-bundler.36191dca.js";import{_ as N}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e,a as h}from"./default-i18n.65d58dd6.js";import{a3 as p,F as b,af as S,a7 as m,o as a,c as T,w as i,a4 as o,ae as R,a as u,t as r,q as _,r as V}from"./runtime-core.esm-bundler.50cb9e6d.js";import"./helpers.7981a424.js";import"./constants.41876895.js";import"./JsonValues.a0694556.js";import"./RadioToggle.35f9b684.js";import"./RobotsMeta.22b96816.js";import"./Checkbox.257eede7.js";import"./Checkmark.6216abdd.js";import"./Row.8a74cb5b.js";import"./SettingsRow.91d13113.js";import"./tags.53ae5e4e.js";import"./Index.92195ca4.js";import"./Close.650e0e8f.js";import"./GoogleSearchPreview.3c490476.js";import"./Caret.19d3d4d0.js";import"./Url.7104ea0a.js";import"./HtmlTagsEditor.c55a7a12.js";import"./Editor.5d5c47c6.js";import"./isEqual.29ed9528.js";import"./_baseIsEqual.45a50e56.js";import"./_getTag.47f014a4.js";import"./_baseClone.9f29425e.js";import"./_arrayEach.6af5abac.js";import"./_getAllKeysIn.2e381a54.js";import"./Input.2db511a5.js";import"./Pencil.1f4e936a.js";import"./Plus.1c775378.js";import"./UnfilteredHtml.f77bae3c.js";import"./Slide.25bc4286.js";import"./vue-router.d5648d95.js";import"./Button.898cae57.js";import"./ProBadge.3bfca56c.js";import"./Information.2306f29d.js";const s="all-in-one-seo-pack",z={setup(){const{getPostIconClass:n}=O();return{getPostIconClass:n,optionsStore:D(),rootStore:P(),settingsStore:B()}},components:{Advanced:w,CoreCard:j,CoreMainTabs:q,CoreTooltip:E,SvgCircleQuestionMark:F,TitleDescription:L},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:h(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:h(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,f){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${n}SA`,value:f}),setTimeout(()=>{this.internalDebounce=!1},50))}}},M={class:"aioseo-search-appearance-taxonomies"},U={class:"aioseo-description"},W=o("br",null,null,-1),H=o("br",null,null,-1),Q=o("br",null,null,-1);function Y(n,f,G,c,l,g){const C=m("svg-circle-question-mark"),v=m("core-tooltip"),A=m("core-main-tabs"),k=m("core-card");return a(),p("div",M,[(a(!0),p(b,null,S(g.taxonomies,(t,x)=>(a(),T(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",U,[u(r(l.strings.label)+" ",1),o("strong",null,r(t.label),1),W,u(" "+r(l.strings.name)+" ",1),o("strong",null,r(t.name),1),H,u(" "+r(l.strings.postTypes),1),Q,o("ul",null,[(a(!0),p(b,null,S(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=>g.processChangeTab(t.name,d)},null,8,["tabs","active","onChanged"])]),default:i(()=>[_(I,{name:"route-fade",mode:"out-in"},{default:i(()=>[(a(),T(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 Rt=N(z,[["render",Y]]);export{Rt as default};
