import{a as o,m as i}from"./vuex.esm.8fdeb4b6.js";import{A as c,T as p}from"./TitleDescription.c68bfb15.js";import{C as m}from"./Card.27307535.js";import{C as l}from"./Tabs.94a491a6.js";import{n as u}from"./_plugin-vue2_normalizer.61652a7c.js";import"./WpTable.ee9185a7.js";import"./helpers.de7566d0.js";import"./index.ec9852b3.js";import"./isArrayLikeObject.9b4b678d.js";import"./default-i18n.3a91e0e5.js";import"./attachments.6af710f9.js";import"./cleanForSlug.51ef7354.js";import"./constants.0d8c074c.js";import"./Caret.19b10233.js";import"./_commonjsHelpers.f84db168.js";import"./html.14f2a8b9.js";import"./Index.6dd703b2.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"./index.3c70e00e.js";import"./client.e62d6c37.js";import"./translations.c394afe3.js";import"./portal-vue.esm.98f2e05b.js";import"./GoogleSearchPreview.853cda22.js";import"./HtmlTagsEditor.16842e9d.js";import"./Editor.17682c4e.js";import"./UnfilteredHtml.9e0ba693.js";import"./Tooltip.68a8a92b.js";import"./Slide.15a07930.js";import"./TruSeoScore.339d22e1.js";import"./Information.93f80cbf.js";const h={components:{Advanced:c,CoreCard:m,CoreMainTabs:l,TitleDescription:p},data(){return{internalDebounce:null,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.$td),access:"aioseo_search_appearance_settings",pro:!1}],archives:[{label:"Author Archives",name:"author",singular:"Author",icon:"dashicons-admin-users"},{label:"Date Archives",name:"date",singular:"Date",icon:"dashicons-calendar-alt"},{label:"Search Page",name:"search",singular:"Search Page",icon:"dashicons-search"}]}},computed:{...o(["options","dynamicOptions","settings"]),getArchives(){return this.archives.concat(this.$aioseo.postData.archives.map(e=>({label:`${e.label} Archives`,name:`${e.name}Archive`,icon:"dashicons-category",singular:e.singular,dynamic:!0})))}},methods:{...i(["changeTab"]),processChangeTab(e,t){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${e}Archives`,value:t}),setTimeout(()=>{this.internalDebounce=!1},50))},getOptions(e){return e.dynamic?this.dynamicOptions.searchAppearance.archives[e.name.replace("Archive","")]:this.options.searchAppearance.archives[e.name]}}};var _=function(){var t=this,a=t._self._c;return a("div",{staticClass:"aioseo-search-appearance-archives"},t._l(t.getArchives,function(n,r){return a("core-card",{key:r,attrs:{slug:`${n.name}Archives`},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{staticClass:"icon dashicons",class:`${n.icon||"dashicons-admin-post"}`}),a("div",[t._v(" "+t._s(n.label)+" ")])]},proxy:!0},{key:"tabs",fn:function(){return[a("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.settings.internalTabs[`${n.name}Archives`],internal:""},on:{changed:s=>t.processChangeTab(n.name,s)}})]},proxy:!0}],null,!0)},[a("transition",{attrs:{name:"route-fade",mode:"out-in"}},[a(t.settings.internalTabs[`${n.name}Archives`],{tag:"component",attrs:{object:n,separator:t.options.searchAppearance.global.separator,options:t.getOptions(n),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""}})],1)],1)}),1)},d=[],f=u(h,_,d,!1,null,null,null,null);const et=f.exports;export{et as default};
