import{c as D,u as P,m as B}from"./index.bb0afb15.js";import{u as O}from"./PostTypes.dafa8837.js";import{A as L,T as N}from"./TitleDescription.4a9085a9.js";import{C as j}from"./Card.16558ba3.js";import{C as q}from"./Tabs.9fff5d3c.js";import{C as w}from"./Tooltip.78b61f71.js";import{a as E}from"./index.7fee6f1a.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.80db7619.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.70a7af04.js";import"./Editor.b6ccd99c.js";import"./isEqual.94420b7f.js";import"./_baseIsEqual.282df3d7.js";import"./_getTag.986c60ac.js";import"./_baseClone.e7c09cb6.js";import"./_arrayEach.6af5abac.js";import"./Caret.7cc96622.js";import"./SchemaStore.37600365.js";import"./metabox.bfa77fbe.js";import"./cleanForSlug.f6cc01d0.js";import"./toString.5aade9aa.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.fcc45203.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.6c64667c.js";import"./Url.bb544e92.js";import"./HtmlTagsEditor.c1e2b62f.js";import"./UnfilteredHtml.66be5719.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};
