import{q as D,b as P,y as O}from"./app-core.b862f9c8.js";import{u as B}from"./PostTypes.54ea30b8.js";import{T as j,A as q}from"./TitleDescription.412108d0.js";import{C as L}from"./Card.482ec741.js";import{C as R}from"./Tabs.37afc36c.js";import{C as w}from"./Tooltip.cb3a78f6.js";import{S as E}from"./Trash.c3e8db0b.js";import{aq as u,f as i,i as m,O as b,ad as S,Q as h,R as l,a0 as _,a4 as I,S as N,j as o,P as U,ae as d,U as r}from"./vendor-vue-ui.f00a1236.js";import{_ as V}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as s,a as T}from"./vendor-other.7b559694.js";import"./vendor-lodash.d3ad8b99.js";import"./JsonValues.a0694556.js";import"./RadioToggle.b2f1549c.js";import"./RobotsMeta.d02129a5.js";import"./Checkbox.e62f1ba4.js";import"./Checkmark.af3294f4.js";import"./Row.2a7735dd.js";import"./SettingsRow.1722e16a.js";import"./Index.3967c277.js";import"./Close.de45e465.js";import"./GoogleSearchPreview.14fc9832.js";import"./Caret.e6c9f7cc.js";import"./Url.2a5968be.js";import"./HtmlTagsEditor.fc0c6398.js";import"./Editor.ce4b47c1.js";import"./vendor-quill.e1eec88c.js";import"./Input.af82b72e.js";import"./Pencil.1ca5815a.js";import"./UnfilteredHtml.d98e0104.js";import"./vendor-emoji.92c96208.js";import"./Slide.805812ec.js";import"./Button.6c09d515.js";import"./ProBadge.838818f5.js";import"./Information.bbfb3caf.js";const n="all-in-one-seo-pack",z={setup(){const{getPostIconClass:a}=B();return{getPostIconClass:a,optionsStore:O(),rootStore:P(),settingsStore:D()}},components:{Advanced:q,CoreCard:L,CoreMainTabs:R,CoreTooltip:w,SvgCircleQuestionMark:E,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=u("svg-circle-question-mark"),v=u("core-tooltip"),A=u("core-main-tabs"),k=u("core-card");return i(),m("div",F,[(i(!0),m(b,null,S(f.taxonomies,(t,y)=>(i(),h(k,{key:y,slug:`${t.name}SA`},{header:l(()=>[o("div",{class:U(["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),m(b,null,S(t.postTypes,(g,x)=>(i(),m("li",{key:x},[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(()=>[_(I,{name:"route-fade",mode:"out-in"},{default:l(()=>[(i(),h(N(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 xt=V(z,[["render",Q]]);export{xt as default};
