import{e as D,a as P,k as B}from"./index.317ad629.js";import{u as O}from"./PostTypes.4e006733.js";import{A as L,T as j}from"./TitleDescription.739dc5ef.js";import{C as w}from"./Card.b75a3969.js";import{C as E}from"./Tabs.a35aa612.js";import{C as F}from"./Tooltip.23c7170d.js";import{S as I}from"./Trash.87a7d946.js";import"./translations.e71e2202.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,a as h}from"./default-i18n.65d58dd6.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.633a054c.js";import"./constants.bc5863fe.js";import"./JsonValues.a0694556.js";import"./RadioToggle.18655b2f.js";import"./RobotsMeta.759bfeb1.js";import"./Checkbox.6a913600.js";import"./Checkmark.762f711e.js";import"./Row.bb9acf3f.js";import"./SettingsRow.35256805.js";import"./Editor.8a5e9531.js";import"./isEqual.59768dc1.js";import"./_baseIsEqual.c0ca09f7.js";import"./_getTag.6fb74b2e.js";import"./_baseClone.cfa156ff.js";import"./_arrayEach.6af5abac.js";import"./Input.f04bee4d.js";import"./Index.2a391835.js";import"./Close.ccd53ef3.js";import"./Pencil.d82df6a1.js";import"./Caret.cd869c5d.js";import"./GoogleSearchPreview.114c7833.js";import"./Url.c2dcf147.js";import"./HtmlTagsEditor.c93abc5f.js";import"./UnfilteredHtml.f93ca71d.js";import"./Slide.3003ef51.js";import"./vue-router.41e9d860.js";import"./Button.9a301412.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:L,CoreCard:w,CoreMainTabs:E,CoreTooltip:F,SvgCircleQuestionMark:I,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: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};
