import{c as D,u as P,m as B}from"./index.36512665.js";import{u as O}from"./PostTypes.dafa8837.js";import{A as L,T as N}from"./TitleDescription.5ce796e8.js";import{C as j}from"./Card.1222adc7.js";import{C as w}from"./Tabs.695e9d1e.js";import{C as E}from"./Tooltip.e12834fc.js";import{a as I}from"./index.f3c7a985.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.c4caba60.js";import{_ as z}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e,s as T}from"./default-i18n.20001971.js";import"./helpers.a0b389be.js";import"./constants.a8a14dc3.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.24417291.js";import"./RobotsMeta.d5b83aff.js";import"./Checkbox.475ec1e7.js";import"./Checkmark.34fb32e2.js";import"./Row.d49feaf0.js";import"./SettingsRow.e76e5dcb.js";import"./Editor.b9689f94.js";import"./isEqual.34cebf90.js";import"./_baseIsEqual.e5574158.js";import"./_getTag.69d3a807.js";import"./_baseClone.52af027b.js";import"./_arrayEach.6af5abac.js";import"./Caret.cc16468c.js";import"./SchemaStore.79ec0be9.js";import"./metabox.cc5e29b7.js";import"./cleanForSlug.cacc99d0.js";import"./toString.1e64e8a6.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.ca702273.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.8c9eac95.js";import"./Url.7abc1720.js";import"./HtmlTagsEditor.9ea7ec47.js";import"./UnfilteredHtml.49fd20b4.js";import"./Slide.9bb3b45e.js";import"./vue-router.8d7f8ad9.js";import"./ProBadge.6c04ecdd.js";import"./Information.efebd14c.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 Rt=z(F,[["render",K]]);export{Rt as default};
