import{c as D,a as P,j as B}from"./index.e0fdfdc6.js";import{u as O}from"./PostTypes.762fce6d.js";import{A as j,T as L}from"./TitleDescription.fe9d719c.js";import{C as w}from"./Card.a415c187.js";import{C as E}from"./Tabs.9cad5d60.js";import{C as F}from"./Tooltip.23c7170d.js";import{S as I}from"./Trash.87a7d946.js";import"./translations.5e539ab1.js";import{T as N}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{_ as R}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e,s as h}from"./default-i18n.368c2d5c.js";import{c as p,F as b,af as S,a6 as m,o as a,a1 as T,a2 as i,_ as o,ae as V,a7 as u,$ as r,l as _,a5 as q}from"./runtime-core.esm-bundler.ce5add0b.js";import"./helpers.b1696305.js";import"./constants.cb29e214.js";import"./JsonValues.a0694556.js";import"./RadioToggle.18655b2f.js";import"./RobotsMeta.9954dafa.js";import"./Checkbox.e1f30786.js";import"./Checkmark.762f711e.js";import"./Row.bb9acf3f.js";import"./SettingsRow.fd3e214f.js";import"./Editor.4dffd9f5.js";import"./isEqual.657ec1c5.js";import"./_baseIsEqual.bda31e23.js";import"./_getTag.e070317d.js";import"./_baseClone.4457226b.js";import"./_arrayEach.6af5abac.js";import"./Input.94feb999.js";import"./Index.2a391835.js";import"./Close.ccd53ef3.js";import"./Pencil.d82df6a1.js";import"./Caret.cd869c5d.js";import"./GoogleSearchPreview.bbe31655.js";import"./Url.1c574b17.js";import"./HtmlTagsEditor.dd1ba47c.js";import"./UnfilteredHtml.e9a239ad.js";import"./Slide.3003ef51.js";import"./vue-router.53cc8f39.js";import"./Button.277f0e3d.js";import"./ProBadge.e6ec5f9a.js";import"./Information.98ebb530.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:j,CoreCard:w,CoreMainTabs:E,CoreTooltip:F,SvgCircleQuestionMark:I,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,$,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:V(["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(()=>[_(N,{name:"route-fade",mode:"out-in"},{default:i(()=>[(a(),T(q(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=R(z,[["render",Y]]);export{It as default};
