import{u as D,a as P,n as B}from"./index.684c656d.js";import{u as O}from"./PostTypes.dafa8837.js";import{A as w,T as L}from"./TitleDescription.f82f8747.js";import{C as N}from"./Card.bf13def3.js";import{C as j}from"./Tabs.e0ecfe82.js";import{C as E}from"./Tooltip.f699c54b.js";import{a as I}from"./index.62c20ef8.js";import"./translations.d159963e.js";import{d as p,G as h,N as b,y as m,o as a,c as S,w as i,e as o,K as R,a as u,t as r,H as _,r as V,T as q}from"./runtime-dom.esm-bundler.d8b05b6d.js";import{_ as z}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e,s as T}from"./default-i18n.20001971.js";import"./helpers.2304d5ee.js";import"./constants.ee441da2.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.55ee1e6d.js";import"./RobotsMeta.7540e24e.js";import"./Checkbox.a4e60e91.js";import"./Checkmark.39dd9d2f.js";import"./Row.755a571f.js";import"./SettingsRow.892a6d38.js";import"./tags.4b35a532.js";import"./helpers.aece81b9.js";import"./Caret.2e43336b.js";import"./metabox.9787fdb7.js";import"./cleanForSlug.fc011207.js";import"./deburr.ef08c7b4.js";import"./toString.ddc58e67.js";import"./html.7cb59739.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.a2dfaed5.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.110cab87.js";import"./Url.ee93195e.js";import"./HtmlTagsEditor.2e99bf40.js";import"./Editor.2e93bf84.js";import"./isEqual.4ddce6d4.js";import"./_baseIsEqual.fbe0f200.js";import"./_getTag.f48446e8.js";import"./_baseClone.72ffba34.js";import"./_arrayEach.6af5abac.js";import"./_getAllKeysIn.4f27d7aa.js";import"./UnfilteredHtml.66a6b8ca.js";import"./Slide.53cdbff7.js";import"./vue-router.21860d65.js";import"./ProBadge.e29f5c16.js";import"./Information.5f425594.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:w,CoreCard:N,CoreMainTabs:j,CoreTooltip:E,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: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,y)=>(a(),S(k,{key:y,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,x)=>(a(),p("li",{key:x},[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 Ft=z(F,[["render",K]]);export{Ft as default};
