import{a as i,m as c}from"./vuex.esm.19624049.js";import{A as p,T as l}from"./TitleDescription.c7f893d3.js";import{C as m}from"./Card.efd2e18e.js";import{C as u}from"./Tabs.2c3e6ab7.js";import{n as h}from"./vueComponentNormalizer.67c9b86e.js";import"./WpTable.36ecda37.js";import"./helpers.a2b0759e.js";import"./index.7b63dad7.js";import"./isArrayLikeObject.5268a676.js";import"./default-i18n.0e73c33c.js";import"./attachments.e5102eba.js";import"./cleanForSlug.7a45fb51.js";import"./constants.8bff9f56.js";import"./Caret.eeb84d06.js";import"./_commonjsHelpers.10c44588.js";import"./html.bcbe747e.js";import"./Index.cb09fd7a.js";import"./JsonValues.08065e69.js";import"./MaxCounts.5a7ca2fd.js";import"./SaveChanges.68e73792.js";import"./RadioToggle.2a5182bd.js";import"./RobotsMeta.540fd061.js";import"./Checkbox.1903802a.js";import"./Checkmark.cdcd77fe.js";import"./Row.2d17f2cd.js";import"./SettingsRow.d7400549.js";import"./index.81e35b24.js";import"./client.90beecd8.js";import"./translations.3bc9d58c.js";import"./portal-vue.esm.18ed59c3.js";import"./GoogleSearchPreview.357b0813.js";import"./HtmlTagsEditor.b55c95d9.js";import"./Editor.10476612.js";import"./UnfilteredHtml.02869869.js";import"./Tooltip.d723c3c3.js";import"./Slide.9538a421.js";import"./TruSeoScore.98a47fd6.js";import"./Information.be119534.js";var _=function(){var t=this,r=t.$createElement,n=t._self._c||r;return n("div",{staticClass:"aioseo-search-appearance-archives"},t._l(t.getArchives,function(e,s){return n("core-card",{key:s,attrs:{slug:`${e.name}Archives`},scopedSlots:t._u([{key:"header",fn:function(){return[n("div",{staticClass:"icon dashicons",class:`${e.icon||"dashicons-admin-post"}`}),n("div",[t._v(" "+t._s(e.label)+" ")])]},proxy:!0},{key:"tabs",fn:function(){return[n("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.settings.internalTabs[`${e.name}Archives`],internal:""},on:{changed:function(o){return t.processChangeTab(e.name,o)}}})]},proxy:!0}],null,!0)},[n("transition",{attrs:{name:"route-fade",mode:"out-in"}},[n(t.settings.internalTabs[`${e.name}Archives`],{tag:"component",attrs:{object:e,separator:t.options.searchAppearance.global.separator,options:t.getOptions(e),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""}})],1)],1)}),1)},d=[];const f={components:{Advanced:p,CoreCard:m,CoreMainTabs:u,TitleDescription:l},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:{...i(["options","dynamicOptions","settings"]),getArchives(){return this.archives.concat(this.$aioseo.postData.archives.map(t=>({label:`${t.label} Archives`,name:`${t.name}Archive`,icon:"dashicons-category",singular:t.singular,dynamic:!0})))}},methods:{...c(["changeTab"]),processChangeTab(t,r){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${t}Archives`,value:r}),setTimeout(()=>{this.internalDebounce=!1},50))},getOptions(t){return t.dynamic?this.dynamicOptions.searchAppearance.archives[t.name.replace("Archive","")]:this.options.searchAppearance.archives[t.name]}}},a={};var g=h(f,_,d,!1,v,null,null,null);function v(t){for(let r in a)this[r]=a[r]}const rt=function(){return g.exports}();export{rt as default};
