import{c as a,a as p,m as c}from"./vuex.esm.8fdeb4b6.js";import{A as l,T as m}from"./TitleDescription.6c62fffc.js";import{C as u}from"./Card.72525ad5.js";import{C as _}from"./Tabs.659e6500.js";import{C as d}from"./Tooltip.68a8a92b.js";import{S as h}from"./index.cf60653e.js";import{n as f}from"./_plugin-vue2_normalizer.61652a7c.js";import"./WpTable.e7a99c57.js";import"./helpers.de7566d0.js";import"./index.3751d023.js";import"./isArrayLikeObject.cf278c5f.js";import"./default-i18n.3a91e0e5.js";import"./attachments.482685b4.js";import"./cleanForSlug.961c836c.js";import"./constants.59a77347.js";import"./Caret.6d7f2e24.js";import"./_commonjsHelpers.f84db168.js";import"./html.f941cb8b.js";import"./Index.ffa20ee1.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./SaveChanges.e40a9083.js";import"./RadioToggle.e6e54396.js";import"./RobotsMeta.5a1b6c31.js";import"./Checkbox.60ba2f56.js";import"./Checkmark.f26f6201.js";import"./Row.830f6397.js";import"./SettingsRow.edbb3005.js";import"./GoogleSearchPreview.1f5696cc.js";import"./HtmlTagsEditor.df784f97.js";import"./Editor.039b9218.js";import"./UnfilteredHtml.d75a5c16.js";import"./Slide.15a07930.js";import"./TruSeoScore.339d22e1.js";import"./Information.93f80cbf.js";import"./client.e62d6c37.js";import"./translations.c394afe3.js";import"./portal-vue.esm.98f2e05b.js";const g={components:{Advanced:l,CoreCard:u,CoreMainTabs:_,CoreTooltip:d,SvgCircleQuestionMark:h,TitleDescription:m},data(){return{internalDebounce:null,strings:{label:this.$t.__("Label:",this.$td),name:this.$t.__("Slug:",this.$td),postTypes:this.$t.__("Post Types:",this.$td),ctaButtonText:this.$t.__("Upgrade to Pro and Unlock Custom Taxonomies",this.$td),ctaDescription:this.$t.sprintf(this.$t.__("%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.",this.$td),"AIOSEO","Pro"),ctaHeader:this.$t.sprintf(this.$t.__("Custom Taxonomy Support is only available for licensed %1$s %2$s users.",this.$td),"AIOSEO","Pro")},tabs:[{slug:"title-description",name:this.$t.__("Title & Description",this.$td),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:this.$t.__("Advanced",this.$tdPro),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{...a(["isUnlicensed"]),...p(["options","dynamicOptions","settings"]),taxonomies(){return this.$aioseo.postData.taxonomies}},methods:{...c(["changeTab"]),processChangeTab(n,t){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${n}SA`,value:t}),setTimeout(()=>{this.internalDebounce=!1},50))}}};var b=function(){var t=this,s=t._self._c;return s("div",{staticClass:"aioseo-search-appearance-taxonomies"},t._l(t.taxonomies,function(e,r){return s("core-card",{key:r,attrs:{slug:`${e.name}SA`},scopedSlots:t._u([{key:"header",fn:function(){return[s("div",{staticClass:"icon dashicons",class:`${e.icon||"dashicons-admin-post"}`}),t._v(" "+t._s(e.label)+" "),s("core-tooltip",{attrs:{"z-index":"99999"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[s("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.label)+" "),s("strong",[t._v(t._s(e.label))]),s("br"),t._v(" "+t._s(t.strings.name)+" "),s("strong",[t._v(t._s(e.name))]),s("br"),t._v(" "+t._s(t.strings.postTypes)),s("br"),s("ul",[t._l(e.postTypes,function(o,i){return[s("li",{key:i},[s("strong",[t._v(t._s(o))])])]})],2)])]},proxy:!0}],null,!0)},[s("svg-circle-question-mark")],1)]},proxy:!0},{key:"tabs",fn:function(){return[s("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.settings.internalTabs[`${e.name}SA`],internal:""},on:{changed:o=>t.processChangeTab(e.name,o)}})]},proxy:!0}],null,!0)},[s("transition",{attrs:{name:"route-fade",mode:"out-in"}},[s(t.settings.internalTabs[`${e.name}SA`],{tag:"component",attrs:{object:e,separator:t.options.searchAppearance.global.separator,options:t.dynamicOptions.searchAppearance.taxonomies[e.name],type:"taxonomies","show-bulk":!1}})],1)],1)}),1)},$=[],v=f(g,b,$,!1,null,null,null,null);const rt=v.exports;export{rt as default};
