import{q as D,b as P,z as O}from"./app-core.fa86622d.js";import{u as B}from"./PostTypes.d0efd79c.js";import{T as j,A as L}from"./TitleDescription.4ef829c8.js";import{C as R}from"./Card.121699e0.js";import{C as q}from"./Tabs.0ad5fea6.js";import{C as w}from"./Tooltip.2fa6a359.js";import{S as z}from"./Trash.49bbc1a8.js";import{an as m,f as i,i as u,O as b,ad as S,Q as h,R as l,a0 as _,a4 as E,S as I,j as o,P as N,ae as d,U as r}from"./vendor-vue-ui.ad4935f9.js";import{_ as U}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as s,a as T}from"./vendor-other.835e467b.js";import"./vendor-lodash.45e85310.js";import"./JsonValues.a0694556.js";import"./RadioToggle.b6362be8.js";import"./RobotsMeta.c3ec34d4.js";import"./Checkbox.850765ce.js";import"./Checkmark.39a3e934.js";import"./Row.5037f897.js";import"./SettingsRow.603a6032.js";import"./Index.3b124722.js";import"./Close.8e99996b.js";import"./GoogleSearchPreview.095a6039.js";import"./Caret.d3343e56.js";import"./Globe.8c74686a.js";import"./Url.4c4a862a.js";import"./HtmlTagsEditor.5752f0f7.js";import"./Editor.689eaad3.js";import"./vendor-quill.d288b31f.js";import"./Input.a5933210.js";import"./Pencil.8f53e16a.js";import"./UnfilteredHtml.b30239a9.js";import"./vendor-emoji.92c96208.js";import"./Slide.bdb08a3f.js";import"./Button.aa421c00.js";import"./ProBadge.f78ad48f.js";import"./Information.891eea3b.js";const n="all-in-one-seo-pack",V={setup(){const{getPostIconClass:a}=B();return{getPostIconClass:a,optionsStore:O(),rootStore:P(),settingsStore:D()}},components:{Advanced:L,CoreCard:R,CoreMainTabs:q,CoreTooltip:w,SvgCircleQuestionMark:z,TitleDescription:j},data(){return{internalDebounce:null,strings:{label:s("Label:",n),name:s("Slug:",n),postTypes:s("Post Types:",n),ctaButtonText:s("Unlock Custom Taxonomies",n),ctaDescription:T(s("%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.",n),"AIOSEO","Pro"),ctaHeader:T(s("Custom Taxonomy Support is a %1$s Feature",n),"PRO")},tabs:[{slug:"title-description",name:s("Title & Description",n),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:s("Advanced",n),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{taxonomies(){return this.rootStore.aioseo.postData.taxonomies.filter(a=>this.rootStore.aioseo.data.isWooCommerceActive?!a.name.startsWith("pa_"):!0)}},methods:{processChangeTab(a,e){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${a}SA`,value:e}),setTimeout(()=>{this.internalDebounce=!1},50))}}},F={class:"aioseo-search-appearance-taxonomies"},M={class:"aioseo-description"};function Q(a,e,W,p,c,f){const C=m("svg-circle-question-mark"),v=m("core-tooltip"),A=m("core-main-tabs"),k=m("core-card");return i(),u("div",F,[(i(!0),u(b,null,S(f.taxonomies,(t,x)=>(i(),h(k,{key:x,slug:`${t.name}SA`},{header:l(()=>[o("div",{class:N(["icon dashicons",p.getPostIconClass(t.icon)])},null,2),d(" "+r(t.label)+" ",1),_(v,{"z-index":"99999"},{tooltip:l(()=>[o("div",M,[d(r(c.strings.label)+" ",1),o("strong",null,r(t.label),1),e[0]||(e[0]=o("br",null,null,-1)),d(" "+r(c.strings.name)+" ",1),o("strong",null,r(t.name),1),e[1]||(e[1]=o("br",null,null,-1)),d(" "+r(c.strings.postTypes),1),e[2]||(e[2]=o("br",null,null,-1)),o("ul",null,[(i(!0),u(b,null,S(t.postTypes,(g,y)=>(i(),u("li",{key:y},[o("strong",null,r(g),1)]))),128))])])]),default:l(()=>[_(C)]),_:2},1024)]),tabs:l(()=>[_(A,{tabs:c.tabs,showSaveButton:!1,active:p.settingsStore.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:g=>f.processChangeTab(t.name,g)},null,8,["tabs","active","onChanged"])]),default:l(()=>[_(E,{name:"route-fade",mode:"out-in"},{default:l(()=>[(i(),h(I(p.settingsStore.settings.internalTabs[`${t.name}SA`]),{object:t,separator:p.optionsStore.options.searchAppearance.global.separator,options:p.optionsStore.dynamicOptions.searchAppearance.taxonomies[t.name],type:"taxonomies","show-bulk":!1},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Dt=U(V,[["render",Q]]);export{Dt as default};
