import{c as D,u as P,m as B}from"./index.a13799ab.js";import{u as O}from"./PostTypes.dafa8837.js";import{A as L,T as N}from"./TitleDescription.fe6edb60.js";import{C as j}from"./Card.b4864217.js";import{C as q}from"./Tabs.4788ba43.js";import{C as w}from"./Tooltip.78b61f71.js";import{a as E}from"./index.d63536bd.js";import"./translations.d159963e.js";import{c as p,G as h,N as b,v as m,o as a,k as S,l as i,a as o,K as I,x as u,t as r,H as _,q as R,T as V}from"./runtime-dom.esm-bundler.baf35205.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.c3ae1828.js";import"./RobotsMeta.5e8ee147.js";import"./Checkbox.d4a94670.js";import"./Checkmark.b35299d3.js";import"./Row.c7b7fb90.js";import"./SettingsRow.67d94513.js";import"./Editor.cb52ad98.js";import"./isEqual.34cebf90.js";import"./_baseIsEqual.e5574158.js";import"./_getTag.69d3a807.js";import"./_baseClone.475f8e3d.js";import"./_arrayEach.6af5abac.js";import"./Caret.7cc96622.js";import"./SchemaStore.93bb47b2.js";import"./metabox.e4ccf554.js";import"./cleanForSlug.cacc99d0.js";import"./toString.1e64e8a6.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.ca702273.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.ed1b5a5f.js";import"./Url.772412e1.js";import"./HtmlTagsEditor.795b77e2.js";import"./UnfilteredHtml.c5e8e521.js";import"./Slide.1db617da.js";import"./vue-router.fd2bb90e.js";import"./ProBadge.2e262a91.js";import"./Information.8cb16b63.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:q,CoreTooltip:w,SvgCircleQuestionMark:E,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:I(["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(()=>[_(V,{name:"route-fade",mode:"out-in"},{default:i(()=>[(a(),S(R(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=z(F,[["render",K]]);export{It as default};
