import{e as b,u as f,d as v}from"./links.4e9269a4.js";import{A,T as y}from"./TitleDescription.2c59936e.js";import{C as S}from"./Card.37225977.js";import{C}from"./Tabs.23866df2.js";import{r as i,c,F as D,h as T,o,b as p,w as r,a as l,n as x,t as $,d as m,C as k,j as w}from"./vue.runtime.esm-bundler.1bf81f69.js";import{_ as B}from"./_plugin-vue_export-helper.4292a25a.js";import"./default-i18n.41786823.js";import"./isArrayLikeObject.76f0d098.js";import"./index.cd7fac8b.js";import"./Caret.0b57d359.js";/* empty css                                            *//* empty css                                              */import"./constants.a78fc4cb.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";/* empty css                                              */import"./RadioToggle.6c005687.js";import"./ProBadge.5f8b58d0.js";import"./RobotsMeta.7e81c370.js";import"./Checkbox.1a2fc75a.js";import"./Checkmark.20d31f86.js";import"./Row.1358a527.js";import"./SettingsRow.2432af31.js";import"./tags.9c0199b3.js";import"./Tags.bc14d949.js";import"./postContent.164a8a2e.js";import"./cleanForSlug.10bf84e5.js";import"./toString.16b91dfe.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./html.3d4eb4ad.js";import"./get.d55c557c.js";import"./GoogleSearchPreview.45c17759.js";import"./HtmlTagsEditor.2a4955ac.js";import"./Editor.87ec1d9f.js";import"./UnfilteredHtml.2d041b8c.js";import"./Tooltip.fc81232d.js";import"./Slide.c4e68d01.js";import"./TruSeoScore.177d3103.js";import"./Ellipse.ca34fa71.js";import"./Information.379a165f.js";const O={setup(){return{optionsStore:b(),rootStore:f(),settingsStore:v()}},components:{Advanced:A,CoreCard:S,CoreMainTabs:C,TitleDescription:y},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:{getArchives(){return this.archives.concat(this.rootStore.aioseo.postData.archives.map(e=>({label:`${e.label} Archives`,name:`${e.name}Archive`,icon:"dashicons-category",singular:e.singular,dynamic:!0})))}},methods:{processChangeTab(e,n){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${e}Archives`,value:n}),setTimeout(()=>{this.internalDebounce=!1},50))},getOptions(e){return e.dynamic?this.optionsStore.dynamicOptions.searchAppearance.archives[e.name.replace("Archive","")]:this.optionsStore.options.searchAppearance.archives[e.name]}}},j={class:"aioseo-search-appearance-archives"};function L(e,n,P,s,u,a){const h=i("core-main-tabs"),d=i("core-card");return o(),c("div",j,[(o(!0),c(D,null,T(a.getArchives,(t,_)=>(o(),p(d,{key:_,slug:`${t.name}Archives`},{header:r(()=>[l("div",{class:x(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},null,2),l("div",null,$(t.label),1)]),tabs:r(()=>[m(h,{tabs:u.tabs,showSaveButton:!1,active:s.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:g=>a.processChangeTab(t.name,g)},null,8,["tabs","active","onChanged"])]),default:r(()=>[m(w,{name:"route-fade",mode:"out-in"},{default:r(()=>[(o(),p(k(s.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:s.optionsStore.options.searchAppearance.global.separator,options:a.getOptions(t),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Se=B(O,[["render",L]]);export{Se as default};
