import{c as D,a as P,j as B}from"./index.ed1fc0db.js";import{u as O}from"./PostTypes.dafa8837.js";import{A as j,T as L}from"./TitleDescription.30d7b0ab.js";import{C as w}from"./Card.17b56f9a.js";import{C as E}from"./Tabs.fefb55da.js";import{C as F}from"./Tooltip.447e44bb.js";import{S as I}from"./Trash.263ee9c7.js";import"./translations.d159963e.js";import{T as N}from"./runtime-dom.esm-bundler.f6259c83.js";import{_ as R}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e,s as h}from"./default-i18n.20001971.js";import{c as p,F as b,af as S,a6 as m,o as a,a1 as T,a2 as i,a as o,ae as V,a7 as u,$ as r,m as _,a5 as q}from"./runtime-core.esm-bundler.4f558f23.js";import"./helpers.2a6f0df7.js";import"./constants.fe8bda37.js";import"./JsonValues.a0694556.js";import"./RadioToggle.4b8823f8.js";import"./RobotsMeta.da772d1f.js";import"./Checkbox.b57a023c.js";import"./Checkmark.8c62b4d7.js";import"./Row.29b591ed.js";import"./SettingsRow.d3933378.js";import"./Editor.5d9775d6.js";import"./isEqual.78f19070.js";import"./_baseIsEqual.51c85fd4.js";import"./_getTag.325cf680.js";import"./_baseClone.48b8a4d3.js";import"./_arrayEach.6af5abac.js";import"./Input.d9e61fc6.js";import"./Index.504e4ac6.js";import"./Close.8fb798f7.js";import"./Pencil.b89246dd.js";import"./Caret.b694929e.js";import"./GoogleSearchPreview.9c280f08.js";import"./Url.5bd27f81.js";import"./HtmlTagsEditor.5a420477.js";import"./UnfilteredHtml.2722d3bc.js";import"./Slide.3e3dec13.js";import"./vue-router.97a610ed.js";import"./Button.e237bb50.js";import"./ProBadge.e183057c.js";import"./Information.2e3d122e.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:j,CoreCard:w,CoreMainTabs:E,CoreTooltip:F,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: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};
