import{a as i,m as c}from"./index.f16c040b.js";import{A as p,T as l}from"./TitleDescription.2098c094.js";import{C as u}from"./Card.1a6f5bab.js";import{C as m}from"./Tabs.6838349b.js";import{n as h}from"./vueComponentNormalizer.58b0a173.js";import"./isArrayLikeObject.5268a676.js";import"./default-i18n.0e73c33c.js";import"./WpTable.078239fd.js";import"./constants.71b051da.js";import"./attachments.0f69322e.js";import"./cleanForSlug.41bbbaec.js";import"./index.c9bc1c73.js";import"./client.b661b356.js";import"./_commonjsHelpers.10c44588.js";import"./translations.3bc9d58c.js";import"./portal-vue.esm.272b3133.js";import"./JsonValues.08065e69.js";import"./MaxCounts.5a7ca2fd.js";import"./RadioToggle.d0794ab7.js";import"./RobotsMeta.e1358fdf.js";import"./Checkbox.732cf0d4.js";import"./Checkmark.c0183939.js";import"./Row.89c6bb85.js";import"./SettingsRow.0d51ff21.js";import"./GoogleSearchPreview.3cec5179.js";import"./HtmlTagsEditor.b55f3dc8.js";import"./Editor.f11f5d3a.js";import"./UnfilteredHtml.155f6b63.js";import"./Tooltip.a36a3967.js";import"./Slide.01023b2f.js";import"./TruSeoScore.98a47fd6.js";import"./Information.6f7632ab.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,r){return n("core-card",{key:r,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]}}},s={};var g=h(f,_,d,!1,v,null,null,null);function v(t){for(let a in s)this[a]=s[a]}const X=function(){return g.exports}();export{X as default};
