import{b,u as f,m as A}from"./links.96ffe3f0.js";import{A as v,T as y}from"./TitleDescription.00e02446.js";import{C as S}from"./Card.b1cf2e4d.js";import{C}from"./Tabs.1eea2de2.js";import{r as i,c,F as T,C as D,o,d as p,w as r,a as m,n as x,x as $,g as l,A as k,T as w}from"./vue.runtime.esm-bundler.f433d23f.js";import{_ as B}from"./_plugin-vue_export-helper.3febc96a.js";import"./default-i18n.41786823.js";import"./isArrayLikeObject.7c69e632.js";import"./index.57ad6f19.js";import"./Caret.b5c2e4ec.js";/* empty css                                            *//* empty css                                              */import"./constants.008ef172.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";/* empty css                                              */import"./RadioToggle.29fa7827.js";import"./ProBadge.f4f3af83.js";import"./RobotsMeta.ea70af20.js";import"./Checkbox.8f797799.js";import"./Checkmark.74f4bcd8.js";import"./Row.e69aefbc.js";import"./SettingsRow.81a9aa4d.js";import"./tags.83142c1f.js";import"./Tags.4b8b1ae9.js";import"./postContent.2b412d8b.js";import"./cleanForSlug.b54907fb.js";import"./toString.9a2ec6a1.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./deburr.40d916cf.js";import"./html.51334e3e.js";import"./get.5bf9ffd1.js";import"./GoogleSearchPreview.9a3ae2ed.js";import"./HtmlTagsEditor.897f0371.js";import"./Editor.93dbb6c1.js";import"./UnfilteredHtml.5eb9a053.js";import"./Tooltip.6a8793f6.js";import"./Slide.99d45c60.js";import"./TruSeoScore.177d3103.js";import"./SaveChanges.744089d3.js";import"./Information.6754f071.js";const O={setup(){return{optionsStore:b(),rootStore:f(),settingsStore:A()}},components:{Advanced:v,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]}}},L={class:"aioseo-search-appearance-archives"};function P(e,n,j,s,u,a){const h=i("core-main-tabs"),d=i("core-card");return o(),c("div",L,[(o(!0),c(T,null,D(a.getArchives,(t,_)=>(o(),p(d,{key:_,slug:`${t.name}Archives`},{header:r(()=>[m("div",{class:x(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},null,2),m("div",null,$(t.label),1)]),tabs:r(()=>[l(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(()=>[l(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 Ce=B(O,[["render",P]]);export{Ce as default};
