import{a as i,m as c}from"./index.9d9c8f08.js";import{A as p,T as l}from"./TitleDescription.53d09fb1.js";import{C as u}from"./Card.e152dae5.js";import{C as m}from"./Tabs.45cdcdd3.js";import{n as h}from"./vueComponentNormalizer.58b0a173.js";import"./isArrayLikeObject.44af21ce.js";import"./default-i18n.0e73c33c.js";import"./ToolsSettings.0bc46799.js";import"./index.693463c8.js";import"./client.d00863cc.js";import"./_commonjsHelpers.10c44588.js";import"./translations.3bc9d58c.js";import"./constants.01c2b898.js";import"./portal-vue.esm.272b3133.js";import"./attachments.4aad9de1.js";import"./cleanForSlug.61ba6611.js";import"./Index.dbb5baac.js";import"./JsonValues.08065e69.js";import"./MaxCounts.5a7ca2fd.js";import"./RadioToggle.18d51233.js";import"./RobotsMeta.43a238ee.js";import"./Checkbox.93944087.js";import"./Checkmark.627d69a4.js";import"./Row.dfea53f7.js";import"./SettingsRow.8a127375.js";import"./GoogleSearchPreview.519950fc.js";import"./HtmlTagsEditor.f068d8e9.js";import"./Editor.edd7582e.js";import"./UnfilteredHtml.5b246ff0.js";import"./Tooltip.a1ab116b.js";import"./Slide.8aaa5049.js";import"./TruSeoScore.98a47fd6.js";import"./Information.d80e4486.js";var _=function(){var t=this,a=t.$createElement,n=t._self._c||a;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:u,CoreMainTabs:m,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,a){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${t}Archives`,value:a}),setTimeout(()=>{this.internalDebounce=!1},50))},getOptions(t){return t.dynamic?this.dynamicOptions.searchAppearance.archives[t.name.replace("Archive","")]:this.options.searchAppearance.archives[t.name]}}},r={};var g=h(f,_,d,!1,v,null,null,null);function v(t){for(let a in r)this[a]=r[a]}const Y=function(){return g.exports}();export{Y as default};
