import{a as o,m as i}from"./vuex.esm.8fdeb4b6.js";import{A as c,T as p}from"./TitleDescription.79d5e4f5.js";import{C as l}from"./Card.db2ec99d.js";import{C as m}from"./Tabs.a309f2c7.js";import{n as u}from"./_plugin-vue2_normalizer.61652a7c.js";import"./WpTable.320da53b.js";import"./helpers.de7566d0.js";import"./postContent.616e0b04.js";import"./index.ec9852b3.js";import"./isArrayLikeObject.9b4b678d.js";import"./default-i18n.3a91e0e5.js";import"./Caret.d93b302e.js";import"./cleanForSlug.51ef7354.js";import"./constants.0d8c074c.js";import"./html.14f2a8b9.js";import"./Index.5f7ddb17.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.4b67d3e2.js";import"./_commonjsHelpers.f84db168.js";import"./GoogleSearchPreview.853cda22.js";import"./HtmlTagsEditor.70d3cf0a.js";import"./Editor.3e312d73.js";import"./UnfilteredHtml.7bdb1712.js";import"./Tooltip.68a8a92b.js";import"./Slide.15a07930.js";import"./TruSeoScore.339d22e1.js";import"./Information.93f80cbf.js";const h={components:{Advanced:c,CoreCard:l,CoreMainTabs:m,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,s){return a("core-card",{key:s,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:r=>t.processChangeTab(n.name,r)}})]},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 Y=f.exports;export{Y as default};
